Lang:G++
Edit12345678910111213141516171819202122232425262728293031#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;}