結果
| 問題 |
No.570 3人兄弟(その1)
|
| コンテスト | |
| ユーザー |
pin
|
| 提出日時 | 2017-10-06 23:16:40 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 527 bytes |
| コンパイル時間 | 613 ms |
| コンパイル使用メモリ | 69,936 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-17 01:57:12 |
| 合計ジャッジ時間 | 1,079 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 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' << endl;
}
else if (a[i] == B){
cout << 'B' << endl;
}
else{
cout << 'C' << endl;
}
}
}
pin