求助,全是WA

P1000 超级玛丽游戏

Kmeow @ 2023-08-25 17:48:27

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

这个代码全WA,咋回事


by fkcufk @ 2023-08-25 17:48:52

建议使用php


by Aesyl @ 2023-08-25 17:50:54

@Kmeow 空格少了,注意金币刚好在管道上方


by Aesyl @ 2023-08-25 17:51:09

php√


by 1q2zb @ 2023-08-25 17:52:10

建议抄题解


by lzw_ @ 2023-08-25 17:55:35

@1q2zb

智齿


by GoodLuckCat @ 2023-08-25 18:00:17

PHP直接复制粘贴


by Kmeow @ 2023-08-25 21:46:49

我换PHP提交了一遍,一个测试点WA了


by Kmeow @ 2023-08-25 21:48:51

啊啊啊啊啊啊啊啊啊啊啊啊啊,我想抄题解


by g0_Og @ 2023-09-02 10:25:13

@Kmeow ```cpp

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


用格式化字符串做比较方便

by WINDOWSareC @ 2023-09-08 18:20:12

@g0_Og 乱死了


| 下一页