結果
| 問題 | No.571 3人兄弟(その2) | 
| コンテスト | |
| ユーザー |  teketeke5000 | 
| 提出日時 | 2017-10-10 16:58:36 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 439 bytes | 
| コンパイル時間 | 1,530 ms | 
| コンパイル使用メモリ | 168,708 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-11-17 08:27:36 | 
| 合計ジャッジ時間 | 2,253 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void) {
    ll H,W;
    char ch = 'A';
    vector< pair< pair<int, int>, char > > tall;
    for (int i=0; i<3; i++) {
        cin >> H >> W;
        tall.push_back(make_pair(make_pair(H, -W), ch++));
    }
    sort(tall.begin(), tall.end());
    reverse(tall.begin(), tall.end());
    for (auto x:tall) {
        cout << x.second << endl;
    }
    return 0;
}
            
            
            
        