competitive-programming-library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub ageprocpp/competitive-programming-library

:heavy_check_mark: test/yosupo/exp_of_formal_power_series.test.cpp

Depends on

Code

#define PROBLEM "https://judge.yosupo.jp/problem/exp_of_formal_power_series"
#include "../../basic/template.hpp"
#include "../../math/StaticModInt.hpp"
#include "../../math/FormalPowerSeries.hpp"

using ModInt = StaticModInt<998244353>;
using FPS = FormalPowerSeries<ModInt>;
int main() {
	int N;
	FPS vec;
	std::cin >> N >> vec;
	std::cout << vec.exp() << std::endl;
}
Back to top page