The Preliminary Contest for ICPC Asia Nanchang 2019 E. Magic Master
题目:https://nanti.jisuanke.com/t/41352思路:约瑟夫环由题意得第k张牌即求k为第几个报数为m+1的单位用队列模拟即可#includeusingnamespacestd;inta[40000001];intmain(){intT;scanf("%d",&T);intn,m,c;while(T--){intt=0;scanf("%d%d%d",&n,&m,&c);a[