|
|
back to boardShow all messages Hide all messages[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 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? )))))))))))))))))))) Oh, sorry, not simple. Easy. 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!!! So, why you didn't use long arithmetic in your program? 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 Your program isn't interesting to me, I have already accepted this problem with long arithmetic, and it work fast enough. Why you do it? Don't post your code! Sorry,of course!!!I'll delete it. |
|
|