UVa 155

From Algorithmist
Jump to navigation Jump to search

This problem will be solve easly by recursion way. we divide a screen to 4 area .

       |
   1   |   2
-------|-------
   3   |   4
       |

we can transfer any point to area 1. because if a point place in a square in area 2 , certainly picture of it place in a square in area 1.