首页 > 其他 > 详细

acm2022

时间:2015-03-15 09:31:50      阅读:231      评论:0      收藏:0      [点我收藏+]
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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!