码迷,mamicode.com
首页 > 其他好文 > 详细

acm2022

时间:2015-03-15 09:32:24      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:java   acm   

import java.util.*;


public class acm2022 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (in.hasNext()) {
int m = in.nextInt();
int n = in.nextInt();
int pos = 0;
int max = in.nextInt();
for (int i = 1; i < n * m; i++) {
int curr = in.nextInt();
if (Math.abs((double) max) < Math.abs((double) curr)) {
max = curr;
pos = i;
}
}


System.out.println((pos / n + 1) + " " + (pos % n + 1) + " " + max);
}
}
}

acm2022

标签:java   acm   

原文地址:http://blog.csdn.net/a736933735/article/details/44263351

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!