解题思路:
注意事项:导包
import java.util.Arrays;
参考代码:
public class 永远的丰碑_水到不能再水 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
while(in.hasNext()) {
int N = in.nextInt();
if(N==0) {
break;
}
int [] arrays = new int [N];
for(int i=0;i<arrays.length;i++) {
arrays[i] = in.nextInt();
}
Arrays.sort(arrays);
System.out.print(arrays[arrays.length-1]);
System.out.println();
}
}
}
0.0分
0 人评分
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:591 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:529 |
出圈】指针malloc版浏览:355 |
Tom数 (C语言代码)浏览:527 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:519 |
拆分位数 (C语言代码)浏览:522 |
C语言程序设计教程(第三版)课后习题10.3 (C语言代码)浏览:840 |
幸运数 (C++代码)浏览:2871 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:573 |
简单的a+b (C语言代码)浏览:562 |