QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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;
}
Details
Tip: Click on the bar to expand more detailed information
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'