結果
問題 |
No.18 うーさー暗号
|
ユーザー |
|
提出日時 | 2020-07-06 16:32:08 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 407 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-09-24 17:14:30 |
合計ジャッジ時間 | 2,122 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 11 |
コンパイルメッセージ
Syntax OK
ソースコード
input_array = gets.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