結果

問題 No.1137 Circles
ユーザー 河野竜也河野竜也
提出日時 2021-09-12 22:47:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 187 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 10,592 KB
実行使用メモリ 27,788 KB
最終ジャッジ日時 2023-09-07 00:57:14
合計ジャッジ時間 11,797 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 225 ms
15,796 KB
testcase_01 AC 518 ms
27,716 KB
testcase_02 AC 250 ms
22,568 KB
testcase_03 AC 396 ms
27,344 KB
testcase_04 AC 450 ms
27,616 KB
testcase_05 AC 275 ms
26,224 KB
testcase_06 WA -
testcase_07 AC 358 ms
27,212 KB
testcase_08 AC 482 ms
27,636 KB
testcase_09 WA -
testcase_10 AC 363 ms
27,408 KB
testcase_11 AC 387 ms
27,340 KB
testcase_12 AC 555 ms
27,764 KB
testcase_13 AC 328 ms
27,060 KB
testcase_14 AC 540 ms
27,556 KB
testcase_15 AC 336 ms
27,076 KB
testcase_16 WA -
testcase_17 AC 271 ms
25,236 KB
testcase_18 WA -
testcase_19 AC 323 ms
27,080 KB
testcase_20 AC 300 ms
26,968 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

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+1
  d[a]+=1
  d[b]-=1
for i in range(len(d)-1):
  d[i+1]+=d[i]
print(max(d))
0