結果
問題 | No.104 国道 |
ユーザー |
|
提出日時 | 2018-07-02 17:24:29 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 194 bytes |
コンパイル時間 | 130 ms |
コンパイル使用メモリ | 29,184 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 01:30:22 |
合計ジャッジ時間 | 1,055 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
#include <stdio.h>#include <string.h>int main(void){char s[31];int i,n=1;scanf("%s",s);for(i=0;i<strlen(s);i++){if(s[i]=='L')n*=2;else n=n*2+1;}printf("%d",n);return 0;}