[2016-2017 ACM-ICPC, South Pacific Regional Contest (SPPC 16)]C Crazy Rotations

【Codeforces 632E】Thief in a Shop

【BZOJ3509】【CodeChef】COUNTARI

【BZOJ3771】Triple