結果
問題 |
No.570 3人兄弟(その1)
|
ユーザー |
|
提出日時 | 2020-04-08 01:08:46 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 435 bytes |
コンパイル時間 | 743 ms |
コンパイル使用メモリ | 80,504 KB |
最終ジャッジ日時 | 2025-01-09 15:00:41 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> void solve() { std::vector<std::pair<int, char>> hs(3); for (int i = 0; i < 3; ++i) { std::cin >> hs[i].first; hs[i].second = 'A' + i; } std::sort(hs.rbegin(), hs.rend()); for (auto p : hs) std::cout << p.second << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }