import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] days = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};//平年每个月的天数表 while(scan.hasNextInt()) { int year = scan.nextInt(); ...