結果
| 問題 | No.571 3人兄弟(その2) | 
| コンテスト | |
| ユーザー |  Konton7 | 
| 提出日時 | 2020-01-17 15:26:18 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 511 bytes | 
| コンパイル時間 | 2,600 ms | 
| コンパイル使用メモリ | 199,428 KB | 
| 最終ジャッジ日時 | 2025-01-08 18:12:25 | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
// #define DEBUG
int main()
{
#ifdef DEBUG
    cout << "DEBUG MODE" << endl;
    ifstream in("input.txt"); //for debug
    cin.rdbuf(in.rdbuf());    //for debug
#endif
    int h, w;
    tuple<int, int, char> person[3];
    for (int i = 0; i < 3; i++){
        cin >> h >> w;
        person[i] = make_tuple(-h, w, 'A' + i);
    }
    sort(person, person + 3);
    for (auto x : person)
        cout << get<2>(x) << endl;
    return 0;
}
            
            
            
        