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 1021. Sacrament of the Sum

why no true i think i did true
Posted by zzzlll 3 Jan 2007 22:39

var
say,say2:array [1..10000] of integer;
n,k,i,m,s:longint;
begin
 s:=0;
 readln(n);
    repeat
    k:=k+1;
    readln(say[k]);
    until k=n;
 readln(m);
    repeat
    i:=i+1;
    readln(say2[i]);
    until i=m;
 i:=0;
 k:=0;
    repeat
    k:=k+1;
       repeat
       i:=i+1;
       if (say[k]+say2[i])=10000  then s:=1;
       until s=1;
    until s=1;
  if s=1  then writeln('yes')
  else writeln('no');
 end.
Re: why no true i think i did true
Posted by fetetriste 14 Feb 2007 02:58
Maybe 'YES' instead of 'yes'?