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

Why WA6?
Posted by super vladutz 15 Jun 2005 18:05
My program works for n=500, n=202 but i get wa on test 6

Edited by author 15.06.2005 18:06
Re: Why WA6?
Posted by Aracon 26 May 2007 19:41
My program works on ALL tests in [5; 500] (checked with short solution from this forum), but - WA6...
Re: Why WA6?
Posted by PS (NULP) 24 Jun 2007 16:10
I had WA6 also because "int" is not so long as need for n>300.
But if use Int64, I had WA7.
Re: Why WA6?
Posted by acboy8 10 Jul 2007 04:59
i meet this questions too but use long long as the substitute of int i get accept so you shuold use long long and you will be accepted!
Re: Why WA6?
Posted by jagatsastry 23 Jan 2008 18:24
Use long long instead of int people
try this test case if you're still in doubt

input: 500
output should be 732986521245023


Edited by author 23.01.2008 18:25