QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#594402#9308. World CupWwjqWA 0ms3692kbC++14582b2024-09-27 23:05:142024-09-27 23:05:15

Judging History

你现在查看的是最新测评结果

  • [2024-09-27 23:05:15]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3692kb
  • [2024-09-27 23:05:14]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
long long a[40];
bool cmp(int a,int b)
{
	return a>b;
}
int main ()
{

	ios::sync_with_stdio(false);
	int t,i,pos;
	long long f;
	cin>>t;
	while(t--)
	{
		for(i=1;i<=32;i++)
		{
			cin>>a[i];
		
		}
		f=a[1];
		pos=0;
		for(i=2;i<=32;i++)
		{
			if (f>a[i])
			{
				pos++;
			}
		}
		if (pos<2)
			cout<<32<<'\n';
		else if (pos<6)
			cout<<16<<'\n';
		else if (pos<13)
			cout<<8<<'\n';
		else if (pos<27)
			cout<<4<<'\n';
		else if (pos<32)
			cout<<2<<'\n';
		else cout<<1<<'\n';	
		}	
	
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3692kb

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'