网址: http://noi.openjudge.cn
描述
超级玛丽是一个非常经典的游戏。请你用字符画的形式输出超级玛丽中的一个场景。
输入
无。
输出
如样例所示。
样例输入
(无)
样例输出
- ********
- ************
- ####....#.
- #..###.....##....
- ###.......###### ### ### ### ###
- ........... #...# #...# #...# #...#
- ##*####### #.#.# #.#.# #.#.# #.#.#
- ####*******###### #.#.# #.#.# #.#.# #.#.#
- ...#***.****.*###.... #...# #...# #...# #...#
- ....**********##..... ### ### ### ###
- ....**** *****....
- #### ####
- ###### ######
- ############################################################## ##################################
- #...#......#.##...#......#.##...#......#.##------------------# #...#......#.##------------------#
- ###########################################------------------# ###############------------------#
- #..#....#....##..#....#....##..#....#....##################### #..#....#....#####################
- ########################################## #----------# ############## #----------#
- #.....#......##.....#......##.....#......# #----------# #.....#......# #----------#
- ########################################## #----------# ############## #----------#
- #.#..#....#..##.#..#....#..##.#..#....#..# #----------# #.#..#....#..# #----------#
- ########################################## ############ ############## ############
复制代码
提示
必须严格按样例输出,每行的行尾不能有空格。
答案
- #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;
- }
复制代码 |