这题我看蒙了

P1000 超级玛丽游戏

baojiaming01 @ 2023-01-13 16:45:20

这道题c++用cout能AC吗?不能的话咋做???


by 心灵震荡 @ 2023-02-20 10:45:45

@JupiterLXV 考古?


by Tjaweiof @ 2023-03-09 12:49:42

当然可以啊,或者用printf方便,这样:

#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 skmskm444 @ 2023-03-15 10:46:47

cout<<"


by manyc @ 2023-03-19 20:11:29

C++的cout也可以,清楚点差不多是这样:

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

by wsxzzy @ 2023-04-07 18:17:03

@EGPlayer 刚看第一眼吓了一跳但看了你这一条回复我才回过神来


by clx528716 @ 2023-04-22 20:18:22

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

#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 zxh_qwq @ 2023-04-30 21:16:12

az


by neverlove @ 2023-05-28 17:14:57

有肝就行


上一页 |