結果

問題 No.1137 Circles
ユーザー 河野竜也河野竜也
提出日時 2021-09-12 22:49:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 538 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 10,796 KB
実行使用メモリ 27,696 KB
最終ジャッジ日時 2023-09-07 01:00:54
合計ジャッジ時間 10,077 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 228 ms
15,728 KB
testcase_01 AC 520 ms
27,540 KB
testcase_02 AC 249 ms
22,728 KB
testcase_03 AC 380 ms
27,472 KB
testcase_04 AC 440 ms
27,612 KB
testcase_05 AC 287 ms
26,292 KB
testcase_06 AC 473 ms
27,640 KB
testcase_07 AC 341 ms
27,344 KB
testcase_08 AC 482 ms
27,560 KB
testcase_09 AC 309 ms
26,820 KB
testcase_10 AC 355 ms
27,372 KB
testcase_11 AC 378 ms
27,496 KB
testcase_12 AC 538 ms
27,600 KB
testcase_13 AC 319 ms
27,140 KB
testcase_14 AC 538 ms
27,636 KB
testcase_15 AC 328 ms
27,084 KB
testcase_16 AC 381 ms
27,336 KB
testcase_17 AC 266 ms
25,368 KB
testcase_18 AC 482 ms
27,696 KB
testcase_19 AC 328 ms
27,140 KB
testcase_20 AC 300 ms
26,940 KB
testcase_21 AC 228 ms
15,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
d=[0]*(10**6)
m=2*(10**5)
for i in range(n):
  x,r=map(int,input().split())
  a=x-r+m
  b=x+r+m
  d[a]+=1
  d[b]-=1
for i in range(len(d)-1):
  d[i+1]+=d[i]
print(max(d))
0