QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#573283#9320. Find the Easiest Problemcmdgbb_fanWA 0ms1632kbC++17338b2024-09-18 18:01:032024-09-18 18:01:04

Judging History

你现在查看的是最新测评结果

  • [2024-09-18 18:01:04]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:1632kb
  • [2024-09-18 18:01:03]
  • 提交

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'