結果
問題 | 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.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