結果
| 問題 | No.1137 Circles |
| ユーザー |
|
| 提出日時 | 2020-07-27 14:28:22 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 524 ms / 2,000 ms |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 477 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 34,268 KB |
| 最終ジャッジ日時 | 2026-03-17 22:35:03 |
| 合計ジャッジ時間 | 7,162 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
n=int(input())
a=[]
for _ in range(n):
x,r=map(int,input().split())
a.append((x-r,1))
a.append((x+r,-1))
a.sort()
i=0
ans=0
cur=0
while i<n*2:
b=a[i][0]
while i<n*2 and a[i][0]==b:
cur+=a[i][1]
i+=1
ans=max(ans,cur)
print(ans)