|
|
вернуться в форумWhat's Wrong With C++ I wrote AC solution on C++ but it failed on #5 test. Then I rewrite this code, but on Pascal then I got AC Can anybody tell me why solutions on C++ fail tests, but on Pascal it pass easily?!?!?! P.S. I'm Sorry For My Bad English Edited by author 21.11.2006 07:55 Re: What's Wrong With C++ May be your C++ solution wrong? Re: What's Wrong With C++ May be you need to use __int64 type in your C++ program? Re: What's Wrong With C++ У меня та же проблема! Задача на Паскале проходит все тесты, но переписав на С++, получаю WA 5! Это уму не постежимо! I have the same problem! Problem writed on Pascal pass all of tests, but only I`ve rewrite it on C++, I`ve get WA 5! It is UNBELIVIBLE! Edited by author 23.04.2007 17:51 Edited by author 23.04.2007 17:51 Re: What's Wrong With C++ long long N; printf("%lld", N) - works wrong there! But if I write printf("%0.lf", (double)N) - everything gets fine. Still strange to me why it is so. Re: What's Wrong With C++ printf("%I64d", N) - works (I is capital "i") Re: What's Wrong With C++ use int64 and it will be ok Edited by author 09.10.2008 11:18 Edited by author 09.10.2008 11:18 |
|
|