結果

問題 No.1027 U+1F4A0
ユーザー face4face4
提出日時 2020-08-06 10:14:41
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 536 bytes
コンパイル時間 2,066 ms
コンパイル使用メモリ 74,388 KB
実行使用メモリ 53,856 KB
最終ジャッジ日時 2023-10-19 12:49:14
合計ジャッジ時間 4,456 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
51,780 KB
testcase_01 AC 55 ms
53,832 KB
testcase_02 AC 55 ms
53,824 KB
testcase_03 AC 55 ms
53,840 KB
testcase_04 AC 55 ms
53,856 KB
testcase_05 AC 56 ms
53,832 KB
testcase_06 AC 56 ms
53,824 KB
testcase_07 AC 55 ms
53,828 KB
testcase_08 AC 56 ms
53,820 KB
testcase_09 AC 57 ms
53,824 KB
testcase_10 AC 56 ms
53,828 KB
testcase_11 AC 56 ms
53,828 KB
testcase_12 AC 55 ms
53,824 KB
testcase_13 AC 55 ms
53,828 KB
testcase_14 AC 56 ms
53,828 KB
testcase_15 AC 56 ms
53,836 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 55 ms
52,740 KB
testcase_23 AC 56 ms
52,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        double d1 = Double.parseDouble(line[0]);
        double d2 = Double.parseDouble(line[1]);
        int ans = 0;
        if(d1+d1==d2 || Math.abs(d1-d2) < 1e-6){
            ans = 4;
        }else if(d2/4 < d1 && d1 < d2){
            ans = 8;
        }
        System.out.println(ans);
    }
}
0