哪位大神帮忙看看,在OJ上代码是对的

P1000 超级玛丽游戏

duoduo_oj @ 2024-01-07 21:58:21

#include<iostream>
#include<cstdio>
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 xxgirlxx @ 2024-01-07 22:14:08

有没有一种可能,没有后面那个平台和两个金币(请复制洛谷原题中的图片)


by Shq_likes_AC @ 2024-01-08 12:08:05

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

没有后面那个平台和两个金币


by Shq_likes_AC @ 2024-01-08 12:09:19

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    freopen("P1000.in","r",stdin); 
    string s;
    while(getline(cin,s))
    {
        cout<<"cout<<\""<<s<<"\"<<endl;"<<endl;
    }
}

试试代码生成器


by xingtengzhiqwerty @ 2024-01-14 11:26:57

虎虎虎呵呵


by CeceliaZXW @ 2024-01-15 18:44:17

格式不对


by wangzhenjia @ 2024-05-14 21:57:28

有实力 那个平台 有你的


|