QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#573283 | #9320. Find the Easiest Problem | cmdgbb_fan | WA | 0ms | 1632kb | C++17 | 338b | 2024-09-18 18:01:03 | 2024-09-18 18:01:04 |
Judging History
answer
#include <algorithm>
#include <cstdio>
using namespace std;
int main() {
int T;
scanf("%d", &T);
while (T--) {
int n;
scanf("%d", &n);
char s[100];
for (int i = 0; i < n; ++i) {
fgets(s, 16, stdin);
if (s[8] == 'a') {
printf("%c\n", s[6]);
break;
}
}
}
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 1632kb
input:
2 5 teamA A accepted teamB B rejected teamC A accepted teamB B accepted teamD C accepted 4 teamA A rejected teamB A accepted teamC B accepted teamC B accepted
output:
A A
result:
ok 2 lines
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 1512kb
input:
1000 44 WaiooyIXa O accepted WaiooyIXa P accepted ZYYsNWag P accepted DPIawQg D rejected IzPdjnM Z rejected Ra D rejected kwQyGxLo I rejected DPIawQg L accepted kwQyGxLo I accepted mmWxDuADCB D rejected PXwVAOgwiz P rejected ZYYsNWag U accepted IzPdjnM Z accepted TgBNO P rejected kwQyGxLo J accepted...
output:
I
result:
wrong answer 1st lines differ - expected: 'Z', found: 'I'