Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2 ← There are 2 test cases
- 7 ← Starting Case 1
- 0 0
- 0 1
- 1 0
- 1 1
- 2 4
- 5 7
- 3 2
- 10 ← Starting Case 2
- 0 0
- -1 2
- 3 4
- 4 3
- -3 -2
- 2 -1
- 1 1
- -1 1
- 2 1
- 0 1
- Output
-
- Case #1
- 1
- Case #2
- 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement