{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n h1 { font-size: 1.2em; }\n\u003c/style\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\n\u003cdiv class\u003d\"md\"\u003e\u003cp\u003eThere are \u003cspan class\u003d\"math inline\"\u003e$ 88418 $\u003c/span\u003e paths in a \u003cspan class\u003d\"math inline\"\u003e$ 7 \\times 7 $\u003c/span\u003e grid from the upper-left square to the lower-left square. Each path corresponds to a \u003cspan class\u003d\"math inline\"\u003e$ 48 $\u003c/span\u003e-character description consisting of characters \u003ccode\u003eD\u003c/code\u003e (down), \u003ccode\u003eU\u003c/code\u003e (up), \u003ccode\u003eL\u003c/code\u003e (left) and \u003ccode\u003eR\u003c/code\u003e (right).\u003c/p\u003e\n\u003cp\u003eFor example, the path\n\u003c/p\u003e\u003ccenter\u003e\u003cimg class\u003d\"invertible\" src\u003d\"CDN_BASE_URL/daf42530de1e479bc080051c5e85af3d?v\u003d1726762128\" alt\u003d\"\"\u003e\u003c/center\u003e\ncorresponds to the description \u003ccode\u003eDRURRRRRDDDLUULDDDLDRRURDDLLLLLURULURRUULDLLDDDD\u003c/code\u003e.\u003cp\u003e\u003c/p\u003e\n\u003cp\u003eYou are given a description of a path which may also contain characters \u003ccode\u003e?\u003c/code\u003e (any direction). Your task is to calculate the number of paths that match the description.\u003c/p\u003e\n\u003ch1 id\u003d\"input\"\u003eInput\u003c/h1\u003e\n\u003cp\u003eThe only input line has a \u003cspan class\u003d\"math inline\"\u003e$ 48 $\u003c/span\u003e-character string of characters \u003ccode\u003e?\u003c/code\u003e, \u003ccode\u003eD\u003c/code\u003e, \u003ccode\u003eU\u003c/code\u003e, \u003ccode\u003eL\u003c/code\u003e and \u003ccode\u003eR\u003c/code\u003e.\u003c/p\u003e\n\u003ch1 id\u003d\"output\"\u003eOutput\u003c/h1\u003e\n\u003cp\u003ePrint one integer: the total number of paths.\u003c/p\u003e\n\u003ch1 id\u003d\"example\"\u003eExample\u003c/h1\u003e\n\u003ctable class\u003d\"vjudge_sample\"\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e??????R??????U??????????????????????????LD????D?\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e201\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/div\u003e "}}]}