Skip to content

Commit

Permalink
確かに 0 割りですね
Browse files Browse the repository at this point in the history
  • Loading branch information
tatyam-prime committed Jun 1, 2024
1 parent e7577f0 commit 5eb32fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
.verify-helper/cache/
~/.cache/online-judge-tools/library-checker-problems/
~/.local/share/online-judge-tools/
save-always: true

- run: oj-verify all
env:
Expand Down
6 changes: 4 additions & 2 deletions test/math/ExtGCD.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ int main() {
ll x, y;
assert(extgcd(a, b, x, y) == g);
assert((i128)a * x + (i128)b * y == g);
assert(abs(x) + abs(y) <= abs((i128)x - b / g) + abs((i128)y + a / g));
assert(abs(x) + abs(y) <= abs((i128)x + b / g) + abs((i128)y - a / g));
if(g) {
assert(abs((i128)x) + abs((i128)y) <= abs((i128)x - b / g) + abs((i128)y + a / g));
assert(abs((i128)x) + abs((i128)y) <= abs((i128)x + b / g) + abs((i128)y - a / g));
}
}
}
puts("Hello World");
Expand Down

0 comments on commit 5eb32fa

Please sign in to comment.