发个go的
package main
import "fmt"
func main() {
var in int
coins := []int{1, 4, 16, 64}
fmt.Scanf("%d", &in)
in = 1024 - in
ans := 0
for i:=3; i>=0; i-- {
ans += in / coins[i]
in %= coins[i]
}
fmt.Println(ans)
}