HDU 2022 海选女主角
#include<stdio.h> #include<math.h> int main( ) { int x,y; while( scanf( "%d%d",&y,&x ) != EOF ) { int py ,px,min,t; min = t = 0; py = px = 0x7fffffff; for( int i = 1; i <= y; ++i ) { for( int j = 1; j <= x; ++j ) { scanf( "%d",&t ); if( fabs( t ) > fabs( min ) ) { py = i,px = j; min = t; } } } printf( "%d %d %d\n",py,px,min ); } return 0; }
本人还是新手 ,转载请注明来自Lvsi‘s home