結果
| 問題 |
No.570 3人兄弟(その1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-01-08 16:04:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 352 bytes |
| コンパイル時間 | 901 ms |
| コンパイル使用メモリ | 77,040 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-23 02:48:34 |
| 合計ジャッジ時間 | 1,317 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef pair<int,int> P;
int main(){
vector<P> a;
for(int i = 0; 3 > i; i++){
int t;cin>>t;
a.push_back({t,i});
}
sort(a.begin(),a.end(),greater<P>());
for(int i = 0; 3 > i; i++){
cout << (char)(a[i].second+'A') << endl;
}
}