intmain() { 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 %d\n", B, T); elseif (B > W) printf("BANGLADESH %d - %d\n", B, W); else printf("WWW %d - %d\n", W, B); }