結果

問題 No.18 うーさー暗号
ユーザー _Clay_____Clay____
提出日時 2018-09-21 21:20:32
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 488 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 13,864 KB
最終ジャッジ日時 2023-09-25 10:50:59
合計ジャッジ時間 1,178 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
11,876 KB
testcase_01 AC 18 ms
11,660 KB
testcase_02 AC 17 ms
11,708 KB
testcase_03 AC 17 ms
11,828 KB
testcase_04 AC 18 ms
11,788 KB
testcase_05 AC 17 ms
11,640 KB
testcase_06 AC 18 ms
11,756 KB
testcase_07 AC 17 ms
11,732 KB
testcase_08 AC 17 ms
13,864 KB
testcase_09 AC 18 ms
11,680 KB
testcase_10 AC 17 ms
11,636 KB
testcase_11 AC 18 ms
11,552 KB
testcase_12 AC 18 ms
11,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define c (string->list (read-line)))
(define ca (char->integer #\A))
(define (dec c i a)
        (if (null? c) (reverse a)
                      (dec (cdr c)
                          (+ i 1)
                          (cons (integer->char
                                  (+ (modulo (- (- (char->integer (car c)) ca) i)
                                              26)
                                      ca))
                                a))))
(print (list->string(dec c 1 '())))
0