package main import . "fmt" import . "sort" func main() { var a,b int Scan(&a,&b) c:=Search(a,func(i int)bool{ x:=int64(i+1)*int64(b) y:=int64(i)*int64(b) z:=int64(a) return x+y-z<=int64(b) }) Println(c*b) }