結果
| 問題 |
No.104 国道
|
| コンテスト | |
| ユーザー |
Pictogram1010
|
| 提出日時 | 2016-07-20 15:58:10 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 278 bytes |
| コンパイル時間 | 440 ms |
| コンパイル使用メモリ | 55,264 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-15 17:36:18 |
| 合計ジャッジ時間 | 1,226 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 12 WA * 4 |
ソースコード
#include<iostream>
using namespace std;
int main()
{
cin.tie(0);
ios::sync_with_stdio(false);
char s[30];
cin >> s;
int RoNum = 1;
for (int i = 0; s[i] != '\0'; i++){
if (s[i] == 'L')
RoNum *= 2;
else
RoNum = (RoNum * 2) + 1;
}
cout << RoNum << endl;
}
Pictogram1010