結果
| 問題 | No.2893 Minahoshi (Hard) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-17 15:22:13 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 419 bytes |
| 記録 | |
| コンパイル時間 | 279 ms |
| コンパイル使用メモリ | 30,592 KB |
| 実行使用メモリ | 23,168 KB |
| 最終ジャッジ日時 | 2026-04-06 08:31:27 |
| 合計ジャッジ時間 | 7,626 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 49 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 06 APR 2026 08:31:19 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.092
ソースコード
(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)