HDACM 2107
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc
= new Scanner(System.in);
while(sc.hasNext()){
int n = sc.nextInt();
if (n==0) {
break;
}
int max = Integer.MIN_VALUE;
for (int i = 0; i < n; i++) {
int ac = sc.nextInt();
if (ac>max) {
max = ac;
}
}
System.out.println(max);
}
sc.close();
}
}
最后
以上就是光亮豆芽最近收集整理的关于HDOJ 2107 Founding of HDU(水题)的全部内容,更多相关HDOJ内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复