QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#600422 | #8837. Increasing Income | xydCatGirl# | WA | 0ms | 3680kb | C++14 | 413b | 2024-09-29 16:26:10 | 2024-09-29 16:26:11 |
Judging History
answer
#include <bits/stdc++.h>
using i64 = long long;
constexpr int N = 2e5 + 5;
int T, n;
int p[N], q[N];
void solve() {
std::cin >> n;
for (int i = 1; i <= n; i++) std::cin >> p[i], q[p[i]] = i;
for (int i = 1; i <= n; i++) std::cout << q[i] << " \n"[i == n];
}
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cin >> T;
while (T--) solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3680kb
input:
3 3 1 2 3 4 2 4 3 1 5 1 5 2 4 3
output:
1 2 3 4 1 3 2 1 3 5 4 2
result:
wrong answer Jury found better answer than participant (test case 2)