QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#568675 | #9320. Find the Easiest Problem | HalloWorld | WA | 0ms | 3560kb | C++20 | 627b | 2024-09-16 17:38:31 | 2024-09-16 17:38:31 |
Judging History
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'