結果

問題 No.779 Heisei
ユーザー keiden
提出日時 2024-09-17 12:48:10
言語 Scheme
(Gauche-0.9.15)
結果
WA  
実行時間 -
コード長 384 bytes
コンパイル時間 43 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 16,000 KB
最終ジャッジ日時 2024-09-17 12:48:12
合計ジャッジ時間 1,555 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

(define yuki779
  (let*
    (
      (y (read))
      (m (read))
      (d (read))
      (yes "Yes\n")
      (no "No\n")
    )
    (display
      (cond
        ((or (< y 1989) (< 2019 y)) no)
        ((< 1989 y 2019) yes)
        ((= y 1989)
          (cond
            ((< 1 m) yes)
            (and (= 1 m) (< d 8) no)
            (else yes)))
        (else (if (<= m 4) yes no))))))
0