結果

問題 No.2559 眩しい数直線
ユーザー hirayuu_ychirayuu_yc
提出日時 2023-12-02 15:24:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 68,568 KB
最終ジャッジ日時 2023-12-02 15:24:27
合計ジャッジ時間 2,296 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,332 KB
testcase_01 AC 33 ms
53,332 KB
testcase_02 AC 33 ms
53,332 KB
testcase_03 AC 50 ms
64,288 KB
testcase_04 AC 51 ms
64,288 KB
testcase_05 AC 54 ms
64,408 KB
testcase_06 AC 70 ms
68,544 KB
testcase_07 AC 65 ms
68,560 KB
testcase_08 AC 66 ms
68,536 KB
testcase_09 AC 56 ms
66,496 KB
testcase_10 AC 51 ms
64,408 KB
testcase_11 AC 44 ms
62,380 KB
testcase_12 AC 46 ms
62,208 KB
testcase_13 AC 63 ms
66,480 KB
testcase_14 AC 69 ms
68,544 KB
testcase_15 AC 70 ms
68,544 KB
testcase_16 AC 46 ms
64,320 KB
testcase_17 AC 65 ms
68,560 KB
testcase_18 AC 50 ms
64,288 KB
testcase_19 AC 65 ms
68,568 KB
testcase_20 AC 56 ms
66,488 KB
testcase_21 AC 48 ms
64,312 KB
testcase_22 AC 60 ms
66,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,X=map(int,input().split())
pos=[tuple(map(int,input().split())) for i in range(N)]
for i in range(1,X+1):
    ans=0
    for a,b in pos:
        ans=max(ans,b-abs(i-a),0)
    print(ans,end=" ")
print()
0