← Home
wrong answer on test 2
input:
 1
5 5
3 5
2 5
1 5
3 4
4 5

expected:
 1
5

got:
 2
4 5