Advertisement
Guest User

Untitled

a guest
May 28th, 2015
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1.  
  2. 2 ← There are 2 test cases
  3. 7 ← Starting Case 1
  4. 0 0
  5. 0 1
  6. 1 0
  7. 1 1
  8. 2 4
  9. 5 7
  10. 3 2
  11. 10 ← Starting Case 2
  12. 0 0
  13. -1 2
  14. 3 4
  15. 4 3
  16. -3 -2
  17. 2 -1
  18. 1 1
  19. -1 1
  20. 2 1
  21. 0 1
  22.  
  23.  
  24.  
  25. Output
  26.  
  27. 
  28.  
  29. Case #1
  30. 1
  31. Case #2
  32. 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement