結果

問題 No.1205 Eye Drops
ユーザー shotoyooshotoyoo
提出日時 2020-08-30 13:03:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 165 ms / 2,000 ms
コード長 430 bytes
コンパイル時間 924 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 86,620 KB
最終ジャッジ日時 2023-08-15 13:11:48
合計ジャッジ時間 4,898 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,192 KB
testcase_01 AC 60 ms
71,276 KB
testcase_02 AC 73 ms
71,464 KB
testcase_03 AC 66 ms
71,404 KB
testcase_04 AC 66 ms
71,260 KB
testcase_05 AC 83 ms
75,700 KB
testcase_06 AC 65 ms
71,472 KB
testcase_07 AC 66 ms
71,380 KB
testcase_08 AC 69 ms
75,828 KB
testcase_09 AC 68 ms
75,676 KB
testcase_10 AC 69 ms
75,680 KB
testcase_11 AC 67 ms
75,060 KB
testcase_12 AC 69 ms
75,676 KB
testcase_13 AC 71 ms
71,276 KB
testcase_14 AC 74 ms
75,676 KB
testcase_15 AC 65 ms
71,468 KB
testcase_16 AC 64 ms
71,324 KB
testcase_17 AC 69 ms
75,756 KB
testcase_18 AC 65 ms
71,400 KB
testcase_19 AC 70 ms
75,876 KB
testcase_20 AC 66 ms
71,396 KB
testcase_21 AC 72 ms
75,832 KB
testcase_22 AC 67 ms
75,004 KB
testcase_23 AC 63 ms
71,468 KB
testcase_24 AC 67 ms
75,176 KB
testcase_25 AC 70 ms
75,740 KB
testcase_26 AC 66 ms
75,088 KB
testcase_27 AC 64 ms
71,244 KB
testcase_28 AC 66 ms
71,228 KB
testcase_29 AC 68 ms
75,056 KB
testcase_30 AC 70 ms
75,620 KB
testcase_31 AC 64 ms
71,428 KB
testcase_32 AC 165 ms
86,620 KB
testcase_33 AC 134 ms
86,420 KB
testcase_34 AC 139 ms
86,300 KB
testcase_35 AC 129 ms
86,576 KB
testcase_36 AC 128 ms
86,360 KB
testcase_37 AC 135 ms
86,464 KB
testcase_38 AC 63 ms
71,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


# inputna
n,m = list(map(int, input().split()))
tp = [list(map(int, input().split())) for _ in range(m)]
tp.sort()
c = 0
ct = 0
for t,p in tp:
    if abs(c-p)>t-ct:
        ans = False
        break
    c = p
    ct = t
else:
    ans = True
if ans:
    print("Yes")
else:
    print("No")
0