Computer Programming Contest Preparation

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



/home/toolbox/public_html/solutions/5/514/u1.in
    1 5
    2 1 2 3 4 5
    3 5 4 1 2 3
    4 1 4 3 2 5
    5 3 4 2 5 1
    6 3 4 2 1 5
    7 4 3 5 2 1
    8 0
    9 3
   10 1 2 3
   11 1 3 2
   12 2 1 3
   13 2 3 1
   14 3 1 2
   15 3 2 1
   16 0
   17 4
   18 1 2 3 4
   19 1 2 4 3
   20 1 3 2 4
   21 1 3 4 2
   22 1 4 2 3
   23 1 4 3 2
   24 2 1 3 4
   25 2 1 4 3
   26 2 3 1 4
   27 2 3 4 1
   28 2 4 1 3
   29 2 4 3 1
   30 3 1 2 4
   31 3 1 4 2
   32 3 2 1 4
   33 3 2 4 1
   34 3 4 1 2
   35 3 4 2 1
   36 4 1 2 3
   37 4 1 3 2
   38 4 2 1 3
   39 4 2 3 1
   40 4 3 1 2
   41 4 3 2 1
   42 0
   43 10
   44 5 7 10 9 8 6 4 3 2 1
   45 5 6 4 8 7 3 2 9 1 10
   46 0
   47 0
   48 
   49