結果

問題 No.2893 Minahoshi (Hard)
ユーザー Lisp_Coder
提出日時 2024-09-17 15:22:13
言語 Common Lisp
(sbcl 2.5.0)
結果
WA  
実行時間 -
コード長 419 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 37,436 KB
実行使用メモリ 34,784 KB
最終ジャッジ日時 2024-09-17 15:22:24
合計ジャッジ時間 10,177 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 49
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 17 SEP 2024 03:22:13 PM):

; wrote /home/judge/data/code/Main.fasl
; compilation finished in 0:00:00.079

ソースコード

diff #

(defun read-int ()
  (parse-integer (read-line)))

(defun solve ()
  (let ((test-count (read-int)))
    (dotimes (i test-count)
      (let* ((N (read-int))
             (half-N (floor N 2))
             (s (concatenate 'string
                             (make-string half-N :initial-element #\a)
                             (make-string (- N half-N) :initial-element #\b))))
        (format t "~a~%" s)))))

(solve)
0