题解列表

筛选

1026使用for循环的写法

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10]; for(int i=0;i<……

1014的递归写法

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;long long fs(long long n)//定义一个函数fs,功能是对计……

1011辗转相除法的运用

摘要:解题思路:辗转相除法的本质是:两个数的最大公约数,是其中较小的那个数和两数相除余数的最大公约数,不断嵌套,当余数为零时,那个较大数就是最大公约数最大公倍数:两数积/两数最大公约数,设m,n, m = ……