結果
| 問題 |
No.104 国道
|
| コンテスト | |
| ユーザー |
siguma323
|
| 提出日時 | 2016-05-20 13:12:16 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 579 bytes |
| コンパイル時間 | 838 ms |
| コンパイル使用メモリ | 86,844 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-06 11:18:40 |
| 合計ジャッジ時間 | 1,571 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
#include <vector>
#include <string>
#include <algorithm>
#include <numeric>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <utility>
#include <list>
#include <functional>
#include <queue>
#include <map>
#include <iterator>
#include <iomanip>
#include <complex>
using namespace std;
using ull = unsigned long long;
using ll = long long;
int main()
{
string s;
getline(cin,s);
int result = 1;
for(auto&& x : s)
{
if(x == 'L')
result = result * 2;
else
result = result * 2 + 1;
}
cout << result << endl;
}
siguma323