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 1353. Milliard Vasya's Function

WA2 or is it?
Posted by alpha900i 3 Jun 2013 16:41
Ok, so my program gets WA2. And if I add code like
int t2=45;
if(n==2) cout << t2 << endl;
I get WA3. Funny fact though - "45" is answer my program always gave for n==2. So we have two different "45", and only one of them is good as answer. Somehow cout << s(9,n) << endl; doesn't work well, even if s(9,n)=45. Someone had problems of this kind?
Re: WA2 or is it?
Posted by alpha900i 3 Jun 2013 17:05
Ok-key, my bad. Had some good little out-of-array code in my check function, so it spoiled everything.