結果
| 問題 |
No.779 Heisei
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-03 21:36:18 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 1,000 ms |
| コード長 | 543 bytes |
| コンパイル時間 | 382 ms |
| コンパイル使用メモリ | 34,844 KB |
| 実行使用メモリ | 30,016 KB |
| 最終ジャッジ日時 | 2024-11-03 21:36:20 |
| 合計ジャッジ時間 | 1,820 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 03 NOV 2024 09:36:18 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.006
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((y (read))
(m (read))
(d (read)))
(format t "~a~%"
(cond ((or (< y 1989) (< 2019 y))
"No")
((< 1989 y 2019)
"Yes")
((= y 1989)
(cond ((< 1 m)
"Yes")
((and (= 1 m) (< d 8))
"No")
(t
"Yes")))
(t (if (<= m 4)
"Yes"
"No"))))))
(main)
Common Lisp