C++求1+2!+3!+...+N!的和 摘要:两次解决第一次是int类型,导致越界 改成long long 即可 ```cpp #include using namespace std; typedef long long ll;…… 题解列表 2021年12月14日 0 点赞 0 评论 574 浏览 评分:0.0
编写题解 2004: 统计成绩 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10]; for(int i=0;i<10;i…… 题解列表 2021年12月14日 0 点赞 0 评论 396 浏览 评分:0.0
编写题解 1065: 二级C语言-最小绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a[10]; for…… 题解列表 2021年12月14日 0 点赞 0 评论 445 浏览 评分:0.0
1065: 二级C语言-最小绝对值 摘要:#include<bits/stdc++.h> using namespace std; int main(){ vector<int> a(10,0),b(10,0); …… 题解列表 2021年12月13日 0 点赞 0 评论 490 浏览 评分:0.0
1070: 二级C语言-成绩归类 摘要:#include<bits/stdc++.h> using namespace std; int main(){ vector<int> students; int x;…… 题解列表 2021年12月13日 0 点赞 0 评论 583 浏览 评分:0.0
1069: 二级C语言-寻找矩阵最值 摘要:#include<bits/stdc++.h> using namespace std; int main(){ int n,x; cin >> n; int …… 题解列表 2021年12月13日 0 点赞 0 评论 481 浏览 评分:0.0
1068: 二级C语言-温度转换 摘要:直接循环打印。#include<bits/stdc++.h> using namespace std; int main(){ int C; double F; …… 题解列表 2021年12月13日 0 点赞 0 评论 465 浏览 评分:0.0
1066: 二级C语言-自定义函数 摘要:直接使用pow()函数即可解决。#include<bits/stdc++.h> using namespace std; double fact(int &n){ double su…… 题解列表 2021年12月12日 0 点赞 0 评论 449 浏览 评分:0.0
编写题解 1165: 明明的随机数(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<set> using namespace std; set<int> s…… 题解列表 2021年12月12日 0 点赞 0 评论 508 浏览 评分:9.9
编写题解 1159: 偶数求和(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,n=0…… 题解列表 2021年12月12日 0 点赞 0 评论 946 浏览 评分:0.0