int() { int Case; scanf("%d", &Case); for (int c = 1; c <= Case; c++) { int n, B = 0, W = 0, T = 0, A = 0; scanf("%d", &n); getchar(); for (int i = 0; i < n; i++) { char c = getchar(); if (c == 'B') B++; elseif (c == 'W') W++; elseif (c == 'T') T++; elseif (c == 'A') A++; } getchar();
printf("Case %d: ", c); if (A == n) puts("ABANDONED"); elseif (B == n - A) puts("BANGLAWASH"); elseif (W == n - A) puts("WHITEWASH"); elseif (B == W) printf("DRAW %d %dn", B, T); elseif (B > W) printf("BANGLADESH %d - %dn", B, W); else printf("WWW %d - %dn", W, B); }
近期评论