WA了,求调

P1000 超级玛丽游戏

CGZ__tqxd @ 2024-08-19 19:47:52

#include<iostream>
#include<cstdio>
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<<"##########################################    ############";
}

by CGZ__tqxd @ 2024-08-19 20:03:31

@TEPRUNNING 柠檬炸了


by TEPRUNNING @ 2024-08-19 20:03:41

@HJYH054,取关我


by CGZ__tqxd @ 2024-08-19 20:04:21

@HJYH012 不是,戈们


by fls888 @ 2024-08-21 09:44:06

#include<bits/stdc++.h>
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 jiangyixuan_eason @ 2024-08-28 12:51:31

这道题我感觉用c语言的printf更好吧

#include <bits/stdc++.h>
using namespace std;

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

上一页 |