Python代码-报数问题 摘要:```pythonfrom collections import dequeif __name__ == '__main__': n = int(input()) qu…… 题解列表 2025年02月17日 0 点赞 0 评论 16 浏览 评分:0.0
数组实现(数组的本质也是指针) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){ intn,a[100]; …… 题解列表 2025年02月09日 1 点赞 0 评论 99 浏览 评分:0.0
约瑟夫问题 摘要:#include<bits/stdc++.h>usingnamespacestd;queue<int>q;int&nbs…… 题解列表 2025年01月18日 4 点赞 0 评论 117 浏览 评分:10.0
模拟报数过程的直接解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){&nb…… 题解列表 2025年01月12日 0 点赞 0 评论 184 浏览 评分:0.0
简单易懂 给个赞 嘻嘻 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 10000void text(int * a , int n){ int co…… 题解列表 2025年01月09日 2 点赞 0 评论 180 浏览 评分:0.0
real_count经典命名 摘要:#include<stdio.h> int main(void) { int n; scanf("%d", &n); int flag[100] = {0}; …… 题解列表 2024年12月28日 0 点赞 0 评论 142 浏览 评分:0.0
一定要细心啊(不难) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int n; printf("Please enter the number…… 题解列表 2024年12月28日 1 点赞 0 评论 167 浏览 评分:0.0
有点思维难度 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int n, i; scanf("%d", &n); int a[…… 题解列表 2024年12月28日 1 点赞 1 评论 108 浏览 评分:10.0
约瑟夫环模拟法 摘要:解题思路:利用约瑟夫环解决问题注意事项:要求剩余人数剩余1时,才输出参考代码:#include<stdio.h>int main(){ int n,i,k,c; scanf("%d",&n); int…… 题解列表 2024年12月18日 1 点赞 0 评论 332 浏览 评分:10.0
入门报数问题 C++ 解题 摘要:解题思路: 严格按照题目要求,用数组模拟m个人,逐一报数,遇到已报过3的人就跳过,报到3后再从1重头报数,直到只剩最后一人。注意事项: i%=m,以保证报数的人不超过m范围,count%=3,以保证报…… 题解列表 2024年12月10日 2 点赞 0 评论 292 浏览 评分:10.0