Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 520f362

Browse files
committed
remove unsigned from the changed value of modint.val()
1 parent fe9b6fc commit 520f362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎atcoder/modint.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct static_modint : internal::static_modint_base {
4848
_v = (unsigned int)(v % umod());
4949
}
5050

51-
unsignedint val() const { return _v; }
51+
int val() const { return _v; }
5252

5353
mint& operator++() {
5454
_v++;
@@ -165,7 +165,7 @@ template <int id> struct dynamic_modint : internal::modint_base {
165165
_v = (unsigned int)(v % mod());
166166
}
167167

168-
unsignedint val() const { return _v; }
168+
int val() const { return _v; }
169169

170170
mint& operator++() {
171171
_v++;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /