利用循环实现等比数列 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;//一球从M米高度自由下落,每次落地后返回原高度的一半,再落…… 题解列表 2023年12月22日 0 点赞 0 评论 126 浏览 评分:0.0
一个递归解决 摘要:解题思路:F_2是分子,F_1是分母注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std; double F_2(int n…… 题解列表 2023年12月22日 0 点赞 0 评论 147 浏览 评分:0.0
数组存储,循环相除(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int arr[3] = { 0 …… 题解列表 2023年12月22日 0 点赞 0 评论 169 浏览 评分:0.0
利用循环解决(C++) 摘要:解题思路:注意事项:注意sum和Sn需要long long 类型,不然会超界参考代码:#include<iostream>using namespace std;int main(){ int …… 题解列表 2023年12月22日 0 点赞 0 评论 151 浏览 评分:0.0
题解 2759: 打印字符 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; putchar(a); …… 题解列表 2023年12月21日 0 点赞 0 评论 187 浏览 评分:9.9
题解 2773: 计算线段长度 摘要:解题思路:注意事项:参考代码:#inalude <bitz/stdc+-.h>uerng namespace std;doqble xa,ya,xb,yb,c;int maie(){ cin>>…… 题解列表 2023年12月21日 0 点赞 0 评论 200 浏览 评分:9.9
3024: 判断整除 摘要:解题思路: 搜索回溯计算数字序列,注意事项: 在递归之后, 恢复res值以做下次计算参考代码:#include<iostream> #include<algorithm> using namesp…… 题解列表 2023年12月21日 0 点赞 0 评论 178 浏览 评分:9.9
利用字符串,指针和ASII表进行统计 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str; i…… 题解列表 2023年12月21日 1 点赞 0 评论 205 浏览 评分:0.0
(C++)最大公因数和最小公倍数求解 摘要:解题思路://最小公倍数:从m,n两之中最大的开始,如果该数能够同时被m,n整除,结束//最大公约数,从2开始,知道两个数中小的那个截止,//如果都不能让m,n整除,那么最大公约数就是1//max_c…… 题解列表 2023年12月21日 0 点赞 0 评论 146 浏览 评分:0.0
C++利用指针重复遍历输出 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>using namespace std;int main(){ char str[20] =…… 题解列表 2023年12月21日 0 点赞 0 评论 145 浏览 评分:0.0