結果

問題 No.1205 Eye Drops
ユーザー 👑 KazunKazun
提出日時 2020-08-30 15:22:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 76,452 KB
最終ジャッジ日時 2024-05-03 01:12:01
合計ジャッジ時間 3,780 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,572 KB
testcase_01 AC 37 ms
53,344 KB
testcase_02 AC 44 ms
54,940 KB
testcase_03 AC 44 ms
55,532 KB
testcase_04 AC 42 ms
55,180 KB
testcase_05 AC 51 ms
61,476 KB
testcase_06 AC 45 ms
54,152 KB
testcase_07 AC 44 ms
55,108 KB
testcase_08 AC 50 ms
62,016 KB
testcase_09 AC 52 ms
61,528 KB
testcase_10 AC 53 ms
61,984 KB
testcase_11 AC 44 ms
55,172 KB
testcase_12 AC 50 ms
61,744 KB
testcase_13 AC 40 ms
54,312 KB
testcase_14 AC 51 ms
61,536 KB
testcase_15 AC 44 ms
55,252 KB
testcase_16 AC 39 ms
53,012 KB
testcase_17 AC 51 ms
61,720 KB
testcase_18 AC 38 ms
52,800 KB
testcase_19 AC 47 ms
56,860 KB
testcase_20 AC 43 ms
54,688 KB
testcase_21 AC 50 ms
62,856 KB
testcase_22 AC 44 ms
55,312 KB
testcase_23 AC 43 ms
55,644 KB
testcase_24 AC 46 ms
55,920 KB
testcase_25 AC 52 ms
62,984 KB
testcase_26 AC 45 ms
55,052 KB
testcase_27 AC 43 ms
55,064 KB
testcase_28 AC 42 ms
54,276 KB
testcase_29 AC 44 ms
55,856 KB
testcase_30 AC 48 ms
55,656 KB
testcase_31 AC 45 ms
54,304 KB
testcase_32 AC 117 ms
75,984 KB
testcase_33 AC 119 ms
76,400 KB
testcase_34 AC 118 ms
76,452 KB
testcase_35 AC 121 ms
76,152 KB
testcase_36 AC 117 ms
76,028 KB
testcase_37 AC 115 ms
76,104 KB
testcase_38 AC 38 ms
52,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
Old_T=0
Old_P=0

F=True
for _ in range(M):
    T,P=map(int,input().split())
    F&=(abs(P-Old_P)<=T-Old_T)
    Old_T,Old_P=T,P
if F:
    print("Yes")
else:
    print("No")
0