結果

問題 No.1205 Eye Drops
ユーザー mlihua09mlihua09
提出日時 2020-08-30 13:04:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 184 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 483 ms
コンパイル使用メモリ 87,340 KB
実行使用メモリ 88,416 KB
最終ジャッジ日時 2023-08-15 13:13:30
合計ジャッジ時間 5,752 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,432 KB
testcase_01 AC 70 ms
71,416 KB
testcase_02 AC 76 ms
71,288 KB
testcase_03 AC 75 ms
71,404 KB
testcase_04 AC 74 ms
71,188 KB
testcase_05 AC 84 ms
76,384 KB
testcase_06 AC 76 ms
71,432 KB
testcase_07 AC 75 ms
71,284 KB
testcase_08 AC 87 ms
75,940 KB
testcase_09 AC 87 ms
76,284 KB
testcase_10 AC 87 ms
76,072 KB
testcase_11 AC 81 ms
75,004 KB
testcase_12 AC 85 ms
76,136 KB
testcase_13 AC 74 ms
71,404 KB
testcase_14 AC 87 ms
75,980 KB
testcase_15 AC 75 ms
71,068 KB
testcase_16 AC 74 ms
71,184 KB
testcase_17 AC 86 ms
76,032 KB
testcase_18 AC 74 ms
71,416 KB
testcase_19 AC 84 ms
75,728 KB
testcase_20 AC 77 ms
71,384 KB
testcase_21 AC 83 ms
75,680 KB
testcase_22 AC 81 ms
75,296 KB
testcase_23 AC 76 ms
71,308 KB
testcase_24 AC 79 ms
75,048 KB
testcase_25 AC 87 ms
76,316 KB
testcase_26 AC 79 ms
75,156 KB
testcase_27 AC 76 ms
71,412 KB
testcase_28 AC 76 ms
71,460 KB
testcase_29 AC 80 ms
75,084 KB
testcase_30 AC 84 ms
75,668 KB
testcase_31 AC 76 ms
71,456 KB
testcase_32 AC 173 ms
88,280 KB
testcase_33 AC 174 ms
88,076 KB
testcase_34 AC 174 ms
88,308 KB
testcase_35 AC 176 ms
88,416 KB
testcase_36 AC 176 ms
88,188 KB
testcase_37 AC 184 ms
88,168 KB
testcase_38 AC 72 ms
71,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


N, M = map(int, input().split())

TP = [[0, 0]] + [list(map(int, input().split())) for i in range(M)]

for i in range(1, M + 1):
    
    if TP[i][0] - TP[i - 1][0] < abs(TP[i][1] - TP[i - 1][1]):
        
        print('No')
        exit()
        
print('Yes')
0