1068: 二级C语言-温度转换 摘要:直接循环打印。#include<bits/stdc++.h> using namespace std; int main(){ int C; double F; …… 题解列表 2021年12月13日 0 点赞 0 评论 388 浏览 评分:0.0
1066: 二级C语言-自定义函数 摘要:直接使用pow()函数即可解决。#include<bits/stdc++.h> using namespace std; double fact(int &n){ double su…… 题解列表 2021年12月12日 0 点赞 0 评论 337 浏览 评分:0.0
编写题解 1165: 明明的随机数(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<set> using namespace std; set<int> s…… 题解列表 2021年12月12日 0 点赞 0 评论 399 浏览 评分:9.9
编写题解 1159: 偶数求和(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,n=0…… 题解列表 2021年12月12日 0 点赞 0 评论 782 浏览 评分:0.0
数列排序(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<vector> #include<cstdio> using namespace std; vector<…… 题解列表 2021年12月12日 0 点赞 0 评论 378 浏览 评分:0.0
1071: 二级C语言-阶乘公式求值 摘要:注意 fact 函数的返回值类型是 double。(不是 double 的话 100 的测试值无法通过)#include<bits/stdc++.h> using namespace std; …… 题解列表 2021年12月12日 0 点赞 0 评论 308 浏览 评分:0.0
1067: 二级C语言-分段函数 摘要:#include<bits/stdc++.h> using namespace std; int main() { double x; cin >> x; if…… 题解列表 2021年12月12日 0 点赞 0 评论 285 浏览 评分:0.0
C++[编程入门]数字的处理与判断 摘要:解题思路:用pow函数解决各自输出问题注意事项:参考代码:#include#includeusing namespace std;int main(){ int x; cin>>x; int i=0,…… 题解列表 2021年12月11日 0 点赞 0 评论 646 浏览 评分:9.9
1063: 二级C语言-统计字符 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string words; getline(cin,wo…… 题解列表 2021年12月11日 0 点赞 0 评论 264 浏览 评分:0.0
1017: [编程入门]完数的判断 摘要:思路是从 1 到 n 挨个处理,保存其所有因数(除了自身),最后所有因数和与自身比较,如果相等则为完数。#include<bits/stdc++.h> using namespace std; …… 题解列表 2021年12月11日 0 点赞 0 评论 253 浏览 评分:0.0