結果

問題 No.1205 Eye Drops
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-08-23 08:49:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 179 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 86,400 KB
最終ジャッジ日時 2024-04-24 23:59:29
合計ジャッジ時間 5,209 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,712 KB
testcase_01 AC 41 ms
51,712 KB
testcase_02 AC 50 ms
53,888 KB
testcase_03 AC 48 ms
54,144 KB
testcase_04 AC 48 ms
53,632 KB
testcase_05 AC 64 ms
62,720 KB
testcase_06 AC 49 ms
54,016 KB
testcase_07 AC 48 ms
54,144 KB
testcase_08 AC 63 ms
61,440 KB
testcase_09 AC 63 ms
63,104 KB
testcase_10 AC 63 ms
63,104 KB
testcase_11 AC 54 ms
59,136 KB
testcase_12 AC 61 ms
62,464 KB
testcase_13 AC 47 ms
52,864 KB
testcase_14 AC 62 ms
62,720 KB
testcase_15 AC 48 ms
53,760 KB
testcase_16 AC 45 ms
52,352 KB
testcase_17 AC 62 ms
62,720 KB
testcase_18 AC 44 ms
52,224 KB
testcase_19 AC 61 ms
61,056 KB
testcase_20 AC 50 ms
53,760 KB
testcase_21 AC 60 ms
61,824 KB
testcase_22 AC 55 ms
59,776 KB
testcase_23 AC 49 ms
54,272 KB
testcase_24 AC 53 ms
59,264 KB
testcase_25 AC 63 ms
63,104 KB
testcase_26 AC 54 ms
59,520 KB
testcase_27 AC 49 ms
54,016 KB
testcase_28 AC 47 ms
53,120 KB
testcase_29 AC 54 ms
59,136 KB
testcase_30 AC 59 ms
61,440 KB
testcase_31 AC 49 ms
54,016 KB
testcase_32 AC 175 ms
86,016 KB
testcase_33 AC 172 ms
86,016 KB
testcase_34 AC 175 ms
86,144 KB
testcase_35 AC 171 ms
86,016 KB
testcase_36 AC 174 ms
86,144 KB
testcase_37 AC 179 ms
86,400 KB
testcase_38 AC 41 ms
51,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
TP = [list(map(int,input().split())) for _ in range(m)]
T = 0
P = 0
for i in range(m):
    if TP[i][0] - T < abs(TP[i][1] - P):
        print("No")
        exit()
    else:
        T = TP[i][0]
        P = TP[i][1]
print("Yes")
0