結果
問題 | No.570 3人兄弟(その1) |
ユーザー |
![]() |
提出日時 | 2019-07-18 08:32:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 351 bytes |
コンパイル時間 | 2,222 ms |
コンパイル使用メモリ | 174,004 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 14:15:22 |
合計ジャッジ時間 | 3,128 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {vector<pair<int, int>> vt;for (int i = 0; i < 3; ++i) {int h;cin >> h;vt.emplace_back(h, i);}sort(vt.begin(), vt.end(), greater<>());for (int i = 0; i < 3; ++i) {cout << (char) ('A' + vt[i].second) << endl;}return 0;}