QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#565148#9308. World CupMinami-373WA 0ms3572kbC++14577b2024-09-15 20:25:542024-09-15 20:25:54

Judging History

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

  • [2024-09-15 20:25:54]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3572kb
  • [2024-09-15 20:25:54]
  • 提交

answer

#include<iostream>
using namespace std;
int main() {
	int T;
	cin >> T;
	int a[] = { 32,16,8,4,2,1 };
	while (T--)
	{
		int id = 1;
		int x;
		cin >> x;
		int ttt = 31;
		while (ttt--)
		{
			int t;
			cin >> t;
			if (t < x)id++;
		}
		cout << id << endl;
		if (id >= 0 && id <= 2)cout << a[0] << endl;
		else if (id >= 3 && id <= 6)cout << a[1] << endl;
		else if (id >= 7 && id <= 14)cout << a[2] << endl;
		else if (id >= 15 && id <= 30)cout << a[3] << endl;
		else if (id == 31)cout << a[4] << endl;
		else if (id == 32)cout << a[5] << endl;
	}
}

详细

Test #1:

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

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:

32
1

result:

wrong answer 1st numbers differ - expected: '1', found: '32'