結果

問題 No.1137 Circles
ユーザー roarisroaris
提出日時 2020-07-27 23:00:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 611 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 84,004 KB
最終ジャッジ日時 2023-09-11 06:06:04
合計ジャッジ時間 4,623 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
83,240 KB
testcase_01 AC 146 ms
83,588 KB
testcase_02 AC 117 ms
83,832 KB
testcase_03 AC 131 ms
83,564 KB
testcase_04 AC 137 ms
83,864 KB
testcase_05 AC 117 ms
83,492 KB
testcase_06 WA -
testcase_07 AC 126 ms
83,804 KB
testcase_08 AC 143 ms
83,768 KB
testcase_09 WA -
testcase_10 AC 131 ms
83,720 KB
testcase_11 AC 133 ms
83,952 KB
testcase_12 AC 151 ms
83,728 KB
testcase_13 AC 126 ms
83,824 KB
testcase_14 AC 148 ms
83,424 KB
testcase_15 AC 127 ms
83,872 KB
testcase_16 WA -
testcase_17 AC 120 ms
83,900 KB
testcase_18 WA -
testcase_19 AC 127 ms
83,632 KB
testcase_20 AC 126 ms
83,640 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

N = int(input())
imos = [0]*(8*10**5+2)
cnt = defaultdict(int)

for _ in range(N):
    x, r = map(int, input().split())
    l = x-r+2*10**5
    r = x+r+2*10**5
    imos[2*l] += 1
    imos[2*r+1] -= 1

for i in range(1, 8*10**5+2):
    imos[i] += imos[i-1]

print(max(imos))
0