結果
| 問題 |
No.501 穴と文字列
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-06 11:24:54 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 2,000 ms |
| コード長 | 349 bytes |
| コンパイル時間 | 454 ms |
| コンパイル使用メモリ | 33,476 KB |
| 実行使用メモリ | 32,152 KB |
| 最終ジャッジ日時 | 2024-11-06 11:24:56 |
| 合計ジャッジ時間 | 1,440 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 06 NOV 2024 11:24:54 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.023
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(d (read)))
(if (< n d)
(format t "~a~a~%" (make-string (- (* 2 n) d) :initial-element #\A) (make-string (- d n) :initial-element #\B))
(format t "~a~a~%" (make-string d :initial-element #\A) (make-string (- n d) :initial-element #\C)))))
(main)
Common Lisp