結果

問題 No.163 cAPSlOCK
ユーザー Rin
提出日時 2015-08-23 22:09:05
言語 Scheme
(Gauche-0.9.15)
結果
RE  
実行時間 -
コード長 378 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 16,256 KB
最終ジャッジ日時 2024-07-18 13:05:39
合計ジャッジ時間 1,231 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

(let(
     (foo (read (current-input-port)))
     )
    (let loop((i 0))
         (begin
         (if (char-upper-case? (string-ref foo i))
                 (string-set! foo i (char-downcase (string-ref foo i)))
                 (string-set! foo i (char-upcase   (string-ref foo i))))
        (when (<= i (- (string-length foo) 1))
            (loop (+ i 1))
        )
)
  )
  )
0