結果
問題 |
No.9010 うるう年判定
|
ユーザー |
![]() |
提出日時 | 2018-05-01 10:51:18 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 370 bytes |
コンパイル時間 | 2,466 ms |
コンパイル使用メモリ | 73,312 KB |
実行使用メモリ | 37,040 KB |
最終ジャッジ日時 | 2024-06-28 00:03:56 |
合計ジャッジ時間 | 4,935 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 15 WA * 10 |
ソースコード
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"); } } }