872 - Ordering

All about problems in Volume 8. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
SyFyKid
New poster
Posts: 26
Joined: Tue May 08, 2012 9:47 am

872 - Ordering

Post by SyFyKid »

Got 4 WAs to find out that the last line of output should be equal to an empty line... :evil:

Some help for others:
Input #1:

Code: Select all

1

A B C
A<B B<C C<A

Code: Select all

NO

Input #2:

Code: Select all

1

A B
A<B B<A

Code: Select all

NO

Good luck!
adek05
New poster
Posts: 1
Joined: Sun Jul 21, 2013 12:57 am

Re: 872 - Ordering

Post by adek05 »

No longer true. You don't need to print blank line after last testcase.
Zwergesel
New poster
Posts: 11
Joined: Tue Jul 27, 2010 7:29 pm

Re: 872 - Ordering

Post by Zwergesel »

That's correct.
Currently the judge only accepts a solution if there is NOT a blank line after the last output set.

Some I/O:

Code: Select all

8

A B F G
A<B B<F

G F B A
A<B B<F

A B F G
A<G

Z X I K
K<Z I<X

A B C D E F G
A<B B<A

A B C
A<B B<C C<A

Q V C E R H
V<E R<Q Q<H E<C H<V

Q V C E R H J
V<E R<Q Q<H E<C H<V

Code: Select all

A B F G
A B G F
A G B F
G A B F

A B F G
A B G F
A G B F
G A B F

A B F G
A B G F
A F B G
A F G B
A G B F
A G F B
B A F G
B A G F
B F A G
F A B G
F A G B
F B A G

I K X Z
I K Z X
I X K Z
K I X Z
K I Z X
K Z I X

NO

NO

R Q H V E C

J R Q H V E C
R J Q H V E C
R Q H J V E C
R Q H V E C J
R Q H V E J C
R Q H V J E C
R Q J H V E C
Post Reply

Return to “Volume 8 (800-899)”