Tag Archives: rounder

Topcoder: SRM 195 Div2 250pt Rounder

Pretty easy problem, though the topcoder solution was a single line which isn’t what I came up with. Reminder: Way of rounding: n = numerator d = denominator Always round up: (n+d)/d Round up by difference (n+(d/2))/d   Advertisements

Posted in TopCoder | Tagged , | Leave a comment