結果
問題 |
No.104 国道
|
ユーザー |
![]() |
提出日時 | 2015-11-12 00:41:38 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 158 bytes |
コンパイル時間 | 101 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-09-13 14:28:11 |
合計ジャッジ時間 | 2,819 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 16 |
コンパイルメッセージ
Syntax OK
ソースコード
s = gets if s == nil puts 1 exit end c = 1 s.length.times do |i| if s[i] == "L" c = c * 2 else c = c * 2 + 1 end end puts c