Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unsigned from the changed value of modint.val() #178

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
Loading