Skip to content

Commit

Permalink
Create CountingEulerianCircuits.test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
noya2ruler committed Jul 27, 2024
1 parent 2225b1e commit 95bd293
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/math/CountingEulerianCircuits.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#define PROBLEM "https://judge.yosupo.jp/problem/counting_eulerian_circuits"

#include"../../template/template.hpp"
#include"../../math/euler_circuit_counting.hpp"
#include"../../utility/modint.hpp"
using mint = modint998244353;

int main(){
int n, m; in(n,m);
vector<tuple<int,int,ll>> es(m);
rep(i,m){
int u, v; in(u,v);
es[i] = {u,v,1};
}
out(euler_circuit_counting<mint>(n,es));
}

0 comments on commit 95bd293

Please sign in to comment.