結果

問題 No.1139 Slime Race
ユーザー ApassApass
提出日時 2020-07-31 22:36:27
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 763 bytes
コンパイル時間 4,140 ms
コンパイル使用メモリ 72,184 KB
実行使用メモリ 59,852 KB
最終ジャッジ日時 2023-09-21 01:06:39
合計ジャッジ時間 10,083 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 42 ms
49,304 KB
testcase_02 WA -
testcase_03 AC 44 ms
49,296 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 42 ms
49,308 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 43 ms
49,164 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 240 ms
56,472 KB
testcase_18 AC 220 ms
55,912 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

public class SlimeRace {
    private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    private static StringTokenizer st;

    private static int readInt() throws IOException {
        while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());
        return Integer.parseInt(st.nextToken());
    }

    public static void main(String[] args) throws IOException {
        int N = readInt();
        int D = readInt();
        for (int i = 0; i < N; i++) {
            readInt();
        }
        long speedSum = 0;
        for (int i = 0; i < N; i++) {
            speedSum += readInt();
        }
        System.out.println((D + N - 1) / speedSum);
    }
}
0