Skip to the content.

Party Invitation

Problem description here

Solution Code

Approach

Starting from the end of the list (because deleting an earlier index will mess up the later index of things later in the list), remove every rth number. Repeat m times. Output whatever is left.