結果
| 問題 | No.1137 Circles |
| ユーザー |
brthyyjp
|
| 提出日時 | 2020-10-30 15:39:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 87 ms / 2,000 ms |
| コード長 | 316 bytes |
| 記録 | |
| コンパイル時間 | 567 ms |
| コンパイル使用メモリ | 85,204 KB |
| 実行使用メモリ | 112,356 KB |
| 最終ジャッジ日時 | 2026-04-03 06:22:09 |
| 合計ジャッジ時間 | 8,482 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
import sys
import io, os
input = sys.stdin.buffer.readline
n = int(input())
M = 2*10**5
imos = [0]*(2*M+2)
for i in range(n):
x, r = map(int, input().split())
a = x-r+M
b = x+r+M
imos[a] += 1
imos[b] -= 1
from itertools import accumulate
imos = list(accumulate(imos))
ans = max(imos)
print(ans)
brthyyjp