結果
| 問題 | No.104 国道 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-20 17:06:44 |
| 言語 | C90 (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 5,000 ms |
| + 730µs | |
| コード長 | 220 bytes |
| 記録 | |
| コンパイル時間 | 51 ms |
| コンパイル使用メモリ | 36,224 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-25 02:44:58 |
| 合計ジャッジ時間 | 1,388 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
int main() {
int n = 1, i = 0;
char s[30];
scanf("%s", s);
while (s[i] != '\0') {
n *= 2;
if (s[i] == 'R')
n++;
i++;
}
printf("%d\n", n);
return EXIT_SUCCESS;
}