結果

問題 No.1205 Eye Drops
ユーザー gorugo30gorugo30
提出日時 2021-02-23 15:35:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 167 ms / 2,000 ms
コード長 278 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 81,812 KB
実行使用メモリ 85,952 KB
最終ジャッジ日時 2023-10-23 17:19:31
合計ジャッジ時間 6,351 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,452 KB
testcase_01 AC 36 ms
53,452 KB
testcase_02 AC 44 ms
55,500 KB
testcase_03 AC 44 ms
55,500 KB
testcase_04 AC 42 ms
53,492 KB
testcase_05 AC 56 ms
63,732 KB
testcase_06 AC 45 ms
55,500 KB
testcase_07 AC 44 ms
55,500 KB
testcase_08 AC 54 ms
61,496 KB
testcase_09 AC 56 ms
63,732 KB
testcase_10 AC 56 ms
63,732 KB
testcase_11 AC 47 ms
60,880 KB
testcase_12 AC 54 ms
63,732 KB
testcase_13 AC 41 ms
53,452 KB
testcase_14 AC 56 ms
63,732 KB
testcase_15 AC 44 ms
55,500 KB
testcase_16 AC 40 ms
53,452 KB
testcase_17 AC 54 ms
63,732 KB
testcase_18 AC 39 ms
53,452 KB
testcase_19 AC 52 ms
61,496 KB
testcase_20 AC 44 ms
55,500 KB
testcase_21 AC 54 ms
61,496 KB
testcase_22 AC 49 ms
60,880 KB
testcase_23 AC 44 ms
55,500 KB
testcase_24 AC 48 ms
60,880 KB
testcase_25 AC 55 ms
63,732 KB
testcase_26 AC 48 ms
60,880 KB
testcase_27 AC 43 ms
55,500 KB
testcase_28 AC 42 ms
53,452 KB
testcase_29 AC 47 ms
60,880 KB
testcase_30 AC 50 ms
61,496 KB
testcase_31 AC 44 ms
55,500 KB
testcase_32 AC 156 ms
85,848 KB
testcase_33 AC 155 ms
85,848 KB
testcase_34 AC 153 ms
85,848 KB
testcase_35 AC 155 ms
85,848 KB
testcase_36 AC 155 ms
85,848 KB
testcase_37 AC 167 ms
85,952 KB
testcase_38 AC 37 ms
53,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
TP = [list(map(int, input().split())) for i in range(M)]
if TP[0][0] < TP[0][1]:
    print("No")
    exit()
for i in range(1, M):
    if abs(TP[i][0] - TP[i - 1][0]) < abs(TP[i][1] - TP[i - 1][1]):
        print("No")
        exit()
print("Yes")
0