結果

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

ソースコード

diff #

n,m = map(int,input().split())
x = 0
y = 0
flg = True
for i in range(m):
    t,p = map(int,input().split())
    a = t-x
    b = abs(p-y)
    if b > a:
        flg = False
    x = t
    y = p
if flg:
    print('Yes')
else:
    print('No')
0