1.1超级玛丽游戏
描述
超级玛丽是一个非常经典的游戏。请你用字符画的形式输出超级玛丽中的一个场景。
输入无。输出如样例所示。样例输入
(无)
样例输出
******** ************ ####....#. #..###.....##.... ###.......###### ### ### ### ### ........... #...# #...# #...# #...# ##*####### #.#.# #.#.# #.#.# #.#.# ####*******###### #.#.# #.#.# #.#.# #.#.# ...#***.****.*###.... #...# #...# #...# #...# ....**********##..... ### ### ### ### ....**** *****.... #### #### ###### ###### ############################################################## ################################## #...#......#.##...#......#.##...#......#.##------------------# #...#......#.##------------------# ###########################################------------------# ###############------------------# #..#....#....##..#....#....##..#....#....##################### #..#....#....##################### ########################################## #----------# ############## #----------# #.....#......##.....#......##.....#......# #----------# #.....#......# #----------# ########################################## #----------# ############## #----------# #.#..#....#..##.#..#....#..##.#..#....#..# #----------# #.#..#....#..# #----------# ########################################## ############ ############## ############
提示必须严格按样例输出,每行的行尾不能有空格。
#include <iostream> #include <iomanip> using namespace std; int main() { cout<<setw(17)<<"*"<<"*******"<<endl; cout<<setw(16)<<"*"<<"***********"<<endl; cout<<setw(16)<<"#"<<"###....#."<<endl; cout<<setw(14)<<"#"<<"..###.....##...."<<endl; cout<<setw(14)<<"#"<<"##.......######"<<setw(15)<<"#"<<"##"<<setw(18)<<"#"<<"##"<<setw(12)<<"#"<<"##"<<setw(12)<<"#"<<"##"<<endl; cout<<setw(17)<<"."<<".........."<<setw(16)<<"#"<<"...#"<<setw(16)<<"#"<<"...#"<<setw(10)<<"#"<<"...#"<<setw(10)<<"#"<<"...#"<<endl; cout<<setw(16)<<"#"<<"#*#######"<<setw(18)<<"#"<<".#.#"<<setw(16)<<"#"<<".#.#"<<setw(10)<<"#"<<".#.#"<<setw(10)<<"#"<<".#.#"<<endl; cout<<setw(13)<<"#"<<"###*******######"<<setw(14)<<"#"<<".#.#"<<setw(16)<<"#"<<".#.#"<<setw(10)<<"#"<<".#.#"<<setw(10)<<"#"<<".#.#"<<endl; cout<<setw(12)<<"."<<"..#***.****.*###...."<<setw(11)<<"#"<<"...#"<<setw(16)<<"#"<<"...#"<<setw(10)<<"#"<<"...#"<<setw(10)<<"#"<<"...#"<<endl; cout<<setw(12)<<"."<<"...**********##....."<<setw(12)<<"#"<<"##"<<setw(18)<<"#"<<"##"<<setw(12)<<"#"<<"##"<<setw(12)<<"#"<<"##"<<endl; cout<<setw(12)<<"."<<"...****"<<setw(5)<<"*"<<"****...."<<endl; cout<<setw(14)<<"#"<<"###"<<setw(9)<<"#"<<"###"<<endl; cout<<setw(12)<<"#"<<"#####"<<setw(9)<<"#"<<"#####"<<endl; cout<<"##############################################################"<<setw(15)<<"#"<<"#################################"<<endl; cout<<"#...#......#.##...#......#.##...#......#.##------------------#"<<setw(15)<<"#"<<"...#......#.##------------------#"<<endl; cout<<"###########################################------------------#"<<setw(15)<<"#"<<"##############------------------#"<<endl; cout<<"#..#....#....##..#....#....##..#....#....#####################"<<setw(15)<<"#"<<"..#....#....#####################"<<endl; cout<<"##########################################"<<setw(5)<<"#"<<"----------#"<<setw(19)<<"#"<<"#############"<<setw(5)<<"#"<<"----------#"<<endl; cout<<"#.....#......##.....#......##.....#......#"<<setw(5)<<"#"<<"----------#"<<setw(19)<<"#"<<".....#......#"<<setw(5)<<"#"<<"----------#"<<endl; cout<<"##########################################"<<setw(5)<<"#"<<"----------#"<<setw(19)<<"#"<<"#############"<<setw(5)<<"#"<<"----------#"<<endl; cout<<"#.#..#....#..##.#..#....#..##.#..#....#..#"<<setw(5)<<"#"<<"----------#"<<setw(19)<<"#"<<".#..#....#..#"<<setw(5)<<"#"<<"----------#"<<endl; cout<<"##########################################"<<setw(5)<<"#"<<"###########"<<setw(19)<<"#"<<"#############"<<setw(5)<<"#"<<"###########"<<endl; return 0; }