結果
| 問題 |
No.1137 Circles
|
| ユーザー |
|
| 提出日時 | 2020-08-13 07:07:45 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 263 bytes |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 12,544 KB |
| 最終ジャッジ日時 | 2024-10-09 18:56:49 |
| 合計ジャッジ時間 | 3,575 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 RE * 20 |
ソースコード
n = int(input())
cnt = [0 for _ in range(2 * 10 ** 5 + 1)]
C = 10 ** 5
for _ in range(n):
x, r = map(int, input().split())
cnt[x - r + C] += 1
cnt[x + r + C] -= 1
ans = 0
total = 0
for num in cnt:
total += num
ans = max(ans, total)
print(ans)