first commit

This commit is contained in:
ytc1012
2025-11-18 18:08:48 +08:00
commit de90ad79ea
162 changed files with 28098 additions and 0 deletions

24
util/math.go Normal file
View File

@@ -0,0 +1,24 @@
package util
func MinInt(x, y int) int{
if x>y {
return y
}
return x
}
func MaxInt(x, y int) int{
if x<y {
return y
}
return x
}
func AbsInt(x int) int{
if x > 0{
return x
}else {
return -x
}
}