結果
問題 | No.18 うーさー暗号 |
ユーザー |
|
提出日時 | 2020-07-06 16:38:44 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 91 ms / 5,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 83 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-09-24 17:14:36 |
合計ジャッジ時間 | 1,915 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
コンパイルメッセージ
Syntax OK
ソースコード
input_array = gets.chomp.charscount = 1for input in input_arrayif count > 26count = 1endinput = input.ord - countif input < 65input = 26 + inputelsif input > 90input = 156 - inputendinput = input.chrprint inputcount += 1end