結果
| 問題 | No.571 3人兄弟(その2) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-10-06 22:25:17 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 515 bytes | 
| コンパイル時間 | 1,691 ms | 
| コンパイル使用メモリ | 176,728 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-11-17 01:39:33 | 
| 合計ジャッジ時間 | 2,565 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    vector<P> v;
    vector<int> w = {0,1,2};
    for (int i = 0; i < 3; i++) {
        int h, w;
        cin >> h >> w;
        v.emplace_back(-h, w);
    }
    sort(w.begin(), w.end(), [&](const int& i1, const int& i2){return v[i1] < v[i2];});
    string s = "ABC";
    for (int i = 0; i < 3; i++) {
        cout << s[w[i]] << endl;
    }
    return 0;
}
            
            
            
        