結果
問題 |
No.570 3人兄弟(その1)
|
ユーザー |
|
提出日時 | 2017-10-23 19:11:20 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 412 bytes |
コンパイル時間 | 750 ms |
コンパイル使用メモリ | 76,380 KB |
最終ジャッジ日時 | 2025-01-05 03:25:52 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include<iostream> #include<queue> using namespace std; int main() { priority_queue<pair<int, char>>pq; pair<int, char>p; cin >> p.first; p.second = 'A'; pq.push(p); cin >> p.first; p.second = 'B'; pq.push(p); cin >> p.first; 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; }