結果
問題 |
No.570 3人兄弟(その1)
|
ユーザー |
![]() |
提出日時 | 2017-10-06 23:12:36 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 528 bytes |
コンパイル時間 | 686 ms |
コンパイル使用メモリ | 69,648 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 01:55:07 |
合計ジャッジ時間 | 1,098 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 5 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <queue> #include <functional> #include <map> #include <string> using namespace std; typedef long long ll; int main(void){ int A, B, C; cin >> A >> B >> C; int a[3] = { A, B, C }; sort(a, a + 3); for (int i = 2; i >= 0; i--){ if (a[i] == A){ cout << 'A' << ' '; } else if (a[i] == B){ cout << 'B' << ' '; } else{ cout << 'C' << ' '; } } }