結果

問題 No.570 3人兄弟(その1)
ユーザー creep04creep04
提出日時 2017-10-10 02:47:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 809 bytes
コンパイル時間 5,258 ms
コンパイル使用メモリ 74,196 KB
実行使用メモリ 56,364 KB
最終ジャッジ日時 2023-08-10 21:28:05
合計ジャッジ時間 5,935 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,936 KB
testcase_01 AC 112 ms
56,248 KB
testcase_02 AC 116 ms
56,156 KB
testcase_03 AC 116 ms
55,760 KB
testcase_04 AC 118 ms
56,364 KB
testcase_05 AC 112 ms
55,944 KB
testcase_06 AC 118 ms
56,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Test {
	private static Scanner sc;
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		if (A>B && A>C) {
			System.out.println("A");
			if (B>C) {
				System.out.println("B");
				System.out.println("C");
			} else {
				System.out.println("C");
				System.out.println("B");
			}
		} else if (B>A && B>C) {
			System.out.println("B");
			if (A>C) {
				System.out.println("A");
				System.out.println("C");
			} else {
				System.out.println("C");
				System.out.println("A");
			}
		} else {
			System.out.println("C");
			if (A>B) {
				System.out.println("A");
				System.out.println("B");
			} else {
				System.out.println("B");
				System.out.println("A");
			}
		}
	}
}
0