问题求解

P1000 超级玛丽游戏

TripFriend1130 @ 2023-12-02 20:12:43

我到底哪儿错了啊qwq。。。


print("               ********")
print("              ************")
print("               ####....#.")
print("             #..###.....##....")
print("             ###.......######              ###            ###")
print("                ...........               #...#          #...#")
print("               ##*#######                 #.#.#          #.#.#")
print("            ####*******######             #.#.#          #.#.#")
print("           ...#***.****.*###....          #...#          #...#")
print("           ....**********##.....           ###            ###")
print("           ....****    *****....")
print("             ####        ####")
print("           ######        ######")
print("##############################################################")
print("#...#......#.##...#......#.##...#......#.##------------------#")
print("###########################################------------------#")
print("#..#....#....##..#....#....##..#....#....#####################")
print("##########################################    #----------#")
print("#.....#......##.....#......##.....#......#    #----------#")
print("##########################################    #----------#")
print("#.....#......##.....#......##.....#......#    #----------#")
print("##########################################    ############")

by cff_0102 @ 2023-12-02 20:15:02

wrong answer On line 1 column 16, read *, expected .


by fwefvsda @ 2023-12-05 12:40:52

C++:

#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 TripFriend1130 @ 2023-12-09 12:38:36

@cff_0102 说人话。


by cff_0102 @ 2023-12-09 12:42:17

@TripFriend1130 第一行少了个空格


by ikiy_8866 @ 2023-12-10 21:20:39

挺6的,C++的代码你用python做,真棒(


by aibianchendeyangyang @ 2023-12-12 18:22:12

me too!


by mayixiao123 @ 2023-12-22 19:18:29

兄弟,要不要告你print公式? print("%s","...")


by shenyuyan @ 2023-12-25 22:26:15

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

by __youzimo2014__ @ 2024-01-05 16:53:07

你没打\n,提交之前不应该先试一下吗


by 212211902239zyk @ 2024-01-09 11:10:12

@youzimo 我打了,我在每一行后面都打了,最后结果还是WA


| 下一页