阶乘数列(C++) 摘要:解题思路:注意事项:数字太大int装不下,因此要用科学计数法表示更好,包含<cstdio>后用printf()较方便参考代码:#include<iostream>using namespace std…… 题解列表 2022年10月23日 0 点赞 0 评论 524 浏览 评分:9.9
统计字符(c++) 摘要:解题思路:用if()来分类判断注意事项:注意不同类型的ASCI值参考代码:#include<iostream>using namespace std;int main(){ char a[88]…… 题解列表 2022年10月23日 0 点赞 0 评论 388 浏览 评分:9.9
题目 1022: [编程入门]筛选N以内的素数—常规求解方法 摘要:解题思路:两个for循环注意事项:下一次循环时,需要对部分变量重置参考代码:#include<stdio.h> int main(void) { int N; scanf("%d", …… 题解列表 2022年10月23日 0 点赞 0 评论 271 浏览 评分:0.0
公约公倍(c++) 摘要:解题思路:最大公约数好求,最小公倍数=乘积/最大公约数注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m,n,i,…… 题解列表 2022年10月23日 0 点赞 0 评论 389 浏览 评分:9.9
计负均正(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip> …… 题解列表 2022年10月23日 0 点赞 0 评论 359 浏览 评分:7.3
同因查找(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int i; for(i=10;i<=1000;i++) …… 题解列表 2022年10月23日 0 点赞 0 评论 443 浏览 评分:9.9
等差数列(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i=1,j=2,sum=2; cin>>n; …… 题解列表 2022年10月23日 0 点赞 0 评论 443 浏览 评分:9.9
求偶数和(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i,s=0,a[20]; cin>>n; …… 题解列表 2022年10月23日 0 点赞 0 评论 330 浏览 评分:9.9
分段函数(C++) 摘要:解题思路:用f()分段;参考代码:#include<iostream>using namespace std;#include <iomanip> …… 题解列表 2022年10月23日 0 点赞 0 评论 670 浏览 评分:9.9
温度转换(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float c,F; c…… 题解列表 2022年10月23日 0 点赞 0 评论 576 浏览 评分:9.9