結果

問題 No.1205 Eye Drops
ユーザー mlihua09mlihua09
提出日時 2020-08-30 13:04:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 82,472 KB
実行使用メモリ 87,832 KB
最終ジャッジ日時 2024-05-03 00:44:20
合計ジャッジ時間 3,368 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,012 KB
testcase_01 AC 30 ms
53,096 KB
testcase_02 AC 39 ms
54,564 KB
testcase_03 AC 42 ms
55,320 KB
testcase_04 AC 41 ms
55,224 KB
testcase_05 AC 52 ms
63,864 KB
testcase_06 AC 42 ms
54,580 KB
testcase_07 AC 43 ms
54,556 KB
testcase_08 AC 47 ms
62,500 KB
testcase_09 AC 48 ms
63,104 KB
testcase_10 AC 47 ms
63,440 KB
testcase_11 AC 42 ms
61,976 KB
testcase_12 AC 47 ms
63,240 KB
testcase_13 AC 34 ms
53,336 KB
testcase_14 AC 46 ms
63,812 KB
testcase_15 AC 37 ms
54,980 KB
testcase_16 AC 34 ms
53,744 KB
testcase_17 AC 46 ms
64,060 KB
testcase_18 AC 33 ms
53,132 KB
testcase_19 AC 43 ms
61,416 KB
testcase_20 AC 37 ms
54,472 KB
testcase_21 AC 44 ms
62,540 KB
testcase_22 AC 40 ms
60,808 KB
testcase_23 AC 38 ms
55,688 KB
testcase_24 AC 45 ms
59,640 KB
testcase_25 AC 48 ms
64,132 KB
testcase_26 AC 42 ms
61,296 KB
testcase_27 AC 41 ms
54,120 KB
testcase_28 AC 37 ms
54,432 KB
testcase_29 AC 40 ms
60,192 KB
testcase_30 AC 45 ms
61,448 KB
testcase_31 AC 37 ms
55,784 KB
testcase_32 AC 128 ms
86,884 KB
testcase_33 AC 139 ms
86,884 KB
testcase_34 AC 130 ms
86,972 KB
testcase_35 AC 124 ms
87,084 KB
testcase_36 AC 130 ms
87,068 KB
testcase_37 AC 136 ms
87,832 KB
testcase_38 AC 34 ms
53,012 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