結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
55,596 KB
testcase_01 AC 40 ms
55,596 KB
testcase_02 AC 39 ms
55,596 KB
testcase_03 AC 52 ms
66,144 KB
testcase_04 AC 53 ms
66,144 KB
testcase_05 AC 53 ms
66,144 KB
testcase_06 AC 71 ms
68,596 KB
testcase_07 AC 61 ms
68,596 KB
testcase_08 AC 61 ms
68,596 KB
testcase_09 AC 57 ms
66,128 KB
testcase_10 AC 52 ms
64,040 KB
testcase_11 AC 48 ms
64,076 KB
testcase_12 AC 49 ms
64,040 KB
testcase_13 AC 64 ms
68,596 KB
testcase_14 AC 63 ms
68,596 KB
testcase_15 AC 64 ms
68,592 KB
testcase_16 AC 53 ms
66,272 KB
testcase_17 AC 61 ms
66,508 KB
testcase_18 AC 58 ms
66,144 KB
testcase_19 AC 69 ms
68,592 KB
testcase_20 AC 60 ms
66,252 KB
testcase_21 AC 56 ms
66,144 KB
testcase_22 AC 66 ms
68,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#############################################################

import sys
sys.setrecursionlimit(10**7)

from heapq import heappop,heappush
from collections import deque,defaultdict,Counter
from bisect import bisect_left, bisect_right
from itertools import product,combinations,permutations
from math import sin,cos
#from math import isqrt #DO NOT USE PyPy

ipt = sys.stdin.readline
iin = lambda :int(ipt())
lmin = lambda :list(map(int,ipt().split()))

#############################################################

N,X = lmin()
L = [lmin() for _ in range(N)]
A = [0]*X
for i in range(X):
    for a,b in L:
        A[i] = max(A[i], b-abs(a-1-i))

print(*A)
0