输入输出练习之输出小人 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char c; cin>>c; cout…… 题解列表 2023年11月19日 0 点赞 4 评论 956 浏览 评分:9.9
1464: 蓝桥杯基础练习VIP-分解质因数 摘要:``` #include using namespace std; int main(){ int l, r; cin >> l >> r; for (int i = l; i …… 题解列表 2023年11月19日 1 点赞 0 评论 508 浏览 评分:9.9
2752: 整型数据类型存储空间大小 摘要:解题思路:注意事项:先int后short参考代码:#include <iostream>using namespace std;int main(){ cout <<sizeof(int)<<"…… 题解列表 2023年11月19日 0 点赞 0 评论 550 浏览 评分:9.9
2518: 信息学奥赛一本通T1620-质因数分解 摘要:``` #include using namespace std; int main(){ int r,sum=0; cin>>r; int a = r; …… 题解列表 2023年11月19日 1 点赞 0 评论 494 浏览 评分: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 评论 606 浏览 评分:9.9
很简单的水仙花,使我大脑旋转。 摘要:解题思路:直接按照水仙花定义求解注意事项:关键在于如何表示百位,十位,个位的数值,三位数除100再取10的余得百位,除10取10的余得十位,直接取10的余得个位。参考代码:#include <stdi…… 题解列表 2023年11月19日 0 点赞 0 评论 499 浏览 评分: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 评论 563 浏览 评分:9.9
三种方法解排序(C语言) 摘要:解题思路:注意事项:参考代码:方法1:使用冒泡排序#include // 冒泡排序函数 void bubbleSort(int arr[], int n) { int temp; …… 题解列表 2023年11月19日 0 点赞 0 评论 643 浏览 评分: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 评论 629 浏览 评分:9.9
最大公约数与最小公倍数 解题思路:最大公约数的求法欧几里得算法是用来求两个正整数最大公约数的算法。古希腊数学家欧几里得在其著作《TheElements》中最早描述了这种算法,所以被命名为欧几里得算法。扩展欧几里得算法可用于RSA加密等领域。假如需要求1997和615两个正整数的最大公约数,用欧几里得算法, 题解列表 2023年11月20日 0 点赞 2 评论 521 浏览 评分:9.9