Thursday, December 18, 2014

ACM 1161. Stripies

We need to consider a little thing here, that the lost will be greater if we square root the biggest ones. We just need to get the biggest 2 numbers, calculate the new number and get the new 2 biggest from the new pile until there is only one left. 


       FULL SOURCE CODE

No comments:

Post a Comment