結果
問題 | No.570 3人兄弟(その1) |
ユーザー |
![]() |
提出日時 | 2022-08-01 21:52:09 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 359 bytes |
コンパイル時間 | 1,822 ms |
コンパイル使用メモリ | 167,724 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-22 12:47:13 |
合計ジャッジ時間 | 1,772 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {pair<int, string> hx[3];hx[0].second = "A";hx[1].second = "B";hx[2].second = "C";cin >> hx[0].first;cin >> hx[1].first;cin >> hx[2].first;sort(hx, hx+3);reverse(hx, hx+3);cout << hx[0].second << endl;cout << hx[1].second << endl;cout << hx[2].second << endl;return 0;}