2015
04-13

# Counting Grids

Small Ming is a lazy middle school student, one day, when he’s doing his physics experiment, the teacher wants them to estimate the size of the molecule by Film Method(You Mo Fa). As is known to all, the experiment requires students to draw the outline of the Film(You MO). But Ming is so lazy that he doesn’t want to draw the outline precisely. So he chooses some points on the grid plane whose coordinates are integers, and promise that , after connecting these points with segments in clock-wise, you can get a convex polygon P which contains the whole Film(You Mo). Lazy Ming wants to use polygon P represented the Film to complete his experiment. But for some reasons, he forgot the points he choose on the second day.The only thing he remeber is some points with integer coordinates on the Film(You Mo) that can perfectly describe the polygon P.Now as a TopCoder and a good friend of him, can you help him to calculate the number of grids on the Film(You Mo)?

Mutilple cases. For every case, first line is an integer N(N<10^5), then N lines follow. Each line has 2 integers x and y, which describe a point on the grid plane(0<=x,y<=10^5).

Mutilple cases. For every case, first line is an integer N(N<10^5), then N lines follow. Each line has 2 integers x and y, which describe a point on the grid plane(0<=x,y<=10^5).

3
0 0
0 1
1 1

1

2. Pingback: delay spray for men

3. Pingback: Bond back cleaning Melbourne

4. Pingback: Sripatum university

5. Pingback: cock extender

7. Pingback: perfect blowjob

8. Pingback: Masturbation lube

10. Pingback: Sportsheets Bed Restraint

11. Pingback: Dolphin Vibrator

12. Pingback: Clit Sensitizer

13. Pingback: Massage Wand

14. Pingback: Waterproof Vibrator

15. Pingback: Butterfly Kiss Toy

16. Pingback: Magic Wand Vibrator

17. Pingback: how to use silicone vibrator

18. Pingback: adam and eve sex toys

19. Pingback: interior design Singapore

21. Pingback: bandiera italiana

23. Pingback: end of lease cleaning

24. Pingback: waterproof vibe

25. Pingback: g-spot vibrator slim vibrator

26. Pingback: Bath Bombs

27. Pingback: dr. kat

28. Pingback: Clit Vibrator

29. Pingback: anal toy

30. Pingback: inflatable butt pug

31. Pingback: best gay sex toys

32. Pingback: vibrating butt plug

33. Pingback: gay toys

34. Pingback: The best international food recipes

35. Pingback: end of lease clean Melbourne

36. Pingback: toys for couples

37. Pingback: g spot toy