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 1059. Expression

CleverKid Why n=2 it isn't ... [6] // Problem 1059. Expression 12 Feb 2002 21:59
0
X
*
1
1
X
*
+
+

Why it isn't this?
TheBlaNK Re: Why n=2 it isn't ... [5] // Problem 1059. Expression 14 Feb 2002 06:48
i think it's wrong.
isn't it?
CleverKid Re: Why n=2 it isn't ... [4] // Problem 1059. Expression 14 Feb 2002 13:14
> i think it's wrong.
> isn't it?

no,it's right
i've got ac:)
Jizhu3 AC <> Right // Problem 1059. Expression 18 Feb 2002 18:02
ECUST Multistar Where is 2 // Problem 1059. Expression 21 Feb 2002 19:12
> > i think it's wrong.
> > isn't it?
>
> no,it's right
> i've got ac:)
> > i think it's wrong.
> > isn't it?
>
> no,it's right
> i've got ac:)

but then y dont they accept this?

program expression;
var i,j:integer;

begin
readln(j);
writeln('0');
for i := 1 to j do begin
writeln('x');
writeln('*');
writeln(i);
writeln('+');
end;
end.

this is wrong answer but the output is the same for n=1 or 2
> > > i think it's wrong.
> > > isn't it?
> >
> > no,it's right
> > i've got ac:)
>
> but then y dont they accept this?
>
> program expression;
> var i,j:integer;
>
> begin
> readln(j);
> writeln('0');
> for i := 1 to j do begin
> writeln('x');
> writeln('*');
> writeln(i);
> writeln('+');
> end;
> end.
>
> this is wrong answer but the output is the same for n=1 or 2

p.s. it doesnt accept whether the x is upper or lower case
>
>