結果

問題 No.1137 Circles
ユーザー titiatitia
提出日時 2023-11-22 03:37:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 29,656 KB
最終ジャッジ日時 2023-11-22 03:37:30
合計ジャッジ時間 11,375 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 240 ms
17,748 KB
testcase_01 AC 547 ms
29,528 KB
testcase_02 AC 249 ms
24,408 KB
testcase_03 AC 380 ms
29,272 KB
testcase_04 AC 471 ms
29,400 KB
testcase_05 AC 280 ms
28,248 KB
testcase_06 WA -
testcase_07 AC 356 ms
29,144 KB
testcase_08 AC 497 ms
29,528 KB
testcase_09 WA -
testcase_10 AC 398 ms
29,144 KB
testcase_11 AC 391 ms
29,272 KB
testcase_12 AC 559 ms
29,656 KB
testcase_13 AC 347 ms
28,888 KB
testcase_14 AC 539 ms
29,528 KB
testcase_15 AC 339 ms
29,016 KB
testcase_16 WA -
testcase_17 AC 262 ms
27,224 KB
testcase_18 WA -
testcase_19 AC 355 ms
29,016 KB
testcase_20 AC 308 ms
28,760 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
S=[0]*(10**6)


for i in range(n):
    x,r=map(int,input().split())

    x+=300000
    S[x-r]+=1
    S[x+r+1]-=1

for i in range(10**6):
    S[i]+=S[i-1]

print(max(S))
0