結果
| 問題 |
No.570 3人兄弟(その1)
|
| コンテスト | |
| ユーザー |
tenkyu9
|
| 提出日時 | 2018-03-06 07:34:42 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 545 bytes |
| コンパイル時間 | 669 ms |
| コンパイル使用メモリ | 79,584 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-14 18:20:43 |
| 合計ジャッジ時間 | 1,221 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<cstring>
#include<map>
#include<vector>
#include<queue>
#include<utility>
using namespace std;
typedef long long int ll;
int main(){
int a, b, c;
cin >> a >> b >> c;
if (a > b && b > c) cout << "A\nB\nC\n";
if (a > c && c > b) cout << "A\nC\nB\n";
if (b > a && a > c) cout << "B\nA\nC\n";
if (b > c && c > a) cout << "B\nC\nA\n";
if (c > a && a > b) cout << "C\nA\nB\n";
if (c > b && b > a) cout << "C\nB\nA\n";
return 0;
}
tenkyu9