結果
| 問題 | No.18 うーさー暗号 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-03 01:33:01 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 5,000 ms |
| コード長 | 339 bytes |
| 記録 | |
| コンパイル時間 | 118 ms |
| コンパイル使用メモリ | 6,528 KB |
| 実行使用メモリ | 16,384 KB |
| 最終ジャッジ日時 | 2026-05-28 00:11:25 |
| 合計ジャッジ時間 | 1,980 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
(define (solve s)
(define (aux i s)
(if (null? s)
'()
(let* ((c (car s))
(shift (+ (modulo (- (+ (- (char->integer c) (char->integer #\A)) 26) i) 26)
(char->integer #\A))))
(cons (integer->char shift) (aux (+ i 1) (cdr s))))))
(list->string (aux 1 (string->list s))))
(let* ((s (read-line)))
(print (solve s)))