题解列表
编写题解 1395: 倒数第二 Python
摘要:解题思路:sort函数注意事项:很简单好吧,不需要注意参考代码:C=int(input())while C!=0: n=int(input()) if n>=2 and n<=10: ……
题解1096:Minesweeper
摘要:# 1096: Minesweeper
## 知识点
### 知识点1:无限循环输入,知道输入两个0的时候结束
我这里使用的方法是,用`times`变量进行计数,使用`for`循环。……
2757: 浮点数向零舍入(C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; int b; scanf("%f",&a); b=a; printf("%d\n",b); ……
2755: 类型转换
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("D C\n"); return 0;}……
杨辉三角, 三种方法: 组合数 || 递归 || 迭代,都很简单
摘要: #include
long long Fun(int n, int m)// 组合数,注意大组合数
{
if (n ……
题解 2803: 整数的个数(C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,k,i,j=0,y=0,z=0; scanf("%d",&k); for(i=1;i<=k;i++)……
[编程入门]最大公约数与最小公倍数(C语言题解)
摘要:解题思路:很多人使用辗转相除法来获得GCD和LCM,但在中学大家更多的应该是使用老师讲的短除法,所以这个代码采用了短除法的思路。参考代码:#include<stdio.h>
int main()
……
蓝桥杯算法训练VIP-友好数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,sum1=0,sum2=0; scanf("%d %d",&m,&n); if……