C语言训练-计算1~N之间所有奇数之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,n;int main(){ cin>>n; fo…… 题解列表 2022年05月05日 0 点赞 0 评论 348 浏览 评分:0.0
C语言训练-求素数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[1000005],n;int main(){ cin>…… 题解列表 2022年05月05日 0 点赞 0 评论 227 浏览 评分:0.0
C语言训练-素数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,n;int main(){ cin>>n; fo…… 题解列表 2022年05月05日 0 点赞 0 评论 199 浏览 评分:0.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main() { vector<int> ans; int n,…… 题解列表 2022年05月05日 0 点赞 0 评论 500 浏览 评分:0.0
C语言训练-求1+2!+3!+...+N!的和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[100005],n,t=1;int main(){ c…… 题解列表 2022年05月05日 0 点赞 0 评论 245 浏览 评分:0.0
C语言训练-最大数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ for(;;) …… 题解列表 2022年05月05日 0 点赞 0 评论 200 浏览 评分:0.0
C语言训练-"水仙花数"问题2 摘要:解题思路:把四个数算出来直接输出注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c,d;int main(){ cout…… 题解列表 2022年05月05日 0 点赞 0 评论 233 浏览 评分:0.0
C语言训练-"水仙花数"问题1 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c,d;int main(){ cin>>a; b=…… 题解列表 2022年05月05日 0 点赞 0 评论 247 浏览 评分:0.0
优质题解 蓝桥杯2022年第十三届省赛真题-李白打酒加强版(记忆化搜索+剪枝)C++ 摘要:### 题解:记忆化搜索+剪枝 比较容易想到的是深搜,取令 n - 1 和令 m - 1 的结果相加,在此基础上有几个规则用来剪枝 用 k 来表示酒的数量: 假如 k == 0,必须有 …… 题解列表 2022年05月04日 0 点赞 4 评论 1931 浏览 评分:7.8
[编程入门]自定义函数之数字后移 摘要:解题思路:直接按照题目意思后移就行了,要用自定义函数。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n,m,a[1005];vo…… 题解列表 2022年05月04日 0 点赞 1 评论 243 浏览 评分:9.9