报数问题(约瑟夫环问题) 摘要:```#include #include using namespace std;int findLastPerson (int n){ if(n1){ …… 题解列表 2025年07月02日 0 点赞 0 评论 230 浏览 评分:10.0
题解 2749: Hello, World!史上最简单题 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ cout << "Hello world!…… 题解列表 2025年07月15日 1 点赞 0 评论 200 浏览 评分:10.0
尼科彻斯定理 纯数学方法 保姆级教程 摘要:解题思路:找左边界 例如 案例当中的m=13 m的立方 三个m相乘 相当于 m个m*m相加 答案说连续的奇数所以可以分成两种情况讨论奇数的情况是m*m就是答案的那串…… 题解列表 2025年07月22日 1 点赞 0 评论 59 浏览 评分:10.0
3020 :正确题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m=0;&…… 题解列表 2025年07月23日 1 点赞 1 评论 87 浏览 评分:10.0
2936:简单算数表达式求值;;;;;;题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int s(int a,char c,int b){&nbs…… 题解列表 2025年07月24日 1 点赞 0 评论 48 浏览 评分:10.0
1032:[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:要写括号参考代码:#include<bits/stdc++.h>using namespace std;int q(string a,string b){ …… 题解列表 2025年07月24日 1 点赞 1 评论 90 浏览 评分:10.0
你就说过没过吧 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<&quo…… 题解列表 2025年07月25日 1 点赞 1 评论 75 浏览 评分:10.0
层次递进,绝对好懂,不懂你抽我 摘要:解题思路:先拿2,3举例,2*2*2=8=3+5 3*3*3=27=7+9+11观察第一个数和最后一个数,范围在什么区间呢?13*13*13=2197=157+1…… 题解列表 2025年07月26日 1 点赞 0 评论 80 浏览 评分:10.0
求平均年龄 摘要:n = int(input())#储存人数my_list = input().split()#用列表储存年龄sum = 0for i in range(len(my_list)): …… 题解列表 2025年07月26日 1 点赞 0 评论 77 浏览 评分:10.0
9个变量,轻松拿下 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,s,d,f,g,h,…… 题解列表 2025年07月30日 1 点赞 0 评论 65 浏览 评分:10.0