NewProject Coding is here — build features and fix bugs in real codebases with an AI assistantSee what's new

An employee participates in a series of sprints, each spanning a certain number of days. On each day of a sprint, completing the required tasks yields a number of points equal to the day index within that sprint (e.g., 1 point on day 1, 2 points on day 2, etc.). The schedule is cyclic, meaning that after the last sprint finishes, it loops back to the first sprint.

Test Cases
Input
Output
Expected