QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#574500 | #9308. World Cup | Nijika_jia | WA | 0ms | 3680kb | C++14 | 669b | 2024-09-18 22:25:05 | 2024-09-18 22:25:06 |
Judging History
answer
#include<bits/stdc++.h>
#define ULL unsigned long long
#define LL long long
#define PII pair<int,int>
using namespace std;
const int N = 5*1e5 + 10,M = 2 * 1e4 + 10,inf = 0x3f3f3f3f;
int a[50];
int main()
{
ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
int t;
cin>>t;
while (t--)
{
int n = 0;
for(int i=1;i<=32;i++)
{
cin>>a[i];
if(a[i]<=a[1]) n++;
}
if(n==31) puts("1");
else if(n>=28) puts("2");
else if(n>=15) puts("4");
else if(n>=7) puts("8");
else if(n>=3) puts("16");
else puts("32");
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3680kb
input:
1 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
output:
2
result:
wrong answer 1st numbers differ - expected: '1', found: '2'