解题思路:
注意事项:
参考代码:
import java.util.Scanner; public class test1532 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner scanner=new Scanner(System.in); int num=0,max=0,maxi = 0,maxj = 0,numb=0; for (int i = 0; i < 3; i++) { for (int j = 0; j < 4; j++) { num=scanner.nextInt(); if(Math.abs(num)>max) { max=Math.abs(num); maxi=i; maxj=j; numb=num; } } } System.out.println(max+" "+(maxi+1)+" "+(maxj+1)); } }
0.0分
0 人评分