結果
問題 |
No.571 3人兄弟(その2)
|
ユーザー |
![]() |
提出日時 | 2020-02-12 03:55:33 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 355 bytes |
コンパイル時間 | 1,110 ms |
コンパイル使用メモリ | 82,052 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-01 21:33:39 |
合計ジャッジ時間 | 1,481 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> #include <tuple> using namespace std; int main(void) { int h, w; char c = 'A' - 1; vector<tuple<int, int, char>> t; for (int i = 0; i < 3; ++i) { cin >> h >> w; ++c; t.emplace_back(-h, w, c); } sort(t.begin(), t.end()); for (auto x : t) { cout << get<2>(x) << endl; } return 0; }