結果

問題 No.1139 Slime Race
ユーザー tentententen
提出日時 2020-08-17 21:38:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 751 ms / 2,000 ms
コード長 332 bytes
コンパイル時間 2,040 ms
コンパイル使用メモリ 71,612 KB
実行使用メモリ 67,576 KB
最終ジャッジ日時 2023-09-15 03:06:02
合計ジャッジ時間 13,707 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,844 KB
testcase_01 AC 127 ms
55,692 KB
testcase_02 AC 127 ms
56,072 KB
testcase_03 AC 137 ms
55,996 KB
testcase_04 AC 126 ms
55,452 KB
testcase_05 AC 129 ms
55,784 KB
testcase_06 AC 220 ms
58,112 KB
testcase_07 AC 126 ms
55,844 KB
testcase_08 AC 125 ms
55,896 KB
testcase_09 AC 126 ms
56,088 KB
testcase_10 AC 684 ms
64,292 KB
testcase_11 AC 685 ms
66,348 KB
testcase_12 AC 751 ms
64,912 KB
testcase_13 AC 126 ms
55,872 KB
testcase_14 AC 647 ms
66,112 KB
testcase_15 AC 693 ms
64,104 KB
testcase_16 AC 680 ms
65,168 KB
testcase_17 AC 723 ms
67,576 KB
testcase_18 AC 616 ms
64,320 KB
testcase_19 AC 593 ms
66,128 KB
testcase_20 AC 548 ms
63,512 KB
testcase_21 AC 657 ms
65,752 KB
testcase_22 AC 658 ms
66,376 KB
testcase_23 AC 733 ms
65,564 KB
testcase_24 AC 129 ms
55,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int d = sc.nextInt();
		sc.nextLine();
		sc.nextLine();
		long sum = 0;
		for (int i = 0; i < n; i++) {
		    sum += sc.nextInt();
		}
		System.out.println((d + sum - 1) / sum);
	}
}
0