|  | 
|  | 
| back to board | What is wrong?ADMINS?Why WA on test #6 var a:array[1..6]of integer;i:integer;
 g:char;
 s:string;
 begin
 read(s);
 for i:=1 to 6 do
 val(s[i],a[i],g);
 if (a[6]<>9) and
 ((a[1]+a[2]+a[3]=a[4]+a[5]+a[6]+1)or
 (a[1]+a[2]+a[3]=a[4]+a[5]+a[6]-1))then
 writeln('Yes') else writeln('No');
 end.
Re: What is wrong?ADMINS?Why WA on test #6 Posted by HM2P33  5 Feb 2013 00:07try this case:
 550009
 
 answer should be "No"
 | 
 | 
|