結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
Rin
|
| 提出日時 | 2015-08-23 22:09:05 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 378 bytes |
| 記録 | |
| コンパイル時間 | 3 ms |
| コンパイル使用メモリ | 5,888 KB |
| 実行使用メモリ | 16,640 KB |
| 最終ジャッジ日時 | 2026-08-17 04:35:12 |
| 合計ジャッジ時間 | 1,892 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 20 |
ソースコード
(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))
)
)
)
)
Rin