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

Обсуждение задачи 1402. Коктейли

MY good solution!!!
Послано CHIDEMYAN SERGEY 28 апр 2007 19:02
[code deleted]

Edited by author 28.04.2007 19:02

Edited by author 28.04.2007 19:03

Edited by author 24.05.2007 00:35
Re: MY good solution!!!
Послано Marshal 21 май 2007 08:51
Mmmm.... Vry, very good solution! Especially I like this lines:

if(n==21)
cout<<"138879579704209680000";

So, as you say, YOUR solution is very simple, isn't it? ))))))))))))))))))))
Re: MY good solution!!!
Послано Marshal 21 май 2007 08:52
Oh, sorry, not simple. Easy.
Re: MY good solution!!!
Послано CHIDEMYAN SERGEY 21 май 2007 20:32
I hope you really enjoyed this solution!!!
I write this line:
if(n==21)
cout<<"138879579704209680000";
because unsigned __int64 doesn't enough to count it!!!
To count this test I used long arithmetic!!!
Re: MY good solution!!!
Послано Romko [Lviv NU] 21 май 2007 21:08
So, why you didn't use long arithmetic in your program?
Re: MY good solution!!!
Послано CHIDEMYAN SERGEY 22 май 2007 17:31
Because it do my program more big & because it works more slowly.If you want I can show my program with LA.

Edited by author 22.05.2007 17:37
Re: MY good solution!!!
Послано Romko [Lviv NU] 22 май 2007 20:06
Your program isn't interesting to me, I have already accepted this problem with long arithmetic, and it work fast enough.
Re: MY good solution!!!
Послано CHIDEMYAN SERGEY 22 май 2007 21:00
:)
Re: MY good solution!!!
Why you do it? Don't post your code!
Re: MY good solution!!!
Послано CHIDEMYAN SERGEY 24 май 2007 00:34
Sorry,of course!!!I'll delete it.