結果

問題 No.1205 Eye Drops
ユーザー otsuneko
提出日時 2021-05-14 13:53:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 82,496 KB
実行使用メモリ 76,032 KB
最終ジャッジ日時 2024-10-01 19:06:02
合計ジャッジ時間 3,425 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())

time = 0
pos = 0
for _ in range(M):
    T,P = map(int,input().split())
    if abs(P-pos) > (T-time):
        print("No")
        break
    pos = P
    time = T
else:
    print("Yes")
0