結果
| 問題 | No.143 豆 |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-10-08 09:01:34 |
| 言語 | Common Lisp (sbcl 2.6.7) |
| 結果 |
AC
不安定
|
| 実行時間 | 6 ms / 1,000 ms |
| + 173µs | |
| コード長 | 491 bytes |
| 記録 | |
| コンパイル時間 | 13 ms |
| コンパイル使用メモリ | 27,008 KB |
| 実行使用メモリ | 19,584 KB |
| 最終ジャッジ日時 | 2026-09-11 23:00:28 |
| 合計ジャッジ時間 | 1,733 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 11 SEP 2026 11:00:26 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.003
ソースコード
; n * k 粒あるので 家族の年齢を引き続け
; 負の値になったら -1 それ以外ならその数を出力する
(defun main ()
(let* ((k (read))
(n (read))
(f (read))
(g (lambda (x) (if (minusp x) -1 x)))
(result (* k n)))
(dotimes (_ f)
(decf result (read)))
; funcall function &rest args => result*
; function を args を引数として実行する
(princ (funcall g result))
(terpri)))
(main)
Common Lisp