結果
| 問題 |
No.661 ハローキティはりんご3個分
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-10-17 01:19:56 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 2,000 ms |
| コード長 | 337 bytes |
| コンパイル時間 | 1,726 ms |
| コンパイル使用メモリ | 32,180 KB |
| 実行使用メモリ | 29,732 KB |
| 最終ジャッジ日時 | 2024-10-17 01:19:59 |
| 合計ジャッジ時間 | 1,224 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 17 OCT 2024 01:19:56 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.020
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((i (read)))
(dotimes (_ i)
(let ((n (read)))
(princ (cond
((= 0 (mod n 8) (mod n 10)) "ikisugi")
((= 0 (mod n 8)) "iki")
((= 0 (mod n 10)) "sugi")
(t (floor n 3))))
(terpri)))))
(main)
Common Lisp