全排列暴力枚举 ```javaimportjava.util.Scanner;publicclass最大乘积{staticintmax;publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);intx=sc.nextInt();for(in 题解列表 2022年11月26日 0 点赞 0 评论 684 浏览 评分: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 评论 1284 浏览 评分:8.4
矩阵交换行-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define N 5 int main() {//给定一个5*5的矩阵(数学上,一个r×c的矩阵是一个由r行c列元素排列成的矩…… 题解列表 2022年11月26日 0 点赞 0 评论 602 浏览 评分:0.0
C语言 自定义函数之整数处理& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Long 10 //改变Long的大小能输入更多的数并实现该功能int main(){ …… 题解列表 2022年11月26日 0 点赞 0 评论 530 浏览 评分:0.0
题目 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int x,y; x=n; …… 题解列表 2022年11月26日 0 点赞 0 评论 754 浏览 评分:9.9
C语言简便方法解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[256][101] = { 0 }; int a, b; …… 题解列表 2022年11月26日 1 点赞 0 评论 980 浏览 评分:9.9
for循坏简简单单解决 2808 摘要:解题思路:注意事项:参考代码:#includeint main(){ int N,K; double s=200; scanf("%d%d",&N,&K); for(i…… 题解列表 2022年11月25日 0 点赞 0 评论 907 浏览 评分:8.3
C语言:用pow函数解一下,十进制转换2,8进制的模板 ```cpp//由于pow函数的返回值是double型,为了防止出错我们不如全部变量都用double//思路:先用二进制引入一下思路,100=2^6+2^5+2^2写成二进制就是10^6+10^5+10^2,八进制同理,从极限位置往下逼近//2, 题解列表 2022年11月25日 0 点赞 0 评论 696 浏览 评分:9.9
先求sum,找出最大值相减即可解决。 摘要:解题思路:先求总和,然后找出最大值;最后相减即可得到答案。注意事项:注意一下输出格式就好了,然后它是多组的输出。所以需要前面是while(scanf("%d",&a)!=EOF)参考代码://不与最大…… 题解列表 2022年11月25日 0 点赞 0 评论 627 浏览 评分:6.0
20221125Snake row matrix 摘要:解题思路:先求出第0列的值,再求出每行其余元素与该行第0列元素之间的函数关系;注意事项:二维数组须初始化;参考代码:#include <stdio.h>void SRM(int n){ int i,j…… 题解列表 2022年11月25日 0 点赞 0 评论 459 浏览 评分:0.0