Submission #72349536
Source Code Expand
#include<iostream>
#include<algorithm>
#include<vector>
#include<map>
#define endl '\n'
#define all(x) x.begin(),x.end()
using namespace std;
using ll = long long;
void solve() {
int n;
cin >> n;
vector<pair<int, int>>hr(n);
for (int i = 0; i < n; i++) {
cin >> hr[i].first;
hr[i].second = i + 1;
}
sort(all(hr));
for (int i = 0; i < 3; i++)cout << hr[i].second << " ";
}
int main() {
cin.tie(nullptr)->ios::sync_with_stdio(false);
int t = 1;
//cin >> t;
while (t--) {
solve();
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Trifecta |
| User | fqycal |
| Language | C++23 (GCC 15.2.0) |
| Score | 200 |
| Code Size | 594 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3620 KiB |
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 | 1 ms | 3588 KiB |
| random_02.txt | AC | 1 ms | 3592 KiB |
| random_03.txt | AC | 1 ms | 3464 KiB |
| random_04.txt | AC | 1 ms | 3608 KiB |
| random_05.txt | AC | 1 ms | 3524 KiB |
| random_06.txt | AC | 1 ms | 3464 KiB |
| random_07.txt | AC | 1 ms | 3528 KiB |
| random_08.txt | AC | 1 ms | 3620 KiB |
| sample_01.txt | AC | 1 ms | 3592 KiB |
| sample_02.txt | AC | 1 ms | 3424 KiB |