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 1402. Cocktails

MY good solution!!!
Posted by CHIDEMYAN SERGEY 28 Apr 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!!!
Posted by Marshal 21 May 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!!!
Posted by Marshal 21 May 2007 08:52
Oh, sorry, not simple. Easy.
Re: MY good solution!!!
Posted by CHIDEMYAN SERGEY 21 May 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!!!
Posted by Romko [Lviv NU] 21 May 2007 21:08
So, why you didn't use long arithmetic in your program?
Re: MY good solution!!!
Posted by CHIDEMYAN SERGEY 22 May 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!!!
Posted by Romko [Lviv NU] 22 May 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!!!
Posted by CHIDEMYAN SERGEY 22 May 2007 21:00
:)
Re: MY good solution!!!
Why you do it? Don't post your code!
Re: MY good solution!!!
Posted by CHIDEMYAN SERGEY 24 May 2007 00:34
Sorry,of course!!!I'll delete it.