1.1超級瑪麗遊戲
阿新 • • 發佈:2018-02-07
經典的遊戲 post 輸入 描述 stream return mes int 嚴格
描述
超級瑪麗是一個非常經典的遊戲。請你用字符畫的形式輸出超級瑪麗中的一個場景。
輸入無。輸出如樣例所示。樣例輸入
(無)
樣例輸出
******** ************ ####....#. #..###.....##.... ###.......###### ### ### ### ### ........... #...# #...# #...# #...# ##*####### #.#.# #.#.# #.#.# #.#.# ####*******###### #.#.# #.#.# #.#.# #.#.# ...#***.****.*###.... #...# #...# #...# #...# ....**********##..... ### ### ### ### ....**** *****.... #### #### ###### ###### ############################################################## ################################## #...#......#.##...#......#.##...#......#.##------------------# #...#......#.##------------------# ###########################################------------------# ###############------------------# #..#....#....##..#....#....##..#....#....##################### #..#....#....##################### ########################################## #----------# ############## #----------# #.....#......##.....#......##.....#......# #----------# #.....#......# #----------# ########################################## #----------# ############## #----------# #.#..#....#..##.#..#....#..##.#..#....#..# #----------# #.#..#....#..# #----------# ########################################## ############ ############## ############
提示必須嚴格按樣例輸出,每行的行尾不能有空格。
#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; }
1.1超級瑪麗遊戲