[编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int i,a,b,c; f…… 题解列表 2024年02月08日 0 点赞 0 评论 559 浏览 评分:0.0
[编程入门]求和训练 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>#include<iomanip>using namespace std;int main(){ …… 题解列表 2024年02月08日 0 点赞 0 评论 451 浏览 评分:0.0
编写题解阶乘求和 摘要:解题思路:注意事项:当输入19时出现负的结果说明int的范围不够,用longlong类型保存结果参考代码:#include<iostream>using namespace std;int main(…… 题解列表 2024年02月08日 0 点赞 0 评论 489 浏览 评分:0.0
求最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m, n,min=1,max=1,i; cin >…… 题解列表 2024年02月08日 0 点赞 0 评论 780 浏览 评分:0.0
亲密数(c++,数组存储因子和,简单易懂,巧妙避免超时) 摘要:解题思路:注意事项:参考代码#include<iostream> using namespace std; int main() { int a[30010],sum=0; …… 题解列表 2024年02月08日 0 点赞 0 评论 413 浏览 评分:0.0
取余运算(C++) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int b, p, k;int f(int p){ int q; if (p == 0) r…… 题解列表 2024年02月08日 0 点赞 0 评论 535 浏览 评分:0.0
河中跳房子(C++) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int L,N,M,a[10000];int f(int x){ int ans=0,t=0…… 题解列表 2024年02月08日 0 点赞 0 评论 416 浏览 评分:0.0
1074: 数字整除 摘要:解题思路:用用户输入的数据取模17即可得知是否为17的倍数注意事项:1、由于输入的是大数据,即用普通的int,long等装不下,故可用字符数组的方式容纳此数2、需要明白字符数组中的值转换为int数字类…… 题解列表 2024年02月07日 3 点赞 0 评论 497 浏览 评分:10.0
1021: [编程入门]迭代法求平方根(最简单的!!!) 摘要:##思路 直接`sqrt`即可。 ##代码 ```cpp #include using namespace std; int main(){ int a,b; cin>>a; …… 题解列表 2024年02月07日 0 点赞 0 评论 538 浏览 评分:9.9
2529: NOIP2012-同余方程-了解即可 摘要:# 2529: 信息学奥赛一本通T1632-NOIP2012-同余方程 ## 数学知识 这里其实就是在求数论逆元。数论逆元最常见的求法就是扩展欧几里得算法,实际上就是裴蜀定理。裴蜀定理的代码实现较…… 题解列表 2024年02月07日 0 点赞 0 评论 365 浏览 评分:0.0