結果
問題 | No.104 国道 |
ユーザー |
|
提出日時 | 2017-10-10 00:06:46 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 252 bytes |
コンパイル時間 | 1,297 ms |
コンパイル使用メモリ | 159,604 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 07:10:43 |
合計ジャッジ時間 | 2,043 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(void) {string s;getline(cin, s);ll ans = 1;for (int i = 0; i < s.size(); i++) {ans *= 2;ans += s[i] == 'R';}cout << ans << endl;return 0;}