結果

問題 No.570 3人兄弟(その1)
ユーザー ebiyuu1121ebiyuu1121
提出日時 2017-11-10 01:00:53
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 568 bytes
コンパイル時間 761 ms
コンパイル使用メモリ 80,160 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-05-03 09:27:05
合計ジャッジ時間 1,314 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>

int main(){
    std::vector<std::pair<int,char> > heights(3);

    int input;
    std::cin >> input;
    heights[0]=std::make_pair(input,'A');
    std::cin >> input;
    heights[0]=std::make_pair(input,'B');
    std::cin >> input;
    heights[0]=std::make_pair(input,'C');
    
    sort(heights.begin(),heights.end());
    
    std::cout << heights[0].second << std::endl;
    std::cout << heights[1].second << std::endl;
    std::cout << heights[2].second << std::endl;

}
0