QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#425337 | #8742. 黑白 | ucup-team2279# | WA | 34ms | 3668kb | C++17 | 379b | 2024-05-30 08:54:44 | 2024-05-30 08:54:44 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0)->sync_with_stdio(0);
int t;
cin >> t;
while (t--) {
int n, m;
cin >> n >> m;
int cnt = 0;
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
char c;
cin >> c;
cnt += c == 'W';
}
}
cout << (cnt - n - m - 1 & 1 ? 'I' : 'J') << "\n";
}
return 0;
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 34ms
memory: 3668kb
input:
100 2 6 WWBBWW WWWWWB 3 8 WWWBBBBB WWWBWWWB BBWWWBWW 5 2 WB BB BB BW BB 6 4 WWBW WBWB WWWW WWWB BBWW BWBW 2 3 WWW WBW 124 125 BWWWWWWWWWWWWWWWWWWWWWWWWWWBWWWWBWWWWWWWWBWWWWWWWWWWWBBBBWWWWWWWWWWWWWWWWWBWWWWWWWWWBWWWWWWWWWWBWWWWWWWWBBWWWWWWWWWWWWWWWWWWB WWWWWWWBWWBWWWWWWWWWWWBWWBWWBWWWWBWWWWWWWWWBWBWB...
output:
J J J I I J I I I J I J J I J I I I I I I J I I I J J I J J J J I I I J J J J I J J I I I I J I J J J I J I J J J J I I J J J I J I I I I I J I J I J I I I J I J J J J J I J J I I I J J I I J J J J I
result:
wrong answer 14th lines differ - expected: 'J', found: 'I'