結果
| 問題 | No.104 国道 |
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-07 17:04:07 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 295 bytes |
| 記録 | |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 37,568 KB |
| 最終ジャッジ日時 | 2026-02-22 13:05:26 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 16 |
ソースコード
#include <stdio.h>
void main(void){
char bendStr[100] = "a";
scanf("%s",bendStr);
int i = 0;
int nowLane = 1;
while(bendStr[i] != '\0'){
if(bendStr[i] == 'L'){
nowLane = nowLane * 2;
}else if(bendStr[i] == 'R'){
nowLane = nowLane * 2 + 1;
}
i++;
}
printf("%d",nowLane);
}
Maeda