Submission #7740845


Source Code Expand

Copy
#include<bits/stdc++.h>
using namespace std;

using i64 = int64_t;

int main(){
    int n;
    cin >> n;
    vector<pair<int, int>> v;
    for(int i=1;i<=n;++i){
        int a;
        cin >> a;
        v.emplace_back(a, i);
    }
    sort(v.begin(), v.end());
    for(int i=0;i<n;++i){
        if(i)cout << " ";
        cout << v[i].second;
    }
    cout << endl;

    return 0;
}

Submission Info

Submission Time
Task C - Go to School
User nicklaw296
Language C++14 (GCC 5.4.1)
Score 300
Code Size 406 Byte
Status AC
Exec Time 47 ms
Memory 1780 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 16
Set Name Test Cases
Sample 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt
All 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 01-small-01.txt, 01-small-02.txt, 01-small-03.txt, 01-small-04.txt, 01-small-05.txt, 02-large-01.txt, 02-large-02.txt, 02-large-03.txt, 02-large-04.txt, 02-large-05.txt, 03-max-01.txt, 03-max-02.txt, 10-handmade-01.txt
Case Name Status Exec Time Memory
00-sample-01.txt AC 1 ms 256 KB
00-sample-02.txt AC 1 ms 256 KB
00-sample-03.txt AC 1 ms 256 KB
01-small-01.txt AC 1 ms 256 KB
01-small-02.txt AC 1 ms 256 KB
01-small-03.txt AC 1 ms 256 KB
01-small-04.txt AC 1 ms 256 KB
01-small-05.txt AC 1 ms 256 KB
02-large-01.txt AC 38 ms 1524 KB
02-large-02.txt AC 42 ms 1652 KB
02-large-03.txt AC 25 ms 1144 KB
02-large-04.txt AC 44 ms 1652 KB
02-large-05.txt AC 31 ms 1400 KB
03-max-01.txt AC 45 ms 1780 KB
03-max-02.txt AC 47 ms 1780 KB
10-handmade-01.txt AC 1 ms 256 KB