結果
| 問題 |
No.571 3人兄弟(その2)
|
| コンテスト | |
| ユーザー |
knk
|
| 提出日時 | 2017-10-07 00:51:39 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 361 bytes |
| コンパイル時間 | 1,563 ms |
| コンパイル使用メモリ | 176,916 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 03:11:12 |
| 合計ジャッジ時間 | 2,114 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef tuple< int, int, char > height;
int main(void)
{
vector< height > h(3);
for (int i = 0; i < 3; ++i) {
int he, w;
cin >> he >> w;
h[i] = make_tuple(he, -w, 'A'+i);
}
sort(h.begin(), h.end());
cout << get<2>(h[2]) << endl << get<2>(h[1]) << endl << get<2>(h[0]) << endl;
return 0;
}
knk