結果

問題 No.571 3人兄弟(その2)
ユーザー furafura
提出日時 2020-04-11 04:00:16
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 2,333 ms
コンパイル使用メモリ 211,524 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-17 07:58:57
合計ジャッジ時間 3,438 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 WA -
testcase_02 AC 2 ms
4,348 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 2 ms
4,348 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 2 ms
4,348 KB
testcase_11 AC 2 ms
4,348 KB
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;

int main(){
	vector<tuple<int,int,char>> a(3);
	rep(i,3){
		cin>>get<0>(a[i])>>get<1>(a[i]);
		get<2>(a[i])='A'+i;
	}
	sort(a.rbegin(),a.rend());
	rep(i,3) cout<<get<2>(a[i])<<'\n';
	return 0;
}
0