上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页

2022年9月26日

摘要: 已知A为5*4矩阵,请问元素A(2,3)为矩阵中第几个数 第13个数据在矩阵A的第几行第几列 12 3 4 7 8 5 6 9 11 13 2 1 15 20 21 10 6 11 8 9 要求输出2行 第1行为一个整数k,表示指定元素为第几个数 第2行为2个整数m,n,表示第13个数为第m行第n列 阅读全文

posted @ 2022-09-26 22:20 lachesism 阅读(127) 评论(0) 推荐(0) 编辑

摘要: 如下4x5的矩阵 12 3 4 7 8 5 6 9 11 13 2 1 15 20 21 10 6 11 8 9 输出第2行到第4行的子矩阵 5 6 9 11 13 2 1 15 20 21 10 6 11 8 9 A=[12,3,4,7,8;5,6,9,11,13;2,1,15,20,21;10, 阅读全文

posted @ 2022-09-26 22:19 lachesism 阅读(78) 评论(0) 推荐(0) 编辑

2022年9月19日

摘要: #include <stdio.h> main( ) { int a,b,c; int flag=1; scanf("%d %d %d",&a,&b,&c); if(a+b>c&&a+c>b&&b+c>a) { if(a==b&&b==c) { printf("dengbian\n"); flag= 阅读全文

posted @ 2022-09-19 20:59 lachesism 阅读(816) 评论(0) 推荐(0) 编辑

摘要: #include <stdio.h> main( ) { int a,d=0; scanf("%d",&a); while(a>86399) { a=a-86400; d++; if(a<86399) { break; } } if(a<43199&&d!=0) { int h; h=a/3600; 阅读全文

posted @ 2022-09-19 20:25 lachesism 阅读(282) 评论(0) 推荐(0) 编辑

摘要: #include<stdio.h> #include<stdlib.h> int main(){ int n = 0; scanf("%d", &n); int result = 0; if(n < 0){ n = -n; printf("-"); } while(1) { result = n % 阅读全文

posted @ 2022-09-19 20:09 lachesism 阅读(127) 评论(0) 推荐(0) 编辑

摘要: #include"stdio.h" int main() { int x,y; scanf("%d",&x); y= x<0?-x:x; //构造一个条件表达式,当x<0时,取-x的值,否则取x的值 printf("%d",y); } 阅读全文

posted @ 2022-09-19 19:58 lachesism 阅读(187) 评论(0) 推荐(0) 编辑

摘要: #include<stdio.h> main() { int t,sum=0; while(scanf("%d",&t)!=0) { if(t 1) break; sum=sum+t; } printf("%d\n",sum); } 阅读全文

posted @ 2022-09-19 19:47 lachesism 阅读(451) 评论(0) 推荐(0) 编辑

摘要: #include<stdio.h> main() { int y; scanf("%d",&y); if((y%400==0) || (y%4==0 && y%100!=0)) { printf("YES"); } else { printf("NO"); } } 阅读全文

posted @ 2022-09-19 19:23 lachesism 阅读(60) 评论(0) 推荐(0) 编辑

摘要: #include <stdio.h> main( ) { int a,b,s; scanf("%d %d",&a,&b); if(a<=3) { s=10; } else if(a<=10) { s=10+(a-3)*2; } else { s=24+(a-10)*3; } if(b>5) { s= 阅读全文

posted @ 2022-09-19 19:11 lachesism 阅读(258) 评论(0) 推荐(0) 编辑

摘要: #include <stdio.h> main( ) { int x,y; scanf("%d %d",&x,&y); if(x>0&&y>0) { printf("I"); } else if(x<0&&y>0) { printf("II"); } else if(x<0&&y<0) { prin 阅读全文

posted @ 2022-09-19 19:05 lachesism 阅读(255) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页