Submission #72343713


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
int main(void){
    int n;
    cin >> n;
    vector<int> a(n);
    map<int, int> m;
    for(int i = 0; i < n; i++){
        cin >> a[i];
        m[a[i]] = i+1;
    }
    
    sort(a.begin(), a.end());
    cout << m[a[0]] << " " << m[a[1]] << " " << m[a[2]] << endl;
}

Submission Info

Submission Time
Task B - Trifecta
User mrkm1627
Language C++23 (GCC 15.2.0)
Score 200
Code Size 329 Byte
Status AC
Exec Time 1 ms
Memory 3476 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_01.txt AC 1 ms 3408 KiB
random_02.txt AC 1 ms 3332 KiB
random_03.txt AC 1 ms 3408 KiB
random_04.txt AC 1 ms 3332 KiB
random_05.txt AC 1 ms 3444 KiB
random_06.txt AC 1 ms 3440 KiB
random_07.txt AC 1 ms 3332 KiB
random_08.txt AC 1 ms 3476 KiB
sample_01.txt AC 1 ms 3476 KiB
sample_02.txt AC 1 ms 3440 KiB