┌ ┬ ┐ ╒ ╤ ╕ ╓ ╥ ╖ ╔ ╦ ╗ ─ │ ║ ├ ┼ ┤ ╞ ╪ ╡ ╟ ╫ ╢ ╠ ╬ ╣ ═ └ ┴ ┘ ╘ ╧ ╛ ╙ ╨ ╜ ╚ ╩ ╝Arrange these characters into connected shape so that all ends match: single end connects to single end and double end connects to double end and there are no hanging ends. IT is OK to use any number of spaces but each box drawing characters must be used once and only once.
For example, figure
┌┬┐ ╒╤╕ ╓╥╖ ╔╦╗ ─ │ ║ ├┼┤ ╞╪╡ ╟╫╢ ╠╬╣ ═ └┴┘ ╘╧╛ ╙╨╜ ╚╩╝tacks nicely all corner pieces, but straight pieces remain untacked. Also, the resulting figure is not connected.
╒╕╔╗┌┐╓─┬╖ ╒╕╔╗┌┐╓─┬╖ ╒╕╔╗┌┐╓─┬╖ ╒╕╔╗┌┐╓─┬╖ ╒╕╔╗┌┐╓─┬╖ ╒╕╔╗┌┐╓─┬╖ ├┼╨╫┤│╠╦╛║ │├╨╫┼┤╠╦╛║ │╘╝╠╡├╫╥┤║ │╞╬╩╡└╫╥┤║ ├┼╫╨┘│╟╥┤║ ├┼╫╨┘│╟╥┤║ ╞╪╤╬╡╘╣╟╥╢ ╞╪╤╬╡╘╣╟╥╢ ╞╤╦╬╧╪╣╟┼╢ ├┘╠╦╪╤╣╟┼╢ ╞╪╬╤╦╡╠╣└╢ ╞╡╠╤╦╪╬╣└╢ └┴┘╚╧═╩╝╙╜ └┴┘╚╧═╩╝╙╜ └┘╚╩═╛╙╨┴╜ ╘═╝╚╧╛╙╨┴╜ ╘╧╩╛╙┴╜╚═╝ ╘╧╩╛╙┴╜╚═╝
┌╖╒╕╓┬─┐ ┌╖╒╕╓┬─┐ ┌╖╒╕╓┬─┐ ┌╖╒╕╓┬─┐ ┌╖╒╕╓┬─┐ ┌╖╒╕╓┬─┐ ┌╖╒╕╓┬─┐ ╞╣╘╪╩╧═╛ ╞╬╧╡║╘═╛ ╞╩╪╧╣╘═╛ ╞╩╪╧╣╘═╛ ╞╩╪╧╣╘═╛ ╞╩╪╧╣╘═╛ ╞╬╪╧╣╘═╛ ├╫╥┤╔╤╦╗ ├╢╔╪╩╤╦╗ ├╥┤╔╬╦╤╗ ├╥┤╔╬╦╤╗ ├╥┤╔╬╤╦╗ ├╥┤╔╬╤╦╗ ├╫┤╔╩╤╦╗ │╠╬╡╟┼╢║ │╟╫┼╥┤╠╣ │╠╡║╟╫┼╢ │╟┼╫╢╠╡║ │╠╡║╟┼╫╢ │╠╡╟╫┼╢║ │╠╡╟╥┼╢║ └╜╙┴╨┘╚╝ └╜╙┴╨┘╚╝ └╨┘╚╝╙┴╜ └╨┘╚╝╙┴╜ └╨┴╜╙┘╚╝ └╨┴╜╙┘╚╝ └╨┴╜╙┘╚╝There are 347871 ways to fill 5×8 rectangle, not counting those that can be obtained by symmetries.
┌┐╓╖╒═╕ ┌┐╓╖╒═╕ ┌┐╓╖╒═╕ ┌┐╓╖╒═╕ ┌┐╓╖╒═╕ ┌┐╓╖╒═╕ ┌┐╓╖╒═╕ ┌┐╓╖╒═╕ │└╨╫┼╥┘ │└╜║╞╦╛ │└╢╟┼╥┘ │└╫╨┼─┤ │└╢╟┼─┤ │└╢╟┼╥┘ │└╨╢╞╤╡ │└╜║╞╦╛ ├─┬╢╞╣ ├┬╥╫┼╢ ├┬╨╫┤║ ├┬╢ ╞╦╛ ├┬╫╨┴╥┘ ├┬╫╨┤╠╗ ├┬╥╫┴┼┘ ├┬─╫┤╠╗ ╘╤╛╟┤║ ╘╡╟╨┤╠╗ ╘╪╤╩╡╠╗ ╘╡╟╥┘║ ╘╪╬╤╦╣ ╘╡║ ╞╩╣ ╘╛╠╬╦╪╗ ╘╧╤╬╪╩╣ ╔╪╦╬╡╠╗ ╔╪╩╤╧╬╣ ╔╛╞╦╧╬╣ ╔╪╣╠╤╬╗ ╔╡║╞╝╠╗ ╔╪╬╤╧╦╝ ╔╩╣╟┤║ ╔╡╟┼╥╢ ╙┴╜╚╧╩╝ ╙┴─┘ ╚╝ ╙─┴╜ ╚╝ ╙┴╜╚╧╩╝ ╚╧╩╛ ╙╜ ╚╛╙┴─╜ ╙─╜╚╧╝ ╙┴╨┘╚╝There are many ways to cover 6×7 rectangle with 40 boxdrawing characters plus 2 spaces.