結果

問題 No.104 国道
ユーザー Pachicobue
提出日時 2017-10-25 00:32:12
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 480 ms
コンパイル使用メモリ 63,408 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-21 17:57:44
合計ジャッジ時間 1,220 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main()
{
string s;
int n = 1;
for(const char c: s){
if(c == 'L'){
n*=2;
} else {
n= 2*n+1;
}
}
cout << n << endl;
return 0;
}
0