Codeforces Round #348 (VK Cup 2016 Round 2, Div. 2 Edition) D. Little Artem and Dance 模拟
D.LittleArtemandDance题目连接:http://www.codeforces.com/contest/669/problem/DDescriptionLittleArtemisfondofdancing.MostofalldancesArtemlikesrueda—Cubandancethatisdancedbypairsofboysandgirlsformingacirclea