結果

問題 No.163 cAPSlOCK
コンテスト
ユーザー まんしmaNNshi
提出日時 2025-03-21 21:01:54
言語 Common Lisp
(sbcl 2.6.3)
コンパイル:
sbclc _filename_
実行:
sbcl --script Main.fasl
結果
AC  
実行時間 6 ms / 5,000 ms
コード長 305 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 738 ms
コンパイル使用メモリ 31,100 KB
実行使用メモリ 27,252 KB
最終ジャッジ日時 2026-07-07 14:03:50
合計ジャッジ時間 2,201 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 JUL 2026 02:03:47 PM):

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

ソースコード

diff #
raw source code

(loop for char = (read-char nil nil)
      while char do
        (if (char= char #\Newline) (return))
        (if (upper-case-p char) (format 't "~A" (string-downcase char)))
        (if (lower-case-p char) (format 't "~A" (string-upcase char)))
        ;(format t "input: ~A~%" char) )
)
(format 't "~%")
0