zoukankan      html  css  js  c++  java
  • P1000 超级玛丽游戏

    P1000 超级玛丽游戏

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

    ********
    ************
    ####....#.
    #..###.....##....
    ###.......###### ### ###
    ........... #...# #...#
    ##*####### #.#.# #.#.#
    ####*******###### #.#.# #.#.#
    ...#***.****.*###.... #...# #...#
    ....**********##..... ### ###
    ....**** *****....
    #### ####
    ###### ######
    ##############################################################
    #...#......#.##...#......#.##...#......#.##------------------#
    ###########################################------------------#
    #..#....#....##..#....#....##..#....#....#####################
    ########################################## #----------#
    #.....#......##.....#......##.....#......# #----------#
    ########################################## #----------#
    #.#..#....#..##.#..#....#..##.#..#....#..# #----------#
    ########################################## ############
    输入格式

    输出格式
    如描述

    输入输出样例

     1 解法:
     2 
     3 #include<bits/stdc++.h>
     4 using namespace std;
     5 
     6 int main()
     7 {
     8     /*思路:
     9         1:将打印的图形数据存到字符串数组里面
    10         2:遍历按行打印
    11     */
    12     string data[]= {"                ********","               ************","               ####....#.","             #..###.....##....","             ###.......######              ###            ###","                ...........               #...#          #...#","               ##*#######                 #.#.#          #.#.#","            ####*******######             #.#.#          #.#.#","           ...#***.****.*###....          #...#          #...#","           ....**********##.....           ###            ###","           ....****    *****....","             ####        ####","           ######        ######","##############################################################","#...#......#.##...#......#.##...#......#.##------------------#","###########################################------------------#","#..#....#....##..#....#....##..#....#....#####################","##########################################    #----------#","#.....#......##.....#......##.....#......#    #----------#","##########################################    #----------#","#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#","##########################################    ############"};
    13     for(auto str:data){
    14         cout<<str<<endl;
    15     }
    16     return 0;
    17 }
  • 相关阅读:
    爬虫工程师分享:三步就搞定 Android 逆向
    爬虫工程师常用的 Chrome 插件
    Python 描述符(Descriptor) 附实例
    爬虫必备:Python 执行 JS 代码 —— PyExecJS、PyV8、Js2Py
    京东白条
    中国金融贷款整理
    接口文档管理工具YApi内网服务器搭建过程
    AWS申请图文及连接教程
    金融
    centos jdk 1.7升级到1.8后显示还是1.7
  • 原文地址:https://www.cnblogs.com/NirobertEinteson/p/12005549.html
Copyright © 2011-2022 走看看