結果

問題 No.1205 Eye Drops
ユーザー aqua_tenhouaqua_tenhou
提出日時 2020-08-30 13:22:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 205 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 75,904 KB
最終ジャッジ日時 2024-05-03 00:53:28
合計ジャッジ時間 3,447 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,712 KB
testcase_01 AC 40 ms
52,224 KB
testcase_02 AC 48 ms
54,272 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 41 ms
51,968 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 48 ms
54,272 KB
testcase_12 WA -
testcase_13 AC 45 ms
52,736 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 43 ms
52,352 KB
testcase_17 WA -
testcase_18 AC 43 ms
52,096 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 48 ms
53,632 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 40 ms
51,840 KB
testcase_33 AC 40 ms
51,968 KB
testcase_34 AC 41 ms
51,712 KB
testcase_35 AC 42 ms
51,968 KB
testcase_36 AC 41 ms
51,968 KB
testcase_37 AC 124 ms
75,904 KB
testcase_38 AC 42 ms
51,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
sw = 1
x = 0
for i in range(m):
    t,p = map(int,input().split())
    if abs(p-x) <= t:
        x = p
    else:
        sw = 0
        break
        
print(["No","Yes"][sw])
0