結果
| 問題 | No.1205 Eye Drops |
| コンテスト | |
| ユーザー |
object1234
|
| 提出日時 | 2020-09-01 18:27:29 |
| 言語 | Ruby (4.0.6 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 9 ms |
| コンパイル使用メモリ | 8,576 KB |
| 実行使用メモリ | 14,848 KB |
| 最終ジャッジ日時 | 2026-09-28 19:34:51 |
| 合計ジャッジ時間 | 4,260 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 14 WA * 23 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - len Syntax OK
ソースコード
len,input = gets.chomp.split(" ").map(&:to_i)
current = 0
res = "Yes"
input.times do |i|
t,p = gets.chomp.split(" ").map(&:to_i)
sa = t - current
min = current - sa
max = current + sa
if (min..max).include?(p)
current = p
else
res = "No"
break
end
end
puts res
object1234