Problem 3185 · Medium

Count Pairs That Form a Complete Day II

Two hours form a complete day when their remainders modulo 24 add to 24 or 0, so count earlier remainders as each hour arrives.

Open the interactive visualisation