cp-library

競技プログラミング用 C++ ライブラリ

View the Project on GitHub qandori/cp-library

:heavy_check_mark: test/fps_interpolate.test.cpp

test/fps_interpolate.test.cpp · GitHub で見る

検証問題

依存ライブラリ

コード

#define PROBLEM "https://judge.yosupo.jp/problem/polynomial_interpolation"
#include "fps/interpolate.hpp"
#include "fixtures/fps_small_io.hpp"

int main() {
	FpsInput input;
	FpsOutput output;
	int n = 0; input.read(n);
	auto xs = read_series<fps>(input, n), ys = read_series<fps>(input, n);
	write_series(output, interpolate(xs, ys));
}
Back to top page