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