結果

問題 No.1137 Circles
ユーザー titiatitia
提出日時 2023-11-22 03:40:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 618 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 41,564 KB
最終ジャッジ日時 2023-11-22 03:40:45
合計ジャッジ時間 10,646 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 242 ms
17,752 KB
testcase_01 AC 579 ms
41,436 KB
testcase_02 AC 258 ms
31,068 KB
testcase_03 AC 410 ms
40,796 KB
testcase_04 AC 499 ms
41,180 KB
testcase_05 AC 302 ms
38,748 KB
testcase_06 AC 517 ms
41,308 KB
testcase_07 AC 373 ms
40,540 KB
testcase_08 AC 524 ms
41,308 KB
testcase_09 AC 349 ms
39,900 KB
testcase_10 AC 396 ms
40,668 KB
testcase_11 AC 431 ms
40,796 KB
testcase_12 AC 618 ms
41,564 KB
testcase_13 AC 343 ms
40,156 KB
testcase_14 AC 590 ms
41,436 KB
testcase_15 AC 372 ms
40,284 KB
testcase_16 AC 414 ms
40,924 KB
testcase_17 AC 285 ms
36,700 KB
testcase_18 AC 519 ms
41,308 KB
testcase_19 AC 348 ms
40,284 KB
testcase_20 AC 344 ms
39,772 KB
testcase_21 AC 233 ms
17,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


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

    x+=500000
    S[x-2*r+1]+=1
    S[x+2*r]-=1

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

print(max(S))
0