Computer Programming Contest Preparation

ToolBox - Source for: 5/514/u3.in



/home/toolbox/public_html/solutions/5/514/u3.in
    1 5
    2 1 2 3 4 5
    3 5 4 1 2 3
    4 3 5 4 2 1
    5 3 4 2 5 1
    6 0
    7 6
    8 6 5 4 3 2 1
    9 0
   10 0
   11