平方差C++最快算法 摘要:解题思路:找规律,总数-能被2整除且不能被4整除的数=平方差数注意事项:参考代码:#include<iostream> using namespace std; int main() …… 题解列表 2024年01月18日 0 点赞 0 评论 528 浏览 评分:9.9
用更相减损术求解最大公约数与最小公倍数 摘要:解题思路:用辗转相除法求最大公约数已经写过了 利用递归与数学方法求解最大公约数与最小公倍数问题-Dotcpp编程社区这次使用更相减损术求解最大公约数求解此题,求解此题需要明白两点:1、更相减损术:拿…… 题解列表 2024年01月18日 0 点赞 0 评论 277 浏览 评分:9.9
题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum=0; cin>…… 题解列表 2024年01月19日 0 点赞 0 评论 208 浏览 评分:9.9
1014: [编程入门]阶乘求和 摘要:解题思路:die!注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum=0; …… 题解列表 2024年01月19日 0 点赞 0 评论 152 浏览 评分:9.9
题解 2825: 计算多项式的值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double x,n,sum=1,a; cin>…… 题解列表 2024年01月19日 0 点赞 0 评论 220 浏览 评分:9.9
题解 2830: 数字统计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long l,r,sum=0; cin…… 题解列表 2024年01月19日 0 点赞 0 评论 177 浏览 评分:9.9
1267: A+B Problem 摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)…… 题解列表 2024年01月19日 0 点赞 0 评论 450 浏览 评分:9.9
C++超简单思路 摘要:解题思路:将数字问题转换成字符串问题注意事项:注意看题目要求参考代码:#include<iostream>#include<string>#include<algorithm>#include<std…… 题解列表 2024年01月19日 0 点赞 0 评论 279 浏览 评分:9.9
题解 2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long n,sum=0; cin>>n; …… 题解列表 2024年01月19日 0 点赞 0 评论 173 浏览 评分:9.9
2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,x=0;//要付初值 …… 题解列表 2024年01月19日 0 点赞 0 评论 247 浏览 评分:9.9