結果

問題 No.1137 Circles
ユーザー pluto77pluto77
提出日時 2021-03-10 15:32:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 453 ms / 2,000 ms
コード長 184 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 25,836 KB
最終ジャッジ日時 2024-04-20 10:26:20
合計ジャッジ時間 7,021 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
13,824 KB
testcase_01 AC 433 ms
25,600 KB
testcase_02 AC 129 ms
20,308 KB
testcase_03 AC 270 ms
25,384 KB
testcase_04 AC 347 ms
25,472 KB
testcase_05 AC 165 ms
24,320 KB
testcase_06 AC 371 ms
25,720 KB
testcase_07 AC 236 ms
25,104 KB
testcase_08 AC 392 ms
25,472 KB
testcase_09 AC 207 ms
24,832 KB
testcase_10 AC 264 ms
25,344 KB
testcase_11 AC 289 ms
25,216 KB
testcase_12 AC 453 ms
25,728 KB
testcase_13 AC 211 ms
24,960 KB
testcase_14 AC 439 ms
25,836 KB
testcase_15 AC 226 ms
24,960 KB
testcase_16 AC 277 ms
25,216 KB
testcase_17 AC 151 ms
23,168 KB
testcase_18 AC 385 ms
25,596 KB
testcase_19 AC 217 ms
24,960 KB
testcase_20 AC 197 ms
24,908 KB
testcase_21 AC 116 ms
13,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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