結果
| 問題 |
No.104 国道
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2016-06-14 03:09:40 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 5,000 ms |
| コード長 | 150 bytes |
| コンパイル時間 | 52 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-10-09 13:32:06 |
| 合計ジャッジ時間 | 2,752 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
コンパイルメッセージ
Syntax OK
ソースコード
ans=1 s=STDIN.gets.chomp if s=="" then puts 1 else s.size.times do |i| e=s[i] if e=="L" ans*=2 else ans=ans*2+1 end end puts ans end
horiesiniti