結果
問題 | No.571 3人兄弟(その2) |
ユーザー |
|
提出日時 | 2019-07-31 18:16:11 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 15 ms / 2,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 1,975 ms |
コンパイル使用メモリ | 195,712 KB |
最終ジャッジ日時 | 2025-01-07 10:17:41 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { pair<int, char> a[3]; for (int i = 0; i < 3; i++) { int h, w; cin >> h >> w; a[i] = { -h*1000+w, 'A'+i }; } sort(a, a+3); for (auto p : a) cout << p.second << endl; return 0; }