p5711,为什么java总是re啊
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
for (int i = 1;i <= 4;i++){
Scanner sc1 = new Scanner(System.in);
int year = sc1.nextInt();
if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0){
System.out.println(1);
}else{
System.out.println(0);
}
}
}
}