結果

問題 No.1205 Eye Drops
ユーザー 👑 KazunKazun
提出日時 2020-08-30 15:22:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 484 ms
コンパイル使用メモリ 86,812 KB
実行使用メモリ 77,784 KB
最終ジャッジ日時 2023-08-15 13:39:56
合計ジャッジ時間 5,773 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,068 KB
testcase_01 AC 73 ms
71,216 KB
testcase_02 AC 77 ms
71,548 KB
testcase_03 AC 78 ms
71,572 KB
testcase_04 AC 74 ms
71,352 KB
testcase_05 AC 84 ms
75,516 KB
testcase_06 AC 76 ms
71,532 KB
testcase_07 AC 77 ms
71,368 KB
testcase_08 AC 84 ms
75,316 KB
testcase_09 AC 86 ms
75,428 KB
testcase_10 AC 85 ms
75,624 KB
testcase_11 AC 78 ms
71,360 KB
testcase_12 AC 85 ms
75,124 KB
testcase_13 AC 74 ms
71,160 KB
testcase_14 AC 86 ms
75,356 KB
testcase_15 AC 77 ms
71,068 KB
testcase_16 AC 72 ms
71,116 KB
testcase_17 AC 84 ms
75,212 KB
testcase_18 AC 73 ms
71,368 KB
testcase_19 AC 80 ms
71,448 KB
testcase_20 AC 76 ms
71,284 KB
testcase_21 AC 83 ms
75,528 KB
testcase_22 AC 78 ms
71,600 KB
testcase_23 AC 75 ms
71,544 KB
testcase_24 AC 78 ms
71,316 KB
testcase_25 AC 84 ms
75,124 KB
testcase_26 AC 78 ms
71,408 KB
testcase_27 AC 75 ms
71,268 KB
testcase_28 AC 74 ms
71,132 KB
testcase_29 AC 78 ms
71,376 KB
testcase_30 AC 80 ms
71,352 KB
testcase_31 AC 77 ms
71,348 KB
testcase_32 AC 142 ms
77,404 KB
testcase_33 AC 142 ms
77,784 KB
testcase_34 AC 145 ms
77,136 KB
testcase_35 AC 145 ms
77,364 KB
testcase_36 AC 141 ms
77,476 KB
testcase_37 AC 138 ms
77,584 KB
testcase_38 AC 70 ms
71,444 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