题解列表

筛选

编写题解 1738: 排序

摘要:```c #include int main() { int num,nums[100],i,j,temp; while(~scanf("%d",&num)){ for……

算法思维弱,尽力了

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void sc (int a,int b, int c){    cout << a……

编写题解 2831: 画矩形

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b;bool d;char c;cin>>a>>b……

用函数写的

摘要:解题思路:注意事项:参考代码:def get_sum(a=4,b=3):    a,b =map(int,input().split())    sum = a%b    print(sum)get_……

递归法(辗转相除法)求最大公约数

摘要:解题思路:用辗转相除法求最大公约数,在借助最大公约数求最小公倍数注意事项:参考代码:def yue(m,n):    if n==0:return m    else:return yue(n,m%n……