結果

問題 No.570 3人兄弟(その1)
ユーザー mogurockermogurocker
提出日時 2017-10-07 01:44:04
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 483 bytes
コンパイル時間 1,440 ms
コンパイル使用メモリ 164,212 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-28 11:55:59
合計ジャッジ時間 1,941 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define FOR(i, n) for(int i = 0; i < (n); i++)
#define MEM(a, x) memset(a, x, sizeof(a))
#define ALL(a) a.begin(), a.end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end())
typedef long long ll;

int main(int argc, char const *argv[]) {
	ios_base::sync_with_stdio(false);
	vector<pair<int, int> > v(3);
	FOR(i, 3) {
		int x;
		cin >> x;
		v[i] = {x, i};
	}
	sort(ALL(v));
	FOR(i, 3) cout << (char)('A'+v[i].second) << endl;
	return 0;
}
0