結果

問題 No.163 cAPSlOCK
コンテスト
ユーザー ducktail
提出日時 2019-09-30 13:59:18
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 210 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 45 ms
コンパイル使用メモリ 8,096 KB
実行使用メモリ 16,896 KB
最終ジャッジ日時 2026-04-19 06:58:37
合計ジャッジ時間 1,692 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(use srfi-13)  ;; string library

(define (solve s)
  (string-map (^c (if (char-upper-case? c) (char-downcase c) (char-upcase c))) s))

(define (main args)
  (let1 s (read-line)
        (print (solve s)))
  0)
0