結果
| 問題 |
No.1139 Slime Race
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-02-15 02:45:15 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 135 ms / 2,000 ms |
| コード長 | 111 bytes |
| コンパイル時間 | 45 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 19,456 KB |
| 最終ジャッジ日時 | 2024-07-17 13:52:38 |
| 合計ジャッジ時間 | 4,486 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
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
horiesiniti