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 1493. One Step from Happiness

WA with test 6
Posted by Aytbaev Madiyar TKTL 19 Oct 2006 22:44
who can tell me test 6?
Re: WA with test 6
Posted by Alexander Prokazyuk (TKTL) 22 Oct 2006 12:27
Madicon Just Try number 999999
out put will be 'Yes' (000000)
and read with string...


Edited by author 22.10.2006 12:28

Edited by author 22.10.2006 12:30
Re: WA with test 6
Posted by Aytbaev Madiyar TKTL 29 Oct 2006 07:57
But I test it and I have Yes.
Re: WA with test 6
Posted by Akerman(Fiz-Mat) 4 Dec 2006 01:31
How come for 999999 output will be "Yes"? It is already a lucky number.
Re: WA with test 6
Posted by B@cZ 1 Feb 2007 06:44
Here in what a problem, check it:

r = (a[1]+a[2]+a[3])-(a[4]+a[5]+a[6]);
if (r=1 && a[6]!=9) cout<<"Yes";
if (r=-1 && a[6]!=0) cout<<"Yes";
else cout<<"No";
Re: WA with test 6
Posted by Andreich 16 Feb 2007 20:07
Respect!! BUT Wy??