You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are **88418** paths in a **7 × 7** grid from the upper-left square to the lower-left square. Each path corresponds to a **48-character** description consisting of characters:
4
+
-`D` — down
5
+
-`U` — up
6
+
-`L` — left
7
+
-`R` — right
8
+
9
+
You are given a description of a path which may also contain characters **? (any direction)**. Your task is to calculate the **number of paths** that match the description.
10
+
11
+
# INPUT
12
+
The only input line has a 48-character string of characters ?, D, U, L and R.
0 commit comments