結果
| 問題 |
No.1137 Circles
|
| ユーザー |
hir355
|
| 提出日時 | 2020-08-01 23:06:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 410 ms / 2,000 ms |
| コード長 | 228 bytes |
| コンパイル時間 | 287 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 25,600 KB |
| 最終ジャッジ日時 | 2024-07-08 10:28:49 |
| 合計ジャッジ時間 | 6,599 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
n = int(input())
a = [0] * (4 * 10 ** 5 + 1)
for _ 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))
hir355