QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#573716 | #9320. Find the Easiest Problem | MVPKow | WA | 22ms | 10652kb | C++14 | 385b | 2024-09-18 19:47:58 | 2024-09-18 19:47:58 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
const int N = 100005;
int T,n;
struct A{
string n,t;
bool f;
}a[N];
int main()
{
cin>>T;
while(T--){
cin>>n;
string s;
for(int i=1;i<=n;++i){
cin>>a[i].n>>a[i].t>>s;
a[i].f=(s=="accepted");
}
for(int i=1;i<=n;++i){
if(a[i].f==1){
cout<<a[i].t<<endl;
break;
}
}
}
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 10624kb
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: 22ms
memory: 10652kb
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:
O G Q D B G Z O C F S B T F E X N K Q Y C M S B M V A Z F J L B Y O D G W F Y W O D R Y U Y X T G K T W Z J I S E P P A V Q F E W W H I S G Z N H E D R J K I B X S O M B V X U A D M Q Y O V M P P V X C N B N M X Y A A U C H Q B I W O U C Q O N I K G F Q L L V S L G Y K D K A K U D G B L G V K G M K ...
result:
wrong answer 1st lines differ - expected: 'Z', found: 'O'