方法

P1000 超级玛丽游戏

CR7_houyetong @ 2022-11-16 22:17:08

这道题难道只有一个个cout写吗?我觉得有些烦。


by LuoTianyi_Official @ 2022-11-16 22:39:50

@Sprague_Garundy P7890 不是 MCOI 嘛/yiw


by Sprague_Garundy @ 2022-11-16 22:40:27

@Ultimium 撤回了刚才打错了


by LuoTianyi_Official @ 2022-11-16 22:42:08

@Sprague_Garundy 好吧,我刚刚发的时候你还没撤回

一道好题(喜


by 孙轩宇 @ 2022-11-21 14:11:50

cout << R("")

多行字符串


by lzslx @ 2022-11-25 10:24:49

@houyetong 模块化,子函数调用


by Eric_Shi @ 2022-12-02 22:13:48

用printf

#include<cstdio>
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 ZQIN_P @ 2022-12-15 15:45:24

用PHP非常之简单...

(我也是从题解中看的,本人c++党)


上一页 |