题解列表
1062最大公约与最小公倍
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gongyueshu(int m,int n){ if(m>n) { for(int i=n;i>=1;i--) { ……
2042: 杨辉三角
摘要:解题思路:杨辉三角形满足完全平方公式((a+b)²=a²+2ab+b²)可以根据这个公式写程序注意事项:开数组时多开一些,防止越界参考代码:#include <bits/stdc++.h>//万能头文……
2352: 信息学奥赛一本通T1440-数的划分 深搜
摘要:# 思路

# 代码
```cpp
#include
……
1065最小绝对值(abs的使用)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ int a[10]; int b[10]; for(int ……
1066自定义函数(pow的使用)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double fenzi(double x,int n){ return pow(x,n);}long ……