ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1009. K-ичные числа

A right answer
Послано VladG 24 окт 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.
Послано Pursue Success 25 апр 2003 20:25
But how do you cope with problem 1012 or 1013?
Послано Pursue Success 25 апр 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!!
Послано Pursue Success 25 апр 2003 20:28