hiho week 296 register

Ended

Participants:65

Verdict:Accepted
Score:100 / 100
Submitted:2020-03-01 19:57:17

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
#include <vector>
#include <iostream>
#include <limits.h>
#include <algorithm>
#include <unordered_set>
#include <unordered_map>
using namespace std;
constexpr int DIR[] = {0, -1, 0, 1, -1, 0, 1, 0};
int main()
{
    cin.tie(nullptr);
    cout.tie(nullptr);
    ios::sync_with_stdio(false);
    int n, m;
    cin >> n >> m;
    vector<vector<char>> res(n << 1 | 1, vector<char>(m << 1 | 1, '|'));
    for (int i = 0; i < (n << 1 | 1); ++i)
    {
        if (i & 1)
        {
            for (int j = 0; j < (m << 1 | 1); ++j)
            {
                res[i][j] = j & 1 ? ' ' : '|';
            }
        }
        else
        {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX