QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#707875 | #8835. Goodman | senak# | WA | 0ms | 3668kb | C++20 | 511b | 2024-11-03 17:56:07 | 2024-11-03 17:56:12 |
Judging History
answer
#include <iostream>
#include <vector>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t;
cin >> t;
while (t--) {
int n;
cin >> n;
vector<int> p(n);
for (int i = 0; i < n; ++i) {
cin >> p[i];
}
// Output the permutation p itself as q
for (int i = 0; i < n; ++i) {
cout << p[i] << (i == n - 1 ? '\n' : ' ');
}
}
return 0;
}
详细
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3668kb
input:
2 4 1 2 3 4 6 6 5 4 3 2 1
output:
1 2 3 4 6 5 4 3 2 1
result:
wrong answer Jury found better answer than participant (test case 2)