[Offer收割]编程练习赛36 register

Ended

Participants:242

Verdict:Presentation Error
Score:0 / 100
Submitted:2017-11-19 13:14:53

Lang:G++

Edit
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
/*************************************************
       Filename: 1.cpp
         Author: zQ
          Email: zq216991@foxmail.com
         Create: 2017-06-01 11:18:49
    Description: 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) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX