結果

問題 No.1139 Slime Race
ユーザー 👑 horiesinitihoriesiniti
提出日時 2023-02-15 02:45:15
言語 Ruby
(3.3.0)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 415 ms
コンパイル使用メモリ 11,432 KB
実行使用メモリ 21,936 KB
最終ジャッジ日時 2023-09-24 13:00:33
合計ジャッジ時間 6,288 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,116 KB
testcase_01 AC 80 ms
15,256 KB
testcase_02 AC 79 ms
15,080 KB
testcase_03 AC 79 ms
15,104 KB
testcase_04 AC 79 ms
15,012 KB
testcase_05 AC 80 ms
15,008 KB
testcase_06 AC 81 ms
14,968 KB
testcase_07 AC 80 ms
15,256 KB
testcase_08 AC 80 ms
15,080 KB
testcase_09 AC 80 ms
15,180 KB
testcase_10 AC 124 ms
21,616 KB
testcase_11 AC 122 ms
21,464 KB
testcase_12 AC 127 ms
21,792 KB
testcase_13 AC 80 ms
15,284 KB
testcase_14 AC 121 ms
21,096 KB
testcase_15 AC 113 ms
20,008 KB
testcase_16 AC 124 ms
21,424 KB
testcase_17 AC 123 ms
21,124 KB
testcase_18 AC 109 ms
19,428 KB
testcase_19 AC 104 ms
17,944 KB
testcase_20 AC 102 ms
18,084 KB
testcase_21 AC 107 ms
19,332 KB
testcase_22 AC 122 ms
20,980 KB
testcase_23 AC 128 ms
21,936 KB
testcase_24 AC 81 ms
15,224 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n,t=gets.split(" ").map{|e| e.to_i}
gets
y=gets.split(" ").map{|e| e.to_i}.sum
ans=t/y
ans+=1 if t%y>0
puts ans
0