题解列表
1017:完数的判断-C语言
摘要:解题思路:注意事项:参考代码:int isRight(int n){ int sum=0; int i; for(i=1;……
1027:自定义函数处理最大公约数与最小公倍数-C语言
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gcd(int a,int b){ int temp; whil……
3133:函数重载-多个数字相加-C语言
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int add_two(int a,int b){ return(a+b);}int add_th……
1028:自定义函数求一元二次方程的解
摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>float x1,x2;int main(){ voi……
老管家的忠诚2(线段树)
摘要:解题思路: 代码分为线段树构建(build_tree)、区间查询(query)、单点更新(update)和主函数(main)四部分注意事项:参考代码:#include<bits/stdc++.h……
###母牛的故事递归
摘要:#include<stdio.h>int fun(int n){ if(n<=3)return n; else &nb……
编写题解 2811: 救援
摘要:#include <bits/stdc++.h>using namespace std;int main() { int n, s; d……