結果
問題 |
No.9010 うるう年判定
|
ユーザー |
![]() |
提出日時 | 2018-05-01 10:53:38 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 370 bytes |
コンパイル時間 | 2,629 ms |
コンパイル使用メモリ | 74,284 KB |
実行使用メモリ | 50,392 KB |
最終ジャッジ日時 | 2024-06-22 01:13:56 |
合計ジャッジ時間 | 3,839 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
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(num%4==0&&num%100 !=0){ System.out.println("Yes"); } else if(num%400==0){ System.out.println("Yes"); } else{ System.out.println("No"); } } }