結果
| 問題 | No.1137 Circles |
| ユーザー |
brthyyjp
|
| 提出日時 | 2020-10-30 15:39:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 105 ms / 2,000 ms |
| + 627µs | |
| コード長 | 316 bytes |
| 記録 | |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 96,140 KB |
| 実行使用メモリ | 115,864 KB |
| 最終ジャッジ日時 | 2026-08-22 15:29:33 |
| 合計ジャッジ時間 | 5,774 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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