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

Aitbayev Madiyar WA with test 6 [5] // Problem 1493. One Step from Happiness 19 Oct 2006 22:44
who can tell me test 6?
Alex TKTL Re: WA with test 6 [4] // Problem 1493. One Step from Happiness 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
Aitbayev Madiyar Re: WA with test 6 // Problem 1493. One Step from Happiness 29 Oct 2006 07:57
But I test it and I have Yes.
Akerman Re: WA with test 6 [2] // Problem 1493. One Step from Happiness 4 Dec 2006 01:31
How come for 999999 output will be "Yes"? It is already a lucky number.
Kibets Alexander (KHAI) Re: WA with test 6 [1] // Problem 1493. One Step from Happiness 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";
Andreich Re: WA with test 6 // Problem 1493. One Step from Happiness 16 Feb 2007 20:07
Respect!! BUT Wy??