結果

問題 No.9010 うるう年判定
ユーザー shinwisteriashinwisteria
提出日時 2017-05-04 22:42:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 3,313 ms
コンパイル使用メモリ 72,484 KB
実行使用メモリ 56,276 KB
最終ジャッジ日時 2023-09-04 01:01:41
合計ジャッジ時間 7,761 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
53,588 KB
testcase_01 AC 119 ms
56,084 KB
testcase_02 AC 118 ms
55,804 KB
testcase_03 AC 120 ms
55,728 KB
testcase_04 AC 119 ms
56,084 KB
testcase_05 AC 119 ms
56,276 KB
testcase_06 AC 119 ms
55,888 KB
testcase_07 AC 119 ms
56,052 KB
testcase_08 AC 121 ms
55,900 KB
testcase_09 AC 119 ms
55,784 KB
testcase_10 AC 121 ms
55,980 KB
testcase_11 AC 119 ms
56,016 KB
testcase_12 AC 120 ms
55,980 KB
testcase_13 AC 119 ms
56,088 KB
testcase_14 AC 119 ms
56,072 KB
testcase_15 AC 121 ms
56,116 KB
testcase_16 AC 125 ms
56,104 KB
testcase_17 AC 123 ms
56,088 KB
testcase_18 AC 121 ms
56,004 KB
testcase_19 AC 122 ms
55,736 KB
testcase_20 AC 122 ms
55,840 KB
testcase_21 AC 122 ms
55,784 KB
testcase_22 AC 121 ms
56,064 KB
testcase_23 AC 120 ms
55,952 KB
testcase_24 AC 123 ms
53,772 KB
testcase_25 AC 124 ms
56,116 KB
testcase_26 AC 124 ms
55,856 KB
testcase_27 AC 127 ms
56,072 KB
testcase_28 AC 122 ms
55,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Uruudoshi {

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

	}

}
0