あまりを管理するオートマトン(remainder.hpp)
(dp/automaton/remainder.hpp)
これいるか? nextは、数字の右側に桁を加えるような操作を考えている。 ‘998’に’2’を与えてnextすると’9982’に対応する状態が返ってくるイメージ。
わざわざライブラリにするほどのものでもなくね???
ライブラリにするほど複雑でもないから、1から書けばいいし、ライブラリにするなら「よく出るオートマトンは事前に書いておく」かつ「オートマトンのAND合成もライブラリにある」という状態が望ましいけど、
AND合成のオートマトンは書くの難しいし、どうせなら2つだけじゃなくて任意個の合成もできたほうが便利だけどそれもやっぱり難しいしで、オートマトンをライブラリにして有効に使うのは難しそう。
Depends on
Verified with
Code
Back to top page