結果

問題 No.1139 Slime Race
ユーザー gemmarogemmaro
提出日時 2020-07-31 21:44:20
言語 Ruby
(3.3.0)
結果
AC  
実行時間 157 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 11,292 KB
実行使用メモリ 28,604 KB
最終ジャッジ日時 2023-09-15 02:52:42
合計ジャッジ時間 4,727 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,296 KB
testcase_01 AC 80 ms
15,168 KB
testcase_02 AC 81 ms
15,268 KB
testcase_03 AC 81 ms
15,216 KB
testcase_04 AC 81 ms
15,220 KB
testcase_05 AC 81 ms
15,156 KB
testcase_06 AC 82 ms
15,316 KB
testcase_07 AC 79 ms
15,224 KB
testcase_08 AC 80 ms
15,276 KB
testcase_09 AC 82 ms
15,044 KB
testcase_10 AC 151 ms
28,128 KB
testcase_11 AC 151 ms
27,544 KB
testcase_12 AC 154 ms
28,592 KB
testcase_13 AC 80 ms
15,132 KB
testcase_14 AC 151 ms
28,092 KB
testcase_15 AC 139 ms
21,752 KB
testcase_16 AC 156 ms
28,308 KB
testcase_17 AC 152 ms
27,984 KB
testcase_18 AC 133 ms
21,116 KB
testcase_19 AC 118 ms
22,016 KB
testcase_20 AC 115 ms
21,436 KB
testcase_21 AC 131 ms
20,904 KB
testcase_22 AC 150 ms
27,460 KB
testcase_23 AC 157 ms
28,604 KB
testcase_24 AC 80 ms
15,332 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# frozen_string_literal: true

def solve
  Rational(D, V.sum).ceil
end

N, D = gets.split.map(&:to_i)
X = gets.split.map(&:to_i)
V = gets.split.map(&:to_i)

puts solve
0