C语言训练-计算一个整数N的阶乘 摘要:解题思路:循环注意事项:阶乘参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,sum; sum=1;…… 题解列表 2024年06月16日 0 点赞 0 评论 231 浏览 评分:0.0
2799 奥运奖牌计数 摘要:解题思路: #include <bits/stdc++.h> using namespace std; int main() { int n,sum1=0, sum…… 题解列表 2024年06月16日 0 点赞 0 评论 281 浏览 评分:2.0
N以内累加求和 摘要:解题思路:循环注意事项:n大写参考代码:#include <iostream>using namespace std;int main() { int N,sum = 0; cin >> …… 题解列表 2024年06月16日 0 点赞 0 评论 451 浏览 评分:0.0
编写题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; …… 题解列表 2024年06月16日 1 点赞 0 评论 701 浏览 评分:9.9
编写题解 2797: 最高的分数 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int n,maxx=0; cin>>n; for(int i=1;i<…… 题解列表 2024年06月16日 0 点赞 0 评论 220 浏览 评分:9.9
题解 1852: 求1+2+3+...+n的值(正确题解·(doge)) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int manba(long long a,long long sum){ fo…… 题解列表 2024年06月16日 0 点赞 0 评论 190 浏览 评分:0.0
题解 2247: 蓝桥杯算法提高-输出三个整数的最大数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int manba(int a,int b,int c){ if(a>b) { …… 题解列表 2024年06月16日 0 点赞 0 评论 221 浏览 评分:0.0
题解 1852: 求1+2+3+...+n的值(test1) 摘要:**#include using namespace std; int main() { long long n,sum=0; cin>>n; for(int …… 题解列表 2024年06月16日 0 点赞 0 评论 169 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-传送阵 摘要:``` #include #define int long long using namespace std; const int N = 1e6+10; int t; int p…… 题解列表 2024年06月15日 4 点赞 0 评论 1414 浏览 评分:10.0
最简洁,没有之一,将一个字符串str的内容颠倒过来,并输出。str的长度不超过100个字符。 摘要:解题思路:注意事项:就是迭代器调换位置,注意包含头文件参考代码:#include<iostream>#include <cstring>#include <stdlib.h>#include <alg…… 题解列表 2024年06月14日 0 点赞 0 评论 307 浏览 评分:9.9