0

Choose unconsecutive files code-golf string
Given a positive integer and a file-clicking sequence, provide the files resulted from the process. (I hope there isn't a formula for this.)
Sample
1Shift
2---
3Ctrl
4
5Ctrl
6
Selects files 1-3 and 5. The input would be like
1S3C5C
The code shou...