[C.C++] NOI题库答案(1.1-10 超级玛丽游戏)

2309 1
guxinlei 2022-12-22 15:37:59 | 显示全部楼层 |阅读模式
网址:http://noi.openjudge.cn

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

输入
无。

输出
如样例所示。

样例输入
(无)

样例输出
  1.                 ********
  2.                ************
  3.                ####....#.
  4.              #..###.....##....
  5.              ###.......######              ###                 ###           ###           ###
  6.                 ...........               #...#               #...#         #...#         #...#
  7.                ##*#######                 #.#.#               #.#.#         #.#.#         #.#.#
  8.             ####*******######             #.#.#               #.#.#         #.#.#         #.#.#
  9.            ...#***.****.*###....          #...#               #...#         #...#         #...#
  10.            ....**********##.....           ###                 ###           ###           ###
  11.            ....****    *****....
  12.              ####        ####
  13.            ######        ######
  14. ##############################################################              ##################################
  15. #...#......#.##...#......#.##...#......#.##------------------#              #...#......#.##------------------#
  16. ###########################################------------------#              ###############------------------#
  17. #..#....#....##..#....#....##..#....#....#####################              #..#....#....#####################
  18. ##########################################    #----------#                  ##############    #----------#
  19. #.....#......##.....#......##.....#......#    #----------#                  #.....#......#    #----------#
  20. ##########################################    #----------#                  ##############    #----------#
  21. #.#..#....#..##.#..#....#..##.#..#....#..#    #----------#                  #.#..#....#..#    #----------#
  22. ##########################################    ############                  ##############    ############
复制代码


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

答案
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. cout<<"                ********"<<endl;
  6. cout<<"               ************"<<endl;
  7. cout<<"               ####....#."<<endl;
  8. cout<<"             #..###.....##...."<<endl;
  9. cout<<"             ###.......######              ###                 ###           ###           ###"<<endl;
  10. cout<<"                ...........               #...#               #...#         #...#         #...#"<<endl;
  11. cout<<"               ##*#######                 #.#.#               #.#.#         #.#.#         #.#.#"<<endl;
  12. cout<<"            ####*******######             #.#.#               #.#.#         #.#.#         #.#.#"<<endl;
  13. cout<<"           ...#***.****.*###....          #...#               #...#         #...#         #...#"<<endl;
  14. cout<<"           ....**********##.....           ###                 ###           ###           ###"<<endl;
  15. cout<<"           ....****    *****...."<<endl;
  16. cout<<"             ####        ####"<<endl;
  17. cout<<"           ######        ######"<<endl;
  18. cout<<"##############################################################              ##################################"<<endl;
  19. cout<<"#...#......#.##...#......#.##...#......#.##------------------#              #...#......#.##------------------#"<<endl;
  20. cout<<"###########################################------------------#              ###############------------------#"<<endl;
  21. cout<<"#..#....#....##..#....#....##..#....#....#####################              #..#....#....#####################"<<endl;
  22. cout<<"##########################################    #----------#                  ##############    #----------#"<<endl;
  23. cout<<"#.....#......##.....#......##.....#......#    #----------#                  #.....#......#    #----------#"<<endl;
  24. cout<<"##########################################    #----------#                  ##############    #----------#"<<endl;
  25. cout<<"#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#                  #.#..#....#..#    #----------#"<<endl;
  26. cout<<"##########################################    ############                  ##############    ############"<<endl;
  27. return 0;
  28. }
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

guxinlei

荣誉红客

关注
  • 24
    主题
  • 0
    粉丝
  • 1
    关注
青,取之于蓝而胜于蓝;冰,水为之而寒于水。

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2025 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行