pretty maze

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Reformat these ASCII mazes.
-- twobit

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

###################################################
#   # #     #           #   #                     #
### # # ### # # ####### ### # ######### # ####### #
# # # #   #   #   #   #     # # #     # #       # #
# # # ### ####### # # ####### # # ### ######### # #
# # #   #     #   # #   #       # # #           # #
# # # ##### ### ### ### # ####### # # #############
# # #       #   #   #   # #       #   #           #
# # # ####### # # ### ### # ########### ######### #
#   #     #   # #   #   # #     #             #   #
# ######### # ### ##### # ##### # ########### # ###
# #       # # #   #   #     #   # #     #   # #   #
# ### ### # ### ### # ####### ### # ### # # ##### #
# #   #     #     # #       #   # # # # # # #     #
# # ######### ##### ####### # # # # # # # # # #####
# #   #   #   #   # #     # # #   # # # # #   #   #
# # # # # # ### # # # ##### ##### # # # # ### # # #
# # #   # # #   # # #     #     #   # # #   # # # #
# ####### # # ### # # ### ##### ##### # ### ### # #
#       # # # #   # #   #     # #         #     # #
####### # # # # ### ### # ##### ##### ########### #
#       #   # # #   #   # #   #     #   #         #
# ########### # ### ##### # # ##### ### # ####### #
# #           #   #     #   #   #   #   # #     # #
# # ### ######### ##### ##### ### ####### # ##### #
# #   # #   #   #     # #     #   #       # #     #
# ##### # # ### ##### # # ##### ### ####### # #####
#     #   # #     #   # #       #     #     #     #
##### ##### # ##### ### # ########### # ### ##### #
#           #           #             #   #       #
###################################################

Sample output:

 _________________________________________________ 
|_  | |  _  |    _____  |_  |  _______     _____  |
| | | |_  |___|_  |   |_____| | |  _  |_|_____  | |
| | |  _|_   _|  _| |_  |  _____| | |  _________|_|
| | |  _____|   |  _|  _| |  _____|___|  _______  |
|  _|_____|   |_|  _|_  | |___  |  _________  |  _|
| |_   _  | |_|  _|   |_____|  _| |  _  |   |_|_  |
| |  _|_____|  ___| |_____  |   | | | | | | |  ___|
| |   |   |  _|   | |  ___| |_|_  | | | | |_  |   |
| |_|___| | |  _| | |  _  |___  |___| | |_  |_| | |
|_____  | | | |  _| |_  |  ___| |___   ___|_____| |
|  _____|___| | |_  |___| |   |___  |_  |  _____  |
| |  _   _____|_  |___  |___|  _|  _|___| |  ___| |
| |___| |   |_  |___  | |  ___|  _|  _____| |  ___|
|___  |___| |  ___|  _| |  _____|___  |  _  |___  |
|___________|___________|_____________|___|_______|

Sample input:_

###########################################################################################
#   #   #   #             #         #                 #   #     #             #   #       #
### # # # # # ########### # ##### # ####### ######### # # # # # ########### ### # # ##### #
# #   #   #   # #         # #     # #       #     #   # #   # #           #   # #   #   # #
# ############# # ######### # ##### # ####### ### # ### ##### ########### # # # ##### # # #
#         #     #     #   # # #     #   # #   #   #   #   #   #     #   # # #     #   # # #
# ##### ### ### ##### # # ### # ####### # # # ####### ##### ### ### # # # # ####### ### # #
#   # #   #   #   # #   #   # #         # # # #       #     #     #   # # #     #   #     #
### # ### ### # # # ####### # ########### # # # ####### ############### # ####### ####### #
# #   # #     # #       # # #       #   #   # # # #     # #       #     # #       #     # #
# ### # ####### ####### # # ####### # # # ### # # # ### # # # ### # ##### # ####### ### # #
#   #     # #   #     #   #     #   # # #   # # #   #   #   # #     #     #   #   # #   # #
# # ##### # # ### ### ### ##### # ### # ##### # ### # ### ### ####### ##### # # # # # ### #
# #   #   # # #   #   #   #   # #   # # #   # #   # # #   # #   #   # #     #   #   # #   #
# # ### ### # ##### ### ##### # # # # # # # # ### ### # ### ### # # # # ##### ####### #####
# #     #   #     #   #   #   # # #   # # # #   #     #     #   # #   # #   #   #   #     #
# ######### ##### ### ### # # # ####### # # # # ########### # ### ####### # ### ### ##### #
#           #   #   #       # # #     # # # # #             # #   #     # #   #     #   # #
########### # # ### ####### ### # ### # # # # ############### # ##### # # ### ### ### # # #
#         # # #   # #   #   #   # #     # # #   #           # #       # #   #   # #   #   #
# # ##### # # ### # # # # ### ### # ##### # ### # ########### ######### ### ### ### ##### #
# # #   # # # #   #   # #   #   # #   #   # #   # #         #         #   #   #     #   # #
# # # # ### ### ####### ####### # ##### ### ### # # ####### ### # ####### ### ####### # # #
# # # #   #   #       #         #   #   # #   #   # #       #   # #       #   #     # # # #
# ### ### ### # # ############### # # ### ### ### # ####### # ##### ####### ##### # # # # #
#   # # # #   # #         #     # # #   # #   # # #       #   #     #       #     # # # # #
# # # # # # ####### ### # # # # ### ### # # ### # ####### ##### ####### ##### # ### # # # #
# # # # # #       # #   # # # # #   #   # #   #         # #     #     # #   # # #   # #   #
# # # # # ####### ### ### ### # # ### ### ### ######### # # ##### ### # ### # # ##### #####
# #     #       #   #   # #   # #   #       #   #   #   # # #     # # #   #   # #   # #   #
# ############# ### ### # # ### # # ### ####### # # # ### # # ##### # ### ##### # # # # # #
#   #             #   # #   #   # #   # #       # #   # # # #   # #   #   #   #   #   # # #
### # ########### ### # ##### ### ### # # ####### ##### # # # # # # ### ### # ### ####### #
#   # #     #   # # #   # #   #     #   #   # #   #   # #   # # #       #   #   # #   #   #
# ### # # # # # # # ##### # ############### # # ### # # ####### ######### ##### # # # # ###
# #   # # # # # #   #   # # #             # #   #   # #       #   #     #     # # # # #   #
### ##### # ### ### # # # # ### ######### # # ##### # # ##### ### # ### # ##### # # # # # #
#   #     #   # #   # #   #     #       #   #       #   #   #   #   # #   #     # # # # # #
# ### ####### # # ### ### ########### # ################# # ### # ### ##### ##### # # ### #
#   #     # #   # #   #   #     #   # #   #     #         # #   # #       # #   #   #     #
### # ### # ### # # ### ##### # # # ### # # # # # ######### # ### ### ##### # # ######### #
#   #   # #     # # #   #   # # # #   # # # # # #     #     # #       #     # #           #
# ##### # ####### # # ### # # # # ### ### # # ### ##### ### # ####### # ##### ######### ###
# # #   #         # #   # #   #   #     #   # #   #   # #   #   #   # #   #     #     # # #
# # # ############# ### # ############# ##### # ### # # ### ### # # # ### ##### # ### # # #
# # #     #         #   #           #         #   # # #   # #   # # #   #     # #   # #   #
# # ##### ### ####### ### ##### ### ############# # # ### ### ### # ### ##### ##### # #####
# # #   #   # #     # #   #   # #   #     #       # #   # #   #   #   # #     #     # #   #
# # # # ### # ### # # ##### # ### # # ### # ####### ### # # ##### ### # # ##### ##### # # #
# #   #   #   #   # #       # #   # # # #   #     #   #   #     # # #   #       #   #   # #
# ##### # ##### ############# # ##### # ##### ### ### ### ##### # # ####### ####### ##### #
#     # #   #             #   #     # #       # # # #   #     # #   #     # #         #   #
# ### # ##### ########### # ####### # ### ##### # # ### ##### # ##### ### # ##### # ### # #
#   # #         #       #           #     #       # #   #   # #   #   # # #       # #   # #
### # # ##### ### ##### ####### ########### ####### # ### # # ### # ### # ##### ##### ### #
# # # # #   # #   # #   #     # #         # #       # #   # # #   # #   #   # # #   # # # #
# # # ### # # # ### # # # ### ### # ####### # ### ### # ### ### ### # # ### # # # # # # # #
# # # #   # # # #   # # # #   #   #         #   # #   #   #     #   # #     #   # #   # # #
# # # # ### ### # # # ### # ### ############### # # ##### ######### # ########### ##### # #
#   #     #       # #     #                     # #                 #             #       #
###########################################################################################

