This documentation is automatically generated by competitive-verifier/competitive-verifier
// competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/segment_add_get_min
#include <cstdint>
#include <iostream>
#include "data_structure/li_chao_tree.hpp"
int main(void) {
int n, q;
std::cin >> n >> q;
li_chao_tree lct(-1000000000, 1000000001);
while (n--) {
std::int64_t l, r, a, b;
std::cin >> l >> r >> a >> b;
lct.add_segment(a, b, l, r);
}
while (q--) {
int c;
std::cin >> c;
if (c == 0) {
std::int64_t l, r, a, b;
std::cin >> l >> r >> a >> b;
lct.add_segment(a, b, l, r);
} else {
std::int64_t x;
std::cin >> x;
auto ans = lct.query(x);
if (ans == lct.inf) std::cout << "INFINITY\n";
else std::cout << ans << '\n';
}
}
return 0;
}
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/resolver.py", line 291, in resolve
bundled_code = language.bundle(path, basedir=basedir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus.py", line 242, in bundle
bundler.update(path)
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 479, in update
self._resolve(pathlib.Path(included), included_from=path)
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 286, in _resolve
raise BundleErrorAt(path, -1, "no such header")
competitive_verifier.oj.verify.languages.cplusplus_bundle.BundleErrorAt: data_structure/li_chao_tree.hpp: line -1: no such header
| Env | Name | Status | Elapsed | Memory |
|---|---|---|---|---|
| g++ | all_intersect_00 |
|
678 ms | 133 MB |
| g++ | all_twice_00 |
|
1319 ms | 325 MB |
| g++ | example_00 |
|
3 ms | 3 MB |
| g++ | example_01 |
|
2 ms | 4 MB |
| g++ | max_random_00 |
|
1830 ms | 463 MB |
| g++ | max_random_01 |
|
1838 ms | 464 MB |
| g++ | max_random_02 |
|
1643 ms | 463 MB |
| g++ | no_output_00 |
|
1809 ms | 593 MB |
| g++ | random_00 |
|
1176 ms | 330 MB |
| g++ | random_01 |
|
1318 ms | 362 MB |
| g++ | random_02 |
|
719 ms | 199 MB |
| g++ | small_00 |
|
3 ms | 4 MB |
| g++ | small_01 |
|
2 ms | 4 MB |