QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#573145 | #9310. Permutation Counting 4 | clear_tea | WA | 0ms | 3572kb | C++20 | 696b | 2024-09-18 17:30:52 | 2024-09-18 17:30:57 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define int long long
int ran[33] = {0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
32, 32};
void solve() {
pair<int, int> a[33];
for (int i = 1; i <= 32; i++) cin >> a[i].first,a[i].second = i;
for (int i = 1; i <= 32; i++) {
if(a[i].second == 1) {
cout << ran[i] << '\n';
}
}
}
signed main() {
#ifdef ONLINE_JUDGE
#else
freopen("in.txt", "r", stdin);
freopen("out.txt", "w", stdout);
#endif
int Tcase = 1;
cin >> Tcase;
while (Tcase--) {
solve();
}
return 0;
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3572kb
input:
4 5 1 2 1 5 1 2 1 2 2 2 5 1 1 2 4 2 3 5 5 3 4 5 3 5 1 2 3 4 3 5 3 3 5 1 5 1 4 4 5 5 5 1 2
output:
1 1 1 1
result:
wrong answer 1st words differ - expected: '0', found: '1'