結果
| 問題 |
No.379 五円硬貨
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-01 11:48:34 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 1,000 ms |
| コード長 | 351 bytes |
| コンパイル時間 | 388 ms |
| コンパイル使用メモリ | 33,208 KB |
| 実行使用メモリ | 30,016 KB |
| 最終ジャッジ日時 | 2024-11-01 11:48:36 |
| 合計ジャッジ時間 | 1,704 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 01 NOV 2024 11:48:34 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.015
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(g (read))
(v (read))
(a (floor (* (floor n 5) g) v))
(b (mod (* (floor n 5) g) v)))
(format t "~d." a)
(dotimes (_ 12)
(setq b (* b 10))
(format t "~d" (floor b v))
(setq b (mod b v)))
(format t "~%")))
(main)
Common Lisp