結果
| 問題 |
No.56 消費税
|
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-10-07 13:43:14 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 5,000 ms |
| コード長 | 196 bytes |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 35,860 KB |
| 実行使用メモリ | 29,756 KB |
| 最終ジャッジ日時 | 2024-10-07 13:43:16 |
| 合計ジャッジ時間 | 1,316 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 OCT 2024 01:43:14 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.002
ソースコード
; 求めるものは D + (D * (P / 100))
; 式変形して D * (100 + P) / 100
(defun main ()
(let* ((d (read))
(p (read)))
(princ (floor (* d (+ p 100)) 100))
(terpri)))
(main)
Common Lisp