又是一个肉眼看不出来问题=(

P1000 超级玛丽游戏

FengYuXinMing @ 2022-12-19 14:42:23

#include <bits/stdc++.h>
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;
}

by Eleveslaine @ 2022-12-19 14:43:26

@hutongyu 我的建议:使用 PHP 并直接把内容粘贴进去。PHP 会把没有标签的内容直接输出。


by FengYuXinMing @ 2022-12-19 14:45:28

@Franz_Liszt PHP?这位高手,小的不会用PHP······真是服了(说自己呢)


by Eleveslaine @ 2022-12-19 14:46:23

@hutongyu 直接粘进去。


by Eznibuil @ 2022-12-19 14:49:55

@hutongyu 建议写一个程序判断输出和样例是否相同


by tangrunxi @ 2022-12-19 14:50:42

@hutongyu https://www.luogu.com.cn/blog/CLCNTanya/solution-p1000


by WA_sir @ 2022-12-19 14:51:49

马里奥脚下的砖前面没有空格


by lichenzhen @ 2022-12-19 14:52:09

@hutongyu 每行字符的后面不要有空格

应该改成这样

#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<<"##########################################    ############"<<endl;

    return 0;
}

by WA_sir @ 2022-12-19 14:52:20

@hutongyu


by FengYuXinMing @ 2022-12-19 14:56:31

@lichenzhen 谢谢这位dalao的题解,万分感谢


by FengYuXinMing @ 2022-12-19 14:56:52

@tangrunxi 谢谢


| 下一页