結果

問題 No.571 3人兄弟(その2)
ユーザー Konton7
提出日時 2020-01-17 15:24:46
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 486 bytes
コンパイル時間 2,070 ms
コンパイル使用メモリ 202,040 KB
最終ジャッジ日時 2025-01-08 18:12:05
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#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);
    cout << get<2>(person[0]) << endl;

    return 0;
}
0