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

Обсуждение задачи 1148. Building Towers

Could anybody tell my why does my program get ML?(+)
Послано shitty.Mishka 4 фев 2002 15:07
I tried to submit my program  with Comp or Extended and got WA, so I
used long arifmetics, and now I get ML even if I put the maximal
length of the number to be 5 digits!

Here's my program:

[deleted by moderator]

Edited by moderator 11.04.2004 01:33
Re: Could anybody tell my why does my program get ML?(+)
Послано <P><P><P> 6 фев 2002 01:43
It really uses small memory, and solution with comp(extended) type
is good (as I think) too, but..
Try this test case:
302 60 10
All the error of the algorithm is TL! (maybe, dynamic?..)
Re: Could anybody tell my why does my program get ML?(+)
Послано Benone Sinulescu aka Benny 15 авг 2002 01:54
The number of towers is less than 2^59 (each new level is either +1
or -1). Comp/__int64 has got 64 bits, so long numbers shouldn't be
needed.

>
> [deleted by moderator]

Edited by moderator 11.04.2004 01:34