結果
問題 |
No.104 国道
|
ユーザー |
![]() |
提出日時 | 2018-08-31 23:46:45 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 387 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 28,416 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-13 22:50:53 |
合計ジャッジ時間 | 974 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 16 |
ソースコード
// route 1 left 2 right 3 // route 2 left 4 right 5 // route 3 left 6 right 7 // route 4 left 8 right 9 // route 5 left 10 right 11 #include <stdio.h> int main(void){ char S[31]; // 0 <= S <= 30 int route = 1; scanf("%s",S); printf("%s\n",S); // check for(int i = 0;S[i] != 0;i++){ route *= 2; if(S[i] == 'R'){ route += 1; } } printf("%d",route); return 0; }