Hi All,

I am trying to solve this problem and i am facing wrong answer for long
time, however i don't know why the solution is wrong.. i made many test
cases and all of them was correct so i need a help from your side.

The only needed help is what is the output for this test case if you
already solved this problem before.

3
16
9 33
34 5
9 8
29 8
5 3
2 3
4 5
20 85
100 98
55 32
1 9
1 10
2 19
3 22
7 30
4 50
15
0 0
1 0
2 0
0 1
1 1
2 1
0 2
1 2
2 2
0 3
1 3
2 3
0 4
1 4
2 4
7
3 5
4 5
5 5
6 5
7 5
8 9
8 5

My solution output for this test case is:

8 729647433
3 6
2 14

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to