C语言 自定义函数之数字后移& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Long 30 //Long为数组最大长度int main(){ void move_nu…… 题解列表 2022年11月26日 0 点赞 0 评论 350 浏览 评分:0.0
用switch开关语句解决分段问题 摘要:解题思路:采用switch开关语句,使代码更为简洁注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int x,y,i; scanf("…… 题解列表 2022年11月26日 0 点赞 2 评论 638 浏览 评分:9.9
需求度和排序 摘要:求助!!错误18%,大佬帮找bug参考代码:#include<stdio.h> #include<stdlib.h> #define Min(x,y) x<y?x:y struct i…… 题解列表 2022年11月26日 0 点赞 0 评论 553 浏览 评分:9.9
2775: 等差数列末项计算 摘要:解题思路:注意事项:参考代码:a , b , n = map(int,input().strip().split())print(a + (n - 1) * (b - a)) #等差数列公式: an …… 题解列表 2022年11月26日 0 点赞 0 评论 725 浏览 评分:9.9
2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:import mathx1,y1,x2,y2,x3,y3 = map(float,input().strip().split())a = math.sqrt((x1 - …… 题解列表 2022年11月26日 0 点赞 0 评论 840 浏览 评分:9.3
[编程入门]成绩评定 题解 摘要:解题思路:直接用if语句编写就可以。注意if的括号后不要加;。输入X的前面要加上&。参考代码:#include <stdio.h>int main(){ int x; scanf("%d", &x);…… 题解列表 2022年11月26日 0 点赞 0 评论 364 浏览 评分:0.0
简单计算,解方程法,设a[1]为x 摘要:#include<iostream>#include<iomanip>using namespace std;class myitem{public: double item_x; double it…… 题解列表 2022年11月26日 0 点赞 0 评论 489 浏览 评分:0.0
全排列暴力枚举 摘要:```java import java.util.Scanner; public class 最大乘积 { static int max; public static void m…… 题解列表 2022年11月26日 0 点赞 0 评论 523 浏览 评分:0.0
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define S(a,b,c) (a+b+c)/2#define AREA(a,b,c) sqrt(s…… 题解列表 2022年11月26日 0 点赞 0 评论 1177 浏览 评分:8.4
矩阵交换行-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define N 5 int main() {//给定一个5*5的矩阵(数学上,一个r×c的矩阵是一个由r行c列元素排列成的矩…… 题解列表 2022年11月26日 0 点赞 0 评论 443 浏览 评分:0.0