This documentation is automatically generated by competitive-verifier/competitive-verifier
// competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/line_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 a, b;
std::cin >> a >> b;
lct.add_line(a, b);
}
while (q--) {
int c;
std::cin >> c;
if (c == 0) {
std::int64_t a, b;
std::cin >> a >> b;
lct.add_line(a, b);
} else {
std::int64_t x;
std::cin >> x;
std::cout << lct.query(x) << '\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++ | example_00 |
|
3 ms | 4 MB |
| g++ | half_00 |
|
427 ms | 4 MB |
| g++ | hand_max_00 |
|
628 ms | 13 MB |
| g++ | max_random_00 |
|
452 ms | 4 MB |
| g++ | max_random_01 |
|
452 ms | 3 MB |
| g++ | max_random_02 |
|
436 ms | 3 MB |
| g++ | no_output_00 |
|
334 ms | 4 MB |
| g++ | parabola_random_00 |
|
638 ms | 13 MB |
| g++ | parabola_random_01 |
|
577 ms | 13 MB |
| g++ | parabola_random_02 |
|
550 ms | 13 MB |
| g++ | random_00 |
|
338 ms | 4 MB |
| g++ | random_01 |
|
331 ms | 4 MB |
| g++ | random_02 |
|
216 ms | 3 MB |
| g++ | small_00 |
|
2 ms | 3 MB |
| g++ | small_01 |
|
2 ms | 3 MB |