报数问题(约瑟夫环问题) 摘要:```#include #include using namespace std;int findLastPerson (int n){ if(n1){ …… 题解列表 2025年07月02日 2 点赞 0 评论 699 浏览 评分:10.0
2998: 电影票 摘要:解题思路:人数*10注意事项:需要输出空格。参考代码:#include<bits/stdc++.h>using namespace std;int main(){&…… 题解列表 2025年06月29日 2 点赞 1 评论 790 浏览 评分:0.0
c语言解决 小九九 题号1671 解题思路:For循环嵌套dowhile循环,再嵌套if-else判断。注意事项:在做这个题目中最主要其实就是需要每个左对齐,我之前尝试了别的方法,比如增加/t缩进等,但最后还是发现,直接判断敲空格是最简单的,也比较容易判断为正确的。如果有别的更好的思路欢迎在评论区一起讨论。 题解列表 2025年06月26日 2 点赞 0 评论 865 浏览 评分:6.0
分数线的划定很容易,就像她跟我划清界限一样 摘要:#include <stdio.h>#include <math.h>typedef struct{ &nbs…… 题解列表 2025年06月17日 3 点赞 1 评论 642 浏览 评分:10.0
每个数的个数(cx12h) 解题思路:注意事项:参考代码:#includeusingnamespacestd;mapmp;intmain(){intn,x;cin>>n;while(n--){cin>>x;mp[x]++;}for(autoit:mp){cout< 题解列表 2025年06月17日 0 点赞 0 评论 432 浏览 评分:0.0 s01串(cx12g) 解题思路:注意事项:参考代码:#includeusingnamespacestd;intmain(){strings,c;s="0";c="\0";intn,i,o;cin>>n;while(n--){o=s.size();for(i=0;i 题解列表 2025年06月17日 0 点赞 0 评论 497 浏览 评分:0.0 代码要求基础,新手就能懂 解题思路:自己看注意事项:没有参考代码:#include#includeintmain(){inti;charstr[3][100],string1[100],string2[100],string3[100];for(i=0;i<3;i++){gets(str[ 题解列表 2025年06月17日 2 点赞 1 评论 832 浏览 评分:10.0 借用改写了用sort() 摘要:解题思路:注意事项:参考代码:while 1: try: n = int(input()) if n …… 题解列表 2025年06月17日 0 点赞 0 评论 384 浏览 评分:0.0 新手乘方计算 摘要:# 这里使用的是for循环int main(){ int a = 0;int n = 0; scanf("%d %d", &a, &n); //判断n是否等于0 …… 题解列表 2025年06月16日 0 点赞 0 评论 431 浏览 评分:10.0 与指定数字相同的数的个数 摘要:int main(){ int N = 0; int m = 0; scanf("%d %d", &N, &m); //读取整数 int count = 0; // 计…… 题解列表 2025年06月16日 0 点赞 0 评论 360 浏览 评分:10.0 « 12...120121122123124125126...59115912 »
s01串(cx12g) 解题思路:注意事项:参考代码:#includeusingnamespacestd;intmain(){strings,c;s="0";c="\0";intn,i,o;cin>>n;while(n--){o=s.size();for(i=0;i 题解列表 2025年06月17日 0 点赞 0 评论 497 浏览 评分:0.0 代码要求基础,新手就能懂 解题思路:自己看注意事项:没有参考代码:#include#includeintmain(){inti;charstr[3][100],string1[100],string2[100],string3[100];for(i=0;i<3;i++){gets(str[ 题解列表 2025年06月17日 2 点赞 1 评论 832 浏览 评分:10.0 借用改写了用sort() 摘要:解题思路:注意事项:参考代码:while 1: try: n = int(input()) if n …… 题解列表 2025年06月17日 0 点赞 0 评论 384 浏览 评分:0.0 新手乘方计算 摘要:# 这里使用的是for循环int main(){ int a = 0;int n = 0; scanf("%d %d", &a, &n); //判断n是否等于0 …… 题解列表 2025年06月16日 0 点赞 0 评论 431 浏览 评分:10.0 与指定数字相同的数的个数 摘要:int main(){ int N = 0; int m = 0; scanf("%d %d", &N, &m); //读取整数 int count = 0; // 计…… 题解列表 2025年06月16日 0 点赞 0 评论 360 浏览 评分:10.0 « 12...120121122123124125126...59115912 »
代码要求基础,新手就能懂 解题思路:自己看注意事项:没有参考代码:#include#includeintmain(){inti;charstr[3][100],string1[100],string2[100],string3[100];for(i=0;i<3;i++){gets(str[ 题解列表 2025年06月17日 2 点赞 1 评论 832 浏览 评分:10.0
借用改写了用sort() 摘要:解题思路:注意事项:参考代码:while 1: try: n = int(input()) if n …… 题解列表 2025年06月17日 0 点赞 0 评论 384 浏览 评分:0.0
新手乘方计算 摘要:# 这里使用的是for循环int main(){ int a = 0;int n = 0; scanf("%d %d", &a, &n); //判断n是否等于0 …… 题解列表 2025年06月16日 0 点赞 0 评论 431 浏览 评分:10.0
与指定数字相同的数的个数 摘要:int main(){ int N = 0; int m = 0; scanf("%d %d", &N, &m); //读取整数 int count = 0; // 计…… 题解列表 2025年06月16日 0 点赞 0 评论 360 浏览 评分:10.0