您的位置:首页 > 其它

【模拟】洛谷 P1000 超级玛丽游戏

2017-04-24 16:21 357 查看

题目背景

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

建议完成本题目后继续尝试P1001、P1008。

题目描述

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

********
************
####....#.
#..###.....##....
###.......######              ###            ###
...........               #...#          #...#
##*#######                 #.#.#          #.#.#
####*******######             #.#.#          #.#.#
...#***.****.*###....          #...#          #...#
....**********##.....           ###            ###
....****    *****....
####        ####
######        ######


##############################################################

#…#……#.##…#……#.##…#……#.##——————#

###########################################——————#

#..#….#….##..#….#….##..#….#….#####################

#################################### #———-

#…..#……##…..#……##…..#……# #———-#

#################################### #———-

#.#..#….#..##.#..#….#..##.#..#….#..# #———-#

####################################

输入输出格式

输入格式:



输出格式:

如描述

输入输出样例

暂无测试点

思路

。。。什么都不想说,复制吧

代码

#include<iostream>
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<<"##########################################    ############";
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  洛谷 模拟