Submission #727423

# Submission time Handle Problem Language Result Execution time Memory
727423 2023-04-20T15:49:30 Z model_code Maze (JOI23_ho_t3) C++17
100 / 100
572 ms 147180 KB
#include <array>
#include <climits>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;

int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    int R, C, K, Sr, Sc, Gr, Gc;
    cin >> R >> C >> K >> Sr >> Sc >> Gr >> Gc;
    K = 1 - K; Sr--; Sc--; Gr--; Gc--;
    vector<string> A(R);
    for(string& a : A) {
        cin >> a;
        for(char& c : a) c = c == '#';
    }

    // {ここに辿り着くまでに必要な塗りつぶし回数, 最後の塗りつぶしによって行ける縦の移動量, 最後の塗りつぶしによって行ける横の移動量} を持つ
    // 各レイヤー 3 フェーズの BFS
    // 1. 4 方向に 白なら移動 / 黒なら (K - 1, K - 1) ã§å¡—ã‚Šã¤ã¶ã—è¿½åŠ 
    // 2. 横方向に移動
    // 3. 縦方向に移動
    vector cost(R, vector(C, array{INT_MAX, 0, 0}));
    vector<pair<int, int>> q1, q2;
    auto push = [&](vector<pair<int, int>>& q, int r, int c, int x, int y, int z) -> void {
        if(r < 0 || r >= R || c < 0 || c >= C) return;
        if(cost[r][c][0] <= x) return;
        cost[r][c] = {x, y, z};
        q.emplace_back(r, c);
    };
    auto push2 = [&](int r, int c, int x) -> void {
        if(r < 0 || r >= R || c < 0 || c >= C) return;
        if(A[r][c]) push(q2, r, c, x + 1, K, K);
        else push(q1, r, c, x, 0, 0);
    };
    push(q1, Sr, Sc, 0, 0, 0);

    while(q1.size()) {
        // 横方向に移動
        for(int i = 0; i < q1.size(); i++) {
            const auto [r, c] = q1[i];
            const auto [x, y, z] = cost[r][c];
            if(z == 0) continue;
            push(q1, r, c - 1, x, y, z + 1);
            push(q1, r, c + 1, x, y, z + 1);
        }
        // 縦方向に移動
        for(int i = 0; i < q1.size(); i++) {
            const auto [r, c] = q1[i];
            const auto [x, y, z] = cost[r][c];
            if(y == 0) continue;
            push(q1, r - 1, c, x, y + 1, z);
            push(q1, r + 1, c, x, y + 1, z);
        }
        // BFS
        for(int i = 0; i < q1.size(); i++) {
            const auto [r, c] = q1[i];
            const auto [x, y, z] = cost[r][c];
            push2(r - 1, c, x);
            push2(r + 1, c, x);
            push2(r, c - 1, x);
            push2(r, c + 1, x);
        }
        swap(q1, q2);
        q2.clear();
    }

    cout << cost[Gr][Gc][0] << endl;
}

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:43:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   43 |         for(int i = 0; i < q1.size(); i++) {
      |                        ~~^~~~~~~~~~~
Main.cpp:51:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   51 |         for(int i = 0; i < q1.size(); i++) {
      |                        ~~^~~~~~~~~~~
Main.cpp:59:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   59 |         for(int i = 0; i < q1.size(); i++) {
      |                        ~~^~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 340 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 4 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 3 ms 1108 KB Output is correct
20 Correct 3 ms 1492 KB Output is correct
21 Correct 4 ms 1752 KB Output is correct
22 Correct 4 ms 1108 KB Output is correct
23 Correct 8 ms 1116 KB Output is correct
24 Correct 2 ms 1748 KB Output is correct
25 Correct 2 ms 1748 KB Output is correct
26 Correct 5 ms 1364 KB Output is correct
27 Correct 5 ms 1108 KB Output is correct
28 Correct 3 ms 1108 KB Output is correct
29 Correct 8 ms 2292 KB Output is correct
30 Correct 4 ms 1492 KB Output is correct
31 Correct 6 ms 4424 KB Output is correct
32 Correct 11 ms 2372 KB Output is correct
33 Correct 7 ms 2260 KB Output is correct
34 Correct 6 ms 4064 KB Output is correct
35 Correct 6 ms 4064 KB Output is correct
36 Correct 12 ms 2684 KB Output is correct
37 Correct 23 ms 2480 KB Output is correct
38 Correct 7 ms 2220 KB Output is correct
39 Correct 80 ms 19636 KB Output is correct
40 Correct 10 ms 2644 KB Output is correct
41 Correct 15 ms 4960 KB Output is correct
42 Correct 10 ms 3028 KB Output is correct
43 Correct 13 ms 4948 KB Output is correct
44 Correct 42 ms 11476 KB Output is correct
45 Correct 32 ms 12560 KB Output is correct
46 Correct 118 ms 36176 KB Output is correct
47 Correct 101 ms 19892 KB Output is correct
48 Correct 80 ms 19664 KB Output is correct
49 Correct 42 ms 37112 KB Output is correct
50 Correct 54 ms 37012 KB Output is correct
51 Correct 123 ms 20652 KB Output is correct
52 Correct 151 ms 20104 KB Output is correct
53 Correct 93 ms 19768 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 256 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 232 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 212 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 0 ms 212 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 280 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 1 ms 304 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 1 ms 340 KB Output is correct
24 Correct 1 ms 340 KB Output is correct
25 Correct 4 ms 724 KB Output is correct
26 Correct 3 ms 1676 KB Output is correct
27 Correct 3 ms 1752 KB Output is correct
28 Correct 3 ms 1752 KB Output is correct
29 Correct 4 ms 1752 KB Output is correct
30 Correct 3 ms 1752 KB Output is correct
31 Correct 6 ms 1236 KB Output is correct
32 Correct 6 ms 1364 KB Output is correct
33 Correct 5 ms 1112 KB Output is correct
34 Correct 10 ms 3232 KB Output is correct
35 Correct 7 ms 4368 KB Output is correct
36 Correct 7 ms 4424 KB Output is correct
37 Correct 11 ms 4424 KB Output is correct
38 Correct 7 ms 4424 KB Output is correct
39 Correct 34 ms 11884 KB Output is correct
40 Correct 88 ms 31104 KB Output is correct
41 Correct 79 ms 36204 KB Output is correct
42 Correct 95 ms 36152 KB Output is correct
43 Correct 104 ms 36136 KB Output is correct
44 Correct 63 ms 36196 KB Output is correct
45 Correct 151 ms 35708 KB Output is correct
46 Correct 114 ms 35656 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 256 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 232 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 212 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 0 ms 212 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 4 ms 1108 KB Output is correct
34 Correct 1 ms 344 KB Output is correct
35 Correct 1 ms 344 KB Output is correct
36 Correct 4 ms 852 KB Output is correct
37 Correct 2 ms 1492 KB Output is correct
38 Correct 4 ms 1676 KB Output is correct
39 Correct 4 ms 1752 KB Output is correct
40 Correct 4 ms 1108 KB Output is correct
41 Correct 3 ms 1108 KB Output is correct
42 Correct 3 ms 1752 KB Output is correct
43 Correct 4 ms 1752 KB Output is correct
44 Correct 3 ms 1752 KB Output is correct
45 Correct 2 ms 1748 KB Output is correct
46 Correct 3 ms 1748 KB Output is correct
47 Correct 3 ms 1492 KB Output is correct
48 Correct 6 ms 1140 KB Output is correct
49 Correct 4 ms 1108 KB Output is correct
50 Correct 4 ms 1108 KB Output is correct
51 Correct 4 ms 1268 KB Output is correct
52 Correct 5 ms 1412 KB Output is correct
53 Correct 5 ms 1108 KB Output is correct
54 Correct 3 ms 1108 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 256 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 232 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 212 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 0 ms 212 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 4 ms 1108 KB Output is correct
34 Correct 1 ms 344 KB Output is correct
35 Correct 1 ms 344 KB Output is correct
36 Correct 4 ms 852 KB Output is correct
37 Correct 2 ms 1492 KB Output is correct
38 Correct 4 ms 1676 KB Output is correct
39 Correct 4 ms 1752 KB Output is correct
40 Correct 4 ms 1108 KB Output is correct
41 Correct 3 ms 1108 KB Output is correct
42 Correct 3 ms 1752 KB Output is correct
43 Correct 4 ms 1752 KB Output is correct
44 Correct 3 ms 1752 KB Output is correct
45 Correct 2 ms 1748 KB Output is correct
46 Correct 3 ms 1748 KB Output is correct
47 Correct 3 ms 1492 KB Output is correct
48 Correct 6 ms 1140 KB Output is correct
49 Correct 4 ms 1108 KB Output is correct
50 Correct 4 ms 1108 KB Output is correct
51 Correct 4 ms 1268 KB Output is correct
52 Correct 5 ms 1412 KB Output is correct
53 Correct 5 ms 1108 KB Output is correct
54 Correct 3 ms 1108 KB Output is correct
55 Correct 9 ms 2260 KB Output is correct
56 Correct 4 ms 1492 KB Output is correct
57 Correct 8 ms 3276 KB Output is correct
58 Correct 9 ms 2132 KB Output is correct
59 Correct 7 ms 4424 KB Output is correct
60 Correct 10 ms 2272 KB Output is correct
61 Correct 8 ms 2260 KB Output is correct
62 Correct 8 ms 4436 KB Output is correct
63 Correct 10 ms 4436 KB Output is correct
64 Correct 10 ms 4376 KB Output is correct
65 Correct 5 ms 4076 KB Output is correct
66 Correct 8 ms 4076 KB Output is correct
67 Correct 8 ms 3168 KB Output is correct
68 Correct 11 ms 2276 KB Output is correct
69 Correct 10 ms 2372 KB Output is correct
70 Correct 15 ms 2400 KB Output is correct
71 Correct 10 ms 2652 KB Output is correct
72 Correct 10 ms 2704 KB Output is correct
73 Correct 11 ms 2388 KB Output is correct
74 Correct 7 ms 2260 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 340 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 4 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 3 ms 1108 KB Output is correct
20 Correct 3 ms 1492 KB Output is correct
21 Correct 4 ms 1752 KB Output is correct
22 Correct 4 ms 1108 KB Output is correct
23 Correct 8 ms 1116 KB Output is correct
24 Correct 2 ms 1748 KB Output is correct
25 Correct 2 ms 1748 KB Output is correct
26 Correct 5 ms 1364 KB Output is correct
27 Correct 5 ms 1108 KB Output is correct
28 Correct 3 ms 1108 KB Output is correct
29 Correct 8 ms 2292 KB Output is correct
30 Correct 4 ms 1492 KB Output is correct
31 Correct 6 ms 4424 KB Output is correct
32 Correct 11 ms 2372 KB Output is correct
33 Correct 7 ms 2260 KB Output is correct
34 Correct 6 ms 4064 KB Output is correct
35 Correct 6 ms 4064 KB Output is correct
36 Correct 12 ms 2684 KB Output is correct
37 Correct 23 ms 2480 KB Output is correct
38 Correct 7 ms 2220 KB Output is correct
39 Correct 80 ms 19636 KB Output is correct
40 Correct 10 ms 2644 KB Output is correct
41 Correct 15 ms 4960 KB Output is correct
42 Correct 10 ms 3028 KB Output is correct
43 Correct 13 ms 4948 KB Output is correct
44 Correct 42 ms 11476 KB Output is correct
45 Correct 32 ms 12560 KB Output is correct
46 Correct 118 ms 36176 KB Output is correct
47 Correct 101 ms 19892 KB Output is correct
48 Correct 80 ms 19664 KB Output is correct
49 Correct 42 ms 37112 KB Output is correct
50 Correct 54 ms 37012 KB Output is correct
51 Correct 123 ms 20652 KB Output is correct
52 Correct 151 ms 20104 KB Output is correct
53 Correct 93 ms 19768 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 1 ms 212 KB Output is correct
56 Correct 1 ms 212 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 1 ms 256 KB Output is correct
59 Correct 1 ms 212 KB Output is correct
60 Correct 1 ms 232 KB Output is correct
61 Correct 1 ms 212 KB Output is correct
62 Correct 1 ms 340 KB Output is correct
63 Correct 1 ms 340 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 1 ms 340 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 1 ms 340 KB Output is correct
69 Correct 0 ms 340 KB Output is correct
70 Correct 1 ms 212 KB Output is correct
71 Correct 1 ms 212 KB Output is correct
72 Correct 1 ms 212 KB Output is correct
73 Correct 1 ms 212 KB Output is correct
74 Correct 1 ms 212 KB Output is correct
75 Correct 1 ms 212 KB Output is correct
76 Correct 1 ms 212 KB Output is correct
77 Correct 1 ms 212 KB Output is correct
78 Correct 1 ms 212 KB Output is correct
79 Correct 1 ms 212 KB Output is correct
80 Correct 1 ms 212 KB Output is correct
81 Correct 1 ms 212 KB Output is correct
82 Correct 0 ms 212 KB Output is correct
83 Correct 1 ms 340 KB Output is correct
84 Correct 1 ms 340 KB Output is correct
85 Correct 1 ms 340 KB Output is correct
86 Correct 1 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 1 ms 212 KB Output is correct
89 Correct 1 ms 280 KB Output is correct
90 Correct 1 ms 212 KB Output is correct
91 Correct 0 ms 212 KB Output is correct
92 Correct 1 ms 304 KB Output is correct
93 Correct 1 ms 212 KB Output is correct
94 Correct 1 ms 340 KB Output is correct
95 Correct 1 ms 340 KB Output is correct
96 Correct 1 ms 340 KB Output is correct
97 Correct 1 ms 340 KB Output is correct
98 Correct 1 ms 212 KB Output is correct
99 Correct 1 ms 212 KB Output is correct
100 Correct 1 ms 212 KB Output is correct
101 Correct 1 ms 212 KB Output is correct
102 Correct 1 ms 212 KB Output is correct
103 Correct 1 ms 212 KB Output is correct
104 Correct 1 ms 212 KB Output is correct
105 Correct 1 ms 212 KB Output is correct
106 Correct 1 ms 212 KB Output is correct
107 Correct 1 ms 340 KB Output is correct
108 Correct 1 ms 340 KB Output is correct
109 Correct 1 ms 340 KB Output is correct
110 Correct 4 ms 724 KB Output is correct
111 Correct 3 ms 1676 KB Output is correct
112 Correct 3 ms 1752 KB Output is correct
113 Correct 3 ms 1752 KB Output is correct
114 Correct 4 ms 1752 KB Output is correct
115 Correct 3 ms 1752 KB Output is correct
116 Correct 6 ms 1236 KB Output is correct
117 Correct 6 ms 1364 KB Output is correct
118 Correct 5 ms 1112 KB Output is correct
119 Correct 10 ms 3232 KB Output is correct
120 Correct 7 ms 4368 KB Output is correct
121 Correct 7 ms 4424 KB Output is correct
122 Correct 11 ms 4424 KB Output is correct
123 Correct 7 ms 4424 KB Output is correct
124 Correct 34 ms 11884 KB Output is correct
125 Correct 88 ms 31104 KB Output is correct
126 Correct 79 ms 36204 KB Output is correct
127 Correct 95 ms 36152 KB Output is correct
128 Correct 104 ms 36136 KB Output is correct
129 Correct 63 ms 36196 KB Output is correct
130 Correct 151 ms 35708 KB Output is correct
131 Correct 114 ms 35656 KB Output is correct
132 Correct 4 ms 1108 KB Output is correct
133 Correct 1 ms 344 KB Output is correct
134 Correct 1 ms 344 KB Output is correct
135 Correct 4 ms 852 KB Output is correct
136 Correct 2 ms 1492 KB Output is correct
137 Correct 4 ms 1676 KB Output is correct
138 Correct 4 ms 1752 KB Output is correct
139 Correct 4 ms 1108 KB Output is correct
140 Correct 3 ms 1108 KB Output is correct
141 Correct 3 ms 1752 KB Output is correct
142 Correct 4 ms 1752 KB Output is correct
143 Correct 3 ms 1752 KB Output is correct
144 Correct 2 ms 1748 KB Output is correct
145 Correct 3 ms 1748 KB Output is correct
146 Correct 3 ms 1492 KB Output is correct
147 Correct 6 ms 1140 KB Output is correct
148 Correct 4 ms 1108 KB Output is correct
149 Correct 4 ms 1108 KB Output is correct
150 Correct 4 ms 1268 KB Output is correct
151 Correct 5 ms 1412 KB Output is correct
152 Correct 5 ms 1108 KB Output is correct
153 Correct 3 ms 1108 KB Output is correct
154 Correct 9 ms 2260 KB Output is correct
155 Correct 4 ms 1492 KB Output is correct
156 Correct 8 ms 3276 KB Output is correct
157 Correct 9 ms 2132 KB Output is correct
158 Correct 7 ms 4424 KB Output is correct
159 Correct 10 ms 2272 KB Output is correct
160 Correct 8 ms 2260 KB Output is correct
161 Correct 8 ms 4436 KB Output is correct
162 Correct 10 ms 4436 KB Output is correct
163 Correct 10 ms 4376 KB Output is correct
164 Correct 5 ms 4076 KB Output is correct
165 Correct 8 ms 4076 KB Output is correct
166 Correct 8 ms 3168 KB Output is correct
167 Correct 11 ms 2276 KB Output is correct
168 Correct 10 ms 2372 KB Output is correct
169 Correct 15 ms 2400 KB Output is correct
170 Correct 10 ms 2652 KB Output is correct
171 Correct 10 ms 2704 KB Output is correct
172 Correct 11 ms 2388 KB Output is correct
173 Correct 7 ms 2260 KB Output is correct
174 Correct 13 ms 3028 KB Output is correct
175 Correct 19 ms 4692 KB Output is correct
176 Correct 46 ms 13048 KB Output is correct
177 Correct 61 ms 13828 KB Output is correct
178 Correct 85 ms 17604 KB Output is correct
179 Correct 95 ms 20016 KB Output is correct
180 Correct 105 ms 20304 KB Output is correct
181 Correct 114 ms 20720 KB Output is correct
182 Correct 102 ms 21784 KB Output is correct
183 Correct 113 ms 23740 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 340 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 4 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 3 ms 1108 KB Output is correct
20 Correct 3 ms 1492 KB Output is correct
21 Correct 4 ms 1752 KB Output is correct
22 Correct 4 ms 1108 KB Output is correct
23 Correct 8 ms 1116 KB Output is correct
24 Correct 2 ms 1748 KB Output is correct
25 Correct 2 ms 1748 KB Output is correct
26 Correct 5 ms 1364 KB Output is correct
27 Correct 5 ms 1108 KB Output is correct
28 Correct 3 ms 1108 KB Output is correct
29 Correct 8 ms 2292 KB Output is correct
30 Correct 4 ms 1492 KB Output is correct
31 Correct 6 ms 4424 KB Output is correct
32 Correct 11 ms 2372 KB Output is correct
33 Correct 7 ms 2260 KB Output is correct
34 Correct 6 ms 4064 KB Output is correct
35 Correct 6 ms 4064 KB Output is correct
36 Correct 12 ms 2684 KB Output is correct
37 Correct 23 ms 2480 KB Output is correct
38 Correct 7 ms 2220 KB Output is correct
39 Correct 80 ms 19636 KB Output is correct
40 Correct 10 ms 2644 KB Output is correct
41 Correct 15 ms 4960 KB Output is correct
42 Correct 10 ms 3028 KB Output is correct
43 Correct 13 ms 4948 KB Output is correct
44 Correct 42 ms 11476 KB Output is correct
45 Correct 32 ms 12560 KB Output is correct
46 Correct 118 ms 36176 KB Output is correct
47 Correct 101 ms 19892 KB Output is correct
48 Correct 80 ms 19664 KB Output is correct
49 Correct 42 ms 37112 KB Output is correct
50 Correct 54 ms 37012 KB Output is correct
51 Correct 123 ms 20652 KB Output is correct
52 Correct 151 ms 20104 KB Output is correct
53 Correct 93 ms 19768 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 1 ms 212 KB Output is correct
56 Correct 1 ms 212 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 1 ms 256 KB Output is correct
59 Correct 1 ms 212 KB Output is correct
60 Correct 1 ms 232 KB Output is correct
61 Correct 1 ms 212 KB Output is correct
62 Correct 1 ms 340 KB Output is correct
63 Correct 1 ms 340 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 1 ms 340 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 1 ms 340 KB Output is correct
69 Correct 0 ms 340 KB Output is correct
70 Correct 1 ms 212 KB Output is correct
71 Correct 1 ms 212 KB Output is correct
72 Correct 1 ms 212 KB Output is correct
73 Correct 1 ms 212 KB Output is correct
74 Correct 1 ms 212 KB Output is correct
75 Correct 1 ms 212 KB Output is correct
76 Correct 1 ms 212 KB Output is correct
77 Correct 1 ms 212 KB Output is correct
78 Correct 1 ms 212 KB Output is correct
79 Correct 1 ms 212 KB Output is correct
80 Correct 1 ms 212 KB Output is correct
81 Correct 1 ms 212 KB Output is correct
82 Correct 0 ms 212 KB Output is correct
83 Correct 1 ms 340 KB Output is correct
84 Correct 1 ms 340 KB Output is correct
85 Correct 1 ms 340 KB Output is correct
86 Correct 1 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 1 ms 212 KB Output is correct
89 Correct 1 ms 280 KB Output is correct
90 Correct 1 ms 212 KB Output is correct
91 Correct 0 ms 212 KB Output is correct
92 Correct 1 ms 304 KB Output is correct
93 Correct 1 ms 212 KB Output is correct
94 Correct 1 ms 340 KB Output is correct
95 Correct 1 ms 340 KB Output is correct
96 Correct 1 ms 340 KB Output is correct
97 Correct 1 ms 340 KB Output is correct
98 Correct 1 ms 212 KB Output is correct
99 Correct 1 ms 212 KB Output is correct
100 Correct 1 ms 212 KB Output is correct
101 Correct 1 ms 212 KB Output is correct
102 Correct 1 ms 212 KB Output is correct
103 Correct 1 ms 212 KB Output is correct
104 Correct 1 ms 212 KB Output is correct
105 Correct 1 ms 212 KB Output is correct
106 Correct 1 ms 212 KB Output is correct
107 Correct 1 ms 340 KB Output is correct
108 Correct 1 ms 340 KB Output is correct
109 Correct 1 ms 340 KB Output is correct
110 Correct 4 ms 724 KB Output is correct
111 Correct 3 ms 1676 KB Output is correct
112 Correct 3 ms 1752 KB Output is correct
113 Correct 3 ms 1752 KB Output is correct
114 Correct 4 ms 1752 KB Output is correct
115 Correct 3 ms 1752 KB Output is correct
116 Correct 6 ms 1236 KB Output is correct
117 Correct 6 ms 1364 KB Output is correct
118 Correct 5 ms 1112 KB Output is correct
119 Correct 10 ms 3232 KB Output is correct
120 Correct 7 ms 4368 KB Output is correct
121 Correct 7 ms 4424 KB Output is correct
122 Correct 11 ms 4424 KB Output is correct
123 Correct 7 ms 4424 KB Output is correct
124 Correct 34 ms 11884 KB Output is correct
125 Correct 88 ms 31104 KB Output is correct
126 Correct 79 ms 36204 KB Output is correct
127 Correct 95 ms 36152 KB Output is correct
128 Correct 104 ms 36136 KB Output is correct
129 Correct 63 ms 36196 KB Output is correct
130 Correct 151 ms 35708 KB Output is correct
131 Correct 114 ms 35656 KB Output is correct
132 Correct 4 ms 1108 KB Output is correct
133 Correct 1 ms 344 KB Output is correct
134 Correct 1 ms 344 KB Output is correct
135 Correct 4 ms 852 KB Output is correct
136 Correct 2 ms 1492 KB Output is correct
137 Correct 4 ms 1676 KB Output is correct
138 Correct 4 ms 1752 KB Output is correct
139 Correct 4 ms 1108 KB Output is correct
140 Correct 3 ms 1108 KB Output is correct
141 Correct 3 ms 1752 KB Output is correct
142 Correct 4 ms 1752 KB Output is correct
143 Correct 3 ms 1752 KB Output is correct
144 Correct 2 ms 1748 KB Output is correct
145 Correct 3 ms 1748 KB Output is correct
146 Correct 3 ms 1492 KB Output is correct
147 Correct 6 ms 1140 KB Output is correct
148 Correct 4 ms 1108 KB Output is correct
149 Correct 4 ms 1108 KB Output is correct
150 Correct 4 ms 1268 KB Output is correct
151 Correct 5 ms 1412 KB Output is correct
152 Correct 5 ms 1108 KB Output is correct
153 Correct 3 ms 1108 KB Output is correct
154 Correct 9 ms 2260 KB Output is correct
155 Correct 4 ms 1492 KB Output is correct
156 Correct 8 ms 3276 KB Output is correct
157 Correct 9 ms 2132 KB Output is correct
158 Correct 7 ms 4424 KB Output is correct
159 Correct 10 ms 2272 KB Output is correct
160 Correct 8 ms 2260 KB Output is correct
161 Correct 8 ms 4436 KB Output is correct
162 Correct 10 ms 4436 KB Output is correct
163 Correct 10 ms 4376 KB Output is correct
164 Correct 5 ms 4076 KB Output is correct
165 Correct 8 ms 4076 KB Output is correct
166 Correct 8 ms 3168 KB Output is correct
167 Correct 11 ms 2276 KB Output is correct
168 Correct 10 ms 2372 KB Output is correct
169 Correct 15 ms 2400 KB Output is correct
170 Correct 10 ms 2652 KB Output is correct
171 Correct 10 ms 2704 KB Output is correct
172 Correct 11 ms 2388 KB Output is correct
173 Correct 7 ms 2260 KB Output is correct
174 Correct 13 ms 3028 KB Output is correct
175 Correct 19 ms 4692 KB Output is correct
176 Correct 46 ms 13048 KB Output is correct
177 Correct 61 ms 13828 KB Output is correct
178 Correct 85 ms 17604 KB Output is correct
179 Correct 95 ms 20016 KB Output is correct
180 Correct 105 ms 20304 KB Output is correct
181 Correct 114 ms 20720 KB Output is correct
182 Correct 102 ms 21784 KB Output is correct
183 Correct 113 ms 23740 KB Output is correct
184 Correct 209 ms 38892 KB Output is correct
185 Correct 107 ms 22044 KB Output is correct
186 Correct 119 ms 46040 KB Output is correct
187 Correct 208 ms 29456 KB Output is correct
188 Correct 155 ms 72004 KB Output is correct
189 Correct 268 ms 39240 KB Output is correct
190 Correct 193 ms 38896 KB Output is correct
191 Correct 179 ms 72052 KB Output is correct
192 Correct 244 ms 71776 KB Output is correct
193 Correct 148 ms 71776 KB Output is correct
194 Correct 94 ms 73804 KB Output is correct
195 Correct 106 ms 73712 KB Output is correct
196 Correct 197 ms 39560 KB Output is correct
197 Correct 225 ms 39544 KB Output is correct
198 Correct 230 ms 40616 KB Output is correct
199 Correct 212 ms 41808 KB Output is correct
200 Correct 266 ms 40636 KB Output is correct
201 Correct 259 ms 39736 KB Output is correct
202 Correct 251 ms 39064 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 340 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 4 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 3 ms 1108 KB Output is correct
20 Correct 3 ms 1492 KB Output is correct
21 Correct 4 ms 1752 KB Output is correct
22 Correct 4 ms 1108 KB Output is correct
23 Correct 8 ms 1116 KB Output is correct
24 Correct 2 ms 1748 KB Output is correct
25 Correct 2 ms 1748 KB Output is correct
26 Correct 5 ms 1364 KB Output is correct
27 Correct 5 ms 1108 KB Output is correct
28 Correct 3 ms 1108 KB Output is correct
29 Correct 8 ms 2292 KB Output is correct
30 Correct 4 ms 1492 KB Output is correct
31 Correct 6 ms 4424 KB Output is correct
32 Correct 11 ms 2372 KB Output is correct
33 Correct 7 ms 2260 KB Output is correct
34 Correct 6 ms 4064 KB Output is correct
35 Correct 6 ms 4064 KB Output is correct
36 Correct 12 ms 2684 KB Output is correct
37 Correct 23 ms 2480 KB Output is correct
38 Correct 7 ms 2220 KB Output is correct
39 Correct 80 ms 19636 KB Output is correct
40 Correct 10 ms 2644 KB Output is correct
41 Correct 15 ms 4960 KB Output is correct
42 Correct 10 ms 3028 KB Output is correct
43 Correct 13 ms 4948 KB Output is correct
44 Correct 42 ms 11476 KB Output is correct
45 Correct 32 ms 12560 KB Output is correct
46 Correct 118 ms 36176 KB Output is correct
47 Correct 101 ms 19892 KB Output is correct
48 Correct 80 ms 19664 KB Output is correct
49 Correct 42 ms 37112 KB Output is correct
50 Correct 54 ms 37012 KB Output is correct
51 Correct 123 ms 20652 KB Output is correct
52 Correct 151 ms 20104 KB Output is correct
53 Correct 93 ms 19768 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 1 ms 212 KB Output is correct
56 Correct 1 ms 212 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 1 ms 256 KB Output is correct
59 Correct 1 ms 212 KB Output is correct
60 Correct 1 ms 232 KB Output is correct
61 Correct 1 ms 212 KB Output is correct
62 Correct 1 ms 340 KB Output is correct
63 Correct 1 ms 340 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 1 ms 340 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 1 ms 340 KB Output is correct
69 Correct 0 ms 340 KB Output is correct
70 Correct 1 ms 212 KB Output is correct
71 Correct 1 ms 212 KB Output is correct
72 Correct 1 ms 212 KB Output is correct
73 Correct 1 ms 212 KB Output is correct
74 Correct 1 ms 212 KB Output is correct
75 Correct 1 ms 212 KB Output is correct
76 Correct 1 ms 212 KB Output is correct
77 Correct 1 ms 212 KB Output is correct
78 Correct 1 ms 212 KB Output is correct
79 Correct 1 ms 212 KB Output is correct
80 Correct 1 ms 212 KB Output is correct
81 Correct 1 ms 212 KB Output is correct
82 Correct 0 ms 212 KB Output is correct
83 Correct 1 ms 340 KB Output is correct
84 Correct 1 ms 340 KB Output is correct
85 Correct 1 ms 340 KB Output is correct
86 Correct 1 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 1 ms 212 KB Output is correct
89 Correct 1 ms 280 KB Output is correct
90 Correct 1 ms 212 KB Output is correct
91 Correct 0 ms 212 KB Output is correct
92 Correct 1 ms 304 KB Output is correct
93 Correct 1 ms 212 KB Output is correct
94 Correct 1 ms 340 KB Output is correct
95 Correct 1 ms 340 KB Output is correct
96 Correct 1 ms 340 KB Output is correct
97 Correct 1 ms 340 KB Output is correct
98 Correct 1 ms 212 KB Output is correct
99 Correct 1 ms 212 KB Output is correct
100 Correct 1 ms 212 KB Output is correct
101 Correct 1 ms 212 KB Output is correct
102 Correct 1 ms 212 KB Output is correct
103 Correct 1 ms 212 KB Output is correct
104 Correct 1 ms 212 KB Output is correct
105 Correct 1 ms 212 KB Output is correct
106 Correct 1 ms 212 KB Output is correct
107 Correct 1 ms 340 KB Output is correct
108 Correct 1 ms 340 KB Output is correct
109 Correct 1 ms 340 KB Output is correct
110 Correct 4 ms 724 KB Output is correct
111 Correct 3 ms 1676 KB Output is correct
112 Correct 3 ms 1752 KB Output is correct
113 Correct 3 ms 1752 KB Output is correct
114 Correct 4 ms 1752 KB Output is correct
115 Correct 3 ms 1752 KB Output is correct
116 Correct 6 ms 1236 KB Output is correct
117 Correct 6 ms 1364 KB Output is correct
118 Correct 5 ms 1112 KB Output is correct
119 Correct 10 ms 3232 KB Output is correct
120 Correct 7 ms 4368 KB Output is correct
121 Correct 7 ms 4424 KB Output is correct
122 Correct 11 ms 4424 KB Output is correct
123 Correct 7 ms 4424 KB Output is correct
124 Correct 34 ms 11884 KB Output is correct
125 Correct 88 ms 31104 KB Output is correct
126 Correct 79 ms 36204 KB Output is correct
127 Correct 95 ms 36152 KB Output is correct
128 Correct 104 ms 36136 KB Output is correct
129 Correct 63 ms 36196 KB Output is correct
130 Correct 151 ms 35708 KB Output is correct
131 Correct 114 ms 35656 KB Output is correct
132 Correct 4 ms 1108 KB Output is correct
133 Correct 1 ms 344 KB Output is correct
134 Correct 1 ms 344 KB Output is correct
135 Correct 4 ms 852 KB Output is correct
136 Correct 2 ms 1492 KB Output is correct
137 Correct 4 ms 1676 KB Output is correct
138 Correct 4 ms 1752 KB Output is correct
139 Correct 4 ms 1108 KB Output is correct
140 Correct 3 ms 1108 KB Output is correct
141 Correct 3 ms 1752 KB Output is correct
142 Correct 4 ms 1752 KB Output is correct
143 Correct 3 ms 1752 KB Output is correct
144 Correct 2 ms 1748 KB Output is correct
145 Correct 3 ms 1748 KB Output is correct
146 Correct 3 ms 1492 KB Output is correct
147 Correct 6 ms 1140 KB Output is correct
148 Correct 4 ms 1108 KB Output is correct
149 Correct 4 ms 1108 KB Output is correct
150 Correct 4 ms 1268 KB Output is correct
151 Correct 5 ms 1412 KB Output is correct
152 Correct 5 ms 1108 KB Output is correct
153 Correct 3 ms 1108 KB Output is correct
154 Correct 9 ms 2260 KB Output is correct
155 Correct 4 ms 1492 KB Output is correct
156 Correct 8 ms 3276 KB Output is correct
157 Correct 9 ms 2132 KB Output is correct
158 Correct 7 ms 4424 KB Output is correct
159 Correct 10 ms 2272 KB Output is correct
160 Correct 8 ms 2260 KB Output is correct
161 Correct 8 ms 4436 KB Output is correct
162 Correct 10 ms 4436 KB Output is correct
163 Correct 10 ms 4376 KB Output is correct
164 Correct 5 ms 4076 KB Output is correct
165 Correct 8 ms 4076 KB Output is correct
166 Correct 8 ms 3168 KB Output is correct
167 Correct 11 ms 2276 KB Output is correct
168 Correct 10 ms 2372 KB Output is correct
169 Correct 15 ms 2400 KB Output is correct
170 Correct 10 ms 2652 KB Output is correct
171 Correct 10 ms 2704 KB Output is correct
172 Correct 11 ms 2388 KB Output is correct
173 Correct 7 ms 2260 KB Output is correct
174 Correct 13 ms 3028 KB Output is correct
175 Correct 19 ms 4692 KB Output is correct
176 Correct 46 ms 13048 KB Output is correct
177 Correct 61 ms 13828 KB Output is correct
178 Correct 85 ms 17604 KB Output is correct
179 Correct 95 ms 20016 KB Output is correct
180 Correct 105 ms 20304 KB Output is correct
181 Correct 114 ms 20720 KB Output is correct
182 Correct 102 ms 21784 KB Output is correct
183 Correct 113 ms 23740 KB Output is correct
184 Correct 209 ms 38892 KB Output is correct
185 Correct 107 ms 22044 KB Output is correct
186 Correct 119 ms 46040 KB Output is correct
187 Correct 208 ms 29456 KB Output is correct
188 Correct 155 ms 72004 KB Output is correct
189 Correct 268 ms 39240 KB Output is correct
190 Correct 193 ms 38896 KB Output is correct
191 Correct 179 ms 72052 KB Output is correct
192 Correct 244 ms 71776 KB Output is correct
193 Correct 148 ms 71776 KB Output is correct
194 Correct 94 ms 73804 KB Output is correct
195 Correct 106 ms 73712 KB Output is correct
196 Correct 197 ms 39560 KB Output is correct
197 Correct 225 ms 39544 KB Output is correct
198 Correct 230 ms 40616 KB Output is correct
199 Correct 212 ms 41808 KB Output is correct
200 Correct 266 ms 40636 KB Output is correct
201 Correct 259 ms 39736 KB Output is correct
202 Correct 251 ms 39064 KB Output is correct
203 Correct 482 ms 77388 KB Output is correct
204 Correct 221 ms 49236 KB Output is correct
205 Correct 378 ms 48308 KB Output is correct
206 Correct 311 ms 78828 KB Output is correct
207 Correct 363 ms 143736 KB Output is correct
208 Correct 523 ms 77932 KB Output is correct
209 Correct 449 ms 77408 KB Output is correct
210 Correct 271 ms 143816 KB Output is correct
211 Correct 385 ms 143060 KB Output is correct
212 Correct 254 ms 143068 KB Output is correct
213 Correct 176 ms 147180 KB Output is correct
214 Correct 216 ms 147160 KB Output is correct
215 Correct 363 ms 78276 KB Output is correct
216 Correct 367 ms 78280 KB Output is correct
217 Correct 445 ms 80072 KB Output is correct
218 Correct 514 ms 83224 KB Output is correct
219 Correct 419 ms 103228 KB Output is correct
220 Correct 466 ms 120400 KB Output is correct
221 Correct 461 ms 140676 KB Output is correct
222 Correct 518 ms 140440 KB Output is correct
223 Correct 572 ms 79188 KB Output is correct
224 Correct 557 ms 78332 KB Output is correct
225 Correct 436 ms 77612 KB Output is correct