P1000 超级玛丽游戏(洛谷)

题目背景

本题是洛谷的试机题目,可以帮助了解洛谷的使用。

建议完成本题目后继续尝试 P1001P1008

另外强烈推荐新用户必读贴

题目描述

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

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

输入格式

输出格式

如描述

输入输出样例

Code:

Python:

print('''                ********
               ************
               ####....#.
             #..###.....##....
             ###.......######              ###            ###
                ...........               #...#          #...#
               ##*#######                 #.#.#          #.#.#
            ####*******######             #.#.#          #.#.#
           ...#***.****.*###....          #...#          #...#
           ....**********##.....           ###            ###
           ....****    *****....
             ####        ####
           ######        ######
##############################################################
#...#......#.##...#......#.##...#......#.##------------------#
###########################################------------------#
#..#....#....##..#....#....##..#....#....#####################
##########################################    #----------#
#.....#......##.....#......##.....#......#    #----------#
##########################################    #----------#
#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#
##########################################    ############''')

C++:

#include<bits/stdc++.h>
using namespace std;
int main(){
    cout<<"                ********\n\
               ************\n\
               ####....#.\n\
             #..###.....##....\n\
             ###.......######              ###            ###\n\
                ...........               #...#          #...#\n\
               ##*#######                 #.#.#          #.#.#\n\
            ####*******######             #.#.#          #.#.#\n\
           ...#***.****.*###....          #...#          #...#\n\
           ....**********##.....           ###            ###\n\
           ....****    *****....\n\
             ####        ####\n\
           ######        ######\n\
##############################################################\n\
#...#......#.##...#......#.##...#......#.##------------------#\n\
###########################################------------------#\n\
#..#....#....##..#....#....##..#....#....#####################\n\
##########################################    #----------#\n\
#.....#......##.....#......##.....#......#    #----------#\n\
##########################################    #----------#\n\
#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#\n\
##########################################    ############";
    return 0;
}

AC:

Python:

https://www.luogu.com.cn/record/141140805

C++:

https://www.luogu.com.cn/record/146512353

很简单的纯输出!

相关推荐

  1. P1000 超级游戏()

    2024-02-11 07:00:04       47 阅读
  2. P1000超级游戏C++

    2024-02-11 07:00:04       37 阅读
  3. P1000 超级游戏

    2024-02-11 07:00:04       54 阅读
  4. 用QT实现一个超级游戏

    2024-02-11 07:00:04       54 阅读
  5. P1000-P1001题解

    2024-02-11 07:00:04       37 阅读
  6. 题目 1567: 超级

    2024-02-11 07:00:04       37 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-11 07:00:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-11 07:00:04       100 阅读
  3. 在Django里面运行非项目文件

    2024-02-11 07:00:04       82 阅读
  4. Python语言-面向对象

    2024-02-11 07:00:04       91 阅读

热门阅读

  1. re:从0开始的CSS学习之路 10. 盒子模型的溢出

    2024-02-11 07:00:04       48 阅读
  2. 深入探索Redis:如何有效遍历海量数据集

    2024-02-11 07:00:04       56 阅读
  3. python32-Python列表和元组之通过索引使用元素

    2024-02-11 07:00:04       45 阅读
  4. python 与 图

    2024-02-11 07:00:04       43 阅读
  5. 聊聊PowerJob的InstanceStatusCheckService

    2024-02-11 07:00:04       39 阅读