結果

問題 No.1027 U+1F4A0
ユーザー yomo3
提出日時 2020-05-08 13:56:00
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 423 bytes
コンパイル時間 2,040 ms
コンパイル使用メモリ 74,012 KB
実行使用メモリ 54,376 KB
最終ジャッジ日時 2024-07-03 09:50:13
合計ジャッジ時間 6,172 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 19 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int D1 = sc.nextInt();
        int D2 = sc.nextInt();
        int ans;
        if (D2 < 0 || 2 * D1 < D2) {
            ans = 0;
        } else if (D1 == D2 || 2 * D1 == D2) {
            ans = 4;
        } else {
            ans = 8;
        }
        System.out.println(ans);
    }
}
0