結果

問題 No.1205 Eye Drops
ユーザー matrie
提出日時 2020-11-29 21:38:08
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 370 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-13 02:10:00
合計ジャッジ時間 5,482 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int, input().split())
t,p,s = 0,0,"Yes"
for i in range(m):
	t1,p1 = map(int,input().split())
	if abs(p1-p)>(t1-t): s = "No"
	t,p = t1,p1
print(s)
0