結果

問題 No.779 Heisei
ユーザー takeya_okino
提出日時 2019-09-28 17:45:27
言語 Java
(openjdk 23)
結果
AC  
実行時間 168 ms / 1,000 ms
コード長 519 bytes
コンパイル時間 2,216 ms
コンパイル使用メモリ 77,136 KB
実行使用メモリ 42,700 KB
最終ジャッジ日時 2024-10-02 13:28:22
合計ジャッジ時間 6,922 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int y = sc.nextInt();
    int m = sc.nextInt();
    int d = sc.nextInt();
    String s = "" + y;
    if(m < 10) {
      s += ("0" + m);
    } else {
      s += m;
    }
    if(d < 10) {
      s += ("0" + d);
    } else {
      s += d;
    }
    int sd = Integer.parseInt(s);
    String ans = "No";
    if((sd >= 19890108) && (sd <= 20190430)) ans = "Yes";
    System.out.println(ans);
  }
}
0