Hiho Interview Problems 2 register

Ended

Participants:465

Verdict:Accepted
Submitted:2014-09-14 15:52:36

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 <vector>
#include <algorithm>
#include <set>
#include <string>
using namespace std;
void add(char c, int *count)
{
    if (c=='A')
        count[0] ++;
    else if(c=='C')
        count[1] ++;
    else if(c=='G')
        count[2] ++;
    else
        count[3] ++;
}
int main()
{
    int t, n, m, i, j, tmp, k;
    string str;
    set<int> diff;
    int count[4] = {0};
    cin >> t;
    while (t--)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX