为什么会不通过
package zh.codegym.task.task05.task0532;
import java.io.*;
/*
有关算法的任务
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int maximum = 0;
//在此编写你的代码
int n=Integer.parseInt(reader.readLine());
int i=1;
//在此编写你的代码
if(n>0){
maximum=n;
while(i<n){
String in=reader.readLine();
if(in != null){
int m=Integer.parseInt(in);
maximum=(maximum>m)|(maximum==m)?maximum:m;
}else{
break;
}
i++;
}
System.out.println(maximum);
}
}
}