矩阵转换(矩阵转换) 解题思路:将原先的m行n列,变为n行m列。感谢大佬的思路,我真是个天才注意事项:参考代码:#includeintmain(){inti,j,m,n;inta[500][500];scanf("%d%d",&m,&n);for(i=0;i 题解列表 2022年11月27日 0 点赞 0 评论 794 浏览 评分:9.3 入门难度的题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int num[30];int maxnum;int main(){ stri…… 题解列表 2022年11月27日 0 点赞 0 评论 896 浏览 评分:9.9 计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[500][500]; int i,j,m,n; int sum=0; scanf("%d %d",&…… 题解列表 2022年11月27日 0 点赞 0 评论 615 浏览 评分:0.0 二级C语言-进制转换 %o解法与通解 摘要:第一种解法,直接用printf的%o格式打印。 ```c #include int main(){ int n; scanf("%d",&n); printf("%…… 题解列表 2022年11月27日 0 点赞 0 评论 696 浏览 评分:9.9 2779: 输出绝对值 摘要:解题思路: 这道题考察的是条件语句的应用注意事项:参考代码:a = float(input())if a >= 0: print('{:.2f}'.format(a)) #第一…… 题解列表 2022年11月27日 0 点赞 0 评论 938 浏览 评分:2.0 跟原先不使用函数一样的道理-C语言解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void max(int a, int b, int c) { int max = 0; if (a > b) ma…… 题解列表 2022年11月27日 0 点赞 1 评论 699 浏览 评分:9.9 Huffuman树 不需用删除,不需要额外空间。 解题思路:利用vector容器灵活性,可以自由添加数据,先对vector容器排序,取第一个和第二个数相加加入容器中,第一个和第二个数变为无穷大,不需用删除第一个第二个数,也不需要在开辟一个数组或者容器来存储原来的数据。注意事项:注意while循环次数,--n和n--的区别。 题解列表 2022年11月27日 0 点赞 0 评论 761 浏览 评分:9.9 简简单单解决-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[100][100]; int brr[100][100]; …… 题解列表 2022年11月27日 0 点赞 0 评论 754 浏览 评分:8.0 C语言简单版 摘要:解题思路:利用循环和for语句来做注意事项:for语句后面没有分号参考代码:#include<stdio.h>int main(){ int i,c=0,n; scanf("%d",&n); int …… 题解列表 2022年11月27日 0 点赞 1 评论 810 浏览 评分:9.9 自定义函数之字符提取 摘要:解题思路:需要数组进行存储,若遇到元音字母即可输入该数组注意事项:参考代码:#include <stdio.h>void f(char *a,char*b);int main(){ char a[10…… 题解列表 2022年11月27日 0 点赞 0 评论 761 浏览 评分:9.9 « 12...1754175517561757175817591760...59245925 »
入门难度的题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int num[30];int maxnum;int main(){ stri…… 题解列表 2022年11月27日 0 点赞 0 评论 896 浏览 评分:9.9
计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[500][500]; int i,j,m,n; int sum=0; scanf("%d %d",&…… 题解列表 2022年11月27日 0 点赞 0 评论 615 浏览 评分:0.0
二级C语言-进制转换 %o解法与通解 摘要:第一种解法,直接用printf的%o格式打印。 ```c #include int main(){ int n; scanf("%d",&n); printf("%…… 题解列表 2022年11月27日 0 点赞 0 评论 696 浏览 评分:9.9
2779: 输出绝对值 摘要:解题思路: 这道题考察的是条件语句的应用注意事项:参考代码:a = float(input())if a >= 0: print('{:.2f}'.format(a)) #第一…… 题解列表 2022年11月27日 0 点赞 0 评论 938 浏览 评分:2.0
跟原先不使用函数一样的道理-C语言解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void max(int a, int b, int c) { int max = 0; if (a > b) ma…… 题解列表 2022年11月27日 0 点赞 1 评论 699 浏览 评分:9.9
Huffuman树 不需用删除,不需要额外空间。 解题思路:利用vector容器灵活性,可以自由添加数据,先对vector容器排序,取第一个和第二个数相加加入容器中,第一个和第二个数变为无穷大,不需用删除第一个第二个数,也不需要在开辟一个数组或者容器来存储原来的数据。注意事项:注意while循环次数,--n和n--的区别。 题解列表 2022年11月27日 0 点赞 0 评论 761 浏览 评分:9.9
简简单单解决-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[100][100]; int brr[100][100]; …… 题解列表 2022年11月27日 0 点赞 0 评论 754 浏览 评分:8.0
C语言简单版 摘要:解题思路:利用循环和for语句来做注意事项:for语句后面没有分号参考代码:#include<stdio.h>int main(){ int i,c=0,n; scanf("%d",&n); int …… 题解列表 2022年11月27日 0 点赞 1 评论 810 浏览 评分:9.9
自定义函数之字符提取 摘要:解题思路:需要数组进行存储,若遇到元音字母即可输入该数组注意事项:参考代码:#include <stdio.h>void f(char *a,char*b);int main(){ char a[10…… 题解列表 2022年11月27日 0 点赞 0 评论 761 浏览 评分:9.9