topcoder SRM155

The score of the three problems are:
241.91,  270.68,  1309.49