Audition actress (Hangzhou electric 2022)

Source: Internet
Author: User

/* Audition Actress
Problem Description
Potato 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 is better than making money?" Sieve the sand no strength, look at the door and not handsome ... "potato teacher is very helpless."
"Zhang Yimou is more ugly than you, now rich Ah, heard to also 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 old son learn, this move can attract media eyeball, hehe), and special provisions, actors must have AC basic skills, otherwise directly out!
Because the mastermind of the fish (master Water King) propaganda in place, to apply for mm very much, of course, including nit cake sister, such as the voice of the very high beauty, even zjut jqw are male dress to apply (fortunately by the security adviser Hdu_bin-laden recognized, to blow away), It seems the entertainment circle is more attractive than ACM ...
Interview that 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 the beginning I was very puzzled: how come the score is negative? Fe (OH) 2 explained that, according to the selection rules, hair dyed yellow, make-up too thick, too little to wear and so on to buckle scores, buckle more may be negative points, of course, the hypothesis found that 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 unfortunate to select a negative mm, it doesn't matter, because I think, if you do not attract, it is disgusting you.

Input
Input data has more than one group, the first row 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 description of the topic.

Output
For each set of input data, output 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 start from the beginning, assuming that there are more than one mm of the absolute value of the same, then the output is ranked in the first (the smallest line number, assuming the same row number is the smallest column number of the same).

Sample Input
2 3
1 4-3
-7 3 0

Sample Output
2 1-7

*/
The header file for the ABS function (for the absolute value of integers) is #include<stdlib.h&gt, and the input does not have to consider wrapping.
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int i,m,n,j;
while (~SCANF ("%d%d", &m,&n))
{
int t=0;
int a,b,c;
for (i=1;i<=m;i++)
{
for (j=1;j<=n;j++)
{
scanf ("%d", &a);
if (ABS (a) > abs (t))
{

T=a;
B=i;
C=j;
}
}
}
printf ("%d%d%d\n", b,c,t);
}
return 0;
}

Audition actress (Hangzhou electric 2022)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.