結果

問題 No.1205 Eye Drops
ユーザー tktk_snsntktk_snsn
提出日時 2021-02-08 23:56:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 434 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 88,028 KB
最終ジャッジ日時 2023-09-20 08:41:37
合計ジャッジ時間 5,602 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,168 KB
testcase_01 AC 71 ms
71,608 KB
testcase_02 AC 78 ms
75,564 KB
testcase_03 AC 73 ms
75,700 KB
testcase_04 AC 73 ms
75,768 KB
testcase_05 AC 76 ms
75,560 KB
testcase_06 AC 73 ms
75,480 KB
testcase_07 AC 75 ms
75,728 KB
testcase_08 AC 74 ms
75,728 KB
testcase_09 AC 76 ms
75,844 KB
testcase_10 AC 73 ms
75,724 KB
testcase_11 AC 75 ms
75,708 KB
testcase_12 AC 81 ms
75,764 KB
testcase_13 AC 71 ms
71,308 KB
testcase_14 AC 77 ms
75,864 KB
testcase_15 AC 81 ms
75,528 KB
testcase_16 AC 70 ms
71,264 KB
testcase_17 AC 76 ms
75,556 KB
testcase_18 AC 71 ms
71,352 KB
testcase_19 AC 74 ms
75,752 KB
testcase_20 AC 74 ms
75,444 KB
testcase_21 AC 76 ms
75,560 KB
testcase_22 AC 75 ms
75,528 KB
testcase_23 AC 74 ms
75,500 KB
testcase_24 AC 75 ms
75,636 KB
testcase_25 AC 76 ms
75,608 KB
testcase_26 AC 76 ms
75,768 KB
testcase_27 AC 75 ms
75,632 KB
testcase_28 AC 74 ms
75,644 KB
testcase_29 AC 75 ms
75,772 KB
testcase_30 AC 75 ms
75,684 KB
testcase_31 AC 74 ms
75,584 KB
testcase_32 AC 136 ms
87,928 KB
testcase_33 AC 140 ms
87,988 KB
testcase_34 AC 142 ms
87,824 KB
testcase_35 AC 139 ms
88,028 KB
testcase_36 AC 135 ms
87,952 KB
testcase_37 AC 145 ms
87,860 KB
testcase_38 AC 71 ms
71,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 7)


def main():
    N, M = map(int, input().split())
    TP = tuple(tuple(map(int, input().split())) for _ in range(M))
    now = 0
    time = 0
    for t, p in TP:
        move = abs(p - now)
        T = t - time
        if move > T:
            return False
        now = p
        time = t
    return True


if main():
    print("Yes")
else:
    print("No")
0