結果

問題 No.1139 Slime Race
ユーザー Udit GuptaUdit Gupta
提出日時 2020-07-31 21:49:36
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 480 bytes
コンパイル時間 2,644 ms
コンパイル使用メモリ 71,212 KB
実行使用メモリ 67,104 KB
最終ジャッジ日時 2023-09-20 22:51:49
合計ジャッジ時間 13,250 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,864 KB
testcase_01 AC 121 ms
55,952 KB
testcase_02 AC 120 ms
55,508 KB
testcase_03 AC 136 ms
55,876 KB
testcase_04 AC 121 ms
55,896 KB
testcase_05 AC 128 ms
55,584 KB
testcase_06 AC 207 ms
58,612 KB
testcase_07 AC 120 ms
55,740 KB
testcase_08 AC 122 ms
55,760 KB
testcase_09 AC 120 ms
55,812 KB
testcase_10 AC 706 ms
64,016 KB
testcase_11 AC 650 ms
61,364 KB
testcase_12 AC 728 ms
63,260 KB
testcase_13 AC 122 ms
55,520 KB
testcase_14 AC 659 ms
64,392 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 663 ms
64,684 KB
testcase_18 AC 601 ms
62,052 KB
testcase_19 AC 523 ms
60,300 KB
testcase_20 AC 523 ms
60,620 KB
testcase_21 AC 591 ms
63,052 KB
testcase_22 AC 648 ms
64,516 KB
testcase_23 AC 709 ms
65,044 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        final Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();
        for (int i=0; i<n; i++) {
            int temp = sc.nextInt();
        }
        int summ = 0;
        for (int i=0; i<n; i++) {
            int temp = sc.nextInt();
            summ += temp;
        }

        System.out.println((d+summ-1)/summ);
        sc.close();
    }
}
0