Submission #932809

# Submission time Handle Problem Language Result Execution time Memory
932809 2024-02-24T09:28:38 Z Yazan_Alattar Maze (JOI23_ho_t3) C++14
100 / 100
1222 ms 849328 KB
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define F first
#define S second
#define pb push_back
#define endl "\n"
#define all(x) x.begin(), x.end()
const int M = 6000007;
const ll inf = 1e9;
const ll INF = 1e12;
const ll mod = 1e9 + 7;
const double eps = 1e-6;
const int dx[] = {1, -1, 0, 0, 1, -1, 1, -1};
const int dy[] = {0, 0, 1, -1, 1, 1, -1, -1};

string s[M];
vector <int> visit[M];
int n, m, block, startX, startY, endX, endY;

bool Valid(int x, int y){
    if(visit[x][y] || x <= 0 || y <= 0 || x > n || y > m) return 0;
    return 1;
}

int bfs(){
    queue < pair < pair <int,int>, pair <int, int> > > zeroEdge, oneEdge;

    zeroEdge.push({{startX, startY}, {0, 0}});

    while(!zeroEdge.empty() || !oneEdge.empty()){
        if(zeroEdge.empty())
            swap(zeroEdge, oneEdge);

        int x = zeroEdge.front().F.F;
        int y = zeroEdge.front().F.S;
        int remainingMoves = zeroEdge.front().S.F;
        int dist = zeroEdge.front().S.S;
        zeroEdge.pop();

        if(x == endX && y == endY) return dist;
        if(!Valid(x, y)) continue;

        visit[x][y] = 1;


        for(int i = 0; i < 4; ++i){
            int nx = x + dx[i];
            int ny = y + dy[i];

            if(s[nx][ny] == '.') zeroEdge.push({{nx, ny}, {max(0, remainingMoves - 1), dist}});
        }

        for(int i = 0; i < 4; ++i){
            int nx = x + dx[i];
            int ny = y + dy[i];

            if(remainingMoves > 0) zeroEdge.push({{nx, ny}, {remainingMoves - 1, dist}});
            else oneEdge.push({{nx, ny}, {block - 1, dist + 1}});
        }

        for(int i = 4; i < 8; ++i){
            int nx = x + dx[i];
            int ny = y + dy[i];

            if(remainingMoves > 1) zeroEdge.push({{nx, ny}, {remainingMoves - 1, dist}});
            else if(block > 1) oneEdge.push({{nx, ny}, {block - 1, dist + 1}});
        }
    }
}

void solve(int _){
    cin >> n >> m >> block;
    cin >> startX >> startY >> endX >> endY;

    for(int i = 1; i <= n; ++i){
        cin >> s[i];
        s[i] = '#' + s[i];
        visit[i].resize(m + 2);
    }
    visit[0] .resize(m + 2);
    visit[n + 1] .resize(m + 2);

    cout << bfs() << endl;
    return;
}

int main(){
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    int t = 1;
//    cin >> t;
    for(int i = 1; i <= t; ++i) solve(t);

    return 0;
}

Compilation message

Main.cpp: In function 'int bfs()':
Main.cpp:28:56: warning: control reaches end of non-void function [-Wreturn-type]
   28 |     queue < pair < pair <int,int>, pair <int, int> > > zeroEdge, oneEdge;
      |                                                        ^~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 74 ms 329040 KB Output is correct
