报数问题(约瑟夫环问题) 摘要:```#include #include using namespace std;int findLastPerson (int n){ if(n1){ …… 题解列表 2025年07月02日 0 点赞 0 评论 196 浏览 评分:0.0
2998: 电影票 摘要:解题思路:人数*10注意事项:需要输出空格。参考代码:#include<bits/stdc++.h>using namespace std;int main(){&…… 题解列表 2025年06月29日 0 点赞 1 评论 164 浏览 评分:0.0
c语言解决 小九九 题号1671 摘要:解题思路:For循环嵌套do while循环,再嵌套if-else判断。注意事项:在做这个题目中最主要其实就是需要每个左对齐,我之前尝试了别的方法,比如增加/t缩进等,但最后还是发现,直接判断敲空格是…… 题解列表 2025年06月26日 0 点赞 0 评论 220 浏览 评分:0.0
分数线的划定很容易,就像她跟我划清界限一样 摘要:#include <stdio.h>#include <math.h>typedef struct{ &nbs…… 题解列表 2025年06月17日 3 点赞 1 评论 301 浏览 评分:10.0
每个数的个数(cx12h) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;map<int,int>mp;int main(){ int…… 题解列表 2025年06月17日 0 点赞 0 评论 164 浏览 评分:0.0
s01串(cx12g) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,c; s="0&qu…… 题解列表 2025年06月17日 0 点赞 0 评论 167 浏览 评分:0.0
代码要求基础,新手就能懂 摘要:解题思路:自己看注意事项:没有参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char str[3][10…… 题解列表 2025年06月17日 2 点赞 1 评论 262 浏览 评分:10.0
借用改写了用sort() 摘要:解题思路:注意事项:参考代码:while 1: try: n = int(input()) if n …… 题解列表 2025年06月17日 0 点赞 0 评论 98 浏览 评分:0.0
新手乘方计算 摘要:# 这里使用的是for循环int main(){ int a = 0;int n = 0; scanf("%d %d", &a, &n); //判断n是否等于0 …… 题解列表 2025年06月16日 0 点赞 0 评论 72 浏览 评分:10.0
与指定数字相同的数的个数 摘要:int main(){ int N = 0; int m = 0; scanf("%d %d", &N, &m); //读取整数 int count = 0; // 计…… 题解列表 2025年06月16日 0 点赞 0 评论 63 浏览 评分:10.0