This is my competitive programming library.
\(O(V^3)\)
ソースコードを見る
初期化: \(O(N)\)
クエリ: \(O(\log N)\)
\(O(N \log N)\)