結果
| 問題 | No.779 Heisei |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-03 21:36:18 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 1,000 ms |
| コード長 | 543 bytes |
| 記録 | |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 29,184 KB |
| 実行使用メモリ | 22,272 KB |
| 最終ジャッジ日時 | 2026-05-06 02:16:02 |
| 合計ジャッジ時間 | 2,061 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 06 MAY 2026 02:15:47 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.005
ソースコード
(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