Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion atcoder/convolution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void butterfly_inv(std::vector<mint>& 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();
;
}
Expand Down
4 changes: 2 additions & 2 deletions atcoder/modint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down Expand Up @@ -165,7 +165,7 @@ template <int id> 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++;
Expand Down