結果

問題 No.1139 Slime Race
ユーザー Udit GuptaUdit Gupta
提出日時 2020-07-31 21:52:30
言語 Java19
(openjdk 21)
結果
AC  
実行時間 800 ms / 2,000 ms
コード長 491 bytes
コンパイル時間 2,108 ms
コンパイル使用メモリ 71,332 KB
実行使用メモリ 64,900 KB
最終ジャッジ日時 2023-09-15 02:54:00
合計ジャッジ時間 14,319 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,480 KB
testcase_01 AC 127 ms
55,952 KB
testcase_02 AC 128 ms
55,960 KB
testcase_03 AC 144 ms
56,244 KB
testcase_04 AC 127 ms
55,948 KB
testcase_05 AC 136 ms
55,712 KB
testcase_06 AC 219 ms
59,164 KB
testcase_07 AC 125 ms
55,928 KB
testcase_08 AC 127 ms
55,520 KB
testcase_09 AC 126 ms
55,664 KB
testcase_10 AC 752 ms
64,900 KB
testcase_11 AC 709 ms
61,156 KB
testcase_12 AC 800 ms
62,884 KB
testcase_13 AC 125 ms
55,852 KB
testcase_14 AC 715 ms
64,712 KB
testcase_15 AC 694 ms
64,876 KB
testcase_16 AC 742 ms
64,500 KB
testcase_17 AC 714 ms
64,484 KB
testcase_18 AC 642 ms
62,896 KB
testcase_19 AC 561 ms
60,764 KB
testcase_20 AC 561 ms
60,256 KB
testcase_21 AC 633 ms
64,096 KB
testcase_22 AC 700 ms
64,804 KB
testcase_23 AC 760 ms
63,364 KB
testcase_24 AC 129 ms
55,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

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