結果
| 問題 |
No.1137 Circles
|
| ユーザー |
|
| 提出日時 | 2020-07-27 14:28:22 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 820 ms / 2,000 ms |
| コード長 | 266 bytes |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 31,128 KB |
| 最終ジャッジ日時 | 2024-06-28 20:06:15 |
| 合計ジャッジ時間 | 8,635 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)