結果

問題 No.1027 U+1F4A0
ユーザー ks2mks2m
提出日時 2020-04-17 21:22:03
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 2,197 ms
コンパイル使用メモリ 74,268 KB
実行使用メモリ 55,992 KB
最終ジャッジ日時 2024-04-14 12:53:50
合計ジャッジ時間 6,386 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
53,956 KB
testcase_01 WA -
testcase_02 AC 133 ms
54,136 KB
testcase_03 AC 132 ms
53,876 KB
testcase_04 AC 135 ms
53,936 KB
testcase_05 AC 133 ms
53,744 KB
testcase_06 AC 133 ms
54,152 KB
testcase_07 AC 132 ms
53,968 KB
testcase_08 AC 134 ms
53,836 KB
testcase_09 AC 135 ms
53,960 KB
testcase_10 AC 134 ms
54,008 KB
testcase_11 AC 134 ms
54,212 KB
testcase_12 AC 136 ms
54,288 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 135 ms
54,096 KB
testcase_23 AC 132 ms
54,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int d1 = sc.nextInt();
		int d2 = sc.nextInt();
		sc.close();

		if (d1 > d2) {
			System.out.println(0);
		} else if (d1 == d2) {
			System.out.println(4);
		} else {
			System.out.println(8);
		}
	}
}
0