Hiho Interview Problems 2 register

Ended

Participants:465

Verdict:Accepted
Submitted:2014-09-14 15:18:38

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream>
#include <string>
#include <set>
using namespace std;
set<int> sameset;
struct EqPair {
    int a, b;
    int tag;
};
const int maxk = 1000;
EqPair eqs[maxk];
string gene;
int k;
int chCnt[4];
inline void clearCnt() {
    for (int i = 0; i < 4; i++)
        chCnt[i] = 0;
}
inline int getInd(char ch) {
    switch (ch) {
    case 'A':
        return 0;
    case 'T':
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX