赞
踩
#include<stdio.h> #include<math.h> int main(void) { int m, n; while(scanf_s("%d%d",&m,&n)!=EOF){ int i, j; int p=1, q=1; int tem=0, s; for (i = 1; i <= m; i++) { for (j = 1; j <= n; j++) { scanf_s("%d", &s); if (i == 1 && j == 1) { tem = s; } if (abs(tem) < abs(s)) { tem = s; p = i; q = j; } } } printf("%d %d ", p, q); printf("%d\n", tem); } }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。