编写题解 1030: [编程入门]二维数组的转置 摘要:解题思路:转置是线性代数里面的知识,就是把行变为列。如题第一列1 4 7变为第一行,以此类推;注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[3][3…… 题解列表 2024年02月07日 0 点赞 0 评论 118 浏览 评分:0.0
1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:这段代码是用C语言编写的,用于求解二次方程的根。二次方程的形式为ax^2 + bx + c = 0。代码中定义了三个函数:root_above、root_equal和root_belove,…… 题解列表 2024年02月07日 0 点赞 0 评论 222 浏览 评分:0.0
河中跳房子(C++) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int L,N,M,a[10000];int f(int x){ int ans=0,t=0…… 题解列表 2024年02月08日 0 点赞 0 评论 227 浏览 评分:0.0
求和训练题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; int max = 0;//这里我们创建一个最大值的变量 double count =…… 题解列表 2024年02月08日 0 点赞 0 评论 94 浏览 评分:0.0
求和训练题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; int max = 0;//这里我们创建一个最大值的变量 …… 题解列表 2024年02月08日 0 点赞 0 评论 109 浏览 评分:0.0
取余运算(C++) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int b, p, k;int f(int p){ int q; if (p == 0) r…… 题解列表 2024年02月08日 0 点赞 0 评论 331 浏览 评分:0.0
python简单易懂 摘要:解题思路:注意事项:参考代码:while True: try: n = int(input()) if n!=0: c = n%10 …… 题解列表 2024年02月08日 0 点赞 0 评论 147 浏览 评分:0.0
亲密数(c++,数组存储因子和,简单易懂,巧妙避免超时) 摘要:解题思路:注意事项:参考代码#include<iostream> using namespace std; int main() { int a[30010],sum=0; …… 题解列表 2024年02月08日 0 点赞 0 评论 262 浏览 评分:0.0
求最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m, n,min=1,max=1,i; cin >…… 题解列表 2024年02月08日 0 点赞 0 评论 600 浏览 评分:0.0
编写题解阶乘求和 摘要:解题思路:注意事项:当输入19时出现负的结果说明int的范围不够,用longlong类型保存结果参考代码:#include<iostream>using namespace std;int main(…… 题解列表 2024年02月08日 0 点赞 0 评论 319 浏览 评分:0.0