結果

問題 No.104 国道
ユーザー kyuna
提出日時 2019-07-20 04:12:05
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 250 bytes
コンパイル時間 853 ms
コンパイル使用メモリ 69,248 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-26 19:40:05
合計ジャッジ時間 1,871 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;

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