标签:des style blog io color for sp 数据 div
1 #include <stdio.h> 2 #include <math.h> 3 4 int main(){ 5 int n; 6 int m; 7 int i; 8 int j; 9 double max; 10 double score; 11 12 int save_i; 13 int save_j; 14 double save_score; 15 16 while((scanf("%d%d",&n,&m))!=EOF){ 17 max=0; 18 save_i=0; 19 save_j=0; 20 save_score=0; 21 22 for(i=0;i<n;i++){ 23 for(j=0;j<m;j++){ 24 scanf("%lf",&score); 25 26 if(fabs(score)>max){ 27 max=fabs(score); 28 save_i=i; 29 save_j=j; 30 save_score=score; 31 } 32 33 } 34 } 35 36 printf("%d %d %.0lf\n",save_i+1,save_j+1,save_score); 37 } 38 return 0; 39 }
标签:des style blog io color for sp 数据 div
原文地址:http://www.cnblogs.com/zqxLonely/p/4057417.html