|
|
back to boardWA with test 6 who can tell me test 6? Re: WA with test 6 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 But I test it and I have Yes. Re: WA with test 6 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 Respect!! BUT Wy?? |
|
|