QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#578108#9308. World CupaikongskyWA 0ms3552kbC++14545b2024-09-20 16:39:102024-09-20 16:39:10

Judging History

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

  • [2024-09-20 16:39:10]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3552kb
  • [2024-09-20 16:39:10]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 33;
int a[N];
int t;
void solve()
{
	int stand = 0,cnt = 0;
	for(int i = 1;i <= 32;i++)
	{
		scanf("%d",&a[i]);
		stand = a[1];
		if(stand > a[i]) cnt++;
	}
	if(cnt == 7) cout<<"1"<<endl;
	else if(cnt == 6) cout<<"2"<<endl;
	else if(cnt == 5) cout<<"4"<<endl;
	else if(cnt == 4) cout<<"8"<<endl;
	else if(cnt == 3) cout<<"16"<<endl;
	else if(cnt < 2) cout<<"32"<<endl;
}
int main()
{
	cin>>t;
	while(t--)
	{
		solve();
	}
	return 0;
}

详细

Test #1:

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

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:


result:

wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements