結果

問題 No.1205 Eye Drops
ユーザー naniwazunaniwazu
提出日時 2020-08-30 16:57:56
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 77,428 KB
最終ジャッジ日時 2023-08-15 13:32:54
合計ジャッジ時間 4,820 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,292 KB
testcase_01 AC 61 ms
71,388 KB
testcase_02 AC 68 ms
71,376 KB
testcase_03 AC 67 ms
71,384 KB
testcase_04 AC 66 ms
71,380 KB
testcase_05 AC 72 ms
75,396 KB
testcase_06 AC 67 ms
71,440 KB
testcase_07 AC 68 ms
71,368 KB
testcase_08 AC 72 ms
75,104 KB
testcase_09 AC 75 ms
75,356 KB
testcase_10 AC 77 ms
75,396 KB
testcase_11 AC 69 ms
71,200 KB
testcase_12 AC 73 ms
75,524 KB
testcase_13 AC 65 ms
71,280 KB
testcase_14 AC 74 ms
75,620 KB
testcase_15 AC 68 ms
71,456 KB
testcase_16 AC 66 ms
71,296 KB
testcase_17 AC 76 ms
75,412 KB
testcase_18 AC 65 ms
71,296 KB
testcase_19 AC 70 ms
71,436 KB
testcase_20 AC 66 ms
71,356 KB
testcase_21 AC 73 ms
75,484 KB
testcase_22 AC 73 ms
71,396 KB
testcase_23 AC 65 ms
71,492 KB
testcase_24 AC 69 ms
71,460 KB
testcase_25 AC 77 ms
75,468 KB
testcase_26 AC 72 ms
71,344 KB
testcase_27 AC 70 ms
71,440 KB
testcase_28 AC 68 ms
71,476 KB
testcase_29 AC 69 ms
71,416 KB
testcase_30 AC 71 ms
71,044 KB
testcase_31 AC 69 ms
71,248 KB
testcase_32 AC 125 ms
77,264 KB
testcase_33 AC 128 ms
77,012 KB
testcase_34 AC 125 ms
77,428 KB
testcase_35 AC 127 ms
76,992 KB
testcase_36 AC 129 ms
77,364 KB
testcase_37 AC 123 ms
77,244 KB
testcase_38 AC 66 ms
71,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
place = 0
time = 0
ans = True
for i in range(M):
    T,P = map(int,input().split())
    if abs(place-P) > T-time:
        ans = False
    place = P
    time = T
if ans:
    print('Yes')
else:
    print('No')
0