2518: 信息学奥赛一本通T1620-质因数分解 摘要:``` #include using namespace std; int main(){ int r,sum=0; cin>>r; int a = r; …… 题解列表 2023年11月19日 1 点赞 0 评论 327 浏览 评分:9.9
坤坤也能看懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a*a+b*b==c*c||b*…… 题解列表 2023年11月19日 0 点赞 0 评论 398 浏览 评分:9.9
很简单的水仙花,使我大脑旋转。 摘要:解题思路:直接按照水仙花定义求解注意事项:关键在于如何表示百位,十位,个位的数值,三位数除100再取10的余得百位,除10取10的余得十位,直接取10的余得个位。参考代码:#include <stdi…… 题解列表 2023年11月19日 0 点赞 0 评论 276 浏览 评分:9.9
函数+递归求解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int sum=0;int f(int x){ int t=x;//(保存一下x的值…… 题解列表 2023年11月19日 0 点赞 0 评论 357 浏览 评分:9.9
三种方法解排序(C语言) 摘要:解题思路:注意事项:参考代码:方法1:使用冒泡排序#include // 冒泡排序函数 void bubbleSort(int arr[], int n) { int temp; …… 题解列表 2023年11月19日 0 点赞 0 评论 452 浏览 评分:9.9
阿姆斯特朗数 摘要:解题思路:注意事项:hhh其实只用隔一个空格,被骗啦嘻嘻参考代码:#include<stdio.h>int main(){ int i,a,b,c,s; for(i=2;i<1000;i+…… 题解列表 2023年11月19日 0 点赞 0 评论 410 浏览 评分:9.9
最大公约数与最小公倍数 摘要:解题思路:最大公约数的求法欧几里得算法是用来求两个正整数最大公约数的算法。古希腊数学家欧几里得在其著作《The Elements》中最早描述了这种算法,所以被命名为欧几里得算法。扩展欧几里得算法可用于…… 题解列表 2023年11月20日 0 点赞 2 评论 336 浏览 评分:9.9
题解 2825: 计算多项式的值 摘要: #include using namespace std; int main(){ int n; double x,b=1,sum=1; …… 题解列表 2023年11月20日 0 点赞 0 评论 227 浏览 评分:9.9
2822: 求分数序列和 摘要:``` #include using namespace std; int main(){ int n; double a=1.0,b=2.0,c=0,sum=2,s; cin>>n…… 题解列表 2023年11月20日 0 点赞 0 评论 304 浏览 评分:9.9
打印ASCII码给个好评 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ char a; cin>>a; cout<<(int)a<…… 题解列表 2023年11月20日 0 点赞 1 评论 637 浏览 评分:9.9