Advertisement
wheatwizard

Testcases

Jan 17th, 2017
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. *Coordinates are `(<row>, <col>)` starting with the upper left at `(0, 0)`, 1 is inside*
  2.  
  3. ##Input
  4.  
  5. #######
  6. #(^&@(#
  7. #A())A#
  8. #))))##
  9. ######:
  10.  
  11. (0,0)
  12.  
  13. ##Output
  14.  
  15. 1111111
  16. 1111111
  17. 1111111
  18. 1111111
  19. 1111110
  20.  
  21. ---
  22.  
  23. ##Input
  24.  
  25. &&&&&&&&&&&&*
  26. &*(((S**(((((
  27. &^^^^^^^^^^^&
  28. &^&&#&&&&&8^&
  29. *^!@#$%&*%#^*
  30. (^%$^^^^%$$^&
  31. (^*(^%$^%$$^%
  32. (^&&^&&^#@$^(
  33. 8^^^^%%^^^^^8
  34. ((((((())))))
  35.  
  36. (1,2)
  37.  
  38. ##Output
  39.  
  40.  
  41. 0000000000000
  42. 0000000000000
  43. 0111111111110
  44. 0111111111110
  45. 0111111111110
  46. 0111111111110
  47. 0111100111110
  48. 0111100111110
  49. 0111100111110
  50. 0000000000000
  51.  
  52. ---
  53.  
  54. ##Input
  55.  
  56. *******************
  57. *.................*
  58. *.***************.*
  59. *.*.............*.*
  60. *.*.***********.*.*
  61. *.*.***********.*.*
  62. *.*.***********.*.*
  63. *.*.***********.*.*
  64. *.*.............*.*
  65. *.***************.*
  66. *.................*
  67. *******************
  68.  
  69. (3,3)
  70.  
  71. ##Output
  72.  
  73. 0000000000000000000
  74. 0000000000000000000
  75. 0000000000000000000
  76. 0001111111111111000
  77. 0001111111111111000
  78. 0001111111111111000
  79. 0001111111111111000
  80. 0001111111111111000
  81. 0001111111111111000
  82. 0000000000000000000
  83. 0000000000000000000
  84. 0000000000000000000
  85.  
  86. ---
  87.  
  88. ##Input
  89.  
  90. EEEEEEEEE
  91. EAAAAAAAA
  92. EAEEEEEEE
  93. EAEEEEEEE
  94. EAAAAAAAA
  95. EEEEEEEEE
  96.  
  97. (0,0)
  98.  
  99. ##Output
  100.  
  101. 111111111
  102. 100000000
  103. 100000000
  104. 100000000
  105. 100000000
  106. 100000000
  107. 111111111
  108.  
  109. ---
  110.  
  111. ##Input
  112.  
  113. 0000000000000000
  114. 0011111110000000
  115. 0010000010000000
  116. 0011111110000000
  117. 0000000011111000
  118. 0000200010001000
  119. 0000000011111000
  120. 0000000000000000
  121.  
  122. (2,1)
  123.  
  124. ##Output
  125.  
  126. 0000000000000000
  127. 0011111110000000
  128. 0011111110000000
  129. 0011111110000000
  130. 0000000011111000
  131. 0000000011111000
  132. 0000000011111000
  133. 0000000000000000
  134.  
  135. ---
  136.  
  137. ##Input
  138.  
  139. .................
  140. ....!!!!!!!!!....
  141. ....!.......!....
  142. ....!!!!!!!!.....
  143. .................
  144.  
  145. (4,1)
  146.  
  147. ##Output
  148.  
  149. 00000000000000000
  150. 00001111111110000
  151. 00001111111110000
  152. 00001111111100000
  153. 00000000000000000
  154.  
  155. ---
  156.  
  157. ##Input
  158.  
  159. 0000000000000000
  160. 0011111110000000
  161. 001000001000Q000
  162. 0011111100000000
  163. 0000000011111000
  164. 0000100010001000
  165. 0000000011111000
  166. 0000000000000000
  167.  
  168. (2,1)
  169.  
  170. ##Ouput
  171.  
  172. 0000000000000000
  173. 0011111110000000
  174. 0011111110000000
  175. 0011111100000000
  176. 0000000000000000
  177. 0000000000000000
  178. 0000000000000000
  179. 0000000000000000
  180.  
  181.  
  182. ---
  183.  
  184. ##Input
  185.  
  186. *&*&*&***&***&*****&*&*
  187. *&****&*&**&**&*&*&**&*
  188. &**&*&*&*&*&*&*&*&*&*&*
  189. &**&&*&*&**&&**&*&&*&*&
  190. &**&&*&**&&**&*&*&*&**&
  191. &**&&*&**&*&*&*&*&*&*&*
  192. &**&&*&*&**&&**&*&*&*&&
  193.  
  194. (2,0)
  195.  
  196. ##Output
  197.  
  198. 00101000000000000000000
  199. 00111100000000000000000
  200. 01101000000000000000000
  201. 01100000000000000000000
  202. 01100000000000000000000
  203. 01100000000000000000000
  204. 01100000000000000000000
  205.  
  206. ---
  207.  
  208. ##Input
  209.  
  210. 8YYYY9923%
  211.  
  212. (2,0)
  213.  
  214. ##Output
  215.  
  216. 0111100000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement