Submission #72350088
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
int main () {
int n;
cin>>n;
int t[n];
for(int i=0;i<n;i++)cin>>t[i];
int mn=100000,mnn=0;
for(int j=0;j<3;j++){
for(int i=0;i<n;i++)if(mn>t[i]){mn=t[i];mnn=i;}
cout<<mnn+1<<" ";
t[mnn]=99999999;
mn=9999999;
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Trifecta |
| User | yamasann |
| Language | C++23 (GCC 15.2.0) |
| Score | 200 |
| Code Size | 333 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3652 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 | 3532 KiB |
| random_02.txt | AC | 1 ms | 3540 KiB |
| random_03.txt | AC | 1 ms | 3512 KiB |
| random_04.txt | AC | 1 ms | 3404 KiB |
| random_05.txt | AC | 1 ms | 3548 KiB |
| random_06.txt | AC | 1 ms | 3636 KiB |
| random_07.txt | AC | 1 ms | 3636 KiB |
| random_08.txt | AC | 1 ms | 3652 KiB |
| sample_01.txt | AC | 1 ms | 3652 KiB |
| sample_02.txt | AC | 1 ms | 3496 KiB |