結果
| 問題 | No.1137 Circles |
| ユーザー |
trineutron
|
| 提出日時 | 2020-07-31 01:46:43 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 95 ms / 2,000 ms |
| + 400µs | |
| コード長 | 402 bytes |
| 記録 | |
| コンパイル時間 | 1,468 ms |
| コンパイル使用メモリ | 216,708 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2026-10-19 07:07:51 |
| 合計ジャッジ時間 | 3,753 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge6_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
map<int, int> m;
for (int i = 0; i < n; i++) {
int x, r;
cin >> x >> r;
m[x - r]++;
m[x + r]--;
}
int incircle = 0, ans = 0;
for (auto t : m) {
int v = t.second;
incircle += v;
ans = max(ans, incircle);
}
cout << ans << endl;
}
trineutron