我只有3glass,3clover,1yucca,2starfish,1bulb,1ankh,1jelly,1sand,1mecha missile,2ante,2poo,1relic,1root,1bettle egg(U)还有一个ygg(M)
#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000;
int n, m, a[maxn][maxn], N, M;
char s[maxn][maxn];
void my_copy(char *s, char *t) {
while (*t) *s ++ = *t ++;
}
void paint(int x, int y) {
my_copy(s[x]+y, "+---+");
my_copy(s[x+1]+y, "| |/");
my_copy(s[x+2]+y, "| | +");
my_copy(s[x+3]+y, "+---+ |");
my_copy(s[x+4]+y+1, "/ /|");
my_copy(s[x+5]+y+2, "+---+");
}
int main() {
char sss[111];
cin >> n >> m;
for (int i = 0; i < n; i ++)
for (int j = 0; j < m; j ++)
cin >> a[i][j];
for (int j = 0; j < m; j ++) {
for (int i = 0; i < n; i ++) {
for (int k = 0; k < a[i][j]; k ++) {
int sx = (n-1-i) * 2 + 3 * k;
int sy = (n-1-i) * 2 + 4 * j;
N = max(N, sx + 6);
M = max(M, sy + 7);
paint(sx, sy);
}
}
}
for (int i = N-1; i >= 0; i --) {
for (int j = 0; j < M; j ++) {
if (!s[i][j]) putchar('.');
else putchar(s[i][j]);
}
putchar('\n');
}
return 0;
}