結果
| 問題 |
No.104 国道
|
| コンテスト | |
| ユーザー |
Drafear
|
| 提出日時 | 2016-01-18 17:13:37 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 221 bytes |
| コンパイル時間 | 1,251 ms |
| コンパイル使用メモリ | 159,096 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-21 07:57:22 |
| 合計ジャッジ時間 | 2,068 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll ans = 1;
string s; cin >> s;
for (int i = 0; i < s.size(); ++i) {
ans *= 2;
if (s[i] == 'R') ++ans;
}
cout << ans << endl;
}
Drafear