結果
| 問題 | 
                            No.1139 Slime Race
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-07-31 21:49:36 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 480 bytes | 
| コンパイル時間 | 3,566 ms | 
| コンパイル使用メモリ | 74,136 KB | 
| 実行使用メモリ | 69,140 KB | 
| 最終ジャッジ日時 | 2024-07-06 17:38:30 | 
| 合計ジャッジ時間 | 15,783 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 19 WA * 3 | 
ソースコード
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();
    }
}