{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"Asuka养了在他的农场养了许多兔子,他的农场由无数个方格构成的,农场行数为x,列数为y。现在Asuka的农场中有许多兔子还有许多萝卜。兔子能够不断向上下左右四个方向移动从而到达农场各个位置,若移动之后的放个有萝卜那么兔子可以将其吃掉。注意,兔子不能移动到已经有兔子的方格中。若兔子的上下左右四块田地中有萝卜,那么它也能够吃到。Asuka为了阻止他的兔子吃萝卜,他决定用围栏将将农场中的兔子和萝卜分开。他有足够多的围栏,但是围栏只能建造在空田地中。\n\nAuska想问你他能不能将所有的兔子和萝卜都分开。如果能请输出任意一种方案。否则输出No.\n\u003cP\u003eAsuka有非常的多的栅栏,你可以不输出使用最少栅栏的方案。\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"第一行两个整数x和y表示农场的行数和列数,$$$1\u003c\u003dx,y\u003c\u003d500$$$。\n\n接下来是一个x*y的字符串C表示萝卜R表示兔子。而空田地表示为\".\"。"}},{"title":"Output","value":{"format":"HTML","content":"若可以将所有兔子和围栏分开则第一行输出“Yes”接下来输出任意一种方案。\n栅栏用\"#\"表示。空田地表示为\".\"。\n\n否则输出No."}},{"title":"Example","value":{"format":"HTML","content":"\u003cdiv class\u003d\"sample-test\"\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e4 5\n.C.RR\nC..RR\n.C..R\n.....\n\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003eYes\n.C#RR\nC.#RR\n.C#.R\n..#..\n\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}}]}