Output's correct but wouldn't accept. Have a look at the code.
package com.codegym.task.task04.task0414;
/*
Number of days in the year
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader in = new BufferedReader (new InputStreamReader (System.in));
int num = Integer.parseInt(in.readLine());
if (num%100==0 && num%400!=0)
{
System.out.println("Number of days in the year: 365");
}
else if (num %100==0&&num%400==0)
{
System.out.println("Number of days in the year: 366");
}
}
}