結果
問題 | No.18 うーさー暗号 |
ユーザー | KoheC |
提出日時 | 2020-07-06 16:38:44 |
言語 | Ruby (3.2.2) |
結果 |
AC
|
実行時間 | 93 ms / 5,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 49 ms |
コンパイル使用メモリ | 11,884 KB |
実行使用メモリ | 16,076 KB |
最終ジャッジ日時 | 2023-10-24 22:06:03 |
合計ジャッジ時間 | 1,892 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 88 ms
16,076 KB |
testcase_01 | AC | 90 ms
16,076 KB |
testcase_02 | AC | 90 ms
16,076 KB |
testcase_03 | AC | 90 ms
16,076 KB |
testcase_04 | AC | 89 ms
16,076 KB |
testcase_05 | AC | 93 ms
16,076 KB |
testcase_06 | AC | 92 ms
16,076 KB |
testcase_07 | AC | 90 ms
16,076 KB |
testcase_08 | AC | 88 ms
16,076 KB |
testcase_09 | AC | 87 ms
16,076 KB |
testcase_10 | AC | 86 ms
16,076 KB |
testcase_11 | AC | 85 ms
16,076 KB |
testcase_12 | AC | 87 ms
16,076 KB |
コンパイルメッセージ
Syntax OK
ソースコード
input_array = gets.chomp.chars count = 1 for input in input_array if count > 26 count = 1 end input = input.ord - count if input < 65 input = 26 + input elsif input > 90 input = 156 - input end input = input.chr print input count += 1 end