Submission #2207491
Source Code Expand
#include <bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<(b);i++) #define erep(i,a,b) for(int i=a;i<=(int)(b);i++) #define per(i,a,b) for(int i=(b)-1;i>(a);i--) #define eper(i,a,b) for(int i=((int)(a));i>=b;i--) #define pb push_back #define mp make_pair using namespace std; typedef long long ll; const int INF=(1<<30)-1; const int MOD=1000000007; int dy[]={0, 0, 1, -1}; int dx[]={1, -1, 0, 0}; int gcd(int a,int b){return b?gcd(b,a%b):a;} int n, a[100005]; map<int, int> m; int main() { ios::sync_with_stdio ( false ); cin.tie ( 0 ); cin >> n; rep(i, 0, n) { int x; cin >> x; m[x] = i; } for (auto itr = m.begin(); itr != m.end(); itr++) { printf("%d\n", itr->second + 1); } return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - 背の順 |
User | kage |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 750 Byte |
Status | WA |
Exec Time | 54 ms |
Memory | 5504 KB |
Judge Result
Set Name | Sample | Subtask1 | All | ||||||
---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 30 | 0 / 70 | ||||||
Status |
|
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt |
Subtask1 | 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt, 1_08.txt, 1_09.txt, 1_10.txt, 1_11.txt, 1_12.txt, 1_13.txt, 1_14.txt, 1_15.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt, 1_08.txt, 1_09.txt, 1_10.txt, 1_11.txt, 1_12.txt, 1_13.txt, 1_14.txt, 1_15.txt, 2_00.txt, 2_01.txt, 2_02.txt, 2_03.txt, 2_04.txt, 2_05.txt, 2_06.txt, 2_07.txt, 2_08.txt, 2_09.txt, 2_10.txt, 2_11.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | WA | 1 ms | 256 KB |
0_01.txt | WA | 1 ms | 256 KB |
0_02.txt | WA | 1 ms | 256 KB |
1_00.txt | WA | 1 ms | 256 KB |
1_01.txt | WA | 1 ms | 256 KB |
1_02.txt | WA | 1 ms | 256 KB |
1_03.txt | WA | 1 ms | 256 KB |
1_04.txt | WA | 1 ms | 384 KB |
1_05.txt | WA | 1 ms | 256 KB |
1_06.txt | WA | 1 ms | 256 KB |
1_07.txt | WA | 1 ms | 384 KB |
1_08.txt | WA | 2 ms | 384 KB |
1_09.txt | WA | 2 ms | 256 KB |
1_10.txt | WA | 2 ms | 256 KB |
1_11.txt | WA | 2 ms | 384 KB |
1_12.txt | WA | 1 ms | 256 KB |
1_13.txt | WA | 1 ms | 256 KB |
1_14.txt | WA | 1 ms | 256 KB |
1_15.txt | WA | 1 ms | 256 KB |
2_00.txt | WA | 38 ms | 5504 KB |
2_01.txt | WA | 38 ms | 5504 KB |
2_02.txt | WA | 39 ms | 5504 KB |
2_03.txt | WA | 41 ms | 5504 KB |
2_04.txt | WA | 54 ms | 5504 KB |
2_05.txt | WA | 54 ms | 5504 KB |
2_06.txt | WA | 54 ms | 5504 KB |
2_07.txt | WA | 54 ms | 5504 KB |
2_08.txt | WA | 40 ms | 4224 KB |
2_09.txt | WA | 50 ms | 5120 KB |
2_10.txt | WA | 14 ms | 1792 KB |
2_11.txt | WA | 43 ms | 4480 KB |