結果

問題 No.2559 眩しい数直線
ユーザー MasKoaTSMasKoaTS
提出日時 2024-01-03 13:28:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 70,484 KB
最終ジャッジ日時 2024-01-03 13:28:30
合計ジャッジ時間 2,863 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,332 KB
testcase_01 AC 35 ms
53,332 KB
testcase_02 AC 34 ms
53,332 KB
testcase_03 AC 49 ms
61,572 KB
testcase_04 AC 49 ms
63,776 KB
testcase_05 AC 53 ms
64,160 KB
testcase_06 AC 72 ms
68,416 KB
testcase_07 AC 63 ms
68,432 KB
testcase_08 AC 64 ms
68,404 KB
testcase_09 AC 58 ms
66,224 KB
testcase_10 AC 53 ms
64,024 KB
testcase_11 AC 42 ms
59,508 KB
testcase_12 AC 44 ms
61,844 KB
testcase_13 AC 65 ms
68,432 KB
testcase_14 AC 64 ms
68,416 KB
testcase_15 AC 67 ms
70,484 KB
testcase_16 AC 47 ms
61,848 KB
testcase_17 AC 63 ms
68,432 KB
testcase_18 AC 50 ms
63,776 KB
testcase_19 AC 66 ms
68,432 KB
testcase_20 AC 57 ms
66,356 KB
testcase_21 AC 48 ms
63,912 KB
testcase_22 AC 62 ms
68,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x = map(int, input().split())
light = [list(map(int, input().split())) for _ in [0] * n]

ans = [0] * (x + 1)
for a, b in light:
	for i in range(1, x + 1):
		ans[i] = max(ans[i], b - abs(i - a))
print(*ans[1:])
0