結果

問題 No.57 ミリオンダイス
ユーザー dazydazy
提出日時 2016-09-08 23:59:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 418 bytes
コンパイル時間 3,198 ms
コンパイル使用メモリ 77,404 KB
実行使用メモリ 54,368 KB
最終ジャッジ日時 2024-04-27 18:10:00
合計ジャッジ時間 5,399 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
53,088 KB
testcase_01 AC 131 ms
54,024 KB
testcase_02 AC 130 ms
54,004 KB
testcase_03 AC 129 ms
54,180 KB
testcase_04 AC 130 ms
54,368 KB
testcase_05 AC 130 ms
54,348 KB
testcase_06 AC 118 ms
52,976 KB
testcase_07 AC 132 ms
53,820 KB
testcase_08 AC 127 ms
54,236 KB
testcase_09 AC 131 ms
54,032 KB
testcase_10 AC 117 ms
52,976 KB
testcase_11 AC 129 ms
54,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        if (!match(N)) System.exit(1);
        System.out.println(N * 3.5);
    }

    public static boolean match (double... args) {
        for (double i : args) {
            if (i < 1||i > 1000000) return false;
        }
        return true;
    }
}
0