标签:
1 #include <stdio.h> 2 #include <math.h> 3 #define INF 0x3f3f3f3f 4 int main() 5 { 6 int m, n, x, min, line, lie; 7 while(~scanf("%d%d", &m, &n)) 8 { 9 min = 0; 10 for(int i = 1; i <= m; i++) 11 for(int j = 1; j <= n; j++) 12 { 13 scanf("%d", &x); 14 if(abs(min) < abs(x)) 15 { 16 min = x; 17 line = i; 18 lie = j; 19 } 20 } 21 printf("%d %d %d\n", line, lie, min); 22 23 } 24 return 0; 25 }
标签:
原文地址:http://www.cnblogs.com/digulove/p/4739626.html