結果

問題 No.104 国道
ユーザー waterwater
提出日時 2020-03-08 12:52:58
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 302 bytes
コンパイル時間 1,676 ms
コンパイル使用メモリ 162,200 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-24 16:00:29
合計ジャッジ時間 11,508 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define INF 990000000
//2
using namespace std;


int main() {
string s;
 scanf("%s", &s);
int a=1;
if((int )s.size()==0){
cout <<a<<endl;

}else{
for(int i=0;i<(int )s.size();i++){
switch(s[i]){
case 'L':a+=(a);
break;
case 'R':a+=(a+1);
break;

}

}

cout <<a<<endl;
}

}




0