1
0

refactor: migrate backend dt

This commit is contained in:
2026-07-15 20:33:14 +08:00
parent 9f7fd6e5e7
commit 7e335c51c6
2 changed files with 446 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ func Str2Bool(s string) bool {
// GCD returns the greatest common divisor of a and b via the Euclidean
// algorithm.
func GCD(a, b int) int {
func GCD(a, b int64) int64 {
for b != 0 {
a, b = b, a%b
}
@@ -88,6 +88,6 @@ func GCD(a, b int) int {
}
// LCM returns the least common multiple of a and b.
func LCM(a, b int) int {
func LCM(a, b int64) int64 {
return (a * b) / GCD(a, b)
}