解题思路:
注意事项:
参考代码:
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 人评分
C语言程序设计教程(第三版)课后习题5.5 (C语言代码)浏览:555 |
图形输出 (C语言代码)浏览:939 |
陶陶摘苹果2 (C语言代码)浏览:597 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:510 |
简单的a+b (C语言代码)浏览:460 |
拆分位数 (C语言代码)浏览:514 |
C语言程序设计教程(第三版)课后习题7.5 (C语言代码)浏览:713 |
C语言训练-最大数问题 (C语言代码)浏览:588 |
test 2浏览:655 |
C语言程序设计教程(第三版)课后习题7.1 (C语言代码)浏览:502 |