Description
Super Mary is a very classic game. Please output a scene from Super Mary in the form of character painting.
Input
None.
Output
As shown in the example.
Input sample
(None)
Output sample
1 | ******** ************ ###....#. #..##.....##.... ##.......#### ## ## ## ## ........... #...# #...# #...# #...# ##*##### #.#.# #.#.# #.#.# #.#.# ###*******#### #.#.# #.#.# #.#.# #.#.# ...#***.****.*##.... #...# #...# #...# #...# ....**********##..... ## ## ## ## ....**** *****.... ### ### #### #### ########################################## ####################### #...#......#.##...#......#.##...#......#.##------------------# #...#......#.##------------------# #############################------------------# ##########------------------# #..#....#....##..#....#....##..#....#....############## #..#....#....############## ############################ #----------# ########## #----------# #.....#......##.....#......##.....#......# #----------# #.....#......# #----------# ############################ #----------# ########## #----------# #.#..#....#..##.#..#....#..##.#..#....#..# #----------# #.#..#....#..# #----------# ############################ ######## ########## ######## |
hint
The sample must be output strictly, and the tail of each line must not have a space.
idea
Copy the sample, use a line of COUT or Printf, and add the royal connection. If you want to improve the readability of code, you can use a multi - line Cout or Printf.
Answer
1 | #include<iostream> using namespace std; int main() { cout<<" ********"<<endl; cout<<" ************"<<endl; cout<<" ###....#."<<endl; cout<<" #..##.....##...."<<endl; cout<<" ##.......#### ## ## ## ##"<<endl; cout<<" ........... #...# #...# #...# #...#"<<endl; cout<<" ##*##### #.#.# #.#.# #.#.# #.#.#"<<endl; cout<<" ###*******#### #.#.# #.#.# #.#.# #.#.#"<<endl; cout<<" ...#***.****.*##.... #...# #...# #...# #...#"<<endl; cout<<" ....**********##..... ## ## ## ##"<<endl; cout<<" ....**** *****...."<<endl; cout<<" ### ###"<<endl; cout<<" #### ####"<<endl; cout<<"########################################## #######################"<<endl; cout<<"#...#......#.##...#......#.##...#......#.##------------------# #...#......#.##------------------#"<<endl; cout<<"#############################------------------# ##########------------------#"<<endl; cout<<"#..#....#....##..#....#....##..#....#....############## #..#....#....##############"<<endl; cout<<"############################ #----------# ########## #----------#"<<endl; cout<<"#.....#......##.....#......##.....#......# #----------# #.....#......# #----------#"<<endl; cout<<"############################ #----------# ########## #----------#"<<endl; cout<<"#.#..#....#..##.#..#....#..##.#..#....#..# #----------# #.#..#....#..# #----------#"<<endl; cout<<"############################ ######## ########## ########"<<endl; return 0; } |
Result
Used memory:128kB
Run time:1ms
Language:G++
Submit time:2019-03-24 09:35:39
Problem link
http://noi.openjudge.cn/ch0101/10/
OpenJudge 10:超级玛丽游戏
Comments