Topcoder TCO-2007, Qualification round 1, 500-point problem

James S. Plank
CS302
Sat Sep 27 11:19:53 EDT 2014
Problem Statement


This is an enumeration problem. What you need to do is enumerate every second between tStart and tEnd. How many potential seconds is that? The maximum time between tStart and tEnd is 12 hours, which is 3600*12 = 43,200 seconds. We can enumerate that many values easily within two seconds.

Let's break this down into steps:

This is less of a problem in enumeration, than it is a problem of breaking a task down into components, solving each component and then putting it all together.