This documentation is automatically generated by competitive-verifier/competitive-verifier
// @brief Conversion to Newton Basis
#define PROBLEM "https://judge.yosupo.jp/problem/conversion_from_monomial_basis_to_newton_basis"
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2")
#include "cp-algo/math/poly.hpp"
#include <bits/stdc++.h>
using namespace std;
using namespace cp_algo::math;
const int mod = 998244353;
using base = modint<mod>;
using polyn = poly_t<base>;
void solve() {
int n;
cin >> n;
polyn::Vector a(n), p(n);
copy_n(istream_iterator<base>(cin), n, begin(a));
copy_n(istream_iterator<base>(cin), n, begin(p));
polyn(a).to_newton(p).print(n);
}
signed main() {
//freopen("input.txt", "r", stdin);
ios::sync_with_stdio(0);
cin.tie(0);
int t;
t = 1;// cin >> t;
while(t--) {
solve();
}
}
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj_resolve/resolver.py", line 181, 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 252, in bundle
bundler.update(path)
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 327, in update
assert len(lines) == len(uncommented_lines)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
| Env | Name | Status | Elapsed | Memory |
|---|---|---|---|---|
| g++ | example_00 |
|
5 ms | 4 MB |
| g++ | max_random_00 |
|
617 ms | 61 MB |
| g++ | max_random_01 |
|
613 ms | 61 MB |
| g++ | max_random_02 |
|
612 ms | 61 MB |
| g++ | near_65536_00 |
|
283 ms | 31 MB |
| g++ | near_65536_01 |
|
286 ms | 31 MB |
| g++ | near_65536_02 |
|
286 ms | 31 MB |
| g++ | near_65536_03 |
|
322 ms | 36 MB |
| g++ | near_65536_04 |
|
335 ms | 36 MB |
| g++ | random_00 |
|
484 ms | 47 MB |
| g++ | random_01 |
|
509 ms | 50 MB |
| g++ | random_02 |
|
48 ms | 8 MB |
| g++ | small_00 |
|
5 ms | 4 MB |
| g++ | small_01 |
|
4 ms | 4 MB |
| g++ | small_02 |
|
4 ms | 4 MB |