結果

問題 No.18 うーさー暗号
ユーザー nonokai10nonokai10
提出日時 2018-02-26 02:18:51
言語 Ruby
(3.3.0)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 140 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 11,560 KB
実行使用メモリ 15,248 KB
最終ジャッジ日時 2023-08-11 03:10:19
合計ジャッジ時間 2,010 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,196 KB
testcase_01 AC 76 ms
15,172 KB
testcase_02 AC 76 ms
15,188 KB
testcase_03 AC 80 ms
15,152 KB
testcase_04 AC 76 ms
15,144 KB
testcase_05 AC 76 ms
15,048 KB
testcase_06 AC 77 ms
15,076 KB
testcase_07 AC 76 ms
15,068 KB
testcase_08 AC 79 ms
15,052 KB
testcase_09 AC 76 ms
15,136 KB
testcase_10 AC 72 ms
15,248 KB
testcase_11 AC 77 ms
15,060 KB
testcase_12 AC 77 ms
15,052 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

key = ('A'..'Z').to_a.reverse
puts gets.chomp.split(//).map.with_index { |char, index| key[(key.index(char) + index + 1) % key.size] }.join
0