Sample output:

 _________________________________________________________________________________________ 
|_  |   |   |  _________  |  ___    |_____   _______  |   |     |_________   _|   |  ___  |
| |___|___|___| |  _______| |  ___| |  _____|  _  |  _| |___| |_________  |   | |___|   | |
|  ___   _|  _  |___  |   |_| |  ___|_  | |   |___|_  |___|  _|  _  |   | | |_____|  _| | |
|_  | |_  |_  |   | |___|_  | |_________| | | |  _____|  ___|_____|___| | |_____|  _|___  |
| |_  | |_____| |_____  | | |_____  |   |  _| | | |  _  | |    _  |  ___| |  _____|  _  | |
|   |___  | |  _|  _  |_  |___  |  _| | |___| | |_  |  _|  _| |_____|  ___|   |   | |  _| |
| |  _|  _| | |___|  _|  _|_  | |   | | |   | |_  |_| |  _| |_  |   | |  ___|  _|___| |___|
| |_____|_  |___  |_  |_  |   | |_|___| | | |   |_____|___  |  _| |___|_|   |_  |_  |___  |
|_________  |   |_  |_____  |_| |  _  | | | | |_____________| |  _|_    | |_  |_   _|   | |
|    ___  | | |_  | |   |  _|  _| |  ___| | |_  |  _________| |_______| |_  |_  |_|  _|_  |
| | |   |_| |_|  _|___| |___|_  | |___|  _| |_  | |  _____  |_     ___|_  |_  |_____|   | |
| |_| |_  |_  |    ___|_________|   |  _| |_  |_  | |_____  |  _|_|  _____|  _|_    | | | |
|   | | | |  _|_|_   _    |     |_| |_  | |  _| | |_____  |___|  ___|_   ___|    _| | | | |
| | | | | |_____  |_|  _| |_| | |  _|  _| |_  |_______  | |  ___|  _  | |_  | | |___| |___|
| |_____|_____  |_  |_  | |  _| |   |_   ___|_  |   |  _| | |  ___| | |_  |___| |   | |   |
|_  |  _________  |_  | |___|  _| |_  | |  _____| |___| | | |   | |  _|  _|   |_  |___|_| |
|  _| |     |   | | |___| |  _|_____|___|_  | |  _|   | |___|_| |_______|  _|_  | |   |  _|
|_|  _|_| | |_| |_  |   | | |_   _______  | |  _|_  | |  ___  |_  |  _  |  ___| | | | |   |
|  _|  ___|_  | |  _| |_  |_____|___    |___|_______|___|   |_  |  _| |___|  ___| | | |_| |
|_  |  _  | |_  | |  _|  _|_    |   |_|   |     |  _______| |  _| |_   ___| |   |___|___  |
|  _|_  | |_____| | |  _|   | | | |_  |_| | | |_|  ___|  _  | |_____  |  ___| |_______   _|
| | |  _|_________| |_  | |___|___|___  |___| |  _|   | |_  |_  |   | |_  |___  |  _  | | |
| | |___  |_   _____|  _|  ___   _  |_________|_  | | |_  |_|  _| | |_  |___  |_|_  | |___|
| | |   |_  | |_    | |___|   |_|   |  _  |  _____| |_  | |  _|_  |_  | |  ___|  ___| |   |
| |___|   |___|  _|_|_______| |  _|_| | |___|  _  |_  |_  |___  | | |___|_   ___|_  |___| |
|  _  | |___|  _________  |  _|___  | |_   ___| | | |_  |___  | |___|  _  | |___     _|   |
|_  | |  ___   _|  ___  |_____   ___|_____|  _____| |  _|   | |_  |  _| | |___   _|_|  _| |
| | | |_|   | |  _| |   |  _  |_|    _____| |  _   _| |  _| |_|  _| |   |_  | | |   | | | |
| | | |  _| |_| |   | |_| |  _|  _|_________|_  | |  _|_  |_____|_  | |_____|___| |___| | |
|___|_____|_______|_|_____|_____________________|_|_________________|_____________|_______|

