結果

問題 No.1205 Eye Drops
ユーザー otsunekootsuneko
提出日時 2021-05-14 13:52:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 205 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 82,436 KB
実行使用メモリ 76,180 KB
最終ジャッジ日時 2024-04-09 19:02:41
合計ジャッジ時間 3,398 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,760 KB
testcase_01 AC 32 ms
51,944 KB
testcase_02 AC 37 ms
54,616 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 32 ms
52,844 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 40 ms
55,540 KB
testcase_12 WA -
testcase_13 AC 34 ms
53,644 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 34 ms
53,088 KB
testcase_17 WA -
testcase_18 AC 34 ms
53,692 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 37 ms
55,788 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 32 ms
52,204 KB
testcase_33 AC 33 ms
52,776 KB
testcase_34 AC 31 ms
52,692 KB
testcase_35 AC 32 ms
52,300 KB
testcase_36 AC 33 ms
52,028 KB
testcase_37 AC 100 ms
76,180 KB
testcase_38 AC 33 ms
52,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

time = 0
pos = 0
for _ in range(M):
    T,P = map(int,input().split())
    if abs(P-pos) > T:
        print("No")
        break
    pos = P
else:
    print("Yes")
0