結果
問題 |
No.570 3人兄弟(その1)
|
ユーザー |
![]() |
提出日時 | 2017-10-27 20:56:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 491 bytes |
コンパイル時間 | 2,627 ms |
コンパイル使用メモリ | 76,348 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-21 21:26:16 |
合計ジャッジ時間 | 2,529 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <queue> #include <functional> #include <map> #include <string> using namespace std; typedef long long ll; int main(void){ vector<pair<int,char>> v(3); string s = "ABC"; for (int i = 0; i < 3; i++){ int x; cin >> x; v.push_back({ x, s[i] }); } sort(v.begin(), v.end(), greater<pair<int,char>>()); for (int i = 0; i < 3; i++){ cout << v[i].second << endl; } }