DWITE Online Computer Programming Contest, October 2010, Problem 3
You are given a rectangular floor that is to be tiled with square tiles. The tiles come in a variety of sizes, but they all measure in some power of two:
The input will contain 5 lines, a pair of integers
The output will contain 5 lines, the minimum number of tiles necessary to exactly cover the
Sample Input
Copy
10 5
1000 1001
21 13
9999 888
345 1277
Sample Output
Copy
14
1358
42
4065
2046
Problem Resource: DWITE
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported
Comments
y'all and your fancy recursion solutions :v :v