洛谷综合题单 -- P1000超级玛丽游戏

这道题纯粹就是一道试机题,只要正常输出结果就可以了,下面是我的代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "iostream"

using namespace std;

string s[] = {" ********",
" ************",
" ####....#.",
" #..###.....##....",
" ###.......###### ### ###",
" ........... #...# #...#",
" ##*####### #.#.# #.#.#",
" ####*******###### #.#.# #.#.#",
" ...#***.****.*###.... #...# #...#",
" ....**********##..... ### ###",
" ....**** *****....",
" #### ####",
" ###### ######",
"##############################################################",
"#...#......#.##...#......#.##...#......#.##------------------#",
"###########################################------------------#",
"#..#....#....##..#....#....##..#....#....#####################",
"########################################## #----------#",
"#.....#......##.....#......##.....#......# #----------#",
"########################################## #----------#",
"#.#..#....#..##.#..#....#..##.#..#....#..# #----------#",
"########################################## ############"};

int main() {
for (string str : s) {
cout << str << endl;
}

return 0;
}

非常朴实无华地用一个数组把需要输出的字符画保存起来输出就行了。没有什么技巧。