Блог пользователя patience

Автор patience, история, 9 лет назад, По-английски

Given the co-ordinates of a circle and the lower left and upper right coordinate of an axis parallel rectangle, i need to find their common area. I cannot understand how can solve this problem.

please help me.

Sample input:
1 1 10
2 2 5 5
Sample output:
9

Thanks in advance.

  • Проголосовать: нравится
  • -13
  • Проголосовать: не нравится