以下陈述均以 https://szkopul.edu.pl/problemset/problem/TsRKmpcLT87hYbwSvYTV0A7f/site/?key=statement 及 https://oi.edu.pl/l/9oi_ksiazeczka/ 为依据。
- 输入格式:原文写的是「The i-th number tells at which turn of the counting out the child of number i left the circle.」,也就是说读入的 ai 表示第 i 个人是第 ai 个出圈的,所以说题解里面提到的题意是假的。
- 本题数据过弱,可以看到,读假了题意的题解可以通过,下面是完整测试包:https://cowtransfer.com/s/748bc5ea433245 , 应该没有什么问题?