Computer Programming Contest Preparation

ToolBox - Source for: 3/340/a.in



/home/toolbox/public_html/solutions/3/340/a.in
    1 4
    2 1 3 5 5
    3 1 1 2 3
    4 4 3 3 5
    5 6 5 5 1
    6 6 1 3 5
    7 1 3 5 5
    8 0 0 0 0
    9 10
   10 1 2 2 2 4 5 6 6 6 9
   11 1 2 3 4 5 6 7 8 9 1
   12 1 1 2 2 3 3 4 4 5 5
   13 1 2 1 3 1 5 1 6 1 9
   14 1 2 2 5 5 5 6 6 6 7
   15 0 0 0 0 0 0 0 0 0 0
   16 0
   17