public static void main(String[] args) throws Exception {
    //在此编写你的代码

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String s = reader.readLine();
        int year = Integer.parseInt(s);
        int x;
        if (year % 400 == 0)
            x = 366;
        else if (year % 100 == 0)
            x = 365;
        else if (year % 4 == 0)
            x = 366;
        else
            x = 365;
        System.out.println("这一年的天数:" + x);

}
哪里有问题么???