結果
| 問題 | No.987 N×Mマス計算(基本) |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-02 19:45:25 |
| 言語 | Common Lisp (sbcl 2.6.7) |
| 結果 |
AC
不安定
|
| 実行時間 | 7 ms / 2,000 ms |
| + 936µs | |
| コード長 | 311 bytes |
| 記録 | |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 28,544 KB |
| 実行使用メモリ | 19,712 KB |
| 最終ジャッジ日時 | 2026-09-19 09:00:28 |
| 合計ジャッジ時間 | 2,029 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 19 SEP 2026 09:00:25 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.115
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(m (read))
(op (ecase (read) (+ #'+) (* #'*)))
(b (loop repeat m collect (read))))
(dotimes (_ n)
(let* ((a (read)))
(format t "~{~a~^ ~}~%" (mapcar (lambda (x) (funcall op x a)) b))))))
(main)
Common Lisp