From 520f3623d5b1f97a178e916d5df7788b8924e6eb Mon Sep 17 00:00:00 2001 From: Kohei Morita Date: Tue, 18 Jun 2024 21:24:32 -0700 Subject: [PATCH 1/3] remove unsigned from the changed value of modint.val() --- atcoder/modint.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atcoder/modint.hpp b/atcoder/modint.hpp index cfcf815..44f968b 100644 --- a/atcoder/modint.hpp +++ b/atcoder/modint.hpp @@ -48,7 +48,7 @@ struct static_modint : internal::static_modint_base { _v = (unsigned int)(v % umod()); } - unsigned int val() const { return _v; } + int val() const { return _v; } mint& operator++() { _v++; @@ -165,7 +165,7 @@ template struct dynamic_modint : internal::modint_base { _v = (unsigned int)(v % mod()); } - unsigned int val() const { return _v; } + int val() const { return _v; } mint& operator++() { _v++; From c3860038dcd1dcbe05c74181f381b4eb6aa33bbb Mon Sep 17 00:00:00 2001 From: Kohei Morita Date: Tue, 18 Jun 2024 21:28:06 -0700 Subject: [PATCH 2/3] update actions --- .github/workflows/document.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/document.yml b/.github/workflows/document.yml index a2f9b23..1a9a93d 100644 --- a/.github/workflows/document.yml +++ b/.github/workflows/document.yml @@ -31,9 +31,9 @@ jobs: VERSION: ${{ steps.version.outputs.VERSION_NAME }} - name: Publish to github pages if: ${{ github.event_name == 'push' }} - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: - deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./tools/generated destination_dir: ${{ steps.version.outputs.VERSION_NAME }} - name: Upload zip From 748a56490fab5b6486240f5dd4d84cecc5fe508b Mon Sep 17 00:00:00 2001 From: Kohei Morita Date: Tue, 18 Jun 2024 21:32:19 -0700 Subject: [PATCH 3/3] fix --- atcoder/convolution.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atcoder/convolution.hpp b/atcoder/convolution.hpp index 20a9355..de3f1ae 100644 --- a/atcoder/convolution.hpp +++ b/atcoder/convolution.hpp @@ -130,7 +130,7 @@ void butterfly_inv(std::vector& a) { auto r = a[i + offset + p]; a[i + offset] = l + r; a[i + offset + p] = - (unsigned long long)(mint::mod() + l.val() - r.val()) * + (unsigned long long)((unsigned int)(l.val() - r.val()) + mint::mod()) * irot.val(); ; }