結果
| 問題 | No.104 国道 |
| コンテスト | |
| ユーザー |
water
|
| 提出日時 | 2020-03-08 12:52:58 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 302 bytes |
| 記録 | |
| コンパイル時間 | 1,552 ms |
| コンパイル使用メモリ | 179,776 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-05-07 07:42:27 |
| 合計ジャッジ時間 | 11,559 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 3 |
| other | RE * 16 |
ソースコード
#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;
}
}
water