結果

問題 No.9010 うるう年判定
ユーザー Mcpu3Mcpu3
提出日時 2018-04-15 23:44:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 3,685 ms
コンパイル使用メモリ 71,748 KB
実行使用メモリ 56,084 KB
最終ジャッジ日時 2023-09-04 01:07:03
合計ジャッジ時間 7,289 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
56,036 KB
testcase_01 AC 128 ms
55,552 KB
testcase_02 AC 128 ms
56,028 KB
testcase_03 AC 127 ms
56,084 KB
testcase_04 AC 128 ms
56,040 KB
testcase_05 AC 128 ms
55,940 KB
testcase_06 AC 125 ms
55,780 KB
testcase_07 AC 129 ms
55,752 KB
testcase_08 AC 130 ms
55,788 KB
testcase_09 AC 128 ms
55,520 KB
testcase_10 AC 129 ms
55,968 KB
testcase_11 AC 129 ms
55,872 KB
testcase_12 AC 129 ms
55,512 KB
testcase_13 AC 128 ms
55,632 KB
testcase_14 AC 128 ms
55,652 KB
testcase_15 AC 129 ms
56,056 KB
testcase_16 AC 128 ms
55,952 KB
testcase_17 AC 126 ms
53,976 KB
testcase_18 AC 128 ms
55,852 KB
testcase_19 AC 127 ms
55,956 KB
testcase_20 AC 129 ms
55,764 KB
testcase_21 AC 127 ms
55,696 KB
testcase_22 AC 128 ms
55,896 KB
testcase_23 AC 131 ms
55,500 KB
testcase_24 AC 128 ms
55,544 KB
testcase_25 AC 128 ms
55,504 KB
testcase_26 AC 129 ms
55,480 KB
testcase_27 AC 130 ms
55,524 KB
testcase_28 AC 130 ms
55,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no9010{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int n=stdIn.nextInt();
		if(n%4==0&&n%100!=0||n%400==0) System.out.println("Yes");
		else System.out.println("No");
	}
}
0