Page 7 of 19

PE why???

Posted: Sun Feb 04, 2007 8:58 am
by Oronno
I have done this proble, and there is no space after last output.
But i still getr the presentation error.
Why???????
check it.

Code: Select all

Code has removed

Posted: Sun Feb 04, 2007 9:17 am
by helloneo
You forgot '\n' at the end..
Just try to follow TripShock's output format above..

thanks

Posted: Sun Feb 04, 2007 11:31 am
by Oronno
Ohhh...thanks.
I get AC.

Posted: Sun Feb 04, 2007 9:17 pm
by john_locke
this problem drove me toward madness i got 20 presentation errors from judge tried all the combinations after reading previous post so plzzz help me
DELETED after -AC
thanx




488 Why PE

Posted: Thu Feb 15, 2007 11:38 am
by Waddle
The code has been removed.

Posted: Thu Feb 15, 2007 2:04 pm
by helloneo
Don't make a new thread if there is one already..

Read more carefully..
http://online-judge.uva.es/board/viewtopic.php?t=10991

Posted: Thu Feb 15, 2007 4:05 pm
by Waddle
I'm sorry that I can only understand C.
But I thought getting a PE has no concern with thread.

Posted: Sat Feb 17, 2007 8:10 am
by Debashis Maitra
try sample input output of that link

try to print your output in a file

this may help you

you can easly find old threads using search

Posted: Sun Feb 18, 2007 5:24 pm
by Waddle
MY INPUT:
2

3
2

4
3


MY OUTPUT:
1\n
22\n
333\n
22\n
1\n
\n
1\n
22\n
333\n
22\n
1\n
\n
1\n
22\n
333\n
4444\n
333\n
22\n
1\n
\n
1\n
22\n
333\n
4444\n
333\n
22\n
1\n
\n
1\n
22\n
333\n
4444\n
333\n
22\n
1\n
\n

Posted: Tue Feb 20, 2007 1:53 pm
by linux
There's an extra newline. Omit it as stated in problem. Hope AC. :D

Posted: Thu Feb 22, 2007 5:06 am
by Waddle
Like this?

\n
1\n
22\n
333\n
22\n
1\n
\n

488 get ac

Posted: Thu Feb 22, 2007 12:36 pm
by linux
Yes. All your outputs are ok except the last.

Code: Select all

NOTE: There is a blank line after each separate waveform, excluding the last one.

Posted: Tue Feb 27, 2007 6:22 pm
by Waddle
I still got PE
I almost gave up.
I think i have a blank line at the end of the last triangle.
Did you see my output ?

The Last:
1\n
22\n
333\n
22\n
1\n
\n --->you mean this,right?

Thank you.

Posted: Thu Mar 01, 2007 7:16 am
by linux
No, the output would be:

Code: Select all

1\n 
22\n 
333\n 
22\n 
1\n 
Also check this:

Code: Select all

INPUT: 
2 

3 
2 

4 
3 


OUTPUT: 
1\n 
22\n 
333\n 
22\n 
1\n 
\n 
1\n 
22\n 
333\n 
22\n 
1\n 
\n 
1\n 
22\n 
333\n 
4444\n 
333\n 
22\n 
1\n 
\n 
1\n 
22\n 
333\n 
4444\n 
333\n 
22\n 
1\n 
\n 
1\n 
22\n 
333\n 
4444\n 
333\n 
22\n 
1\n

Posted: Thu Mar 01, 2007 1:20 pm
by Waddle
I GOT AC~~~
thanks everybody~