結果
問題 |
No.570 3人兄弟(その1)
|
ユーザー |
![]() |
提出日時 | 2019-09-18 18:56:34 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 1,185 ms |
コンパイル使用メモリ | 165,100 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-08 13:29:00 |
合計ジャッジ時間 | 1,583 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include "bits/stdc++.h" using namespace std; int main(){ vector<pair<int,char>>a(3); for(int i=0;i<3;i++){ int aa; cin >> aa; char z ='A'; a.at(i)=make_pair(aa,z+i); } sort(a.begin(),a.end()); reverse(a.begin(),a.end()); for(int i=0;i<3;i++){ cout <<a.at(i).second<<endl; } }