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 1012. K-based Numbers. Version 2

Funny error
Posted by Lukom 21 Jul 2005 00:52
I make problem 1012 with long ariphmetic, but got WA #6
During some time I searched an error, and she appeared interesting:
in each slot of array I wrote down 7 numbers. For example number 76192801046017773930 (n=20, k=10) in my array looked so:
a[]={7773930, 104601, 761928, 0, ... 0}
but as you see the second (104601) number has 6 numbers: it must look so 0104601, and the first zero did not hatch. Through this my number looked so 7619281046017773930.

errors are different... :P
Re: Funny error
Posted by acmkx 26 Jul 2005 11:58
Thank you very much!
With your help,I get AC now!
Re: Funny error
Posted by darklord 11 Oct 2011 18:26
Thanks a lot,at the first time I want decrease the cost of memory so I used each four digits to represent one digit,but this compression also take the number a mistake,when it should get an output for 0146,the program output an 146,it lost some digits~~~~~
Re: Funny error
Posted by bill125 19 Jan 2012 14:50
THX!