QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#568675#9320. Find the Easiest ProblemHalloWorldWA 0ms3560kbC++20627b2024-09-16 17:38:312024-09-16 17:38:31

Judging History

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

  • [2024-09-16 17:38:31]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3560kb
  • [2024-09-16 17:38:31]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
void solve() {
	vector<array<int, 2>> a(33);
	for (int i = 1; i <= 32; i++) {
		int x; cin >> x; a[i][0] = x; a[i][1] = i;
	}
	sort(begin(a) + 1, end(a));
	for (int i = 1; i <= 32; i++) if (a[i][1] == 1) {
		if (i >= 1 && i <= 2) cout << "32\n";
		if (i >= 3 && i <= 6) cout << "16\n";
		if (i >= 7 && i <= 13) cout << "8\n";
		if (i >= 14 && i <= 27) cout << "4\n";
		if (i >= 28 && i <= 31) cout << "2\n";
		if (i >= 32) cout << "1\n";
		return;
	}
}
int main() {
	ios::sync_with_stdio(0); cin.tie(0);
	int t; cin >> t; while (t--)
	solve();
	return 0;
}

详细

Test #1:

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

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
32

result:

wrong answer 1st lines differ - expected: 'A', found: '1'