求题解

P1000 超级玛丽游戏

B975468998A @ 2024-10-06 17:31:37

啊啊啊啊啊啊啊怎么输出啊各位大佬教一下我呗


by LiuXuDong55555 @ 2024-10-06 17:41:39

#include<iostream>
using namespace std;

int main(){
    cout << "                ********\n";
    cout << "               ************\n";
    cout << "               ####....#.\n";
    cout << "             #..###.....##....\n";
    cout << "             ###.......######              ###            ###\n";
    cout << "                ...........               #...#          #...#\n";
    cout << "               ##*#######                 #.#.#          #.#.#\n";
    cout << "            ####*******######             #.#.#          #.#.#\n";
    cout << "           ...#***.****.*###....          #...#          #...#\n";
    cout << "           ....**********##.....           ###            ###\n";
    cout << "           ....****    *****....\n";
    cout << "             ####        ####\n";
    cout << "           ######        ######\n";
    cout << "##############################################################\n";
    cout << "#...#......#.##...#......#.##...#......#.##------------------#\n";
    cout << "###########################################------------------#\n";
    cout << "#..#....#....##..#....#....##..#....#....#####################\n";
    cout << "##########################################    #----------#\n";
    cout << "#.....#......##.....#......##.....#......#    #----------#\n";
    cout << "##########################################    #----------#\n";
    cout << "#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#\n";
    cout << "##########################################    ############\n";
    return 0;
}

求关注


by LiuXuDong55555 @ 2024-10-06 17:42:25

@B975468998A


by KEXINGYU @ 2024-10-06 19:34:26

#include<stdio.h>
int main() {
    printf(
    "                ********\n"
    "               ************\n"
    "               ####....#.\n"
    "             #..###.....##....\n"
    "             ###.......######              ###            ###\n"
    "                ...........               #...#          #...#\n"
    "               ##*#######                 #.#.#          #.#.#\n"
    "            ####*******######             #.#.#          #.#.#\n"
    "           ...#***.****.*###....          #...#          #...#\n"
    "           ....**********##.....           ###            ###\n"
    "           ....****    *****....\n"
    "             ####        ####\n"
    "           ######        ######\n"
    "##############################################################\n"
    "#...#......#.##...#......#.##...#......#.##------------------#\n"
    "###########################################------------------#\n"
    "#..#....#....##..#....#....##..#....#....#####################\n"
    "##########################################    #----------#\n"
    "#.....#......##.....#......##.....#......#    #----------#\n"
    "##########################################    #----------#\n"
    "#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#\n"
    "##########################################    ############\n"
    );
    return 0;
}

by qmcjn @ 2024-10-20 11:17:05

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

by zyd_123 @ 2024-10-22 22:57:25

这道题可以复制粘贴那个图案(一定不要把空格数改了),然后在每行前面加个双引号、cout,后面加个\n(换行)、双引号就可以打印出来了。 (ps:我觉得出这道题的人真是个天才。) 求关注,期待你对这道题的其他看法


by B975468998A @ 2024-11-02 14:34:17

@LiuXuDong55555 谢谢大佬


by codm_man @ 2024-12-19 17:12:26

#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;
}

@B975468998A 求关


|