10:超级玛丽游戏

OpenJudge-1.1编程基础之输入输出-10:超级玛丽游戏
总Time Limit: 1000ms     Memory Limit: 65536kB

Description

超级玛丽是一个非常经典的游戏。请你用字符画的形式输出超级玛丽中的一个场景。

Input

Output

如样例所示

Sample Input

Sample Output

                ********
               ************
               ####....#.
             #..###.....##....
             ###.......######              ###                 ###           ###           ###
                ...........               #...#               #...#         #...#         #...#
               ##*#######                 #.#.#               #.#.#         #.#.#         #.#.#
            ####*******######             #.#.#               #.#.#         #.#.#         #.#.#
           ...#***.****.*###....          #...#               #...#         #...#         #...#
           ....**********##.....           ###                 ###           ###           ###
           ....****    *****....
             ####        ####
           ######        ######
##############################################################              ##################################
#...#......#.##...#......#.##...#......#.##------------------#              #...#......#.##------------------#
###########################################------------------#              ###############------------------#
#..#....#....##..#....#....##..#....#....#####################              #..#....#....#####################
##########################################    #----------#                  ##############    #----------#
#.....#......##.....#......##.....#......#    #----------#                  #.....#......#    #----------#
##########################################    #----------#                  ##############    #----------#
#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#                  #.#..#....#..#    #----------#
##########################################    ############                  ##############    ############

Hint

必须严格按样例输出,每行的行尾不能有空格。

C++ Code

#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;
}

猜你喜欢

转载自www.cnblogs.com/huishou1981/p/13393013.html
今日推荐