ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1698
. Square Country 5
Some tests and hint
Posted by
Gleb
2 Jun 2018 20:55
n=100: 168
n=555: 984
n=1000: 1785
n=1100: 1963
n=2000: 3598
I solved the equation x(x-1) % 10^i = 0 for every i>1 and i<=n by linear algorithm, using roots for i-1.
© 2000–2024
Timus Online Judge Team
. All rights reserved.