結果

問題 No.18 うーさー暗号
ユーザー KoheCKoheC
提出日時 2020-07-06 10:55:20
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 546 ms
コンパイル使用メモリ 11,880 KB
実行使用メモリ 16,208 KB
最終ジャッジ日時 2023-10-24 22:01:54
合計ジャッジ時間 2,948 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

input_array = gets.chars
count = 0

for input in input_array
    input = (input.ord-1-count) #.chr
    if input < 65
        input = input + 27
    elsif input > 91
        input = input - 27
    end
    print input
    input = input.chr
#    print input
    p input
    count += 1
end
0