原题大概是这样的: //输入一个n,得到一个从1到n的数组,将第一个数抛弃,再将新的在前面的数放到最后,直到还剩最后一个数 本人用了队列实现了这个功能,然后通过队列实现的结果找出了规律。比如: 由此得出输出是第几个数的公式为: (n-2^((int)sqrt(n))*2 以下是代码部分: #include <iostream> #include <queue> #include "math.h" using namespace std; int deleteNum(int numList[],int ...