Submission #72356080
Source Code Expand
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define vec vector
#define pll pair<ll,ll>
const ll N = 2e5 + 10;
void solve() {
ll n;cin >> n;
vec<pll> a(n);
for(int i = 0 ; i < n ; i++){
cin >> a[i].first;
a[i].second = i + 1;
}
sort(a.begin(),a.end());
for(int i = 0 ; i < 3 ; i++) cout << a[i].second << " ";
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);cout.tie(nullptr);
int t = 1;
//cin >> t;
while (t--) {
solve();
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Trifecta |
| User | Xiao_Zhang |
| Language | C++23 (Clang 21.1.0) |
| Score | 200 |
| Code Size | 546 Byte |
| Status | AC |
| Exec Time | 3 ms |
| Memory | 3012 KiB |
Compile Error
./Main.cpp:6:10: warning: unused variable 'N' [-Wunused-const-variable]
6 | const ll N = 2e5 + 10;
| ^
1 warning generated.
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| 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 | 3 ms | 3012 KiB |
| random_02.txt | AC | 1 ms | 2984 KiB |
| random_03.txt | AC | 1 ms | 3004 KiB |
| random_04.txt | AC | 1 ms | 2960 KiB |
| random_05.txt | AC | 1 ms | 2960 KiB |
| random_06.txt | AC | 1 ms | 3012 KiB |
| random_07.txt | AC | 1 ms | 2984 KiB |
| random_08.txt | AC | 1 ms | 2984 KiB |
| sample_01.txt | AC | 1 ms | 2968 KiB |
| sample_02.txt | AC | 1 ms | 3012 KiB |