結果
| 問題 |
No.104 国道
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-03 00:19:05 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 181 bytes |
| コンパイル時間 | 246 ms |
| コンパイル使用メモリ | 6,820 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-02 12:31:20 |
| 合計ジャッジ時間 | 1,035 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
-- yukicoder My Practice
-- author: Leonardone @ NEETSDKASU
s = io.read()
x = 1
for c in s:gmatch('.') do
if c == 'L' then
x = x * 2
else
x = (x * 2) + 1
end
end
print(x)