답안 #990964

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
990964 2024-05-31T21:53:13 Z tincamatei Maze (JOI23_ho_t3) C++14
100 / 100
1151 ms 279840 KB
// If this is correct, God forgive my soul for trying to code the legit solution.
#include <bits/stdc++.h>

//int dl[] = {1, 0, -1, 0};
//int dc[] = {0, 1,  0,-1};

int size_diff[5] = {4, 2, 2, 2, 2};
std::vector<int> dl[5] = {
    {0, 1, 0, -1},
    {1, 0},  // goes towards DR
    {1, 0},  // DL
    {-1, 0}, // UL
    {-1, 0}   // UR
};

std::vector<int> dc[5] = {
    {1, 0, -1, 0},
    {0, 1},
    {0,-1},
    {0,-1},
    {0, 1}
};

struct Matrix {
    int R, C, N;

    int B;

    std::vector<int> corner_dl;
    std::vector<int> corner_dc;
    std::vector<int> new_type_d;

    std::vector<std::string> matr;
    std::vector<int> dist;

    int size;
    std::tuple<int, int, int, int> buffer[16];

    explicit Matrix(int _R, int _C, int _N): R(_R), C(_C), N(_N) {
        matr.resize(_R);
        dist.resize(R * C * 5, R * C * 5 + 1);
        B = 2 * N - 1;

        //            UL,                      DL                     DR                   UR
        corner_dl  = {-N,     -N + 1, -N + 1,  N - 1,  N - 1, N,      N,     N - 1, N - 1, -N,   -N + 1, -N + 1};
        corner_dc  = {-N + 1, -N + 1, -N,     -N,     -N + 1, -N + 1, N - 1, N - 1, N,     N - 1, N - 1,  N};
        new_type_d = { 1,      1,      1,      4,      4,      4,     3,     3,     3,     2,     2,      2};
    }

    bool in_matrix(int l, int c) {
        return 0 <= l && l < R && 0 <= c && c < C;
    }

    int coord_to_index(int l, int c, int type = 0) {
        return type * R * C + l * C + c;
    }

    void snap_to_matrix(int& ln, int& cn) {
        ln = std::max(0, std::min(ln, R - 1));
        cn = std::max(0, std::min(cn, C - 1));
    }

    int in_block(int x) {
        if (x < 0) {
            return (x - B + 1) / B;
        }
        return x / B;
    }

    std::pair<int, int> in_block(int l, int c) {
        return {in_block(l), in_block(c)};
    }

    void create_adjacency_list(int l, int c, int type) {
        size = 0;

        if (type == 0) {
            for (int d = 0; d < 4; d++) {
                int ln = l + dl[0][d];
                int cn = c + dc[0][d];

                if (in_matrix(ln, cn) && matr[ln][cn] == '.')
                    buffer[size++] = {ln, cn, 0, 0};
            }

            for (int d = 0; d < corner_dl.size(); d++) {
                int ln = l + corner_dl[d];
                int cn = c + corner_dc[d];

                int lnn = ln;
                int cnn = cn;

                snap_to_matrix(lnn, cnn);
                if (in_block(ln, cn) == in_block(lnn, cnn) && std::make_pair(l, c) != std::make_pair(ln, cn))
                    buffer[size++] = {lnn, cnn, new_type_d[d], 1};
            }
        } else {
            buffer[size++] = {l, c, 0, 0};

            for (int d = 0; d < 2; d++) {
                int ln = l + dl[type][d];
                int cn = c + dc[type][d];

                if (in_matrix(ln, cn) && in_block(l, c) == in_block(ln, cn))
                    buffer[size++] = {ln, cn, type, 0};
            }
        }
    }

    int run_bfs(int Sl, int Sc, int Dl, int Dc) {
        std::deque<std::tuple<int, int, int>> q;
        dist[coord_to_index(Sl, Sc)] = 0;
        q.push_back({Sl, Sc, 0});

        while (!q.empty()) {
            auto [l, c, type] = q.front();
            int node = coord_to_index(l, c, type);

            //std::cerr << l << " " << c << " " << type << " -> " << dist[coord_to_index(l, c, type)] << "(" << node << ")" << "\n";

            if (l == Dl && c == Dc)
                return dist[node];

            q.pop_front();

            create_adjacency_list(l, c, type);

            for (int i = 0; i < size; i++) {
                auto [ln, cn, new_type, cost] = buffer[i];
                int node_to = coord_to_index(ln, cn, new_type);
            
                //std::cerr << "   -> " << ln << " " << cn << " " << new_type << "(" << node_to << ")" << "\n";

                if (dist[node] + cost < dist[node_to]) {
                    dist[node_to] = dist[node] + cost;

                    if (cost == 0)
                        q.push_front({ln, cn, new_type});
                    else
                        q.push_back({ln, cn, new_type});
                }
            }
        }
        
        return dist[coord_to_index(Dl, Dc)];
    }
};

