結果
| 問題 |
No.1137 Circles
|
| ユーザー |
👑 Kazun
|
| 提出日時 | 2020-07-26 22:30:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 484 bytes |
| コンパイル時間 | 204 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 82,816 KB |
| 最終ジャッジ日時 | 2024-06-28 19:31:16 |
| 合計ジャッジ時間 | 3,550 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 5 |
ソースコード
class Imos_1:
def __init__(self,N):
self.len=N
self.list=[0]*(N+1)
def Add(self,F,T,C=1):
self.list[F]+=C
self.list[T+1]-=C
def Cumulative_Sum(self):
Y=[0]*(self.len)
S=0
for i in range(self.len):
S+=self.list[i]
Y[i]=S
return Y
N=int(input())
G=10**5
K=Imos_1(4*G+1)
for _ in range(N):
x,r=map(int,input().split())
K.Add(x-r+2*G,x+r+2*G,1)
print(max(K.Cumulative_Sum()))
Kazun