結果
問題 |
No.1139 Slime Race
|
ユーザー |
![]() |
提出日時 | 2020-07-31 22:36:27 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 763 bytes |
コンパイル時間 | 3,989 ms |
コンパイル使用メモリ | 75,120 KB |
実行使用メモリ | 59,700 KB |
最終ジャッジ日時 | 2024-07-06 19:50:54 |
合計ジャッジ時間 | 8,164 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 5 WA * 17 |
ソースコード
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); } }