int main() {
    std::cin.tie(NULL);
    std::iostream::sync_with_stdio(false);

    int R, C, N;

    std::cin >> R >> C >> N;

    int Sl, Sc, Dl, Dc;
    std::cin >> Sl >> Sc >> Dl >> Dc;

    Sl--; Sc--; Dl--; Dc--;

    Matrix M(R, C, N);

    for (int i = 0; i < R; i++)
        std::cin >> M.matr[i];

    std::cout << M.run_bfs(Sl, Sc, Dl, Dc);
    
    return 0;
}

Compilation message

Main.cpp: In member function 'void Matrix::create_adjacency_list(int, int, int)':
Main.cpp:86:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   86 |             for (int d = 0; d < corner_dl.size(); d++) {
      |                             ~~^~~~~~~~~~~~~~~~~~
Main.cpp: In member function 'int Matrix::run_bfs(int, int, int, int)':
Main.cpp:116:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
  116 |             auto [l, c, type] = q.front();
      |                  ^
Main.cpp:129:22: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
  129 |                 auto [ln, cn, new_type, cost] = buffer[i];
      |                      ^
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 464 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 604 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 9 ms 1712 KB Output is correct
20 Correct 6 ms 1372 KB Output is correct
21 Correct 10 ms 4700 KB Output is correct
22 Correct 12 ms 1628 KB Output is correct
23 Correct 11 ms 1624 KB Output is correct
24 Correct 9 ms 1628 KB Output is correct
25 Correct 7 ms 1788 KB Output is correct
26 Correct 2 ms 1884 KB Output is correct
27 Correct 1 ms 1628 KB Output is correct
28 Correct 6 ms 1628 KB Output is correct
29 Correct 28 ms 3736 KB Output is correct
30 Correct 8 ms 1624 KB Output is correct
31 Correct 25 ms 11352 KB Output is correct
32 Correct 31 ms 3676 KB Output is correct
33 Correct 25 ms 3672 KB Output is correct
34 Correct 28 ms 3792 KB Output is correct
35 Correct 20 ms 3816 KB Output is correct
36 Correct 19 ms 4292 KB Output is correct
37 Correct 25 ms 3932 KB Output is correct
38 Correct 4 ms 3676 KB Output is correct
39 Correct 293 ms 32964 KB Output is correct
40 Correct 10 ms 4188 KB Output is correct
41 Correct 15 ms 4444 KB Output is correct
42 Correct 43 ms 4956 KB Output is correct
43 Correct 29 ms 5724 KB Output is correct
44 Correct 53 ms 16472 KB Output is correct
45 Correct 55 ms 17712 KB Output is correct
46 Correct 215 ms 108556 KB Output is correct
47 Correct 297 ms 33216 KB Output is correct
48 Correct 216 ms 32856 KB Output is correct
49 Correct 159 ms 33012 KB Output is correct
50 Correct 130 ms 33268 KB Output is correct
51 Correct 208 ms 35664 KB Output is correct
52 Correct 160 ms 33872 KB Output is correct
53 Correct 234 ms 33116 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 1 ms 344 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 448 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 2 ms 1264 KB Output is correct
26 Correct 9 ms 3932 KB Output is correct
27 Correct 10 ms 4696 KB Output is correct
28 Correct 5 ms 1884 KB Output is correct
29 Correct 1 ms 1628 KB Output is correct
30 Correct 7 ms 1628 KB Output is correct
31 Correct 6 ms 1628 KB Output is correct
32 Correct 2 ms 1884 KB Output is correct
33 Correct 1 ms 1628 KB Output is correct
34 Correct 12 ms 6236 KB Output is correct
35 Correct 27 ms 11216 KB Output is correct
36 Correct 7 ms 4188 KB Output is correct
37 Correct 8 ms 3676 KB Output is correct
38 Correct 19 ms 3672 KB Output is correct
39 Correct 55 ms 26620 KB Output is correct
40 Correct 145 ms 48868 KB Output is correct
41 Correct 197 ms 108136 KB Output is correct
42 Correct 107 ms 41960 KB Output is correct
43 Correct 92 ms 32860 KB Output is correct
44 Correct 179 ms 32860 KB Output is correct
45 Correct 76 ms 34380 KB Output is correct
46 Correct 100 ms 34640 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 1 ms 344 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 9 ms 1632 KB Output is correct
34 Correct 1 ms 352 KB Output is correct
35 Correct 1 ms 352 KB Output is correct
36 Correct 2 ms 1328 KB Output is correct
37 Correct 6 ms 1372 KB Output is correct
38 Correct 8 ms 3932 KB Output is correct
39 Correct 10 ms 4696 KB Output is correct
40 Correct 11 ms 1628 KB Output is correct
41 Correct 11 ms 1680 KB Output is correct
42 Correct 6 ms 2140 KB Output is correct
43 Correct 1 ms 1628 KB Output is correct
44 Correct 7 ms 1628 KB Output is correct
45 Correct 8 ms 1628 KB Output is correct
46 Correct 7 ms 1628 KB Output is correct
47 Correct 10 ms 1624 KB Output is correct
48 Correct 10 ms 1716 KB Output is correct
49 Correct 8 ms 1744 KB Output is correct
50 Correct 13 ms 1628 KB Output is correct
51 Correct 6 ms 1724 KB Output is correct
52 Correct 2 ms 1884 KB Output is correct
53 Correct 1 ms 1628 KB Output is correct
54 Correct 6 ms 1628 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 1 ms 344 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 9 ms 1632 KB Output is correct
34 Correct 1 ms 352 KB Output is correct
35 Correct 1 ms 352 KB Output is correct
36 Correct 2 ms 1328 KB Output is correct
37 Correct 6 ms 1372 KB Output is correct
38 Correct 8 ms 3932 KB Output is correct
39 Correct 10 ms 4696 KB Output is correct
40 Correct 11 ms 1628 KB Output is correct
41 Correct 11 ms 1680 KB Output is correct
42 Correct 6 ms 2140 KB Output is correct
43 Correct 1 ms 1628 KB Output is correct
44 Correct 7 ms 1628 KB Output is correct
45 Correct 8 ms 1628 KB Output is correct
46 Correct 7 ms 1628 KB Output is correct
47 Correct 10 ms 1624 KB Output is correct
48 Correct 10 ms 1716 KB Output is correct
49 Correct 8 ms 1744 KB Output is correct
50 Correct 13 ms 1628 KB Output is correct
51 Correct 6 ms 1724 KB Output is correct
52 Correct 2 ms 1884 KB Output is correct
53 Correct 1 ms 1628 KB Output is correct
54 Correct 6 ms 1628 KB Output is correct
55 Correct 28 ms 3672 KB Output is correct
56 Correct 8 ms 1624 KB Output is correct
57 Correct 12 ms 6236 KB Output is correct
58 Correct 32 ms 3420 KB Output is correct
59 Correct 27 ms 11352 KB Output is correct
60 Correct 30 ms 3672 KB Output is correct
61 Correct 24 ms 3672 KB Output is correct
62 Correct 7 ms 4188 KB Output is correct
63 Correct 8 ms 3676 KB Output is correct
64 Correct 18 ms 3676 KB Output is correct
65 Correct 25 ms 3924 KB Output is correct
66 Correct 20 ms 3816 KB Output is correct
67 Correct 32 ms 3672 KB Output is correct
68 Correct 32 ms 3676 KB Output is correct
69 Correct 32 ms 3676 KB Output is correct
70 Correct 32 ms 3676 KB Output is correct
71 Correct 28 ms 3676 KB Output is correct
72 Correct 17 ms 4188 KB Output is correct
73 Correct 32 ms 3932 KB Output is correct
74 Correct 3 ms 3676 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 464 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 604 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 9 ms 1712 KB Output is correct
20 Correct 6 ms 1372 KB Output is correct
21 Correct 10 ms 4700 KB Output is correct
22 Correct 12 ms 1628 KB Output is correct
23 Correct 11 ms 1624 KB Output is correct
24 Correct 9 ms 1628 KB Output is correct
25 Correct 7 ms 1788 KB Output is correct
26 Correct 2 ms 1884 KB Output is correct
27 Correct 1 ms 1628 KB Output is correct
28 Correct 6 ms 1628 KB Output is correct
29 Correct 28 ms 3736 KB Output is correct
30 Correct 8 ms 1624 KB Output is correct
31 Correct 25 ms 11352 KB Output is correct
32 Correct 31 ms 3676 KB Output is correct
33 Correct 25 ms 3672 KB Output is correct
34 Correct 28 ms 3792 KB Output is correct
35 Correct 20 ms 3816 KB Output is correct
36 Correct 19 ms 4292 KB Output is correct
37 Correct 25 ms 3932 KB Output is correct
38 Correct 4 ms 3676 KB Output is correct
39 Correct 293 ms 32964 KB Output is correct
40 Correct 10 ms 4188 KB Output is correct
41 Correct 15 ms 4444 KB Output is correct
42 Correct 43 ms 4956 KB Output is correct
43 Correct 29 ms 5724 KB Output is correct
44 Correct 53 ms 16472 KB Output is correct
45 Correct 55 ms 17712 KB Output is correct
46 Correct 215 ms 108556 KB Output is correct
47 Correct 297 ms 33216 KB Output is correct
48 Correct 216 ms 32856 KB Output is correct
49 Correct 159 ms 33012 KB Output is correct
50 Correct 130 ms 33268 KB Output is correct
51 Correct 208 ms 35664 KB Output is correct
52 Correct 160 ms 33872 KB Output is correct
53 Correct 234 ms 33116 KB Output is correct
54 Correct 0 ms 344 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 1 ms 348 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 1 ms 344 KB Output is correct
68 Correct 0 ms 348 KB Output is correct
69 Correct 0 ms 348 KB Output is correct
70 Correct 0 ms 348 KB Output is correct
71 Correct 0 ms 348 KB Output is correct
72 Correct 0 ms 348 KB Output is correct
73 Correct 1 ms 344 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 ms 348 KB Output is correct
76 Correct 0 ms 348 KB Output is correct
77 Correct 0 ms 348 KB Output is correct
78 Correct 0 ms 348 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 0 ms 348 KB Output is correct
81 Correct 0 ms 348 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 0 ms 348 KB Output is correct
85 Correct 0 ms 348 KB Output is correct
86 Correct 0 ms 348 KB Output is correct
87 Correct 0 ms 348 KB Output is correct
88 Correct 0 ms 348 KB Output is correct
89 Correct 0 ms 344 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 0 ms 348 KB Output is correct
93 Correct 0 ms 348 KB Output is correct
94 Correct 0 ms 348 KB Output is correct
95 Correct 0 ms 348 KB Output is correct
96 Correct 1 ms 348 KB Output is correct
97 Correct 0 ms 348 KB Output is correct
98 Correct 0 ms 348 KB Output is correct
99 Correct 0 ms 348 KB Output is correct
100 Correct 0 ms 348 KB Output is correct
101 Correct 0 ms 348 KB Output is correct
102 Correct 0 ms 348 KB Output is correct
103 Correct 0 ms 348 KB Output is correct
104 Correct 0 ms 348 KB Output is correct
105 Correct 0 ms 348 KB Output is correct
106 Correct 0 ms 348 KB Output is correct
107 Correct 0 ms 448 KB Output is correct
108 Correct 0 ms 348 KB Output is correct
109 Correct 0 ms 348 KB Output is correct
110 Correct 2 ms 1264 KB Output is correct
111 Correct 9 ms 3932 KB Output is correct
112 Correct 10 ms 4696 KB Output is correct
113 Correct 5 ms 1884 KB Output is correct
114 Correct 1 ms 1628 KB Output is correct
115 Correct 7 ms 1628 KB Output is correct
116 Correct 6 ms 1628 KB Output is correct
117 Correct 2 ms 1884 KB Output is correct
118 Correct 1 ms 1628 KB Output is correct
119 Correct 12 ms 6236 KB Output is correct
120 Correct 27 ms 11216 KB Output is correct
121 Correct 7 ms 4188 KB Output is correct
122 Correct 8 ms 3676 KB Output is correct
123 Correct 19 ms 3672 KB Output is correct
124 Correct 55 ms 26620 KB Output is correct
125 Correct 145 ms 48868 KB Output is correct
126 Correct 197 ms 108136 KB Output is correct
127 Correct 107 ms 41960 KB Output is correct
128 Correct 92 ms 32860 KB Output is correct
129 Correct 179 ms 32860 KB Output is correct
130 Correct 76 ms 34380 KB Output is correct
131 Correct 100 ms 34640 KB Output is correct
132 Correct 9 ms 1632 KB Output is correct
133 Correct 1 ms 352 KB Output is correct
134 Correct 1 ms 352 KB Output is correct
135 Correct 2 ms 1328 KB Output is correct
136 Correct 6 ms 1372 KB Output is correct
137 Correct 8 ms 3932 KB Output is correct
138 Correct 10 ms 4696 KB Output is correct
139 Correct 11 ms 1628 KB Output is correct
140 Correct 11 ms 1680 KB Output is correct
141 Correct 6 ms 2140 KB Output is correct
142 Correct 1 ms 1628 KB Output is correct
143 Correct 7 ms 1628 KB Output is correct
144 Correct 8 ms 1628 KB Output is correct
145 Correct 7 ms 1628 KB Output is correct
146 Correct 10 ms 1624 KB Output is correct
147 Correct 10 ms 1716 KB Output is correct
148 Correct 8 ms 1744 KB Output is correct
149 Correct 13 ms 1628 KB Output is correct
150 Correct 6 ms 1724 KB Output is correct
151 Correct 2 ms 1884 KB Output is correct
152 Correct 1 ms 1628 KB Output is correct
153 Correct 6 ms 1628 KB Output is correct
154 Correct 28 ms 3672 KB Output is correct
155 Correct 8 ms 1624 KB Output is correct
156 Correct 12 ms 6236 KB Output is correct
157 Correct 32 ms 3420 KB Output is correct
158 Correct 27 ms 11352 KB Output is correct
159 Correct 30 ms 3672 KB Output is correct
160 Correct 24 ms 3672 KB Output is correct
161 Correct 7 ms 4188 KB Output is correct
162 Correct 8 ms 3676 KB Output is correct
163 Correct 18 ms 3676 KB Output is correct
164 Correct 25 ms 3924 KB Output is correct
165 Correct 20 ms 3816 KB Output is correct
166 Correct 32 ms 3672 KB Output is correct
167 Correct 32 ms 3676 KB Output is correct
168 Correct 32 ms 3676 KB Output is correct
169 Correct 32 ms 3676 KB Output is correct
170 Correct 28 ms 3676 KB Output is correct
171 Correct 17 ms 4188 KB Output is correct
172 Correct 32 ms 3932 KB Output is correct
173 Correct 3 ms 3676 KB Output is correct
174 Correct 15 ms 4700 KB Output is correct
175 Correct 81 ms 7772 KB Output is correct
176 Correct 61 ms 16892 KB Output is correct
177 Correct 169 ms 22284 KB Output is correct
178 Correct 26 ms 28764 KB Output is correct
179 Correct 171 ms 32860 KB Output is correct
180 Correct 308 ms 32856 KB Output is correct
181 Correct 329 ms 33112 KB Output is correct
182 Correct 325 ms 32860 KB Output is correct
183 Correct 303 ms 33192 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 464 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 604 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 9 ms 1712 KB Output is correct
20 Correct 6 ms 1372 KB Output is correct
21 Correct 10 ms 4700 KB Output is correct
22 Correct 12 ms 1628 KB Output is correct
23 Correct 11 ms 1624 KB Output is correct
24 Correct 9 ms 1628 KB Output is correct
25 Correct 7 ms 1788 KB Output is correct
26 Correct 2 ms 1884 KB Output is correct
27 Correct 1 ms 1628 KB Output is correct
28 Correct 6 ms 1628 KB Output is correct
29 Correct 28 ms 3736 KB Output is correct
30 Correct 8 ms 1624 KB Output is correct
31 Correct 25 ms 11352 KB Output is correct
32 Correct 31 ms 3676 KB Output is correct
33 Correct 25 ms 3672 KB Output is correct
34 Correct 28 ms 3792 KB Output is correct
35 Correct 20 ms 3816 KB Output is correct
36 Correct 19 ms 4292 KB Output is correct
37 Correct 25 ms 3932 KB Output is correct
38 Correct 4 ms 3676 KB Output is correct
39 Correct 293 ms 32964 KB Output is correct
40 Correct 10 ms 4188 KB Output is correct
41 Correct 15 ms 4444 KB Output is correct
42 Correct 43 ms 4956 KB Output is correct
43 Correct 29 ms 5724 KB Output is correct
44 Correct 53 ms 16472 KB Output is correct
45 Correct 55 ms 17712 KB Output is correct
46 Correct 215 ms 108556 KB Output is correct
47 Correct 297 ms 33216 KB Output is correct
48 Correct 216 ms 32856 KB Output is correct
49 Correct 159 ms 33012 KB Output is correct
50 Correct 130 ms 33268 KB Output is correct
51 Correct 208 ms 35664 KB Output is correct
52 Correct 160 ms 33872 KB Output is correct
53 Correct 234 ms 33116 KB Output is correct
54 Correct 0 ms 344 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 1 ms 348 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 1 ms 344 KB Output is correct
68 Correct 0 ms 348 KB Output is correct
69 Correct 0 ms 348 KB Output is correct
70 Correct 0 ms 348 KB Output is correct
71 Correct 0 ms 348 KB Output is correct
72 Correct 0 ms 348 KB Output is correct
73 Correct 1 ms 344 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 ms 348 KB Output is correct
76 Correct 0 ms 348 KB Output is correct
77 Correct 0 ms 348 KB Output is correct
78 Correct 0 ms 348 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 0 ms 348 KB Output is correct
81 Correct 0 ms 348 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 0 ms 348 KB Output is correct
85 Correct 0 ms 348 KB Output is correct
86 Correct 0 ms 348 KB Output is correct
87 Correct 0 ms 348 KB Output is correct
88 Correct 0 ms 348 KB Output is correct
89 Correct 0 ms 344 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 0 ms 348 KB Output is correct
93 Correct 0 ms 348 KB Output is correct
94 Correct 0 ms 348 KB Output is correct
95 Correct 0 ms 348 KB Output is correct
96 Correct 1 ms 348 KB Output is correct
97 Correct 0 ms 348 KB Output is correct
98 Correct 0 ms 348 KB Output is correct
99 Correct 0 ms 348 KB Output is correct
100 Correct 0 ms 348 KB Output is correct
101 Correct 0 ms 348 KB Output is correct
102 Correct 0 ms 348 KB Output is correct
103 Correct 0 ms 348 KB Output is correct
104 Correct 0 ms 348 KB Output is correct
105 Correct 0 ms 348 KB Output is correct
106 Correct 0 ms 348 KB Output is correct
107 Correct 0 ms 448 KB Output is correct
108 Correct 0 ms 348 KB Output is correct
109 Correct 0 ms 348 KB Output is correct
110 Correct 2 ms 1264 KB Output is correct
111 Correct 9 ms 3932 KB Output is correct
112 Correct 10 ms 4696 KB Output is correct
113 Correct 5 ms 1884 KB Output is correct
114 Correct 1 ms 1628 KB Output is correct
115 Correct 7 ms 1628 KB Output is correct
116 Correct 6 ms 1628 KB Output is correct
117 Correct 2 ms 1884 KB Output is correct
118 Correct 1 ms 1628 KB Output is correct
119 Correct 12 ms 6236 KB Output is correct
120 Correct 27 ms 11216 KB Output is correct
121 Correct 7 ms 4188 KB Output is correct
122 Correct 8 ms 3676 KB Output is correct
123 Correct 19 ms 3672 KB Output is correct
124 Correct 55 ms 26620 KB Output is correct
125 Correct 145 ms 48868 KB Output is correct
126 Correct 197 ms 108136 KB Output is correct
127 Correct 107 ms 41960 KB Output is correct
128 Correct 92 ms 32860 KB Output is correct
129 Correct 179 ms 32860 KB Output is correct
130 Correct 76 ms 34380 KB Output is correct
131 Correct 100 ms 34640 KB Output is correct
132 Correct 9 ms 1632 KB Output is correct
133 Correct 1 ms 352 KB Output is correct
134 Correct 1 ms 352 KB Output is correct
135 Correct 2 ms 1328 KB Output is correct
136 Correct 6 ms 1372 KB Output is correct
137 Correct 8 ms 3932 KB Output is correct
138 Correct 10 ms 4696 KB Output is correct
139 Correct 11 ms 1628 KB Output is correct
140 Correct 11 ms 1680 KB Output is correct
141 Correct 6 ms 2140 KB Output is correct
142 Correct 1 ms 1628 KB Output is correct
143 Correct 7 ms 1628 KB Output is correct
144 Correct 8 ms 1628 KB Output is correct
145 Correct 7 ms 1628 KB Output is correct
146 Correct 10 ms 1624 KB Output is correct
147 Correct 10 ms 1716 KB Output is correct
148 Correct 8 ms 1744 KB Output is correct
149 Correct 13 ms 1628 KB Output is correct
150 Correct 6 ms 1724 KB Output is correct
151 Correct 2 ms 1884 KB Output is correct
152 Correct 1 ms 1628 KB Output is correct
153 Correct 6 ms 1628 KB Output is correct
154 Correct 28 ms 3672 KB Output is correct
155 Correct 8 ms 1624 KB Output is correct
156 Correct 12 ms 6236 KB Output is correct
157 Correct 32 ms 3420 KB Output is correct
158 Correct 27 ms 11352 KB Output is correct
159 Correct 30 ms 3672 KB Output is correct
160 Correct 24 ms 3672 KB Output is correct
161 Correct 7 ms 4188 KB Output is correct
162 Correct 8 ms 3676 KB Output is correct
163 Correct 18 ms 3676 KB Output is correct
164 Correct 25 ms 3924 KB Output is correct
165 Correct 20 ms 3816 KB Output is correct
166 Correct 32 ms 3672 KB Output is correct
167 Correct 32 ms 3676 KB Output is correct
168 Correct 32 ms 3676 KB Output is correct
169 Correct 32 ms 3676 KB Output is correct
170 Correct 28 ms 3676 KB Output is correct
171 Correct 17 ms 4188 KB Output is correct
172 Correct 32 ms 3932 KB Output is correct
173 Correct 3 ms 3676 KB Output is correct
174 Correct 15 ms 4700 KB Output is correct
175 Correct 81 ms 7772 KB Output is correct
176 Correct 61 ms 16892 KB Output is correct
177 Correct 169 ms 22284 KB Output is correct
178 Correct 26 ms 28764 KB Output is correct
179 Correct 171 ms 32860 KB Output is correct
180 Correct 308 ms 32856 KB Output is correct
181 Correct 329 ms 33112 KB Output is correct
182 Correct 325 ms 32860 KB Output is correct
183 Correct 303 ms 33192 KB Output is correct
184 Correct 555 ms 65428 KB Output is correct
185 Correct 113 ms 36188 KB Output is correct
186 Correct 260 ms 111272 KB Output is correct
187 Correct 77 ms 50000 KB Output is correct
188 Correct 266 ms 194616 KB Output is correct
189 Correct 467 ms 65908 KB Output is correct
190 Correct 208 ms 65616 KB Output is correct
191 Correct 174 ms 81812 KB Output is correct
192 Correct 382 ms 65368 KB Output is correct
193 Correct 53 ms 65108 KB Output is correct
194 Correct 461 ms 67064 KB Output is correct
195 Correct 276 ms 67064 KB Output is correct
196 Correct 652 ms 65360 KB Output is correct
197 Correct 307 ms 65360 KB Output is correct
198 Correct 315 ms 65360 KB Output is correct
199 Correct 628 ms 65596 KB Output is correct
200 Correct 218 ms 69280 KB Output is correct
201 Correct 379 ms 66804 KB Output is correct
202 Correct 542 ms 65872 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 464 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 604 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 9 ms 1712 KB Output is correct
20 Correct 6 ms 1372 KB Output is correct
21 Correct 10 ms 4700 KB Output is correct
22 Correct 12 ms 1628 KB Output is correct
23 Correct 11 ms 1624 KB Output is correct
24 Correct 9 ms 1628 KB Output is correct
25 Correct 7 ms 1788 KB Output is correct
26 Correct 2 ms 1884 KB Output is correct
27 Correct 1 ms 1628 KB Output is correct
28 Correct 6 ms 1628 KB Output is correct
29 Correct 28 ms 3736 KB Output is correct
30 Correct 8 ms 1624 KB Output is correct
31 Correct 25 ms 11352 KB Output is correct
32 Correct 31 ms 3676 KB Output is correct
33 Correct 25 ms 3672 KB Output is correct
34 Correct 28 ms 3792 KB Output is correct
35 Correct 20 ms 3816 KB Output is correct
36 Correct 19 ms 4292 KB Output is correct
37 Correct 25 ms 3932 KB Output is correct
38 Correct 4 ms 3676 KB Output is correct
39 Correct 293 ms 32964 KB Output is correct
40 Correct 10 ms 4188 KB Output is correct
41 Correct 15 ms 4444 KB Output is correct
42 Correct 43 ms 4956 KB Output is correct
43 Correct 29 ms 5724 KB Output is correct
44 Correct 53 ms 16472 KB Output is correct
45 Correct 55 ms 17712 KB Output is correct
46 Correct 215 ms 108556 KB Output is correct
47 Correct 297 ms 33216 KB Output is correct
48 Correct 216 ms 32856 KB Output is correct
49 Correct 159 ms 33012 KB Output is correct
50 Correct 130 ms 33268 KB Output is correct
51 Correct 208 ms 35664 KB Output is correct
52 Correct 160 ms 33872 KB Output is correct
53 Correct 234 ms 33116 KB Output is correct
54 Correct 0 ms 344 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 1 ms 348 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 1 ms 344 KB Output is correct
68 Correct 0 ms 348 KB Output is correct
69 Correct 0 ms 348 KB Output is correct
70 Correct 0 ms 348 KB Output is correct
71 Correct 0 ms 348 KB Output is correct
72 Correct 0 ms 348 KB Output is correct
73 Correct 1 ms 344 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 ms 348 KB Output is correct
76 Correct 0 ms 348 KB Output is correct
77 Correct 0 ms 348 KB Output is correct
78 Correct 0 ms 348 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 0 ms 348 KB Output is correct
81 Correct 0 ms 348 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 0 ms 348 KB Output is correct
85 Correct 0 ms 348 KB Output is correct
86 Correct 0 ms 348 KB Output is correct
87 Correct 0 ms 348 KB Output is correct
88 Correct 0 ms 348 KB Output is correct
89 Correct 0 ms 344 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 0 ms 348 KB Output is correct
93 Correct 0 ms 348 KB Output is correct
94 Correct 0 ms 348 KB Output is correct
95 Correct 0 ms 348 KB Output is correct
96 Correct 1 ms 348 KB Output is correct
97 Correct 0 ms 348 KB Output is correct
98 Correct 0 ms 348 KB Output is correct
99 Correct 0 ms 348 KB Output is correct
100 Correct 0 ms 348 KB Output is correct
101 Correct 0 ms 348 KB Output is correct
102 Correct 0 ms 348 KB Output is correct
103 Correct 0 ms 348 KB Output is correct
104 Correct 0 ms 348 KB Output is correct
105 Correct 0 ms 348 KB Output is correct
106 Correct 0 ms 348 KB Output is correct
107 Correct 0 ms 448 KB Output is correct
108 Correct 0 ms 348 KB Output is correct
109 Correct 0 ms 348 KB Output is correct
110 Correct 2 ms 1264 KB Output is correct
111 Correct 9 ms 3932 KB Output is correct
112 Correct 10 ms 4696 KB Output is correct
113 Correct 5 ms 1884 KB Output is correct
114 Correct 1 ms 1628 KB Output is correct
115 Correct 7 ms 1628 KB Output is correct
116 Correct 6 ms 1628 KB Output is correct
117 Correct 2 ms 1884 KB Output is correct
118 Correct 1 ms 1628 KB Output is correct
119 Correct 12 ms 6236 KB Output is correct
120 Correct 27 ms 11216 KB Output is correct
121 Correct 7 ms 4188 KB Output is correct
122 Correct 8 ms 3676 KB Output is correct
123 Correct 19 ms 3672 KB Output is correct
124 Correct 55 ms 26620 KB Output is correct
125 Correct 145 ms 48868 KB Output is correct
126 Correct 197 ms 108136 KB Output is correct
127 Correct 107 ms 41960 KB Output is correct
128 Correct 92 ms 32860 KB Output is correct
129 Correct 179 ms 32860 KB Output is correct
130 Correct 76 ms 34380 KB Output is correct
131 Correct 100 ms 34640 KB Output is correct
132 Correct 9 ms 1632 KB Output is correct
133 Correct 1 ms 352 KB Output is correct
134 Correct 1 ms 352 KB Output is correct
135 Correct 2 ms 1328 KB Output is correct
136 Correct 6 ms 1372 KB Output is correct
137 Correct 8 ms 3932 KB Output is correct
138 Correct 10 ms 4696 KB Output is correct
139 Correct 11 ms 1628 KB Output is correct
140 Correct 11 ms 1680 KB Output is correct
141 Correct 6 ms 2140 KB Output is correct
142 Correct 1 ms 1628 KB Output is correct
143 Correct 7 ms 1628 KB Output is correct
144 Correct 8 ms 1628 KB Output is correct
145 Correct 7 ms 1628 KB Output is correct
146 Correct 10 ms 1624 KB Output is correct
147 Correct 10 ms 1716 KB Output is correct
148 Correct 8 ms 1744 KB Output is correct
149 Correct 13 ms 1628 KB Output is correct
150 Correct 6 ms 1724 KB Output is correct
151 Correct 2 ms 1884 KB Output is correct
152 Correct 1 ms 1628 KB Output is correct
153 Correct 6 ms 1628 KB Output is correct
154 Correct 28 ms 3672 KB Output is correct
155 Correct 8 ms 1624 KB Output is correct
156 Correct 12 ms 6236 KB Output is correct
157 Correct 32 ms 3420 KB Output is correct
158 Correct 27 ms 11352 KB Output is correct
159 Correct 30 ms 3672 KB Output is correct
160 Correct 24 ms 3672 KB Output is correct
161 Correct 7 ms 4188 KB Output is correct
162 Correct 8 ms 3676 KB Output is correct
163 Correct 18 ms 3676 KB Output is correct
164 Correct 25 ms 3924 KB Output is correct
165 Correct 20 ms 3816 KB Output is correct
166 Correct 32 ms 3672 KB Output is correct
167 Correct 32 ms 3676 KB Output is correct
168 Correct 32 ms 3676 KB Output is correct
169 Correct 32 ms 3676 KB Output is correct
170 Correct 28 ms 3676 KB Output is correct
171 Correct 17 ms 4188 KB Output is correct
172 Correct 32 ms 3932 KB Output is correct
173 Correct 3 ms 3676 KB Output is correct
174 Correct 15 ms 4700 KB Output is correct
175 Correct 81 ms 7772 KB Output is correct
176 Correct 61 ms 16892 KB Output is correct
177 Correct 169 ms 22284 KB Output is correct
178 Correct 26 ms 28764 KB Output is correct
179 Correct 171 ms 32860 KB Output is correct
180 Correct 308 ms 32856 KB Output is correct
181 Correct 329 ms 33112 KB Output is correct
182 Correct 325 ms 32860 KB Output is correct
183 Correct 303 ms 33192 KB Output is correct
184 Correct 555 ms 65428 KB Output is correct
185 Correct 113 ms 36188 KB Output is correct
186 Correct 260 ms 111272 KB Output is correct
187 Correct 77 ms 50000 KB Output is correct
188 Correct 266 ms 194616 KB Output is correct
189 Correct 467 ms 65908 KB Output is correct
190 Correct 208 ms 65616 KB Output is correct
191 Correct 174 ms 81812 KB Output is correct
192 Correct 382 ms 65368 KB Output is correct
193 Correct 53 ms 65108 KB Output is correct
194 Correct 461 ms 67064 KB Output is correct
195 Correct 276 ms 67064 KB Output is correct
196 Correct 652 ms 65360 KB Output is correct
197 Correct 307 ms 65360 KB Output is correct
198 Correct 315 ms 65360 KB Output is correct
199 Correct 628 ms 65596 KB Output is correct
200 Correct 218 ms 69280 KB Output is correct
201 Correct 379 ms 66804 KB Output is correct
202 Correct 542 ms 65872 KB Output is correct
203 Correct 1104 ms 130388 KB Output is correct
204 Correct 538 ms 68748 KB Output is correct
205 Correct 904 ms 81664 KB Output is correct
206 Correct 249 ms 129284 KB Output is correct
207 Correct 316 ms 279840 KB Output is correct
208 Correct 925 ms 131260 KB Output is correct
209 Correct 1008 ms 130132 KB Output is correct
210 Correct 528 ms 166500 KB Output is correct
211 Correct 71 ms 130128 KB Output is correct
212 Correct 41 ms 130128 KB Output is correct
213 Correct 595 ms 130776 KB Output is correct
214 Correct 723 ms 131788 KB Output is correct
215 Correct 1146 ms 130216 KB Output is correct
216 Correct 1029 ms 130056 KB Output is correct
217 Correct 1151 ms 130328 KB Output is correct
218 Correct 898 ms 130644 KB Output is correct
219 Correct 879 ms 132804 KB Output is correct
220 Correct 284 ms 134740 KB Output is correct
221 Correct 113 ms 132164 KB Output is correct
222 Correct 767 ms 136440 KB Output is correct
223 Correct 795 ms 135248 KB Output is correct
224 Correct 831 ms 132924 KB Output is correct
225 Correct 494 ms 130900 KB Output is correct