提出 #72345909


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define LONGMAX 1e18
#define INTMAX 2147483647

template <typename T> void show(const vector<T>& a) {
    if (a.empty()) {
        cout << "empty" << endl;
        return;
    }
    for (size_t i = 0; i < a.size() - 1; ++i) {
        cout << a[i] << " ";
    }
    cout << a.back() << endl;
}

void aaaaa(void){
    cout << "aaaaa" << endl;
    return;
}

int main(void){
    int N; cin >> N;
    vector<int> T(N, 0);
    vector<int> A(210, 0);
    for(int i=0; i<N; i++){
        cin >> T[i];
        A[T[i]] = i;
    }
    sort(T.begin(), T.end());
    cout << A[T[0]] + 1 << " ";
    cout << A[T[1]] + 1 << " ";
    cout << A[T[2]] + 1 << endl;
    return 0;
}

// while (std::cin >> a >> b) {
// }

// int array[]={1,2,3,4};
// do{
//     for(int i=0; i<4; i++){
//         cout<<array[i];
//  	if(i!=3)cout<<" ";
//    }
//    cout<<endl;
//}while(next_permutation(array,array+4));

// struct Edge {
//     int to;
//     ll w;
//     Edge(int to, ll w) : to(to), w(w) {}
// };

// using Graph = vector<vector<Edge>>;

// cout << fixed << setprecision(10);

提出情報

提出日時
問題 B - Trifecta
ユーザ lashvbq
言語 C++23 (GCC 15.2.0)
得点 200
コード長 1185 Byte
結果 AC
実行時間 1 ms
メモリ 3684 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 10
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
random_01.txt AC 1 ms 3596 KiB
random_02.txt AC 1 ms 3492 KiB
random_03.txt AC 1 ms 3660 KiB
random_04.txt AC 1 ms 3544 KiB
random_05.txt AC 1 ms 3608 KiB
random_06.txt AC 1 ms 3684 KiB
random_07.txt AC 1 ms 3544 KiB
random_08.txt AC 1 ms 3608 KiB
sample_01.txt AC 1 ms 3540 KiB
sample_02.txt AC 1 ms 3544 KiB