c语言简单数组解报数问题 摘要:解题思路:注意事项:参考代码:#includeint main(){ int arr[201]; int n,i,j; scanf ("%d",&n); for (i=0;i<n;i++) //…… 题解列表 2024年11月11日 0 点赞 0 评论 290 浏览 评分:0.0
一定要细心啊(不难) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int n; printf("Please enter the number…… 题解列表 2024年12月28日 1 点赞 0 评论 446 浏览 评分:0.0
real_count经典命名 摘要:#include<stdio.h> int main(void) { int n; scanf("%d", &n); int flag[100] = {0}; …… 题解列表 2024年12月28日 0 点赞 0 评论 390 浏览 评分:0.0
简单易懂 给个赞 嘻嘻 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 10000void text(int * a , int n){ int co…… 题解列表 2025年01月09日 2 点赞 0 评论 529 浏览 评分:0.0
模拟报数过程的直接解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){&nb…… 题解列表 2025年01月12日 1 点赞 0 评论 490 浏览 评分:0.0
数组实现(数组的本质也是指针) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){ intn,a[100]; …… 题解列表 2025年02月09日 3 点赞 0 评论 623 浏览 评分:0.0
Python代码-报数问题 摘要:```pythonfrom collections import dequeif __name__ == '__main__': n = int(input()) qu…… 题解列表 2025年02月17日 0 点赞 0 评论 421 浏览 评分:0.0
1047: [编程入门]报数问题 摘要:#include<stdio.h>int main(){ int n; scanf("%d", &n);&n…… 题解列表 2026年01月08日 0 点赞 0 评论 235 浏览 评分:0.0
一点点思路 摘要:解题思路:注意事项:参考代码:n=int(input())a=[]for i in range(1,n+1): a.append(i)cnt=0while len(a)>…… 题解列表 2026年02月05日 0 点赞 0 评论 125 浏览 评分:0.0
1047:有n人围成一圈,顺序排号。从第1个人开始报数(从1到3报数), 凡报到3的人退出圈子,问最后留下的是原来的第几号的那位。 摘要:解题思路:我这里使用的是一个长度为n的数组(该数组最好在函数内部进行声明定义),注意事项:参考代码:void ReportingProblemFun(void){ int n…… 题解列表 2026年03月15日 0 点赞 0 评论 156 浏览 评分:0.0