結果
| 問題 |
No.104 国道
|
| コンテスト | |
| ユーザー |
Lavender
|
| 提出日時 | 2019-09-01 10:41:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 258 bytes |
| コンパイル時間 | 681 ms |
| コンパイル使用メモリ | 64,532 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-27 16:01:35 |
| 合計ジャッジ時間 | 1,338 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
int num=1;
string s;
cin>>s;
for(int i=0;i<s.length();i++){
if(s[i]=='R')num=num*2+1;
if(s[i]=='L')num*=2;
}
cout<<num<<endl;
return 0;
}
Lavender