結果
問題 | No.104 国道 |
ユーザー |
![]() |
提出日時 | 2015-05-24 16:04:53 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 1,127 ms |
コンパイル使用メモリ | 160,284 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 06:47:37 |
合計ジャッジ時間 | 1,809 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h>inline long nextInt(void) {long temp;std::cin >> temp;return temp;}int main() {std::string str;long ans = 1;std::cin >> str;for(int i = 0; i < str.size(); ++i) {ans *= 2;if( str[i] == 'R' ) ++ans;}std::cout << ans << std::endl;return 0;}