結果
| 問題 | No.18 うーさー暗号 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-09-03 01:33:01 | 
| 言語 | Scheme (Gauche-0.9.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 28 ms / 5,000 ms | 
| コード長 | 339 bytes | 
| コンパイル時間 | 97 ms | 
| コンパイル使用メモリ | 6,820 KB | 
| 実行使用メモリ | 16,128 KB | 
| 最終ジャッジ日時 | 2024-12-21 07:32:06 | 
| 合計ジャッジ時間 | 1,883 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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)))
            
            
            
        