[编程入门]成绩评定 题解 摘要:解题思路:直接用if语句编写就可以。注意if的括号后不要加;。输入X的前面要加上&。参考代码:#include <stdio.h>int main(){ int x; scanf("%d", &x);…… 题解列表 2022年11月26日 0 点赞 0 评论 180 浏览 评分: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 评论 272 浏览 评分:0.0
全排列暴力枚举 摘要:```java import java.util.Scanner; public class 最大乘积 { static int max; public static void m…… 题解列表 2022年11月26日 0 点赞 0 评论 325 浏览 评分: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 评论 1020 浏览 评分:8.4
矩阵交换行-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define N 5 int main() {//给定一个5*5的矩阵(数学上,一个r×c的矩阵是一个由r行c列元素排列成的矩…… 题解列表 2022年11月26日 0 点赞 0 评论 233 浏览 评分:0.0
C语言 自定义函数之整数处理& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Long 10 //改变Long的大小能输入更多的数并实现该功能int main(){ …… 题解列表 2022年11月26日 0 点赞 0 评论 243 浏览 评分:0.0
题目 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int x,y; x=n; …… 题解列表 2022年11月26日 0 点赞 0 评论 473 浏览 评分:9.9
C++三目超简 摘要:解题思路:如果年份整除于4但不整除于100则为普通闰年,如果年份整除于400则为世纪闰年.我们可以通过三目运算符来进行判断。注意事项:注意格式规范参考代码:#include <iostream>#de…… 题解列表 2022年11月26日 0 点赞 0 评论 465 浏览 评分:7.3
2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:import mathn, x, y = map(int,input().strip().split())print(math.floor(n - y / x)) …… 题解列表 2022年11月26日 0 点赞 0 评论 519 浏览 评分:4.7
1013: [编程入门]Sn的公式求和(java代码) 摘要:解题思路:解法一:根据规律发现每一项数字都是前面一项的10倍+2(2,20+2, 220+2,.....)。解法二:把每一项数字拆开(2*100,(2*100+2*101),(2*100+2*101+…… 题解列表 2022年11月26日 0 点赞 0 评论 224 浏览 评分:0.0