結果
| 問題 |
No.1137 Circles
|
| ユーザー |
brthyyjp
|
| 提出日時 | 2020-10-30 15:39:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 102 ms / 2,000 ms |
| コード長 | 316 bytes |
| コンパイル時間 | 1,353 ms |
| コンパイル使用メモリ | 81,712 KB |
| 実行使用メモリ | 107,432 KB |
| 最終ジャッジ日時 | 2024-07-21 22:50:44 |
| 合計ジャッジ時間 | 4,519 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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