코드#include #include #include #include #include using namespace std;bool isfour, isthree, istwo, iscon;int a[15], b[5], four, three, two, cnum;string ca, cb;void FASTIO() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);}int main() { FASTIO(); for (int i = 0; i > ca >> cb; int num = stoi(cb); a[num]++; if (ca == "R") { b[0]++; } else if (ca == "B") { b[1]++; } else if..