← Home
For problem statement at 0-999/500-599/550-559/552/problemB.txt this is a correct solution, but verifier at 0-999/500-599/550-559/552/verifierB.go ends with All tests passed can you fix the verifier? package main

import "fmt"

func main() {
	var n int64
	fmt.Scan(&n)
	var ans int64
	for p := int64(1); p <= n; p *= 10 {
		ans += n - p + 1
	}
	fmt.Print(ans)
}