結果
| 問題 |
No.570 3人兄弟(その1)
|
| コンテスト | |
| ユーザー |
kkkk97368086
|
| 提出日時 | 2021-11-29 21:14:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 457 bytes |
| コンパイル時間 | 1,961 ms |
| コンパイル使用メモリ | 180,308 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-02 13:33:19 |
| 合計ジャッジ時間 | 2,409 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int ha,hb,hc;
cin >> ha;
cin >> hb;
cin >> hc;
vector<pair<int,string>> ans(3);
ans.push_back(make_pair(ha,"A"));
ans.push_back(make_pair(hb,"B"));
ans.push_back(make_pair(hc,"C"));
sort(ans.begin(),ans.end());
reverse(ans.begin(),ans.end());
cout << ans[0].second << endl;
cout << ans[1].second << endl;
cout << ans[2].second << endl;
}
kkkk97368086