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 1009. K-based Numbers

A right answer
Posted by VladG 24 Oct 2002 15:48
I didn't found how to evaluate the result exactly with a close
expression, but I just count all the results with loops and a
recursion.
For some of an input data it took more than 2 secs., therefore I ran
my program in offline for all possible input values.
(Thanks that there were not so many.)
The program running took a couple of minutes, then I collected all
the found results as an array and submitted the program that just
looked for the appropriate entry in the array and returned the right
answer!!!
It's really a good idea,when you can't get the simpler one.
Posted by Pursue Success 25 Apr 2003 20:25
But how do you cope with problem 1012 or 1013?
Posted by Pursue Success 25 Apr 2003 20:26
But how do you cope with problem 1012 or 1013?Also submit a table???Just search the table will let you get TLE!!
Posted by Pursue Success 25 Apr 2003 20:28