Submission #72349793


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#include <climits>
#define no cout << "No" << endl;
#define yes cout << "Yes" <<endl;
using ll = long long ;
using P=pair<int,int>;
//N×M vector<vector<int>> A(N,vector<int>(M)); A[i][j] A.push_back(data);
//sort (b.begin(),b.end()); if(b.size() >=2);
//int keta = to_string(b).length(); pow(10,keta);
//set<int> a; a.insert(da); a.count(da) for(auto v: a)
//using P=pair<int,int>;vector<P> c;c.emplace_back(da,i) //index保持
//auto dfs =[&](auto f, int i, int j) -> void {};
//b ha kihon zentansaku
//shoujin houhou komentodake nokosite mosha
//set<pair<int,int>> st;st.insert({r,c});st.count({x,y})

int main() {
    int n;
    cin >> n;
    vector<P> pt(n);
    rep(i,n){
        int t;cin >> t;
        pt[i]={t,i+1};
    }

    sort(pt.begin(),pt.end());
    rep(i,3){
        cout << pt[i].second << " " ; 
    }
}

Submission Info

Submission Time
Task B - Trifecta
User BvBDnl26
Language C++23 (GCC 15.2.0)
Score 200
Code Size 938 Byte
Status AC
Exec Time 1 ms
Memory 3640 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 3448 KiB
random_02.txt AC 1 ms 3548 KiB
random_03.txt AC 1 ms 3560 KiB
random_04.txt AC 1 ms 3560 KiB
random_05.txt AC 1 ms 3548 KiB
random_06.txt AC 1 ms 3640 KiB
random_07.txt AC 1 ms 3560 KiB
random_08.txt AC 1 ms 3496 KiB
sample_01.txt AC 1 ms 3596 KiB
sample_02.txt AC 1 ms 3448 KiB