QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#772959 | #1795. Beer Can Game | I_be_wanna | WA | 497ms | 95360kb | C++17 | 234b | 2024-11-22 23:11:34 | 2024-11-22 23:11:35 |
Judging History
answer
#include<iostream>
using namespace std;
int main(){
char n[93838989];
int l;
for(int i=0;i<93838989;i++){
cin>>n[i];
}
if(n[0]=='a'){
l=4;
}else if(n[0]=='t'){
l=6;
}else{
l=0;
}
cout<<l;
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 488ms
memory: 95204kb
input:
aa nn
output:
4
result:
ok single line: '4'
Test #2:
score: 0
Accepted
time: 491ms
memory: 95208kb
input:
ttt ggg
output:
6
result:
ok single line: '6'
Test #3:
score: -100
Wrong Answer
time: 497ms
memory: 95360kb
input:
jjjjj fffff
output:
0
result:
wrong answer 1st lines differ - expected: '10', found: '0'