結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
53,844 KB
testcase_01 AC 56 ms
53,852 KB
testcase_02 AC 57 ms
53,836 KB
testcase_03 AC 57 ms
53,836 KB
testcase_04 AC 57 ms
53,832 KB
testcase_05 AC 55 ms
53,836 KB
testcase_06 AC 56 ms
52,716 KB
testcase_07 AC 57 ms
53,840 KB
testcase_08 AC 57 ms
53,848 KB
testcase_09 AC 58 ms
53,840 KB
testcase_10 AC 58 ms
53,848 KB
testcase_11 AC 57 ms
53,844 KB
testcase_12 AC 58 ms
53,844 KB
testcase_13 AC 58 ms
53,844 KB
testcase_14 AC 56 ms
53,840 KB
testcase_15 AC 57 ms
52,700 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 58 ms
53,840 KB
testcase_23 AC 57 ms
53,848 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(" ");
        final double eps = 1e-6;
        double d1 = Double.parseDouble(line[0]);
        double d2 = Double.parseDouble(line[1]);
        int ans = 0;
        if(d1+d1==d2 || d1==d2){
            ans = 4;
        }else if(d2/4+eps < d1 && d1+eps < d2){
            ans = 8;
        }
        System.out.println(ans);
    }
}
0