結果

問題 No.9010 うるう年判定
ユーザー shinwisteria
提出日時 2017-05-04 22:42:48
言語 Java
(openjdk 23)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 3,009 ms
コンパイル使用メモリ 74,896 KB
実行使用メモリ 54,120 KB
最終ジャッジ日時 2024-06-22 01:09:43
合計ジャッジ時間 6,756 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

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