結果

問題 No.571 3人兄弟(その2)
コンテスト
ユーザー Konton7
提出日時 2020-01-17 15:26:18
言語 C++17
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
+ 751µs
コード長 511 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,302 ms
コンパイル使用メモリ 221,788 KB
実行使用メモリ 9,820 KB
最終ジャッジ日時 2026-10-25 05:17:15
合計ジャッジ時間 2,927 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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;
}
0