結果

問題 No.2893 Minahoshi (Hard)
コンテスト
ユーザー NixOS_and_Gentoo
提出日時 2024-09-17 15:22:13
言語 Common Lisp
(sbcl 2.6.7)
コンパイル:
sbclc _filename_
実行:
sbcl --script Main.fasl
結果
WA  
実行時間 -
コード長 419 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 71 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 20,352 KB
最終ジャッジ日時 2026-08-29 16:10:29
合計ジャッジ時間 8,484 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 49
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 29 AUG 2026 04:10:19 PM):

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

ソースコード

diff #
raw source code

(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