题解 1160: 出圈

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1160: 出圈(c++)

摘要:```cpp #include using namespace std; int main() { int n,m; while(cin>>n>>m) { ……

一个初学者的简单思路--出圈

摘要:解题思路:我们设置一个计数的count,如果说一共有n个人,把一个数组的前n项均设为1,那么count在遍历的时候可以把每一项值相加,如果count=m,则说明此位置的人出圈,这时我们把count再设……

1160: 出圈(好东西哈)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>                //memset()必备using namespace std;in……

猴子选大王(报数问题)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n,m; while(scanf("%d %d",&n,&m)!=EOF) { int s=0; ……

1160: 出圈 (vector , 公式法)

摘要:解题思路:Vector注意事项:删除元素的位置在末尾的时候,需要注意初始化为0参考代码:#include#include  using namespace std; int main() { ……