Sample input:_

#####################
# #   #       #     #
# # # # # ### # # # #
# # #   # # # # # # #
# ####### # # ### # #
# #   #   # #     # #
# # # # ### ####### #
# # #   #       #   #
# # ##### # ##### ###
#   #     #         #
#####################

Sample output:

 ___________________ 
| |   |    _  |     |
| |_|___| | | |_| | |
| |   |  _| |_____| |
| | |___|    ___|  _|
|___|_____|_________|

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs740.08402015/12/01 05:36:310B / 23B / 47B
2leonid760.18362012/03/20 07:55:130B / 27B / 46B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs740.27832015/12/01 05:35:020B / 21B / 49B

Perl _

RankUserSizeTimeDateStatistics
1mitchs550.04292014/11/24 08:55:210B / 13B / 40B
2nfouille1000.05482012/03/17 04:16:181B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1mitchs1040.10272014/11/22 00:00:310B / 48B / 49B
2leonid1070.08892012/03/15 08:57:270B / 46B / 54B
3hallvabo1080.12262012/03/16 09:48:230B / 50B / 51B
4twobit1110.21382014/02/22 08:11:260B / 50B / 55B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs1020.17022015/11/27 05:41:130B / 46B / 50B

J _

RankUserSizeTimeDateStatistics
1I., S.810.06702014/07/09 23:15:550B / 24B / 55B

K _

RankUserSizeTimeDateStatistics
1twobit500.02352014/02/22 07:20:060B / 8B / 38B

C _

RankUserSizeTimeDateStatistics
1twobit1020.03202014/02/23 05:53:330B / 47B / 54B
2ush1110.05492012/03/15 09:06:170B / 60B / 51B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1610.04572012/03/17 21:44:590B / 100B / 53B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*1390.07212012/03/18 15:28:330B / 69B / 62B

sed _

RankUserSizeTimeDateStatistics
1lvogel1000.09422012/05/15 03:39:430B / 17B / 70B
2clock1070.48452012/03/15 15:49:370B / 25B / 63B
3tails1070.24752012/03/24 20:57:180B / 22B / 74B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs1780.05812015/01/22 17:14:470B / 0B / 178B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*510.12732012/03/16 22:38:2127B / 9B / 12B

Vim _

RankUserSizeTimeDateStatistics
1clock1010.84952012/04/03 22:36:040B / 31B / 54B

Language Ranking_

RankLangUserSizeScore
1Ktwobit5010000
2z80*yuko*519803
3Perlmitchs559090
4Ruby2mitchs746756
5Rubymitchs746756
6JI., S.816172
7sedlvogel1005000
8Vimclock1014950
9Ctwobit1024901
10Python3mitchs1024901
11Pythonmitchs1044807
12Fortran*yuko*1393597
13Pascal*yuko*1613105
14Brainfuckmitchs1782808

return top