hiho week 80 register

Ended

Participants:173

Verdict:Accepted
Score:100 / 100
Submitted:2016-01-09 22:30:17

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 <cstdio>
#include <cmath>
#include <algorithm>
using namespace std;
const int maxn = 20010;
char seq[maxn];
int main() {
    int x, y, z;
    int cr = 0, cy = 0, cb = 0;
    int ans = 0;
    int d1 = 0, d2 = 0, d3 = 0;
    scanf("%d%d%d", &x, &y, &z);
    scanf("%s", seq);
    for (int i = 0; seq[i]; ++i) {
        switch(seq[i]) {
            case 'R':
                cr++;
                break;
            case 'Y':
                cy++;
                break;
            case 'B':
                cb++;
                break;
            default:
                break;
        }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX