Skip to content

Commit

Permalink
Create Kth_term_of_Linearly_Recurrent_Sequence.test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
noya2ruler committed Aug 21, 2024
1 parent 8d427bb commit b174c1d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/fps998244353/Kth_term_of_Linearly_Recurrent_Sequence.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#define PROBLEM "https://judge.yosupo.jp/problem/kth_term_of_linearly_recurrent_sequence"

#include"../../template/template.hpp"
#include"../../fps998244353/bostan_mori.hpp"

int main(){
int d; in(d);
ll k; in(k);
fps998244353 a(d), c(d); in(a, c);
c.insert(c.begin(), -1);
out(kth_term_linear(a, c, k));
}

0 comments on commit b174c1d

Please sign in to comment.