题解 1160: 出圈

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

筛选

[出圈]-题解(C语言代码)

摘要:解题思路:注意事项:注意进入死循环之前要给i赋初值,以及count和x每次的重置,还有i++产生的后遗症在判断中通过i-1消除,但是千万不能用i--,因为会改变i的值,打乱整个循环参考代码:#incl……

[出圈]-题解(C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include <stdlib.h> int main() {     int n, m;     while (sc……

[出圈]-题解(Python代码)

摘要:解题思路:注意事项:参考代码:                       while True:                                        &nb

[出圈]幸存者问题

摘要:解题思路:注意事项:参考代码:while True:    try:        a, b = map(int, input().strip().split())        l = [i for……

1111111111111111111111

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

C++数组法出圈

摘要:解题思路:把所有人弄成一个状态数组,出圈的状态设置为0,仍在圈中的状态唯一,先想办法搞到数组的长度,写了一个函数计算初始数组的长度,只能来计算状态数组的初始长度,再写一个求和函数,如果数组中最后的和等……

编写题解 1160: 出圈

摘要:while True:     try:         n,m =map(int,input().split())          lis = list(range(1,n+1))    ……

题目 1160: 出圈

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