This documentation is automatically generated by online-judge-tools/verification-helper
#define PROBLEM "https://judge.yosupo.jp/problem/pow_of_formal_power_series"
#include <atcoder/fps>
#include <iostream>
using namespace atcoder;
using namespace std;
int main()
{
int n, m; cin >> n >> m;
fps a(n);
for (int i = 0; i < n; i++) {
int x; cin >> x;
a[i] = x;
}
for (auto x : a.pow_inplace(m)) {
cout << x.val() << endl;
}
return 0;
}
#line 1 "test/fps_pow.test.cpp"
#define PROBLEM "https://judge.yosupo.jp/problem/pow_of_formal_power_series"
#include <atcoder/fps>
#include <iostream>
using namespace atcoder;
using namespace std;
int main()
{
int n, m; cin >> n >> m;
fps a(n);
for (int i = 0; i < n; i++) {
int x; cin >> x;
a[i] = x;
}
for (auto x : a.pow_inplace(m)) {
cout << x.val() << endl;
}
return 0;
}