結果

問題 No.1205 Eye Drops
ユーザー itm_tech
提出日時 2020-11-02 22:08:11
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 331 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-22 08:07:59
合計ジャッジ時間 2,559 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = [int(i) for i in input().split()]
tt = 0
pt = 0
for i in range(m):
    t, p = [int(i) for i in input().split()]
    if abs(pt - p) > t - tt:
        print("No")
        exit()
    tt = t
    pt = p
print("Yes")
0