NOI-1.1

NOI-1.1,第1张

10:超级玛丽游戏

描述

超级玛丽是一个非常经典的游戏。

请你用字符画的形式输出超级玛丽中的一个场景。

输入

无。

输出

如样例所示。

示例输入

(无)

示例输出

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

提示

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

分析

根据题目可以直接输出,注意需要一行一行输出,不可以一次性输出。

代码

#include 

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

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/675122.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-04-19
下一篇2022-04-19

发表评论

登录后才能评论

评论列表(0条)

    保存