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 1017. Staircases

For those with C/C++ WA on test#6
Posted by Linas 31 Oct 2008 15:39
Check if you're not using printf to output long long integers, it will not work on the server. So instead of:
printf("%lld\n", count);
do:
cout << count << endl;

I got WA on test 6 due to this problem.
Re: For those with C/C++ WA on test#6
Posted by wecing 30 Mar 2010 19:02
I think for those who use C, %I64d is needed but not %lld, which only works on unix/linux. It's said that cout/cin in C++ is very very very slow when doing massive i/o work, especially for long long data.
Re: For those with C/C++ WA on test#6
Posted by Sergey Naumenko (MUCTR) 30 Mar 2013 01:45
the same code gives
WA on test#6 with G++ 4.7.2
AC on VC++
Re: For those with C/C++ WA on test#6
Posted by Test 7 Jun 2013 08:40
also AC with G++ 11