首页 > ACM题库 > HDU-杭电 > hdu 3858 Counting Grids待解决[解题报告]C++
2015
04-13

hdu 3858 Counting Grids待解决[解题报告]C++

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


  1. Pingback: pc games free download for windows 8

  2. Pingback: delay spray for men

  3. Pingback: Bond back cleaning Melbourne

  4. Pingback: Sripatum university

  5. Pingback: cock extender

  6. Pingback: adam and eve

  7. Pingback: perfect blowjob

  8. Pingback: Masturbation lube

  9. Pingback: Super Head Honcho

  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

  20. Pingback: The latest sports news from the most popular sporting event

  21. Pingback: kala jadu

  22. Pingback: bandiera italiana

  23. Pingback: Google

  24. Pingback: end of lease cleaning

  25. Pingback: waterproof vibe

  26. Pingback: g-spot vibrator slim vibrator

  27. Pingback: Bath Bombs

  28. Pingback: dr. kat

  29. Pingback: Clit Vibrator

  30. Pingback: anal toy

  31. Pingback: inflatable butt pug

  32. Pingback: best gay sex toys

  33. Pingback: vibrating butt plug

  34. Pingback: gay toys

  35. Pingback: The best international food recipes

  36. Pingback: end of lease clean Melbourne

  37. Pingback: toys for couples

  38. Pingback: g spot toy

  39. Pingback: Google

  40. 我还有个问题想请教一下,就是感觉对于新手来说,递归理解起来有些困难,不知有没有什么好的方法或者什么好的建议?

  41. 约瑟夫也用说这么长……很成熟的一个问题了,分治的方法解起来o(n)就可以了,有兴趣可以看看具体数学的第一章,关于约瑟夫问题推导出了一系列的结论,很漂亮