結果
問題 |
No.571 3人兄弟(その2)
|
ユーザー |
|
提出日時 | 2017-10-23 19:13:43 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 626 bytes |
コンパイル時間 | 658 ms |
コンパイル使用メモリ | 77,768 KB |
最終ジャッジ日時 | 2025-01-05 03:25:56 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
#include<iostream> #include<queue> using namespace std; int main() { priority_queue<pair<pair<int, int>, char>>pq; pair<pair<int, int>, char>p; cin >> p.first.first >> p.first.second; p.first.second = 200 - p.first.second; p.second = 'A'; pq.push(p); cin >> p.first.first >> p.first.second; p.first.second = 200 - p.first.second; p.second = 'B'; pq.push(p); cin >> p.first.first >> p.first.second; p.first.second = 200 - p.first.second; p.second = 'C'; pq.push(p); cout << pq.top().second << endl; pq.pop(); cout << pq.top().second << endl; pq.pop(); cout << pq.top().second << endl; pq.pop(); return 0; }