Submission #1626748
Source Code Expand
#include <bits/stdc++.h> #define REP(i,a,b) for(int i=(a);i<(b);i++) #define RREP(i,a,b) for(int i=(a);i>=(b);i--) typedef long long ll; typedef long double ld; using namespace std; const int INF=1e9, MOD=1e9+7; const int MAX_N=10000; int n,tmp; vector<pair<int,int>> p(100010); int main(){ cin >> n; REP(i,0,n) cin >> tmp,p[i]=make_pair(tmp,i); sort(p.begin(), p.end()); reverse(p.begin(), p.end()); REP(i,0,n) cout << p[i].second+1 << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - 背の順 |
User | ecasdqina |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 481 Byte |
Status | AC |
Exec Time | 214 ms |
Memory | 1664 KB |
Judge Result
Set Name | Sample | Subtask1 | All | ||||||
---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 30 / 30 | 70 / 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 | AC | 4 ms | 1024 KB |
0_01.txt | AC | 4 ms | 1024 KB |
0_02.txt | AC | 4 ms | 1024 KB |
1_00.txt | AC | 4 ms | 1024 KB |
1_01.txt | AC | 4 ms | 1024 KB |
1_02.txt | AC | 4 ms | 1024 KB |
1_03.txt | AC | 4 ms | 1024 KB |
1_04.txt | AC | 5 ms | 1024 KB |
1_05.txt | AC | 5 ms | 1024 KB |
1_06.txt | AC | 6 ms | 1024 KB |
1_07.txt | AC | 6 ms | 1024 KB |
1_08.txt | AC | 6 ms | 1024 KB |
1_09.txt | AC | 6 ms | 1024 KB |
1_10.txt | AC | 6 ms | 1024 KB |
1_11.txt | AC | 6 ms | 1024 KB |
1_12.txt | AC | 5 ms | 1024 KB |
1_13.txt | AC | 5 ms | 1024 KB |
1_14.txt | AC | 5 ms | 1024 KB |
1_15.txt | AC | 4 ms | 1024 KB |
2_00.txt | AC | 196 ms | 1664 KB |
2_01.txt | AC | 187 ms | 1536 KB |
2_02.txt | AC | 214 ms | 1536 KB |
2_03.txt | AC | 207 ms | 1664 KB |
2_04.txt | AC | 212 ms | 1536 KB |
2_05.txt | AC | 211 ms | 1536 KB |
2_06.txt | AC | 211 ms | 1536 KB |
2_07.txt | AC | 210 ms | 1536 KB |
2_08.txt | AC | 159 ms | 1408 KB |
2_09.txt | AC | 194 ms | 1536 KB |
2_10.txt | AC | 63 ms | 1152 KB |
2_11.txt | AC | 171 ms | 1536 KB |