编写题解 1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:这就是一个数学问题,一元二次方程根的判别式。注意事项:分情况讨论判别式大于0,等于0,小于0需要注意的地方时当判别式小于0时的情况:当判别式大于等于0时,x1,x2都是实数,但是当判别式小于…… 题解列表 2025年11月14日 1 点赞 0 评论 13 浏览 评分:10.0
寻找矩阵的最值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define NUM 200int MAX(int arr[][NUM],int n){ int max = arr[0]…… 题解列表 2025年11月13日 0 点赞 0 评论 40 浏览 评分:0.0
简单易懂求奇偶和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,j,o,a=0,b=0; scanf("%d",&n); f…… 题解列表 2025年11月13日 2 点赞 0 评论 55 浏览 评分:0.0
2809:斐波那契数列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ int k,f1=1,f2=1,f3; scanf(&…… 题解列表 2025年11月13日 0 点赞 0 评论 65 浏览 评分:0.0
公约公数的题解 摘要:解题思路:两个整数A,B若A>B,则A=A-B若A<B,则B=B-A若A=B,则A=B为两者最大公因数。若A不等于B,继续返回执行第一项。(大的数减小的数直至差与减数大小相等)注意事项:参…… 题解列表 2025年11月13日 0 点赞 0 评论 47 浏览 评分:0.0
开关灯的相关解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,M,m=-1,n=0; scanf("%d%d",&N,&a…… 题解列表 2025年11月12日 0 点赞 0 评论 35 浏览 评分:0.0
Py2821-开关灯 摘要:参考代码:n,m=map(int,input().split())light=[1]*(n+1)for&nb…… 题解列表 2025年11月12日 0 点赞 0 评论 25 浏览 评分:0.0
水仙花数问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b[100],i,…… 题解列表 2025年11月12日 2 点赞 0 评论 106 浏览 评分:0.0
3044: 电池的寿命 摘要:#include<stdio.h>int main(){ int N; int single_max; float sum = 0.0; int temp; while(scanf(&qu…… 题解列表 2025年11月12日 0 点赞 0 评论 44 浏览 评分:0.0
1286: 最大配对 摘要:#include<iostream>#include<algorithm>#include<cmath>#include<vector>using na…… 题解列表 2025年11月12日 0 点赞 0 评论 63 浏览 评分:0.0