自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 利用二维数组求矩阵的最大值和最小值,并求出其位置

Problem Description输入一个二维数组,在二维数组中找出最大值和最小值,并指出其位置。Input输入一个二维数组Output输出最大值和最小值,和对应的位置。Sample Input1 2 3 45 6 7 89 10 11 1213 14 15 16Sample Outputmin=1,a[0][0]max=16,a[4][4]代码如下:#include<stdio.h>#include<stdlib.h&.

2021-12-23 23:13:13 3682

原创 定义一个数组,倒序输出

Problem Description只定义一个数组,倒序输出Input输入一个数组Output倒序输出Sample Input1 2 3 4 5 6 7 8SampleOutput8 7 6 5 4 3 2 1​#include<stdio.h>#include<stdlib.h>int main(){ int n,i; scanf("%d\n",&n);//数组中元素个数 int a[n];//定义数组 fo.

2021-12-13 23:14:37 1132 1

原创 二维数组,输入随机数,进行每行从小到大排序

#include<stdio.h>#include<math.h>#include<time.h>#define H 9#define L 8int main(){ int i,j,t,s; int a[H][L]; for(i=0;i<H;i++) { for(j=0;j<L;j++) { a[i][j]=rand( )%1000; p...

2021-11-25 17:04:48 533

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除