Submission #1180418
Source Code Expand
#include<iostream> #include<string> #include<cmath> #include<queue> #include<map> #include<set> #include<list> #include<iomanip> #include<vector> #include<functional> #include<algorithm> #include<cstdio> #include<unordered_map> using namespace std; typedef long long ll; int n; struct P { ll a, b; }; bool operator<(P a, P b) { return a.a < b.a; } bool operator>(P a, P b) { return a.a > b.a; } P a[100000]; int main() { cin >> n; for (int i = 0; i < n; i++) { cin >> a[i].a; a[i].b = i + 1; } sort(a, a + n); reverse(a, a + n); for (int i = 0; i < n; i++) { cout << a[i].b << endl; } }
Submission Info
Submission Time | |
---|---|
Task | C - 背の順 |
User | Thistle |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 633 Byte |
Status | AC |
Exec Time | 194 ms |
Memory | 2432 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 | 1 ms | 256 KB |
0_01.txt | AC | 1 ms | 256 KB |
0_02.txt | AC | 1 ms | 256 KB |
1_00.txt | AC | 1 ms | 256 KB |
1_01.txt | AC | 1 ms | 256 KB |
1_02.txt | AC | 1 ms | 256 KB |
1_03.txt | AC | 1 ms | 256 KB |
1_04.txt | AC | 3 ms | 256 KB |
1_05.txt | AC | 3 ms | 256 KB |
1_06.txt | AC | 3 ms | 256 KB |
1_07.txt | AC | 3 ms | 256 KB |
1_08.txt | AC | 3 ms | 256 KB |
1_09.txt | AC | 3 ms | 256 KB |
1_10.txt | AC | 3 ms | 256 KB |
1_11.txt | AC | 3 ms | 256 KB |
1_12.txt | AC | 3 ms | 256 KB |
1_13.txt | AC | 3 ms | 256 KB |
1_14.txt | AC | 3 ms | 256 KB |
1_15.txt | AC | 2 ms | 256 KB |
2_00.txt | AC | 178 ms | 2432 KB |
2_01.txt | AC | 181 ms | 2432 KB |
2_02.txt | AC | 190 ms | 2432 KB |
2_03.txt | AC | 192 ms | 2432 KB |
2_04.txt | AC | 194 ms | 2432 KB |
2_05.txt | AC | 194 ms | 2432 KB |
2_06.txt | AC | 194 ms | 2432 KB |
2_07.txt | AC | 194 ms | 2432 KB |
2_08.txt | AC | 147 ms | 1792 KB |
2_09.txt | AC | 182 ms | 2176 KB |
2_10.txt | AC | 57 ms | 896 KB |
2_11.txt | AC | 156 ms | 1920 KB |