結果
| 問題 | No.1139 Slime Race |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-02-15 02:45:15 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 78 ms / 2,000 ms |
| コード長 | 111 bytes |
| 記録 | |
| コンパイル時間 | 328 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 21,528 KB |
| 最終ジャッジ日時 | 2026-04-01 04:52:23 |
| 合計ジャッジ時間 | 3,930 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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