QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#360260 | #6783. Cooking Competition | kden | WA | 0ms | 3588kb | C++14 | 467b | 2024-03-21 16:20:43 | 2024-03-21 16:20:44 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
int sc1[10]={1,0,1,-1};
int sc2[10]={0,1,1,-1};
cin>>n;
while(n--){
int b,way,k=0,t=0;
cin>>b;
for(int i=1;i<=b;i++){
cin>>way;
k+=sc1[way-1];t+=sc2[way-1];
}
if(k==t){cout<<"Draw"<<endl;}
else if(k>t){cout<<"Kobayshi"<<endl;}
else if(k<t){cout<<"Tohru"<<endl;}
}
return 0;
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3588kb
input:
3 3 1 2 1 2 2 4 2 3 4
output:
Kobayshi Tohru Draw
result:
wrong answer 1st lines differ - expected: 'Kobayashi', found: 'Kobayshi'