This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub habara-k/ac-library
#define PROBLEM "https://judge.yosupo.jp/problem/inv_of_formal_power_series" #include <atcoder/fps> #include <iostream> using namespace atcoder; using namespace std; int main() { int n; cin >> n; fps a(n); for (int i = 0; i < n; i++) { int x; cin >> x; a[i] = x; } for (auto x : a.inv()) { cout << x.val() << endl; } return 0; }
#line 1 "test/fps_inv.test.cpp" #define PROBLEM "https://judge.yosupo.jp/problem/inv_of_formal_power_series" #include <atcoder/fps> #include <iostream> using namespace atcoder; using namespace std; int main() { int n; cin >> n; fps a(n); for (int i = 0; i < n; i++) { int x; cin >> x; a[i] = x; } for (auto x : a.inv()) { cout << x.val() << endl; } return 0; }