2803: 整数的个数 摘要:解题思路:注意事项:别忘给sum赋值参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int k,sum1=0,sum5=0…… 题解列表 2024年06月30日 0 点赞 0 评论 189 浏览 评分:0.0
2955: 判决素数个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll prime (ll x)//先判断…… 题解列表 2024年06月30日 0 点赞 0 评论 235 浏览 评分:0.0
1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll prime (ll x){ …… 题解列表 2024年06月30日 0 点赞 0 评论 327 浏览 评分:0.0
2936: 简单算术表达式求值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll jiafa (ll x,ll y,…… 题解列表 2024年06月30日 0 点赞 0 评论 374 浏览 评分:0.0
2936: 简单算术表达式求值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll jiafa (ll x,ll y,…… 题解列表 2024年06月30日 0 点赞 0 评论 291 浏览 评分:0.0
题解 1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int sushu(int n){ int g; for(int i=2;i<=s…… 题解列表 2024年06月30日 0 点赞 0 评论 259 浏览 评分:0.0
2247: 蓝桥杯算法提高-输出三个整数的最大数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll myMax (ll x,ll y,…… 题解列表 2024年06月30日 0 点赞 0 评论 248 浏览 评分:0.0
题解 1852: 求1+2+3+...+n的值 摘要:```cpp #include using namespace std; typedef long long ll; const int N=1e7+5; ll man(ll x) { …… 题解列表 2024年06月30日 0 点赞 0 评论 234 浏览 评分:0.0
1852: 求1+2+3+...+n的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;//自定义//求1+2+3+......…… 题解列表 2024年06月30日 0 点赞 0 评论 246 浏览 评分:0.0
成了,经典的约瑟夫环问题 有n人围成一圈,顺序排号。从第1个人开始报数(从1到3报数),凡报到3的人退出圈子,问最后留下的是原来的第几号的那位。 摘要:解题思路:建立c++的list容器,将数据输入,每搁三个判断一下,删除,继续判断,最后找到剩余的元素,输出注意事项:本次使用,学到了auto的新用法 参考代码:#include<iostream> …… 题解列表 2024年06月27日 0 点赞 0 评论 300 浏览 评分:0.0