結果
| 問題 |
No.104 国道
|
| コンテスト | |
| ユーザー |
re1ns
|
| 提出日時 | 2015-11-14 17:02:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 199 bytes |
| コンパイル時間 | 478 ms |
| コンパイル使用メモリ | 56,300 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 16:44:06 |
| 合計ジャッジ時間 | 1,156 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
string s;
int line=1;
cin >> s;
for(int i=0;i<s.length();i++){
line*=2;
if(s[i]=='R')line++;
}
cout << line << endl;
}
re1ns