|
|
back to boardMY good solution!!! [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!!! 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!!! So, why you didn't use long arithmetic in your program? Re: MY good solution!!! 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!!! 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!!! :) Re: MY good solution!!! Why you do it? Don't post your code! Re: MY good solution!!! Sorry,of course!!!I'll delete it. |
|
|