Discussion:
standard input and output of a5p2
(too old to reply)
재국 김
2011-07-19 05:54:19 UTC
Permalink
Is there fixed standard input and output format?

what I am doing is just putting x1 y1 x2 y2 by keyboard, and output is
showed.

It gives correct outputs line by line, but when I submitted I got fail
for public test1.

x1 y1 x2 y2 ->input
C ->output
A
EOF
cs240
2011-07-19 14:48:52 UTC
Permalink
The input is of the form 'x1 x2 y1 y2' delimited by a single space on 1
line.

So I suggest using cin to read the input.

The output should be the values stored in each node in the range each on
it's own line.
--
Patrick Lee
CS240 Tutor
Loading...