結果

問題 No.1139 Slime Race
ユーザー yuruhiyayuruhiya
提出日時 2020-08-01 11:58:28
言語 Ruby
(3.3.0)
結果
AC  
実行時間 159 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 11,292 KB
実行使用メモリ 28,524 KB
最終ジャッジ日時 2023-09-15 03:02:04
合計ジャッジ時間 4,542 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,140 KB
testcase_01 AC 82 ms
15,124 KB
testcase_02 AC 80 ms
15,196 KB
testcase_03 AC 81 ms
15,116 KB
testcase_04 AC 82 ms
15,092 KB
testcase_05 AC 81 ms
15,016 KB
testcase_06 AC 85 ms
15,156 KB
testcase_07 AC 81 ms
15,020 KB
testcase_08 AC 82 ms
15,164 KB
testcase_09 AC 82 ms
15,016 KB
testcase_10 AC 157 ms
27,912 KB
testcase_11 AC 151 ms
27,592 KB
testcase_12 AC 157 ms
28,376 KB
testcase_13 AC 81 ms
15,120 KB
testcase_14 AC 154 ms
28,004 KB
testcase_15 AC 139 ms
21,716 KB
testcase_16 AC 156 ms
28,320 KB
testcase_17 AC 153 ms
27,900 KB
testcase_18 AC 135 ms
21,052 KB
testcase_19 AC 120 ms
21,824 KB
testcase_20 AC 122 ms
21,200 KB
testcase_21 AC 136 ms
21,004 KB
testcase_22 AC 153 ms
27,536 KB
testcase_23 AC 159 ms
28,524 KB
testcase_24 AC 82 ms
15,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Main.rb:2: warning: assigned but unused variable - x
Syntax OK

ソースコード

diff #

n, d = gets.split.map &:to_i
x = gets.split.map &:to_i
v = gets.split.map &:to_i
puts (d + v.sum - 1) / v.sum
0