結果

問題 No.9010 うるう年判定
ユーザー koena_1koena_1
提出日時 2018-05-01 10:51:18
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 370 bytes
コンパイル時間 1,867 ms
コンパイル使用メモリ 71,628 KB
実行使用メモリ 51,492 KB
最終ジャッジ日時 2023-09-10 08:37:00
合計ジャッジ時間 4,879 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
49,260 KB
testcase_01 WA -
testcase_02 AC 42 ms
49,108 KB
testcase_03 AC 40 ms
49,300 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 40 ms
49,296 KB
testcase_07 WA -
testcase_08 AC 40 ms
49,372 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 46 ms
49,240 KB
testcase_12 WA -
testcase_13 AC 43 ms
49,140 KB
testcase_14 WA -
testcase_15 AC 41 ms
49,452 KB
testcase_16 AC 42 ms
49,416 KB
testcase_17 AC 41 ms
49,232 KB
testcase_18 WA -
testcase_19 AC 41 ms
49,308 KB
testcase_20 AC 42 ms
49,160 KB
testcase_21 AC 41 ms
49,288 KB
testcase_22 AC 42 ms
49,508 KB
testcase_23 AC 42 ms
49,096 KB
testcase_24 WA -
testcase_25 AC 42 ms
49,304 KB
testcase_26 WA -
testcase_27 AC 41 ms
49,248 KB
testcase_28 AC 42 ms
49,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

class uruu{
 public static void main(String[] args) throws IOException
{
BufferedReader br=
new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
int num=Integer.parseInt(str);

if(4%num==0&&100%num !=0){
 System.out.println("Yes");
}
else if(num%400==0){
 System.out.println("Yes");
}
else{
 System.out.println("No");
}
}

}
0