Lang:G++
Edit12345678910111213141516171819202122232425262728293031/*************************************************Filename: 1.cppAuthor: zQEmail: zq216991@foxmail.comCreate: 2017-06-01 11:18:49Description: 数位DP*************************************************/#include <bits/stdc++.h>using namespace std;typedef long long ll;char s[1000][1000];int main() {int n;while(~scanf("%d", &n)) {for(int i = 0; i < 1000; ++ i) {for(int j = 0; j < 1000; ++ j) {s[i][j] = ' ';}}int x = n + 2, y = 1;for(int i = 1; i <= n; ++ i) {s[x++][y] = '|';}for(int i = 1; i <= 3*n; ++ i) {