結果

問題 No.1137 Circles
ユーザー lloyzlloyz
提出日時 2022-10-07 00:01:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 1,111 ms
コンパイル使用メモリ 87,232 KB
実行使用メモリ 80,912 KB
最終ジャッジ日時 2023-09-02 03:45:12
合計ジャッジ時間 6,559 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
79,052 KB
testcase_01 AC 161 ms
80,716 KB
testcase_02 AC 110 ms
80,128 KB
testcase_03 AC 137 ms
80,876 KB
testcase_04 AC 148 ms
80,660 KB
testcase_05 AC 107 ms
80,528 KB
testcase_06 WA -
testcase_07 AC 143 ms
80,668 KB
testcase_08 AC 167 ms
80,380 KB
testcase_09 WA -
testcase_10 AC 151 ms
80,764 KB
testcase_11 AC 149 ms
80,656 KB
testcase_12 AC 185 ms
80,660 KB
testcase_13 AC 150 ms
80,624 KB
testcase_14 AC 188 ms
80,912 KB
testcase_15 AC 138 ms
80,680 KB
testcase_16 WA -
testcase_17 AC 138 ms
80,112 KB
testcase_18 WA -
testcase_19 AC 143 ms
80,616 KB
testcase_20 AC 141 ms
80,376 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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