Input:
Code: Select all
0
AA BB
1
AA BB
CC BB
1
AA BB
GG PP
2
AA BB
BB CC
GG GG
4
AB JK
PO LK
QW PO
LK AB
AB PO
Code: Select all
No route
No route
No route
AB LK
LK PO
Code: Select all
0
AA BB
1
AA BB
CC BB
1
AA BB
GG PP
2
AA BB
BB CC
GG GG
4
AB JK
PO LK
QW PO
LK AB
AB PO
Code: Select all
No route
No route
No route
AB LK
LK PO
brianfry713 wrote:Yes it matters how many newlines you print. Don't count on ever getting PE. On a lot of problems extra or missing whitespace will give you WA.
Code: Select all
2 2
10 15
5 15
Code: Select all
1
1
Code: Select all
1
2
Code: Select all
22
0
0
22
suneast wrote:faint
I think the judge's data have changed....and the output should beCode: Select all
5 1 6 1 4 5 6 3 9 2 6 8 6 1 7 5 1 6 1 4 5 6 3 9 2 6 8 6 1 7
hope I am help to you allCode: Select all
22 0 0 0 22
brianfry713 wrote:You should print a newline at the end of the last line on most problems.
Code: Select all
1
5
# $
A 0
D #
* B
@ F
3
A D
h &
0 8
Code: Select all
NO