QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#570476 | #9320. Find the Easiest Problem | rlaaa | WA | 0ms | 3632kb | C++23 | 526b | 2024-09-17 16:01:52 | 2024-09-17 16:01:56 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main() {
int t;
cin>>t;
while(t--){
int my,co=0,tmp;
cin>>my;
for(int i=1;i<32;i++){
cin>>tmp;
if( my>tmp) co++;
}
if(co<=1) cout<<32<<endl;
else if(co<=5) cout<<16<<endl;
else if(co<=12) cout<<8<<endl;
else if(co<=26) cout<<4<<endl;
else if(co<=30) cout<<2<<endl;
else cout<<1<<endl;
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3632kb
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:
1 1
result:
wrong answer 1st lines differ - expected: 'A', found: '1'