結果

問題 No.570 3人兄弟(その1)
ユーザー dgd1724
提出日時 2018-07-21 16:46:02
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 580 bytes
コンパイル時間 499 ms
コンパイル使用メモリ 56,828 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-26 04:55:19
合計ジャッジ時間 879 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <fstream>
#include <iostream>

int main() {

	//std::ifstream inf("Text.txt");	std::cin.rdbuf(inf.rdbuf());

	int A, B, C;
	std::cin >> A >> B >> C;

	if (A > B) {
		if (A > C) {
			if (B > C) {
				std::cout << "A\nB\nC" << std::endl;
			}
			else {
				std::cout << "A\nC\nB" << std::endl;
			}
		}
		else {
			std::cout << "C\nA\nB" << std::endl;
		}
	}
	else {
		if (B > C) {
			if (A > C) {
				std::cout << "B\nA\nC" << std::endl;
			}
			else {
				std::cout << "B\nC\nA" << std::endl;
			}
		}
		else {
			std::cout << "C\nB\nA" << std::endl;
		}
	}

	return 0;
}
0