ENG  RUSTimus 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 1206. Sum of Digits of the Sum of Numbers

WA5...
Posted by Phil 18 Oct 2011 18:00
I used long arithmetics and calculated "36*pow(55,k-1);". But I have WA5. Please, say why or give that test...
Re: WA5...
Posted by Vetriti 11 Feb 2013 19:48
Maybe you write wrong long arithmetics. I think you forgot leading zeroes.
I had the same mistake.
Use this test:
9
3014421764062500
Sorry for my poor English.