MCPcopy Create free account
hub / github.com/atcoder/ac-library / main

Function main

test/example/convolution_practice.cpp:10–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8using mint = modint998244353;
9
10int main() {
11 int n, m;
12 scanf("%d %d", &n, &m);
13 vector<mint> a(n), b(m);
14 for (int i = 0; i < n; i++) {
15 int x;
16 scanf("%d", &x);
17 a[i] = x;
18 }
19 for (int i = 0; i < m; i++) {
20 int x;
21 scanf("%d", &x);
22 b[i] = x;
23 }
24
25 auto c = convolution(a, b);
26
27 for (int i = 0; i < n + m - 1; i++) {
28 printf("%d ", c[i].val());
29 }
30 printf("\n");
31
32 return 0;
33}

Callers

nothing calls this directly

Calls 2

convolutionFunction · 0.85
valMethod · 0.45

Tested by

no test coverage detected