結果

問題 No.104 国道
ユーザー aaaaaaiu
提出日時 2019-07-26 15:36:51
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 238 bytes
コンパイル時間 1,891 ms
コンパイル使用メモリ 192,168 KB
最終ジャッジ日時 2025-01-07 07:35:06
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    ll ans = 1;
    string s; cin >> s;
    for (char c : s) {
        ans *= 2;
        if (c == 'R') ans++;
    }
    cout << ans << endl;
    return 0;
}
0