For each new day, subtract D from all the previous stacks. Then take the sum of all the positive piles remaining including the new pile for the current day. If this sum is >= X then print the number of the day.

Statistics

70% Solution Ratio
practiceboyEarliest, Apr '20
practiceboyFastest, 0.0s
practiceboyLightest, 0 B
Abdullah_1234Shortest, 167B
Toph uses cookies. By continuing you agree to our Cookie Policy.