Complete rework of the queueing system. Adding some more helper functions in maths.c. FInally, adding valgrind (a debugger) in the nix flaes file.
Stergios Upload Compile Checker / Explore-Gitea-Actions (push) Successful in 16s
Stergios Upload Compile Checker / Explore-Gitea-Actions (push) Successful in 16s
This commit is contained in:
9 files changed
+79
-62
No files matched your search
+2
-2
@@ -120,7 +120,7 @@ int main() {
|
||||
int128_t gcd = gcd3(a0, b0, c0);
|
||||
int128_t a = a0 / gcd, b = b0 / gcd, c = c0 / gcd;
|
||||
|
||||
int128_t greater = b >= c ? b : c;
|
||||
int128_t greater = max2(b, c);
|
||||
LIMIT = a >= greater ? a * greater : b * c;
|
||||
|
||||
solve(&sum, a, b, c, print_mode);
|
||||
@@ -145,7 +145,7 @@ int main() {
|
||||
int128_t ra = a0 / gcd, rb = b0 / gcd, rc = c0 / gcd;
|
||||
|
||||
if (is_new_root(ra, rb, rc)) {
|
||||
int128_t greater = rb >= rc ? rb : rc;
|
||||
int128_t greater = max2(rb, rc);
|
||||
LIMIT = ra >= greater ? ra * greater / 2 : rb * rc / 2;
|
||||
solve(&sum, ra, rb, rc, print_mode);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user