結果

問題 No.57 ミリオンダイス
ユーザー dazydazy
提出日時 2016-09-08 23:59:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 418 bytes
コンパイル時間 3,595 ms
コンパイル使用メモリ 75,388 KB
実行使用メモリ 57,544 KB
最終ジャッジ日時 2023-08-10 00:04:55
合計ジャッジ時間 5,579 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,708 KB
testcase_01 AC 124 ms
55,612 KB
testcase_02 AC 123 ms
55,696 KB
testcase_03 AC 124 ms
57,544 KB
testcase_04 AC 123 ms
53,808 KB
testcase_05 AC 122 ms
55,836 KB
testcase_06 AC 121 ms
55,600 KB
testcase_07 AC 124 ms
55,508 KB
testcase_08 AC 126 ms
55,308 KB
testcase_09 AC 127 ms
55,840 KB
testcase_10 AC 126 ms
55,496 KB
testcase_11 AC 126 ms
55,532 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