結果

問題 No.1137 Circles
ユーザー brthyyjpbrthyyjp
提出日時 2020-10-30 15:39:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 316 bytes
コンパイル時間 1,190 ms
コンパイル使用メモリ 86,892 KB
実行使用メモリ 108,840 KB
最終ジャッジ日時 2023-09-29 04:19:29
合計ジャッジ時間 5,722 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
107,364 KB
testcase_01 AC 132 ms
108,620 KB
testcase_02 AC 107 ms
108,332 KB
testcase_03 AC 116 ms
101,656 KB
testcase_04 AC 121 ms
108,536 KB
testcase_05 AC 108 ms
108,168 KB
testcase_06 AC 123 ms
108,584 KB
testcase_07 AC 113 ms
99,612 KB
testcase_08 AC 124 ms
108,452 KB
testcase_09 AC 112 ms
108,312 KB
testcase_10 AC 115 ms
97,436 KB
testcase_11 AC 114 ms
101,916 KB
testcase_12 AC 129 ms
108,448 KB
testcase_13 AC 117 ms
108,500 KB
testcase_14 AC 128 ms
108,668 KB
testcase_15 AC 115 ms
104,868 KB
testcase_16 AC 115 ms
101,528 KB
testcase_17 AC 105 ms
108,120 KB
testcase_18 AC 123 ms
108,840 KB
testcase_19 AC 112 ms
105,296 KB
testcase_20 AC 112 ms
108,200 KB
testcase_21 AC 103 ms
107,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import io, os
input = sys.stdin.buffer.readline

n = int(input())
M = 2*10**5
imos = [0]*(2*M+2)
for i in range(n):
    x, r = map(int, input().split())
    a = x-r+M
    b = x+r+M
    imos[a] += 1
    imos[b] -= 1
from itertools import accumulate
imos = list(accumulate(imos))
ans = max(imos)
print(ans)
0