2 Correct 74 ms 329208 KB Output is correct
3 Correct 76 ms 329180 KB Output is correct
4 Correct 74 ms 329268 KB Output is correct
5 Correct 74 ms 329040 KB Output is correct
6 Correct 76 ms 329048 KB Output is correct
7 Correct 75 ms 329044 KB Output is correct
8 Correct 78 ms 329352 KB Output is correct
9 Correct 74 ms 329200 KB Output is correct
10 Correct 74 ms 329040 KB Output is correct
11 Correct 74 ms 329044 KB Output is correct
12 Correct 73 ms 329040 KB Output is correct
13 Correct 74 ms 329040 KB Output is correct
14 Correct 76 ms 328972 KB Output is correct
15 Correct 73 ms 329044 KB Output is correct
16 Correct 75 ms 329228 KB Output is correct
17 Correct 75 ms 329040 KB Output is correct
18 Correct 73 ms 329224 KB Output is correct
19 Correct 80 ms 329556 KB Output is correct
20 Correct 77 ms 329812 KB Output is correct
21 Correct 82 ms 332632 KB Output is correct
22 Correct 78 ms 329556 KB Output is correct
23 Correct 77 ms 329552 KB Output is correct
24 Correct 80 ms 330064 KB Output is correct
25 Correct 80 ms 329928 KB Output is correct
26 Correct 75 ms 329724 KB Output is correct
27 Correct 78 ms 330064 KB Output is correct
28 Correct 78 ms 329660 KB Output is correct
29 Correct 84 ms 330036 KB Output is correct
30 Correct 79 ms 329808 KB Output is correct
31 Correct 91 ms 338916 KB Output is correct
32 Correct 87 ms 330304 KB Output is correct
33 Correct 81 ms 330068 KB Output is correct
34 Correct 87 ms 331340 KB Output is correct
35 Correct 83 ms 331340 KB Output is correct
36 Correct 82 ms 331056 KB Output is correct
37 Correct 85 ms 330448 KB Output is correct
38 Correct 76 ms 330196 KB Output is correct
39 Correct 176 ms 337748 KB Output is correct
40 Correct 80 ms 330316 KB Output is correct
41 Correct 80 ms 331816 KB Output is correct
42 Correct 89 ms 330320 KB Output is correct
43 Correct 86 ms 331464 KB Output is correct
44 Correct 103 ms 334432 KB Output is correct
45 Correct 98 ms 335504 KB Output is correct
46 Correct 121 ms 360452 KB Output is correct
47 Correct 211 ms 338056 KB Output is correct
48 Correct 147 ms 337640 KB Output is correct
49 Correct 150 ms 349232 KB Output is correct
50 Correct 124 ms 349320 KB Output is correct
51 Correct 190 ms 341588 KB Output is correct
52 Correct 151 ms 339120 KB Output is correct
53 Correct 157 ms 338000 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 74 ms 329044 KB Output is correct
2 Correct 74 ms 329208 KB Output is correct
3 Correct 77 ms 329332 KB Output is correct
4 Correct 76 ms 329044 KB Output is correct
5 Correct 74 ms 329040 KB Output is correct
6 Correct 73 ms 329204 KB Output is correct
7 Correct 74 ms 329044 KB Output is correct
8 Correct 74 ms 329044 KB Output is correct
9 Correct 74 ms 329044 KB Output is correct
10 Correct 75 ms 329052 KB Output is correct
11 Correct 75 ms 329216 KB Output is correct
12 Correct 73 ms 329328 KB Output is correct
13 Correct 75 ms 329044 KB Output is correct
14 Correct 74 ms 329132 KB Output is correct
15 Correct 75 ms 329144 KB Output is correct
16 Correct 74 ms 329040 KB Output is correct
17 Correct 73 ms 329044 KB Output is correct
18 Correct 73 ms 329040 KB Output is correct
19 Correct 74 ms 329044 KB Output is correct
20 Correct 76 ms 329040 KB Output is correct
21 Correct 75 ms 329040 KB Output is correct
22 Correct 76 ms 329132 KB Output is correct
23 Correct 75 ms 329040 KB Output is correct
24 Correct 75 ms 329040 KB Output is correct
25 Correct 76 ms 329048 KB Output is correct
26 Correct 74 ms 329040 KB Output is correct
27 Correct 74 ms 329208 KB Output is correct
28 Correct 74 ms 328972 KB Output is correct
29 Correct 76 ms 329300 KB Output is correct
30 Correct 74 ms 329040 KB Output is correct
31 Correct 74 ms 329224 KB Output is correct
32 Correct 74 ms 329040 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 75 ms 328992 KB Output is correct
2 Correct 73 ms 329200 KB Output is correct
3 Correct 75 ms 329040 KB Output is correct
4 Correct 88 ms 329040 KB Output is correct
5 Correct 74 ms 329168 KB Output is correct
6 Correct 81 ms 329212 KB Output is correct
7 Correct 76 ms 329292 KB Output is correct
8 Correct 76 ms 329152 KB Output is correct
9 Correct 80 ms 329300 KB Output is correct
10 Correct 84 ms 329044 KB Output is correct
11 Correct 77 ms 329220 KB Output is correct
12 Correct 76 ms 329240 KB Output is correct
13 Correct 83 ms 329044 KB Output is correct
14 Correct 74 ms 329152 KB Output is correct
15 Correct 75 ms 329144 KB Output is correct
16 Correct 77 ms 329044 KB Output is correct
17 Correct 74 ms 329212 KB Output is correct
18 Correct 75 ms 329140 KB Output is correct
19 Correct 88 ms 329040 KB Output is correct
20 Correct 74 ms 329204 KB Output is correct
21 Correct 75 ms 329116 KB Output is correct
22 Correct 73 ms 329044 KB Output is correct
23 Correct 74 ms 329000 KB Output is correct
24 Correct 74 ms 329200 KB Output is correct
25 Correct 77 ms 329584 KB Output is correct
26 Correct 79 ms 333396 KB Output is correct
27 Correct 81 ms 332804 KB Output is correct
28 Correct 81 ms 335412 KB Output is correct
29 Correct 80 ms 329552 KB Output is correct
30 Correct 77 ms 329556 KB Output is correct
31 Correct 79 ms 329596 KB Output is correct
32 Correct 74 ms 329716 KB Output is correct
33 Correct 73 ms 329684 KB Output is correct
34 Correct 86 ms 338912 KB Output is correct
35 Correct 90 ms 338916 KB Output is correct
36 Correct 96 ms 346120 KB Output is correct
37 Correct 84 ms 330068 KB Output is correct
38 Correct 85 ms 330068 KB Output is correct
39 Correct 113 ms 357896 KB Output is correct
40 Correct 231 ms 443496 KB Output is correct
41 Correct 122 ms 360620 KB Output is correct
42 Correct 324 ms 502848 KB Output is correct
43 Correct 181 ms 337744 KB Output is correct
44 Correct 210 ms 337824 KB Output is correct
45 Correct 220 ms 435960 KB Output is correct
46 Correct 207 ms 426352 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 74 ms 329044 KB Output is correct
2 Correct 74 ms 329208 KB Output is correct
3 Correct 77 ms 329332 KB Output is correct
4 Correct 76 ms 329044 KB Output is correct
5 Correct 74 ms 329040 KB Output is correct
6 Correct 73 ms 329204 KB Output is correct
7 Correct 74 ms 329044 KB Output is correct
8 Correct 74 ms 329044 KB Output is correct
9 Correct 74 ms 329044 KB Output is correct
10 Correct 75 ms 329052 KB Output is correct
11 Correct 75 ms 329216 KB Output is correct
12 Correct 73 ms 329328 KB Output is correct
13 Correct 75 ms 329044 KB Output is correct
14 Correct 74 ms 329132 KB Output is correct
15 Correct 75 ms 329144 KB Output is correct
16 Correct 74 ms 329040 KB Output is correct
17 Correct 73 ms 329044 KB Output is correct
18 Correct 73 ms 329040 KB Output is correct
19 Correct 74 ms 329044 KB Output is correct
20 Correct 76 ms 329040 KB Output is correct
21 Correct 75 ms 329040 KB Output is correct
22 Correct 76 ms 329132 KB Output is correct
23 Correct 75 ms 329040 KB Output is correct
24 Correct 75 ms 329040 KB Output is correct
25 Correct 76 ms 329048 KB Output is correct
26 Correct 74 ms 329040 KB Output is correct
27 Correct 74 ms 329208 KB Output is correct
28 Correct 74 ms 328972 KB Output is correct
29 Correct 76 ms 329300 KB Output is correct
30 Correct 74 ms 329040 KB Output is correct
31 Correct 74 ms 329224 KB Output is correct
32 Correct 74 ms 329040 KB Output is correct
33 Correct 77 ms 329556 KB Output is correct
34 Correct 76 ms 329228 KB Output is correct
35 Correct 74 ms 329256 KB Output is correct
36 Correct 73 ms 329512 KB Output is correct
37 Correct 77 ms 329740 KB Output is correct
38 Correct 79 ms 333396 KB Output is correct
39 Correct 80 ms 332628 KB Output is correct
40 Correct 76 ms 329552 KB Output is correct
41 Correct 77 ms 329584 KB Output is correct
42 Correct 81 ms 335188 KB Output is correct
43 Correct 79 ms 329668 KB Output is correct
44 Correct 77 ms 329548 KB Output is correct
45 Correct 78 ms 330064 KB Output is correct
46 Correct 75 ms 330068 KB Output is correct
47 Correct 79 ms 329644 KB Output is correct
48 Correct 78 ms 329556 KB Output is correct
49 Correct 79 ms 329512 KB Output is correct
50 Correct 81 ms 329556 KB Output is correct
51 Correct 78 ms 329456 KB Output is correct
52 Correct 75 ms 329552 KB Output is correct
53 Correct 75 ms 329564 KB Output is correct
54 Correct 76 ms 329552 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 74 ms 329044 KB Output is correct
2 Correct 74 ms 329208 KB Output is correct
3 Correct 77 ms 329332 KB Output is correct
4 Correct 76 ms 329044 KB Output is correct
5 Correct 74 ms 329040 KB Output is correct
6 Correct 73 ms 329204 KB Output is correct
7 Correct 74 ms 329044 KB Output is correct
8 Correct 74 ms 329044 KB Output is correct
9 Correct 74 ms 329044 KB Output is correct
10 Correct 75 ms 329052 KB Output is correct
11 Correct 75 ms 329216 KB Output is correct
12 Correct 73 ms 329328 KB Output is correct
13 Correct 75 ms 329044 KB Output is correct
14 Correct 74 ms 329132 KB Output is correct
15 Correct 75 ms 329144 KB Output is correct
16 Correct 74 ms 329040 KB Output is correct
17 Correct 73 ms 329044 KB Output is correct
18 Correct 73 ms 329040 KB Output is correct
19 Correct 74 ms 329044 KB Output is correct
20 Correct 76 ms 329040 KB Output is correct
21 Correct 75 ms 329040 KB Output is correct
22 Correct 76 ms 329132 KB Output is correct
23 Correct 75 ms 329040 KB Output is correct
24 Correct 75 ms 329040 KB Output is correct
25 Correct 76 ms 329048 KB Output is correct
26 Correct 74 ms 329040 KB Output is correct
27 Correct 74 ms 329208 KB Output is correct
28 Correct 74 ms 328972 KB Output is correct
29 Correct 76 ms 329300 KB Output is correct
30 Correct 74 ms 329040 KB Output is correct
31 Correct 74 ms 329224 KB Output is correct
32 Correct 74 ms 329040 KB Output is correct
33 Correct 77 ms 329556 KB Output is correct
34 Correct 76 ms 329228 KB Output is correct
35 Correct 74 ms 329256 KB Output is correct
36 Correct 73 ms 329512 KB Output is correct
37 Correct 77 ms 329740 KB Output is correct
38 Correct 79 ms 333396 KB Output is correct
39 Correct 80 ms 332628 KB Output is correct
40 Correct 76 ms 329552 KB Output is correct
41 Correct 77 ms 329584 KB Output is correct
42 Correct 81 ms 335188 KB Output is correct
43 Correct 79 ms 329668 KB Output is correct
44 Correct 77 ms 329548 KB Output is correct
45 Correct 78 ms 330064 KB Output is correct
46 Correct 75 ms 330068 KB Output is correct
47 Correct 79 ms 329644 KB Output is correct
48 Correct 78 ms 329556 KB Output is correct
49 Correct 79 ms 329512 KB Output is correct
50 Correct 81 ms 329556 KB Output is correct
51 Correct 78 ms 329456 KB Output is correct
52 Correct 75 ms 329552 KB Output is correct
53 Correct 75 ms 329564 KB Output is correct
54 Correct 76 ms 329552 KB Output is correct
55 Correct 82 ms 330068 KB Output is correct
56 Correct 76 ms 329808 KB Output is correct
57 Correct 89 ms 338928 KB Output is correct
58 Correct 85 ms 330068 KB Output is correct
59 Correct 91 ms 339092 KB Output is correct
60 Correct 85 ms 330116 KB Output is correct
61 Correct 80 ms 330068 KB Output is correct
62 Correct 98 ms 346116 KB Output is correct
63 Correct 84 ms 330028 KB Output is correct
64 Correct 85 ms 330068 KB Output is correct
65 Correct 85 ms 331192 KB Output is correct
66 Correct 82 ms 331376 KB Output is correct
67 Correct 92 ms 330568 KB Output is correct
68 Correct 91 ms 330196 KB Output is correct
69 Correct 92 ms 329984 KB Output is correct
70 Correct 90 ms 330068 KB Output is correct
71 Correct 89 ms 330068 KB Output is correct
72 Correct 83 ms 330836 KB Output is correct
73 Correct 87 ms 330576 KB Output is correct
74 Correct 73 ms 330252 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 74 ms 329040 KB Output is correct
2 Correct 74 ms 329208 KB Output is correct
3 Correct 76 ms 329180 KB Output is correct
4 Correct 74 ms 329268 KB Output is correct
5 Correct 74 ms 329040 KB Output is correct
6 Correct 76 ms 329048 KB Output is correct
7 Correct 75 ms 329044 KB Output is correct
8 Correct 78 ms 329352 KB Output is correct
9 Correct 74 ms 329200 KB Output is correct
10 Correct 74 ms 329040 KB Output is correct
11 Correct 74 ms 329044 KB Output is correct
12 Correct 73 ms 329040 KB Output is correct
13 Correct 74 ms 329040 KB Output is correct
14 Correct 76 ms 328972 KB Output is correct
15 Correct 73 ms 329044 KB Output is correct
16 Correct 75 ms 329228 KB Output is correct
17 Correct 75 ms 329040 KB Output is correct
18 Correct 73 ms 329224 KB Output is correct
19 Correct 80 ms 329556 KB Output is correct
20 Correct 77 ms 329812 KB Output is correct
21 Correct 82 ms 332632 KB Output is correct
22 Correct 78 ms 329556 KB Output is correct
23 Correct 77 ms 329552 KB Output is correct
24 Correct 80 ms 330064 KB Output is correct
25 Correct 80 ms 329928 KB Output is correct
26 Correct 75 ms 329724 KB Output is correct
27 Correct 78 ms 330064 KB Output is correct
28 Correct 78 ms 329660 KB Output is correct
29 Correct 84 ms 330036 KB Output is correct
30 Correct 79 ms 329808 KB Output is correct
31 Correct 91 ms 338916 KB Output is correct
32 Correct 87 ms 330304 KB Output is correct
33 Correct 81 ms 330068 KB Output is correct
34 Correct 87 ms 331340 KB Output is correct
35 Correct 83 ms 331340 KB Output is correct
36 Correct 82 ms 331056 KB Output is correct
37 Correct 85 ms 330448 KB Output is correct
38 Correct 76 ms 330196 KB Output is correct
39 Correct 176 ms 337748 KB Output is correct
40 Correct 80 ms 330316 KB Output is correct
41 Correct 80 ms 331816 KB Output is correct
42 Correct 89 ms 330320 KB Output is correct
43 Correct 86 ms 331464 KB Output is correct
44 Correct 103 ms 334432 KB Output is correct
45 Correct 98 ms 335504 KB Output is correct
46 Correct 121 ms 360452 KB Output is correct
47 Correct 211 ms 338056 KB Output is correct
48 Correct 147 ms 337640 KB Output is correct
49 Correct 150 ms 349232 KB Output is correct
50 Correct 124 ms 349320 KB Output is correct
51 Correct 190 ms 341588 KB Output is correct
52 Correct 151 ms 339120 KB Output is correct
53 Correct 157 ms 338000 KB Output is correct
54 Correct 74 ms 329044 KB Output is correct
55 Correct 74 ms 329208 KB Output is correct
56 Correct 77 ms 329332 KB Output is correct
57 Correct 76 ms 329044 KB Output is correct
58 Correct 74 ms 329040 KB Output is correct
59 Correct 73 ms 329204 KB Output is correct
60 Correct 74 ms 329044 KB Output is correct
61 Correct 74 ms 329044 KB Output is correct
62 Correct 74 ms 329044 KB Output is correct
63 Correct 75 ms 329052 KB Output is correct
64 Correct 75 ms 329216 KB Output is correct
65 Correct 73 ms 329328 KB Output is correct
66 Correct 75 ms 329044 KB Output is correct
67 Correct 74 ms 329132 KB Output is correct
68 Correct 75 ms 329144 KB Output is correct
69 Correct 74 ms 329040 KB Output is correct
70 Correct 73 ms 329044 KB Output is correct
71 Correct 73 ms 329040 KB Output is correct
72 Correct 74 ms 329044 KB Output is correct
73 Correct 76 ms 329040 KB Output is correct
74 Correct 75 ms 329040 KB Output is correct
75 Correct 76 ms 329132 KB Output is correct
76 Correct 75 ms 329040 KB Output is correct
77 Correct 75 ms 329040 KB Output is correct
78 Correct 76 ms 329048 KB Output is correct
79 Correct 74 ms 329040 KB Output is correct
80 Correct 74 ms 329208 KB Output is correct
81 Correct 74 ms 328972 KB Output is correct
82 Correct 76 ms 329300 KB Output is correct
83 Correct 74 ms 329040 KB Output is correct
84 Correct 74 ms 329224 KB Output is correct
85 Correct 74 ms 329040 KB Output is correct
86 Correct 75 ms 328992 KB Output is correct
87 Correct 73 ms 329200 KB Output is correct
88 Correct 75 ms 329040 KB Output is correct
89 Correct 88 ms 329040 KB Output is correct
90 Correct 74 ms 329168 KB Output is correct
91 Correct 81 ms 329212 KB Output is correct
92 Correct 76 ms 329292 KB Output is correct
93 Correct 76 ms 329152 KB Output is correct
94 Correct 80 ms 329300 KB Output is correct
95 Correct 84 ms 329044 KB Output is correct
96 Correct 77 ms 329220 KB Output is correct
97 Correct 76 ms 329240 KB Output is correct
98 Correct 83 ms 329044 KB Output is correct
99 Correct 74 ms 329152 KB Output is correct
100 Correct 75 ms 329144 KB Output is correct
101 Correct 77 ms 329044 KB Output is correct
102 Correct 74 ms 329212 KB Output is correct
103 Correct 75 ms 329140 KB Output is correct
104 Correct 88 ms 329040 KB Output is correct
105 Correct 74 ms 329204 KB Output is correct
106 Correct 75 ms 329116 KB Output is correct
107 Correct 73 ms 329044 KB Output is correct
108 Correct 74 ms 329000 KB Output is correct
109 Correct 74 ms 329200 KB Output is correct
110 Correct 77 ms 329584 KB Output is correct
111 Correct 79 ms 333396 KB Output is correct
112 Correct 81 ms 332804 KB Output is correct
113 Correct 81 ms 335412 KB Output is correct
114 Correct 80 ms 329552 KB Output is correct
115 Correct 77 ms 329556 KB Output is correct
116 Correct 79 ms 329596 KB Output is correct
117 Correct 74 ms 329716 KB Output is correct
118 Correct 73 ms 329684 KB Output is correct
119 Correct 86 ms 338912 KB Output is correct
120 Correct 90 ms 338916 KB Output is correct
121 Correct 96 ms 346120 KB Output is correct
122 Correct 84 ms 330068 KB Output is correct
123 Correct 85 ms 330068 KB Output is correct
124 Correct 113 ms 357896 KB Output is correct
125 Correct 231 ms 443496 KB Output is correct
126 Correct 122 ms 360620 KB Output is correct
127 Correct 324 ms 502848 KB Output is correct
128 Correct 181 ms 337744 KB Output is correct
129 Correct 210 ms 337824 KB Output is correct
130 Correct 220 ms 435960 KB Output is correct
131 Correct 207 ms 426352 KB Output is correct
132 Correct 77 ms 329556 KB Output is correct
133 Correct 76 ms 329228 KB Output is correct
134 Correct 74 ms 329256 KB Output is correct
135 Correct 73 ms 329512 KB Output is correct
136 Correct 77 ms 329740 KB Output is correct
137 Correct 79 ms 333396 KB Output is correct
138 Correct 80 ms 332628 KB Output is correct
139 Correct 76 ms 329552 KB Output is correct
140 Correct 77 ms 329584 KB Output is correct
141 Correct 81 ms 335188 KB Output is correct
142 Correct 79 ms 329668 KB Output is correct
143 Correct 77 ms 329548 KB Output is correct
144 Correct 78 ms 330064 KB Output is correct
145 Correct 75 ms 330068 KB Output is correct
146 Correct 79 ms 329644 KB Output is correct
147 Correct 78 ms 329556 KB Output is correct
148 Correct 79 ms 329512 KB Output is correct
149 Correct 81 ms 329556 KB Output is correct
150 Correct 78 ms 329456 KB Output is correct
151 Correct 75 ms 329552 KB Output is correct
152 Correct 75 ms 329564 KB Output is correct
153 Correct 76 ms 329552 KB Output is correct
154 Correct 82 ms 330068 KB Output is correct
155 Correct 76 ms 329808 KB Output is correct
156 Correct 89 ms 338928 KB Output is correct
157 Correct 85 ms 330068 KB Output is correct
158 Correct 91 ms 339092 KB Output is correct
159 Correct 85 ms 330116 KB Output is correct
160 Correct 80 ms 330068 KB Output is correct
161 Correct 98 ms 346116 KB Output is correct
162 Correct 84 ms 330028 KB Output is correct
163 Correct 85 ms 330068 KB Output is correct
164 Correct 85 ms 331192 KB Output is correct
165 Correct 82 ms 331376 KB Output is correct
166 Correct 92 ms 330568 KB Output is correct
167 Correct 91 ms 330196 KB Output is correct
168 Correct 92 ms 329984 KB Output is correct
169 Correct 90 ms 330068 KB Output is correct
170 Correct 89 ms 330068 KB Output is correct
171 Correct 83 ms 330836 KB Output is correct
172 Correct 87 ms 330576 KB Output is correct
173 Correct 73 ms 330252 KB Output is correct
174 Correct 79 ms 330324 KB Output is correct
175 Correct 112 ms 331088 KB Output is correct
176 Correct 109 ms 335944 KB Output is correct
177 Correct 155 ms 335368 KB Output is correct
178 Correct 85 ms 336780 KB Output is correct
179 Correct 170 ms 337996 KB Output is correct
180 Correct 255 ms 338000 KB Output is correct
181 Correct 256 ms 337748 KB Output is correct
182 Correct 270 ms 338000 KB Output is correct
183 Correct 272 ms 354308 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 74 ms 329040 KB Output is correct
2 Correct 74 ms 329208 KB Output is correct
3 Correct 76 ms 329180 KB Output is correct
4 Correct 74 ms 329268 KB Output is correct
5 Correct 74 ms 329040 KB Output is correct
6 Correct 76 ms 329048 KB Output is correct
7 Correct 75 ms 329044 KB Output is correct
8 Correct 78 ms 329352 KB Output is correct
9 Correct 74 ms 329200 KB Output is correct
10 Correct 74 ms 329040 KB Output is correct
11 Correct 74 ms 329044 KB Output is correct
12 Correct 73 ms 329040 KB Output is correct
13 Correct 74 ms 329040 KB Output is correct
14 Correct 76 ms 328972 KB Output is correct
15 Correct 73 ms 329044 KB Output is correct
16 Correct 75 ms 329228 KB Output is correct
17 Correct 75 ms 329040 KB Output is correct
18 Correct 73 ms 329224 KB Output is correct
19 Correct 80 ms 329556 KB Output is correct
20 Correct 77 ms 329812 KB Output is correct
21 Correct 82 ms 332632 KB Output is correct
22 Correct 78 ms 329556 KB Output is correct
23 Correct 77 ms 329552 KB Output is correct
24 Correct 80 ms 330064 KB Output is correct
25 Correct 80 ms 329928 KB Output is correct
26 Correct 75 ms 329724 KB Output is correct
27 Correct 78 ms 330064 KB Output is correct
28 Correct 78 ms 329660 KB Output is correct
29 Correct 84 ms 330036 KB Output is correct
30 Correct 79 ms 329808 KB Output is correct
31 Correct 91 ms 338916 KB Output is correct
32 Correct 87 ms 330304 KB Output is correct
33 Correct 81 ms 330068 KB Output is correct
34 Correct 87 ms 331340 KB Output is correct
35 Correct 83 ms 331340 KB Output is correct
36 Correct 82 ms 331056 KB Output is correct
37 Correct 85 ms 330448 KB Output is correct
38 Correct 76 ms 330196 KB Output is correct
39 Correct 176 ms 337748 KB Output is correct
40 Correct 80 ms 330316 KB Output is correct
41 Correct 80 ms 331816 KB Output is correct
42 Correct 89 ms 330320 KB Output is correct
43 Correct 86 ms 331464 KB Output is correct
44 Correct 103 ms 334432 KB Output is correct
45 Correct 98 ms 335504 KB Output is correct
46 Correct 121 ms 360452 KB Output is correct
47 Correct 211 ms 338056 KB Output is correct
48 Correct 147 ms 337640 KB Output is correct
49 Correct 150 ms 349232 KB Output is correct
50 Correct 124 ms 349320 KB Output is correct
51 Correct 190 ms 341588 KB Output is correct
52 Correct 151 ms 339120 KB Output is correct
53 Correct 157 ms 338000 KB Output is correct
54 Correct 74 ms 329044 KB Output is correct
55 Correct 74 ms 329208 KB Output is correct
56 Correct 77 ms 329332 KB Output is correct
57 Correct 76 ms 329044 KB Output is correct
58 Correct 74 ms 329040 KB Output is correct
59 Correct 73 ms 329204 KB Output is correct
60 Correct 74 ms 329044 KB Output is correct
61 Correct 74 ms 329044 KB Output is correct
62 Correct 74 ms 329044 KB Output is correct
63 Correct 75 ms 329052 KB Output is correct
64 Correct 75 ms 329216 KB Output is correct
65 Correct 73 ms 329328 KB Output is correct
66 Correct 75 ms 329044 KB Output is correct
67 Correct 74 ms 329132 KB Output is correct
68 Correct 75 ms 329144 KB Output is correct
69 Correct 74 ms 329040 KB Output is correct
70 Correct 73 ms 329044 KB Output is correct
71 Correct 73 ms 329040 KB Output is correct
72 Correct 74 ms 329044 KB Output is correct
73 Correct 76 ms 329040 KB Output is correct
74 Correct 75 ms 329040 KB Output is correct
75 Correct 76 ms 329132 KB Output is correct
76 Correct 75 ms 329040 KB Output is correct
77 Correct 75 ms 329040 KB Output is correct
78 Correct 76 ms 329048 KB Output is correct
79 Correct 74 ms 329040 KB Output is correct
80 Correct 74 ms 329208 KB Output is correct
81 Correct 74 ms 328972 KB Output is correct
82 Correct 76 ms 329300 KB Output is correct
83 Correct 74 ms 329040 KB Output is correct
84 Correct 74 ms 329224 KB Output is correct
85 Correct 74 ms 329040 KB Output is correct
86 Correct 75 ms 328992 KB Output is correct
87 Correct 73 ms 329200 KB Output is correct
88 Correct 75 ms 329040 KB Output is correct
89 Correct 88 ms 329040 KB Output is correct
90 Correct 74 ms 329168 KB Output is correct
91 Correct 81 ms 329212 KB Output is correct
92 Correct 76 ms 329292 KB Output is correct
93 Correct 76 ms 329152 KB Output is correct
94 Correct 80 ms 329300 KB Output is correct
95 Correct 84 ms 329044 KB Output is correct
96 Correct 77 ms 329220 KB Output is correct
97 Correct 76 ms 329240 KB Output is correct
98 Correct 83 ms 329044 KB Output is correct
99 Correct 74 ms 329152 KB Output is correct
100 Correct 75 ms 329144 KB Output is correct
101 Correct 77 ms 329044 KB Output is correct
102 Correct 74 ms 329212 KB Output is correct
103 Correct 75 ms 329140 KB Output is correct
104 Correct 88 ms 329040 KB Output is correct
105 Correct 74 ms 329204 KB Output is correct
106 Correct 75 ms 329116 KB Output is correct
107 Correct 73 ms 329044 KB Output is correct
108 Correct 74 ms 329000 KB Output is correct
109 Correct 74 ms 329200 KB Output is correct
110 Correct 77 ms 329584 KB Output is correct
111 Correct 79 ms 333396 KB Output is correct
112 Correct 81 ms 332804 KB Output is correct
113 Correct 81 ms 335412 KB Output is correct
114 Correct 80 ms 329552 KB Output is correct
115 Correct 77 ms 329556 KB Output is correct
116 Correct 79 ms 329596 KB Output is correct
117 Correct 74 ms 329716 KB Output is correct
118 Correct 73 ms 329684 KB Output is correct
119 Correct 86 ms 338912 KB Output is correct
120 Correct 90 ms 338916 KB Output is correct
121 Correct 96 ms 346120 KB Output is correct
122 Correct 84 ms 330068 KB Output is correct
123 Correct 85 ms 330068 KB Output is correct
124 Correct 113 ms 357896 KB Output is correct
125 Correct 231 ms 443496 KB Output is correct
126 Correct 122 ms 360620 KB Output is correct
127 Correct 324 ms 502848 KB Output is correct
128 Correct 181 ms 337744 KB Output is correct
129 Correct 210 ms 337824 KB Output is correct
130 Correct 220 ms 435960 KB Output is correct
131 Correct 207 ms 426352 KB Output is correct
132 Correct 77 ms 329556 KB Output is correct
133 Correct 76 ms 329228 KB Output is correct
134 Correct 74 ms 329256 KB Output is correct
135 Correct 73 ms 329512 KB Output is correct
136 Correct 77 ms 329740 KB Output is correct
137 Correct 79 ms 333396 KB Output is correct
138 Correct 80 ms 332628 KB Output is correct
139 Correct 76 ms 329552 KB Output is correct
140 Correct 77 ms 329584 KB Output is correct
141 Correct 81 ms 335188 KB Output is correct
142 Correct 79 ms 329668 KB Output is correct
143 Correct 77 ms 329548 KB Output is correct
144 Correct 78 ms 330064 KB Output is correct
145 Correct 75 ms 330068 KB Output is correct
146 Correct 79 ms 329644 KB Output is correct
147 Correct 78 ms 329556 KB Output is correct
148 Correct 79 ms 329512 KB Output is correct
149 Correct 81 ms 329556 KB Output is correct
150 Correct 78 ms 329456 KB Output is correct
151 Correct 75 ms 329552 KB Output is correct
152 Correct 75 ms 329564 KB Output is correct
153 Correct 76 ms 329552 KB Output is correct
154 Correct 82 ms 330068 KB Output is correct
155 Correct 76 ms 329808 KB Output is correct
156 Correct 89 ms 338928 KB Output is correct
157 Correct 85 ms 330068 KB Output is correct
158 Correct 91 ms 339092 KB Output is correct
159 Correct 85 ms 330116 KB Output is correct
160 Correct 80 ms 330068 KB Output is correct
161 Correct 98 ms 346116 KB Output is correct
162 Correct 84 ms 330028 KB Output is correct
163 Correct 85 ms 330068 KB Output is correct
164 Correct 85 ms 331192 KB Output is correct
165 Correct 82 ms 331376 KB Output is correct
166 Correct 92 ms 330568 KB Output is correct
167 Correct 91 ms 330196 KB Output is correct
168 Correct 92 ms 329984 KB Output is correct
169 Correct 90 ms 330068 KB Output is correct
170 Correct 89 ms 330068 KB Output is correct
171 Correct 83 ms 330836 KB Output is correct
172 Correct 87 ms 330576 KB Output is correct
173 Correct 73 ms 330252 KB Output is correct
174 Correct 79 ms 330324 KB Output is correct
175 Correct 112 ms 331088 KB Output is correct
176 Correct 109 ms 335944 KB Output is correct
177 Correct 155 ms 335368 KB Output is correct
178 Correct 85 ms 336780 KB Output is correct
179 Correct 170 ms 337996 KB Output is correct
180 Correct 255 ms 338000 KB Output is correct
181 Correct 256 ms 337748 KB Output is correct
182 Correct 270 ms 338000 KB Output is correct
183 Correct 272 ms 354308 KB Output is correct
184 Correct 300 ms 345780 KB Output is correct
185 Correct 128 ms 339104 KB Output is correct
186 Correct 249 ms 462416 KB Output is correct
187 Correct 106 ms 340124 KB Output is correct
188 Correct 457 ms 533432 KB Output is correct
189 Correct 310 ms 345048 KB Output is correct
190 Correct 149 ms 344148 KB Output is correct
191 Correct 642 ms 724600 KB Output is correct
192 Correct 463 ms 344660 KB Output is correct
193 Correct 348 ms 344404 KB Output is correct
194 Correct 293 ms 367504 KB Output is correct
195 Correct 174 ms 367500 KB Output is correct
196 Correct 443 ms 344912 KB Output is correct
197 Correct 248 ms 344400 KB Output is correct
198 Correct 256 ms 344448 KB Output is correct
199 Correct 450 ms 344312 KB Output is correct
200 Correct 199 ms 349184 KB Output is correct
201 Correct 268 ms 346204 KB Output is correct
202 Correct 291 ms 344648 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 74 ms 329040 KB Output is correct
2 Correct 74 ms 329208 KB Output is correct
3 Correct 76 ms 329180 KB Output is correct
4 Correct 74 ms 329268 KB Output is correct
5 Correct 74 ms 329040 KB Output is correct
6 Correct 76 ms 329048 KB Output is correct
7 Correct 75 ms 329044 KB Output is correct
8 Correct 78 ms 329352 KB Output is correct
9 Correct 74 ms 329200 KB Output is correct
10 Correct 74 ms 329040 KB Output is correct
11 Correct 74 ms 329044 KB Output is correct
12 Correct 73 ms 329040 KB Output is correct
13 Correct 74 ms 329040 KB Output is correct
14 Correct 76 ms 328972 KB Output is correct
15 Correct 73 ms 329044 KB Output is correct
16 Correct 75 ms 329228 KB Output is correct
17 Correct 75 ms 329040 KB Output is correct
18 Correct 73 ms 329224 KB Output is correct
19 Correct 80 ms 329556 KB Output is correct
20 Correct 77 ms 329812 KB Output is correct
21 Correct 82 ms 332632 KB Output is correct
22 Correct 78 ms 329556 KB Output is correct
23 Correct 77 ms 329552 KB Output is correct
24 Correct 80 ms 330064 KB Output is correct
25 Correct 80 ms 329928 KB Output is correct
26 Correct 75 ms 329724 KB Output is correct
27 Correct 78 ms 330064 KB Output is correct
28 Correct 78 ms 329660 KB Output is correct
29 Correct 84 ms 330036 KB Output is correct
30 Correct 79 ms 329808 KB Output is correct
31 Correct 91 ms 338916 KB Output is correct
32 Correct 87 ms 330304 KB Output is correct
33 Correct 81 ms 330068 KB Output is correct
34 Correct 87 ms 331340 KB Output is correct
35 Correct 83 ms 331340 KB Output is correct
36 Correct 82 ms 331056 KB Output is correct
37 Correct 85 ms 330448 KB Output is correct
38 Correct 76 ms 330196 KB Output is correct
39 Correct 176 ms 337748 KB Output is correct
40 Correct 80 ms 330316 KB Output is correct
41 Correct 80 ms 331816 KB Output is correct
42 Correct 89 ms 330320 KB Output is correct
43 Correct 86 ms 331464 KB Output is correct
44 Correct 103 ms 334432 KB Output is correct
45 Correct 98 ms 335504 KB Output is correct
46 Correct 121 ms 360452 KB Output is correct
47 Correct 211 ms 338056 KB Output is correct
48 Correct 147 ms 337640 KB Output is correct
49 Correct 150 ms 349232 KB Output is correct
50 Correct 124 ms 349320 KB Output is correct
51 Correct 190 ms 341588 KB Output is correct
52 Correct 151 ms 339120 KB Output is correct
53 Correct 157 ms 338000 KB Output is correct
54 Correct 74 ms 329044 KB Output is correct
55 Correct 74 ms 329208 KB Output is correct
56 Correct 77 ms 329332 KB Output is correct
57 Correct 76 ms 329044 KB Output is correct
58 Correct 74 ms 329040 KB Output is correct
59 Correct 73 ms 329204 KB Output is correct
60 Correct 74 ms 329044 KB Output is correct
61 Correct 74 ms 329044 KB Output is correct
62 Correct 74 ms 329044 KB Output is correct
63 Correct 75 ms 329052 KB Output is correct
64 Correct 75 ms 329216 KB Output is correct
65 Correct 73 ms 329328 KB Output is correct
66 Correct 75 ms 329044 KB Output is correct
67 Correct 74 ms 329132 KB Output is correct
68 Correct 75 ms 329144 KB Output is correct
69 Correct 74 ms 329040 KB Output is correct
70 Correct 73 ms 329044 KB Output is correct
71 Correct 73 ms 329040 KB Output is correct
72 Correct 74 ms 329044 KB Output is correct
73 Correct 76 ms 329040 KB Output is correct
74 Correct 75 ms 329040 KB Output is correct
75 Correct 76 ms 329132 KB Output is correct
76 Correct 75 ms 329040 KB Output is correct
77 Correct 75 ms 329040 KB Output is correct
78 Correct 76 ms 329048 KB Output is correct
79 Correct 74 ms 329040 KB Output is correct
80 Correct 74 ms 329208 KB Output is correct
81 Correct 74 ms 328972 KB Output is correct
82 Correct 76 ms 329300 KB Output is correct
83 Correct 74 ms 329040 KB Output is correct
84 Correct 74 ms 329224 KB Output is correct
85 Correct 74 ms 329040 KB Output is correct
86 Correct 75 ms 328992 KB Output is correct
87 Correct 73 ms 329200 KB Output is correct
88 Correct 75 ms 329040 KB Output is correct
89 Correct 88 ms 329040 KB Output is correct
90 Correct 74 ms 329168 KB Output is correct
91 Correct 81 ms 329212 KB Output is correct
92 Correct 76 ms 329292 KB Output is correct
93 Correct 76 ms 329152 KB Output is correct
94 Correct 80 ms 329300 KB Output is correct
95 Correct 84 ms 329044 KB Output is correct
96 Correct 77 ms 329220 KB Output is correct
97 Correct 76 ms 329240 KB Output is correct
98 Correct 83 ms 329044 KB Output is correct
99 Correct 74 ms 329152 KB Output is correct
100 Correct 75 ms 329144 KB Output is correct
101 Correct 77 ms 329044 KB Output is correct
102 Correct 74 ms 329212 KB Output is correct
103 Correct 75 ms 329140 KB Output is correct
104 Correct 88 ms 329040 KB Output is correct
105 Correct 74 ms 329204 KB Output is correct
106 Correct 75 ms 329116 KB Output is correct
107 Correct 73 ms 329044 KB Output is correct
108 Correct 74 ms 329000 KB Output is correct
109 Correct 74 ms 329200 KB Output is correct
110 Correct 77 ms 329584 KB Output is correct
111 Correct 79 ms 333396 KB Output is correct
112 Correct 81 ms 332804 KB Output is correct
113 Correct 81 ms 335412 KB Output is correct
114 Correct 80 ms 329552 KB Output is correct
115 Correct 77 ms 329556 KB Output is correct
116 Correct 79 ms 329596 KB Output is correct
117 Correct 74 ms 329716 KB Output is correct
118 Correct 73 ms 329684 KB Output is correct
119 Correct 86 ms 338912 KB Output is correct
120 Correct 90 ms 338916 KB Output is correct
121 Correct 96 ms 346120 KB Output is correct
122 Correct 84 ms 330068 KB Output is correct
123 Correct 85 ms 330068 KB Output is correct
124 Correct 113 ms 357896 KB Output is correct
125 Correct 231 ms 443496 KB Output is correct
126 Correct 122 ms 360620 KB Output is correct
127 Correct 324 ms 502848 KB Output is correct
128 Correct 181 ms 337744 KB Output is correct
129 Correct 210 ms 337824 KB Output is correct
130 Correct 220 ms 435960 KB Output is correct
131 Correct 207 ms 426352 KB Output is correct
132 Correct 77 ms 329556 KB Output is correct
133 Correct 76 ms 329228 KB Output is correct
134 Correct 74 ms 329256 KB Output is correct
135 Correct 73 ms 329512 KB Output is correct
136 Correct 77 ms 329740 KB Output is correct
137 Correct 79 ms 333396 KB Output is correct
138 Correct 80 ms 332628 KB Output is correct
139 Correct 76 ms 329552 KB Output is correct
140 Correct 77 ms 329584 KB Output is correct
141 Correct 81 ms 335188 KB Output is correct
142 Correct 79 ms 329668 KB Output is correct
143 Correct 77 ms 329548 KB Output is correct
144 Correct 78 ms 330064 KB Output is correct
145 Correct 75 ms 330068 KB Output is correct
146 Correct 79 ms 329644 KB Output is correct
147 Correct 78 ms 329556 KB Output is correct
148 Correct 79 ms 329512 KB Output is correct
149 Correct 81 ms 329556 KB Output is correct
150 Correct 78 ms 329456 KB Output is correct
151 Correct 75 ms 329552 KB Output is correct
152 Correct 75 ms 329564 KB Output is correct
153 Correct 76 ms 329552 KB Output is correct
154 Correct 82 ms 330068 KB Output is correct
155 Correct 76 ms 329808 KB Output is correct
156 Correct 89 ms 338928 KB Output is correct
157 Correct 85 ms 330068 KB Output is correct
158 Correct 91 ms 339092 KB Output is correct
159 Correct 85 ms 330116 KB Output is correct
160 Correct 80 ms 330068 KB Output is correct
161 Correct 98 ms 346116 KB Output is correct
162 Correct 84 ms 330028 KB Output is correct
163 Correct 85 ms 330068 KB Output is correct
164 Correct 85 ms 331192 KB Output is correct
165 Correct 82 ms 331376 KB Output is correct
166 Correct 92 ms 330568 KB Output is correct
167 Correct 91 ms 330196 KB Output is correct
168 Correct 92 ms 329984 KB Output is correct
169 Correct 90 ms 330068 KB Output is correct
170 Correct 89 ms 330068 KB Output is correct
171 Correct 83 ms 330836 KB Output is correct
172 Correct 87 ms 330576 KB Output is correct
173 Correct 73 ms 330252 KB Output is correct
174 Correct 79 ms 330324 KB Output is correct
175 Correct 112 ms 331088 KB Output is correct
176 Correct 109 ms 335944 KB Output is correct
177 Correct 155 ms 335368 KB Output is correct
178 Correct 85 ms 336780 KB Output is correct
179 Correct 170 ms 337996 KB Output is correct
180 Correct 255 ms 338000 KB Output is correct
181 Correct 256 ms 337748 KB Output is correct
182 Correct 270 ms 338000 KB Output is correct
183 Correct 272 ms 354308 KB Output is correct
184 Correct 300 ms 345780 KB Output is correct
185 Correct 128 ms 339104 KB Output is correct
186 Correct 249 ms 462416 KB Output is correct
187 Correct 106 ms 340124 KB Output is correct
188 Correct 457 ms 533432 KB Output is correct
189 Correct 310 ms 345048 KB Output is correct
190 Correct 149 ms 344148 KB Output is correct
191 Correct 642 ms 724600 KB Output is correct
192 Correct 463 ms 344660 KB Output is correct
193 Correct 348 ms 344404 KB Output is correct
194 Correct 293 ms 367504 KB Output is correct
195 Correct 174 ms 367500 KB Output is correct
196 Correct 443 ms 344912 KB Output is correct
197 Correct 248 ms 344400 KB Output is correct
198 Correct 256 ms 344448 KB Output is correct
199 Correct 450 ms 344312 KB Output is correct
200 Correct 199 ms 349184 KB Output is correct
201 Correct 268 ms 346204 KB Output is correct
202 Correct 291 ms 344648 KB Output is correct
203 Correct 530 ms 358980 KB Output is correct
204 Correct 358 ms 344916 KB Output is correct
205 Correct 532 ms 348500 KB Output is correct
206 Correct 172 ms 360388 KB Output is correct
207 Correct 681 ms 663856 KB Output is correct
208 Correct 577 ms 360276 KB Output is correct
209 Correct 508 ms 358912 KB Output is correct
210 Correct 695 ms 759768 KB Output is correct
211 Correct 541 ms 359612 KB Output is correct
212 Correct 716 ms 359840 KB Output is correct
213 Correct 359 ms 405668 KB Output is correct
214 Correct 338 ms 405668 KB Output is correct
215 Correct 740 ms 360096 KB Output is correct
216 Correct 683 ms 360132 KB Output is correct
217 Correct 752 ms 359252 KB Output is correct
218 Correct 608 ms 359252 KB Output is correct
219 Correct 770 ms 522484 KB Output is correct
220 Correct 355 ms 543320 KB Output is correct
221 Correct 693 ms 788812 KB Output is correct
222 Correct 1222 ms 849328 KB Output is correct
223 Correct 537 ms 365932 KB Output is correct
224 Correct 526 ms 362436 KB Output is correct
225 Correct 277 ms 360020 KB Output is correct