Skip to content

Commit d9a2356

Browse files
modify post
1 parent 854ca02 commit d9a2356

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_posts/2025-01-07-abc349-f.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: 【精進2】ABC349-F
33
date: 2025-1-07 15:16:00 0900
4+
last_modified_at: 2025-01-08 13:44:00 +0800
45
categories: [競技プログラミング]
56
tags: [AtCoder,ABC,包除原理,精進]
67
math : true
@@ -86,7 +87,8 @@ int main() {
8687

8788
## 別解
8889
[ユーザー解説](https://atcoder.jp/contests/abc349/editorial/9794)通りにやってみる。
89-
$ Z^{-1}(Z(X)\cdot Z(Y))_n= \sum _{\mathrm{lcm}(i,j)=n}X_i Y_j $ が重要。$(Z(X_1)\cdot Z(X_2)\cdot\dots \cdot Z(X_N))_n = 2^{c_n} $となる$c$をゼータ変換で求めて左辺の列をメビウス変換する。
90+
$ Z^{-1}(Z(X)\cdot Z(Y))_n= \sum _{\mathrm{lcm}(i,j)=n}X_i Y_j $ が重要。$(Z(X_1)\cdot Z(X_2)\cdot\dots \cdot Z(X_N))_n = 2^{c_n} $となる$c$をゼータ変換で求めて左辺の列をメビウス変換する。
91+
(追記)ついでにlibrary checkerのgcd convolution,lcm convolutionを解いてライブラリに追加しておいた。
9092
```cpp
9193
#include "/home/y_midori/cp/library/template.hpp"
9294
#include "data_structure/hash-map-variable-length.hpp"

0 commit comments

Comments
 (0)