Audition actressTime
limit:2000/1000 MS (java/others) Memory limit:65536/32768 K (java/others)
Total submission (s): 41253 Accepted Submission (s): 18528
Problem Descriptionpotato teacher, although very fond of teaching, but under the pressure of life, have to find ways to earn some extra money in their spare time to feed their families.
"What do you do to make money?" Sieve the sand without strength, look at the door and not handsome ... "potato teacher is very helpless."
"Zhang Yimou is more ugly than you, now more money ah, heard also to director the Olympic Opening Ceremony!" Why don't you go to the entertainment industry? LWG in the side to advise.
Well, also, in order to survive, the injustice point to the entertainment Circle Gang, immediately on a laser film "Hangzhou Electric Memory-back my love."
Say dry, immediately audition actress (and the old son learn, this can attract the media eyeball, hehe), and special provisions, actors must have the basic skills of AC, otherwise directly out!
Because of the planning of the fish (master Water King) propaganda in place, to apply for a lot of mm, of course, including nit cake sister, such as the voice of high beauty, even zjut jqw are men disguised as women to apply (fortunately by the security adviser Hdu_bin-laden recognized, to blow away), It seems the entertainment circle is more attractive than ACM ...
The interview day, just came m*n mm, standing in a m*n queue, Deputy director Fe (OH) 2 for each MM score, scores are 32-bit signed integers.
At first I was wondering: How did the score get negative? Fe (OH) 2 explained that, according to the selection rules, hair dyed yellow, make-up too thick, too little wear and so on to buckle scores, buckle more may be negative points, of course, if found in the words in Japanese, directly to-2147483648 points.
Score sent up, it is time for me to make a decision, one of my selection principle is to choose an interview score absolute value (must or 32-bit integer) the largest mm.
Special Note: If the unfortunate selection of a negative mm, it does not matter, because I think, if not attract you, it is disgusting you.
Input data has more than one group, the first line of each group is two integers m and N, representing the total number of rows for mm, followed by M-line integers, each line has n, m and n definitions see the title description.
Output for each set of input data, outputs three integers, x, y, and S, each representing the line number, column number, and fraction of the selected mm.
Note: The line number and column number from the beginning, if there are more than one mm of the absolute value of the same, then the output of the first one (the smallest row number, if the line number is the same as the smallest column number).
Sample Input
2 31 4-3-7 3 0
Sample Output
2 1-7
Authorlcy
SOURCEC Language programming Exercises (iv)
Recommendlcy | We have carefully selected several similar problems for you:2021 2018 2014 2016 2015
Last year the ACM members were selected to do.
#include <stdio.h> #include <algorithm> #include <math.h> #define N 100000using namespace Std;bool cmp ( int X,int y) { return fabs (x) >fabs (y);} int main () { int m,n,j,i,s; int a[100][1000],b[n]; while (scanf ("%d%d", &m,&n)!=eof) { s=0; for (i=0;i<m;i++) for (j=0;j<n;j++) { scanf ("%d", &a[i][j]); B[S]=A[I][J]; s++; } Sort (b,b+s,cmp); for (i=0;i<m;i++) for (j=0;j<n;j++) { if (B[0]==a[i][j]) { printf ("%d%d%d", i+1,j+1 , A[i][j]); goto stop; } } Stop: printf ("\ n"); } return 0;}
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
HDU 2022 Female Audition