結果

問題 No.1137 Circles
ユーザー lloyzlloyz
提出日時 2022-10-07 00:02:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 141 ms / 2,000 ms
コード長 268 bytes
コンパイル時間 366 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 79,872 KB
最終ジャッジ日時 2024-06-11 10:26:58
合計ジャッジ時間 3,778 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
accumA = [0 for _ in range(4 * 10**5 + 10)]
for _ in range(n):
    x, r = map(int, input().split())
    accumA[x - r + 2 * 10**5] += 1
    accumA[x + r + 2 * 10**5] -= 1
for i in range(4 * 10**5 + 5):
    accumA[i + 1] += accumA[i]
print(max(accumA))
0