敲简单C语言代码!!! 摘要:解题思路:注意事项:一定要确定归零的项首先得不为零!!!参考代码:#include<stdio.h>int main(){ int a,b; while (scanf ("%d %d",&…… 题解列表 2022年11月04日 0 点赞 0 评论 166 浏览 评分:0.0
学生能看懂的c++语言 摘要:解题思路:难点在于如何用计算机模拟人一次次选的过程.有n个人,我们就定义一个长度为n个的数组a[n]不妨将m个元素赋1,其他元素初始化0。用一个for循环一次次地访问这个数组,当m次时,将a[i]赋0…… 题解列表 2023年01月14日 0 点赞 0 评论 134 浏览 评分:0.0
1160————出圈 摘要: import java.util.Scanner; import java.util.LinkedList; public class Main { publi…… 题解列表 2023年03月05日 0 点赞 0 评论 205 浏览 评分:0.0
连续输入用重复执行解决 摘要:解题思路:模板给的开头和结尾还是很有用的遇到连续输入还好是还是要尽量用一下while true:try:except:break挺好用注意事项:参考代码:while True: try: …… 题解列表 2023年03月09日 0 点赞 0 评论 126 浏览 评分:0.0
不会链表,STL,就只能用这种笨方法咯 摘要:```cpp #include using namespace std; int a[100]={0}; //find()函数用来判断是否 "出圈" 结束 bool find(int *s,…… 题解列表 2023年06月15日 0 点赞 0 评论 168 浏览 评分:0.0
编写题解 1160: 出圈(队列) 摘要:解题思路:把m-1个数加到后面之后,删除第一个数即可注意事项:参考代码:while True: try: n,m = map(int,input().split()) …… 题解列表 2023年12月09日 1 点赞 0 评论 208 浏览 评分:0.0
无需链表,一维数组循环解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int magic(const int n,int cu){ int a[n]; //用数组记录…… 题解列表 2024年03月20日 0 点赞 0 评论 134 浏览 评分:0.0
1160出圈(利用数组遍历解决) 摘要:解题思路:这道题其实最好还是用单项循环链表做时最好的,所以以后学了链表后可以拿这道题练手,下面时模拟遍历的做法。注意事项:参考代码:#include<iostream>using namespace …… 题解列表 2024年07月09日 0 点赞 0 评论 153 浏览 评分:0.0
出圈,人要麻木了,真的出圈了 摘要:解题思路:注意事项:在判断最后一个函数中的迭代器要两次判断尾参考代码:#include <iostream> #include <vector> using namespace std; voi…… 题解列表 2024年08月27日 0 点赞 0 评论 114 浏览 评分:0.0
约瑟夫环比出圈更高大上啊(但是太简单了) 摘要:解题思路:标记淘汰,首尾相连,很简单注意事项:参考代码:#include<stdio.h> int main(void) { int n, m,i; while(scanf("…… 题解列表 2024年12月31日 0 点赞 0 评论 161 浏览 评分:0.0