結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
53,832 KB
testcase_01 AC 54 ms
53,840 KB
testcase_02 AC 53 ms
52,716 KB
testcase_03 AC 55 ms
53,824 KB
testcase_04 AC 53 ms
53,840 KB
testcase_05 AC 52 ms
53,840 KB
testcase_06 AC 53 ms
53,832 KB
testcase_07 AC 55 ms
53,772 KB
testcase_08 AC 55 ms
53,832 KB
testcase_09 AC 53 ms
53,832 KB
testcase_10 AC 53 ms
53,832 KB
testcase_11 AC 55 ms
53,836 KB
testcase_12 AC 55 ms
53,832 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 54 ms
51,788 KB
testcase_23 AC 56 ms
53,828 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(Math.abs(d1-d2/4) < 1e-6 || Math.abs(d1-d2) < 1e-6){
            ans = 4;
        }else if(d2/4 < d1 && d1 < d2){
            ans = 8;
        }
        System.out.println(ans);
    }
}
0