結果
| 問題 |
No.1137 Circles
|
| ユーザー |
👑 Kazun
|
| 提出日時 | 2020-07-26 22:28:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 479 bytes |
| コンパイル時間 | 132 ms |
| コンパイル使用メモリ | 82,244 KB |
| 実行使用メモリ | 68,508 KB |
| 最終ジャッジ日時 | 2024-06-28 19:31:08 |
| 合計ジャッジ時間 | 3,152 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 1 RE * 20 |
ソースコード
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(2*G+1)
for _ in range(N):
x,r=map(int,input().split())
K.Add(x-r+G,x+r+G)
print(max(K.Cumulative_Sum()))
Kazun