Renaming bfs to solver. Adding fclose so the file doesn't remain open after use. Finally creating min2 and min3 functions.

This commit is contained in:
metallaxis committed 2026-07-03 13:43:06 +03:00
1 parent 7decb09e2f
commit 5145874485
5 files changed
+48 -14

No files matched your search

+17
View File
@@ -34,6 +34,23 @@ int128_t gcd3(int128_t a, int128_t b, int128_t c);
*/
int128_t gcd2(int128_t a, int128_t b);
/**
* @brief Returns the minimum of 3 128 bit integers
* @param a The first integer
* @param b The second integer
* @param c The third integer
* @return The minimum of the three integers
*/
int128_t min3(int128_t a, int128_t b, int128_t c);
/**
* @brief Returns the minimum of 2 128 bit integers
* @param a The first integer
* @param b The second integer
* @return The minimum of the two integers
*/
int128_t min2(int128_t a, int128_t b);
/**
* @brief Returns the absolute value of a 128 bit integer
* @param x The integer to get the absolute value of