結果
| 問題 | No.104 国道 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-19 20:36:18 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 5,000 ms |
| + 742µs | |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 50 ms |
| コンパイル使用メモリ | 36,352 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-23 13:04:16 |
| 合計ジャッジ時間 | 1,712 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
#include <stdio.h>
int main(void) {
char s[31] = "";
scanf("%s", s);
int result = 1;
int i;
for (i = 0; '\0' != s[i]; i++) {
result = 2 * result + ('L' == s[i] ? 0 : 1);
}
printf("%d\n", result);
return 0;
}