QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#573145#9310. Permutation Counting 4clear_teaWA 0ms3572kbC++20696b2024-09-18 17:30:522024-09-18 17:30:57

Judging History

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

  • [2024-09-18 17:30:57]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3572kb
  • [2024-09-18 17:30:52]
  • 提交

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'