結果

問題 No.1205 Eye Drops
ユーザー simansiman
提出日時 2020-09-01 01:13:45
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 11,372 KB
実行使用メモリ 22,396 KB
最終ジャッジ日時 2023-08-15 13:35:39
合計ジャッジ時間 6,334 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,228 KB
testcase_01 AC 79 ms
15,276 KB
testcase_02 AC 81 ms
15,272 KB
testcase_03 AC 81 ms
15,320 KB
testcase_04 AC 81 ms
15,344 KB
testcase_05 AC 79 ms
15,268 KB
testcase_06 AC 80 ms
15,160 KB
testcase_07 AC 79 ms
15,300 KB
testcase_08 AC 79 ms
15,248 KB
testcase_09 AC 81 ms
15,080 KB
testcase_10 AC 80 ms
15,032 KB
testcase_11 WA -
testcase_12 AC 83 ms
15,236 KB
testcase_13 WA -
testcase_14 AC 82 ms
15,140 KB
testcase_15 AC 82 ms
15,304 KB
testcase_16 AC 81 ms
15,132 KB
testcase_17 AC 81 ms
15,224 KB
testcase_18 AC 79 ms
15,092 KB
testcase_19 AC 81 ms
15,036 KB
testcase_20 AC 80 ms
15,304 KB
testcase_21 AC 81 ms
15,332 KB
testcase_22 AC 80 ms
15,164 KB
testcase_23 WA -
testcase_24 AC 79 ms
15,088 KB
testcase_25 AC 80 ms
15,268 KB
testcase_26 AC 79 ms
15,312 KB
testcase_27 AC 79 ms
15,088 KB
testcase_28 AC 79 ms
15,308 KB
testcase_29 AC 79 ms
15,144 KB
testcase_30 AC 81 ms
15,148 KB
testcase_31 AC 81 ms
15,056 KB
testcase_32 AC 242 ms
22,356 KB
testcase_33 AC 240 ms
22,112 KB
testcase_34 AC 239 ms
22,120 KB
testcase_35 AC 243 ms
22,396 KB
testcase_36 AC 238 ms
22,208 KB
testcase_37 AC 258 ms
21,564 KB
testcase_38 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N, M = gets.split.map(&:to_i)
Q = M.times.map { gets.split.map(&:to_i) }

time = 0
cur = 0

Q.each do |t, q|
  limit = (cur - q).abs

  if t - time < limit
    puts 'No'
    exit
  end

  time = t
end

puts 'Yes'
0