結果

問題 No.1027 U+1F4A0
ユーザー ks2mks2m
提出日時 2020-04-17 21:24:14
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 410 bytes
コンパイル時間 2,776 ms
コンパイル使用メモリ 74,200 KB
実行使用メモリ 58,496 KB
最終ジャッジ日時 2024-04-14 12:57:09
合計ジャッジ時間 6,389 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
53,980 KB
testcase_01 AC 132 ms
54,108 KB
testcase_02 AC 132 ms
54,060 KB
testcase_03 AC 132 ms
54,372 KB
testcase_04 AC 135 ms
54,288 KB
testcase_05 AC 132 ms
53,944 KB
testcase_06 AC 134 ms
54,108 KB
testcase_07 AC 134 ms
54,292 KB
testcase_08 AC 134 ms
54,184 KB
testcase_09 AC 132 ms
54,388 KB
testcase_10 AC 134 ms
54,220 KB
testcase_11 AC 133 ms
54,160 KB
testcase_12 AC 134 ms
54,004 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 132 ms
53,964 KB
testcase_17 AC 136 ms
54,092 KB
testcase_18 AC 135 ms
54,228 KB
testcase_19 AC 132 ms
53,972 KB
testcase_20 AC 134 ms
53,956 KB
testcase_21 AC 133 ms
54,724 KB
testcase_22 AC 138 ms
54,300 KB
testcase_23 AC 132 ms
54,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

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