File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ import AtCoder.Convolution qualified as C
2
+ import Data.ByteString.Char8 qualified as BS
3
+ import Data.Proxy (Proxy (.. ))
4
+ import Data.Vector.Unboxed qualified as VU
5
+ import Util
6
+
7
+ -- verification-helper: PROBLEM https://judge.yosupo.jp/problem/convolution_mod
8
+ main :: IO ()
9
+ main = do
10
+ _ <- BS. getLine
11
+ a <- ints
12
+ b <- ints
13
+ let c = C. convolutionRaw (Proxy @ 998244353 ) a b
14
+ printBSB $ unwordsBSB $ VU. map fromIntegral c
Original file line number Diff line number Diff line change @@ -162,6 +162,11 @@ executable yosupo-biconnected-components-util
162
162
main-is : yosupo-biconnected-components-util.hs
163
163
build-depends : verify
164
164
165
+ executable yosupo-convolution
166
+ import : app-local
167
+ main-is : yosupo-convolution.hs
168
+ build-depends : verify
169
+
165
170
executable yosupo-cycle-detection
166
171
import : app-local
167
172
main-is : yosupo-cycle-detection.hs
You can’t perform that action at this time.
0 commit comments