hdu2022

 1 #include <stdio.h>
 2 #include <math.h>
 3 #define here puts("go,go,go!
")
 4 int main(){
 5     int tmp,res,cnt,num[10000];
 6     int m,n,i,j,pi,pj;
 7     while(~scanf("%d%d",&m,&n)){
 8         res=0;
 9         for(i=0;i<m;++i){
10             for(j=0;j<n;++j){
11                 //here;
12                 scanf("%d",&num[j]);
13                 if(fabs(num[j])>fabs(res)){
14                     res=num[j]; pi=i+1;pj=j+1;
15                 }
16             }
17         }
18         printf("%d %d %d
",pi,pj,res);
19     }
20     return 0;
21 }
原文地址:https://www.cnblogs.com/symons1992/p/3405143.html