結果

問題 No.570 3人兄弟(その1)
ユーザー pinpin
提出日時 2017-10-06 23:12:36
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 528 bytes
コンパイル時間 542 ms
コンパイル使用メモリ 69,816 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-28 10:49:27
合計ジャッジ時間 1,055 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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' << ' ';
        }
    }

    


}
0