解题思路:
注意事项:
参考代码:
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scanner=new Scanner(System.in);
int[][] a=new int[3][4];
int x = 0;
int y=0;
for(int i=0;i<3;i++)
for(int j=0;j<4;j++)
{
a[i][j]=scanner.nextInt();
}
int max=0;
for(int i=2;i>=0;i--)
for(int j=3;j>=0;j--)
{
if(Math.abs(a[i][j])>=max) {
x=i;
y=j;
max=Math.abs(a[i][j]);
}
}
System.out.println(max+" "+(x+1)+" "+(y+1));
}
}
0.0分
0 人评分
简单的a+b (C语言代码)浏览:777 |
【出圈】 (C语言代码)浏览:1208 |
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码)浏览:968 |
C语言程序设计教程(第三版)课后习题6.5 (C++代码)浏览:701 |
C语言程序设计教程(第三版)课后习题10.3 (C语言代码)浏览:823 |
C语言程序设计教程(第三版)课后习题10.3 (C语言代码)浏览:560 |
逆反的01串 (C++代码)(依旧推荐switch)浏览:933 |
点我有惊喜!你懂得!浏览:2705 |
C语言训练-阿姆斯特朗数 (C语言代码)浏览:849 |
校门外的树 (C语言代码)浏览:1113 |