Submission #916333

# Submission time Handle Problem Language Result Execution time Memory
916333 2024-01-25T16:58:53 Z berr Maze (JOI23_ho_t3) C++17
100 / 100
1445 ms 330832 KB
#include <bits/stdc++.h>
using namespace std;
 
const int mod = 1e9+7;
 
signed main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    
    int r, c, n; cin >> c>> r >> n;
 
    array<int, 2> s, g;
 
    cin >> s[0] >> s[1];
    cin >> g[0] >> g[1];
    

    s[0]--; s[1]--;
    g[0]--; g[1]--;
    
    vector a(c, vector(r, '0')); 

    for(int i=0; i<c; i++){
        for(int l=0; l<r; l++){
            cin >> a[i][l];
        }
    }

    int ans = 0;
    queue<array<int, 2>> q[2];
    int pos = 0;
 
    q[0].push(s);
 
    queue<array<int, 3>> sinir;
    queue<array<int, 3>>sinir2;
    vector<array<int, 3>> pf;

    int of = 500;
    auto check =[&](int x, int y, int z){
        if(x<0 || y<0) return 1;
        if(x>=c || y>=r) return 1;
        if(a[x][y]=='.'){
            q[z%2].push({x, y});
            return 1;
        }
        return 0;
    
    };
 
    vector vis(c, vector(r, 0));
    vector vis2(c, vector(r, 0));
    vector vis3(c, vector(r, 0));
    vector vis4(c, vector(r, 0));

    int anss = -1;
    while(pos <r*c && anss==-1){   
        if(q[pos%2].size()==0 ){
            pos++;

            while(sinir.size()){

                auto [z, x, y] = sinir.front();
                vis[x][y] = 0;
                if(z!=0)
                sinir2.push({n, x, y});
                else
                    pf.push_back({n-1, x, y});

                q[pos%2].push({x, y});
                sinir.pop();    
                //cout<<x<<" "<<y<<" "<<pos<<"\n";
                if(z<=0) continue;

                if(y-1>=0&&!vis[x][y-1] && !vis2[x][y-1]){
                    a[x][y-1] = '.';
                    vis2[x][y-1] = 1;
                    sinir.push({z-1, x, y-1});
                }
                
                if(y+1<r&&!vis[x][y+1] && !vis2[x][y+1]){
                    a[x][y+1] = '.';
                    vis2[x][y+1] = 1;
                    sinir.push({z-1, x, y+1});
                }
            }

            while(pf.size()){
                sinir2.push(pf.back());
                pf.pop_back();
            }
            //cout<<"\n";
            while(sinir2.size()){
                auto [z, x, y] = sinir2.front();
                vis[x][y] = 0;
                sinir2.pop();
               // cout<<z<<" "<<x<<" "<<y<<"\n";

                if(z<=0) continue;
                if(x-1>=0&&!vis[x-1][y] && !vis2[x-1][y]){
                    a[x-1][y] = '.';
                    vis2[x-1][y] = 1;
                    sinir2.push({z-1, x-1, y});
                }
                
                if(x+1<c&&!vis[x+1][y] && !vis2[x+1][y]){
                    a[x+1][y] = '.';
                    vis2[x+1][y] = 1;
                    sinir2.push({z-1, x+1, y});
                }
            }
 
            
        }
        else{
 
            while(q[pos%2].size()){
                auto [x, y] = q[pos%2].front();
                q[pos%2].pop();
                int ans = 0;
                if(vis[x][y]) continue;
 
                vis[x][y] = 1;
                if(x==g[0] && y == g[1]&& anss==-1){
                    anss = pos;
                } 
 
                ans += check(x-1, y, pos);
                ans += check(x+1, y, pos);
                ans += check(x, y-1, pos);
                ans += check(x, y+1, pos);
                if(ans!=4){
                    sinir.push({n, x, y});
                }
            }
        }
 
 
    }
 
    cout << anss <<"\n";
 
}   

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:29:9: warning: unused variable 'ans' [-Wunused-variable]
   29 |     int ans = 0;
      |         ^~~
Main.cpp:39:9: warning: unused variable 'of' [-Wunused-variable]
   39 |     int of = 500;
      |         ^~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 452 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 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 1 ms 456 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 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 456 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 344 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 8 ms 1368 KB Output is correct
20 Correct 5 ms 1440 KB Output is correct
21 Correct 4 ms 1372 KB Output is correct
22 Correct 7 ms 1628 KB Output is correct
23 Correct 9 ms 1372 KB Output is correct
24 Correct 3 ms 1648 KB Output is correct
25 Correct 6 ms 1648 KB Output is correct
26 Correct 2 ms 1372 KB Output is correct
27 Correct 2 ms 1368 KB Output is correct
28 Correct 6 ms 1628 KB Output is correct
29 Correct 23 ms 3164 KB Output is correct
30 Correct 5 ms 1624 KB Output is correct
31 Correct 9 ms 3100 KB Output is correct
32 Correct 22 ms 3164 KB Output is correct
33 Correct 22 ms 3164 KB Output is correct
34 Correct 7 ms 3704 KB Output is correct
35 Correct 17 ms 3452 KB Output is correct
36 Correct 13 ms 3676 KB Output is correct
37 Correct 18 ms 3416 KB Output is correct
38 Correct 4 ms 3164 KB Output is correct
39 Correct 260 ms 27248 KB Output is correct
40 Correct 8 ms 3420 KB Output is correct
41 Correct 6 ms 4304 KB Output is correct
42 Correct 36 ms 4188 KB Output is correct
43 Correct 22 ms 5312 KB Output is correct
44 Correct 40 ms 13984 KB Output is correct
45 Correct 53 ms 15176 KB Output is correct
46 Correct 84 ms 27804 KB Output is correct
47 Correct 244 ms 27476 KB Output is correct
48 Correct 232 ms 27448 KB Output is correct
49 Correct 49 ms 32692 KB Output is correct
50 Correct 112 ms 32692 KB Output is correct
51 Correct 168 ms 29580 KB Output is correct
52 Correct 135 ms 28012 KB Output is correct
53 Correct 224 ms 27476 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 344 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 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 600 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 1 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 456 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 0 ms 452 KB Output is correct
22 Correct 1 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 1 ms 348 KB Output is correct
27 Correct 1 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 1 ms 600 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 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 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 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 1 ms 348 KB Output is correct
11 Correct 0 ms 344 KB Output is correct
12 Correct 0 ms 600 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 352 KB Output is correct
16 Correct 1 ms 344 KB Output is correct
17 Correct 1 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 1 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 1 ms 348 KB Output is correct
25 Correct 2 ms 1116 KB Output is correct
26 Correct 4 ms 1628 KB Output is correct
27 Correct 4 ms 1368 KB Output is correct
28 Correct 4 ms 1372 KB Output is correct
29 Correct 5 ms 1372 KB Output is correct
30 Correct 5 ms 1372 KB Output is correct
31 Correct 3 ms 1596 KB Output is correct
32 Correct 2 ms 1372 KB Output is correct
33 Correct 2 ms 1368 KB Output is correct
34 Correct 9 ms 3164 KB Output is correct
35 Correct 9 ms 3164 KB Output is correct
36 Correct 8 ms 3160 KB Output is correct
37 Correct 10 ms 3160 KB Output is correct
38 Correct 11 ms 3164 KB Output is correct
39 Correct 26 ms 10936 KB Output is correct
40 Correct 75 ms 30692 KB Output is correct
41 Correct 92 ms 27852 KB Output is correct
42 Correct 91 ms 27556 KB Output is correct
43 Correct 96 ms 27532 KB Output is correct
44 Correct 93 ms 26968 KB Output is correct
45 Correct 83 ms 35676 KB Output is correct
46 Correct 77 ms 35896 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 344 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 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 600 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 1 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 456 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 0 ms 452 KB Output is correct
22 Correct 1 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 1 ms 348 KB Output is correct
27 Correct 1 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 1 ms 600 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
33 Correct 8 ms 1600 KB Output is correct
34 Correct 1 ms 344 KB Output is correct
35 Correct 1 ms 344 KB Output is correct
36 Correct 2 ms 1160 KB Output is correct
37 Correct 5 ms 1444 KB Output is correct
38 Correct 4 ms 1568 KB Output is correct
39 Correct 4 ms 1368 KB Output is correct
40 Correct 8 ms 1628 KB Output is correct
41 Correct 9 ms 1372 KB Output is correct
42 Correct 4 ms 1368 KB Output is correct
43 Correct 4 ms 1604 KB Output is correct
44 Correct 4 ms 1372 KB Output is correct
45 Correct 3 ms 1648 KB Output is correct
46 Correct 6 ms 1648 KB Output is correct
47 Correct 5 ms 1628 KB Output is correct
48 Correct 5 ms 1372 KB Output is correct
49 Correct 4 ms 1372 KB Output is correct
50 Correct 6 ms 1600 KB Output is correct
51 Correct 4 ms 1628 KB Output is correct
52 Correct 2 ms 1372 KB Output is correct
53 Correct 2 ms 1372 KB Output is correct
54 Correct 5 ms 1628 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 344 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 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 600 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 1 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 456 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 0 ms 452 KB Output is correct
22 Correct 1 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 1 ms 348 KB Output is correct
27 Correct 1 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 1 ms 600 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
33 Correct 8 ms 1600 KB Output is correct
34 Correct 1 ms 344 KB Output is correct
35 Correct 1 ms 344 KB Output is correct
36 Correct 2 ms 1160 KB Output is correct
37 Correct 5 ms 1444 KB Output is correct
38 Correct 4 ms 1568 KB Output is correct
39 Correct 4 ms 1368 KB Output is correct
40 Correct 8 ms 1628 KB Output is correct
41 Correct 9 ms 1372 KB Output is correct
42 Correct 4 ms 1368 KB Output is correct
43 Correct 4 ms 1604 KB Output is correct
44 Correct 4 ms 1372 KB Output is correct
45 Correct 3 ms 1648 KB Output is correct
46 Correct 6 ms 1648 KB Output is correct
47 Correct 5 ms 1628 KB Output is correct
48 Correct 5 ms 1372 KB Output is correct
49 Correct 4 ms 1372 KB Output is correct
50 Correct 6 ms 1600 KB Output is correct
51 Correct 4 ms 1628 KB Output is correct
52 Correct 2 ms 1372 KB Output is correct
53 Correct 2 ms 1372 KB Output is correct
54 Correct 5 ms 1628 KB Output is correct
55 Correct 23 ms 3160 KB Output is correct
56 Correct 5 ms 2036 KB Output is correct
57 Correct 10 ms 3212 KB Output is correct
58 Correct 12 ms 2916 KB Output is correct
59 Correct 11 ms 3164 KB Output is correct
60 Correct 24 ms 3164 KB Output is correct
61 Correct 21 ms 3164 KB Output is correct
62 Correct 9 ms 3160 KB Output is correct
63 Correct 11 ms 3160 KB Output is correct
64 Correct 10 ms 3164 KB Output is correct
65 Correct 6 ms 3708 KB Output is correct
66 Correct 17 ms 3452 KB Output is correct
67 Correct 16 ms 3380 KB Output is correct
68 Correct 14 ms 3160 KB Output is correct
69 Correct 18 ms 3032 KB Output is correct
70 Correct 14 ms 3164 KB Output is correct
71 Correct 12 ms 3748 KB Output is correct
72 Correct 12 ms 3676 KB Output is correct
73 Correct 17 ms 3420 KB Output is correct
74 Correct 4 ms 3164 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 452 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 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 1 ms 456 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 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 456 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 344 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 8 ms 1368 KB Output is correct
20 Correct 5 ms 1440 KB Output is correct
21 Correct 4 ms 1372 KB Output is correct
22 Correct 7 ms 1628 KB Output is correct
23 Correct 9 ms 1372 KB Output is correct
24 Correct 3 ms 1648 KB Output is correct
25 Correct 6 ms 1648 KB Output is correct
26 Correct 2 ms 1372 KB Output is correct
27 Correct 2 ms 1368 KB Output is correct
28 Correct 6 ms 1628 KB Output is correct
29 Correct 23 ms 3164 KB Output is correct
30 Correct 5 ms 1624 KB Output is correct
31 Correct 9 ms 3100 KB Output is correct
32 Correct 22 ms 3164 KB Output is correct
33 Correct 22 ms 3164 KB Output is correct
34 Correct 7 ms 3704 KB Output is correct
35 Correct 17 ms 3452 KB Output is correct
36 Correct 13 ms 3676 KB Output is correct
37 Correct 18 ms 3416 KB Output is correct
38 Correct 4 ms 3164 KB Output is correct
39 Correct 260 ms 27248 KB Output is correct
40 Correct 8 ms 3420 KB Output is correct
41 Correct 6 ms 4304 KB Output is correct
42 Correct 36 ms 4188 KB Output is correct
43 Correct 22 ms 5312 KB Output is correct
44 Correct 40 ms 13984 KB Output is correct
45 Correct 53 ms 15176 KB Output is correct
46 Correct 84 ms 27804 KB Output is correct
47 Correct 244 ms 27476 KB Output is correct
48 Correct 232 ms 27448 KB Output is correct
49 Correct 49 ms 32692 KB Output is correct
50 Correct 112 ms 32692 KB Output is correct
51 Correct 168 ms 29580 KB Output is correct
52 Correct 135 ms 28012 KB Output is correct
53 Correct 224 ms 27476 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 1 ms 344 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 1 ms 348 KB Output is correct
62 Correct 1 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 600 KB Output is correct
66 Correct 1 ms 348 KB Output is correct
67 Correct 1 ms 348 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 456 KB Output is correct
71 Correct 1 ms 348 KB Output is correct
72 Correct 0 ms 348 KB Output is correct
73 Correct 1 ms 348 KB Output is correct
74 Correct 0 ms 452 KB Output is correct
75 Correct 1 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 1 ms 348 KB Output is correct
80 Correct 1 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 1 ms 600 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 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 1 ms 348 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 1 ms 348 KB Output is correct
94 Correct 0 ms 348 KB Output is correct
95 Correct 1 ms 348 KB Output is correct
96 Correct 0 ms 344 KB Output is correct
97 Correct 0 ms 600 KB Output is correct
98 Correct 1 ms 348 KB Output is correct
99 Correct 0 ms 348 KB Output is correct
100 Correct 0 ms 352 KB Output is correct
101 Correct 1 ms 344 KB Output is correct
102 Correct 1 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 1 ms 344 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 0 ms 348 KB Output is correct
108 Correct 0 ms 348 KB Output is correct
109 Correct 1 ms 348 KB Output is correct
110 Correct 2 ms 1116 KB Output is correct
111 Correct 4 ms 1628 KB Output is correct
112 Correct 4 ms 1368 KB Output is correct
113 Correct 4 ms 1372 KB Output is correct
114 Correct 5 ms 1372 KB Output is correct
115 Correct 5 ms 1372 KB Output is correct
116 Correct 3 ms 1596 KB Output is correct
117 Correct 2 ms 1372 KB Output is correct
118 Correct 2 ms 1368 KB Output is correct
119 Correct 9 ms 3164 KB Output is correct
120 Correct 9 ms 3164 KB Output is correct
121 Correct 8 ms 3160 KB Output is correct
122 Correct 10 ms 3160 KB Output is correct
123 Correct 11 ms 3164 KB Output is correct
124 Correct 26 ms 10936 KB Output is correct
125 Correct 75 ms 30692 KB Output is correct
126 Correct 92 ms 27852 KB Output is correct
127 Correct 91 ms 27556 KB Output is correct
128 Correct 96 ms 27532 KB Output is correct
129 Correct 93 ms 26968 KB Output is correct
130 Correct 83 ms 35676 KB Output is correct
131 Correct 77 ms 35896 KB Output is correct
132 Correct 8 ms 1600 KB Output is correct
133 Correct 1 ms 344 KB Output is correct
134 Correct 1 ms 344 KB Output is correct
135 Correct 2 ms 1160 KB Output is correct
136 Correct 5 ms 1444 KB Output is correct
137 Correct 4 ms 1568 KB Output is correct
138 Correct 4 ms 1368 KB Output is correct
139 Correct 8 ms 1628 KB Output is correct
140 Correct 9 ms 1372 KB Output is correct
141 Correct 4 ms 1368 KB Output is correct
142 Correct 4 ms 1604 KB Output is correct
143 Correct 4 ms 1372 KB Output is correct
144 Correct 3 ms 1648 KB Output is correct
145 Correct 6 ms 1648 KB Output is correct
146 Correct 5 ms 1628 KB Output is correct
147 Correct 5 ms 1372 KB Output is correct
148 Correct 4 ms 1372 KB Output is correct
149 Correct 6 ms 1600 KB Output is correct
150 Correct 4 ms 1628 KB Output is correct
151 Correct 2 ms 1372 KB Output is correct
152 Correct 2 ms 1372 KB Output is correct
153 Correct 5 ms 1628 KB Output is correct
154 Correct 23 ms 3160 KB Output is correct
155 Correct 5 ms 2036 KB Output is correct
156 Correct 10 ms 3212 KB Output is correct
157 Correct 12 ms 2916 KB Output is correct
158 Correct 11 ms 3164 KB Output is correct
159 Correct 24 ms 3164 KB Output is correct
160 Correct 21 ms 3164 KB Output is correct
161 Correct 9 ms 3160 KB Output is correct
162 Correct 11 ms 3160 KB Output is correct
163 Correct 10 ms 3164 KB Output is correct
164 Correct 6 ms 3708 KB Output is correct
165 Correct 17 ms 3452 KB Output is correct
166 Correct 16 ms 3380 KB Output is correct
167 Correct 14 ms 3160 KB Output is correct
168 Correct 18 ms 3032 KB Output is correct
169 Correct 14 ms 3164 KB Output is correct
170 Correct 12 ms 3748 KB Output is correct
171 Correct 12 ms 3676 KB Output is correct
172 Correct 17 ms 3420 KB Output is correct
173 Correct 4 ms 3164 KB Output is correct
174 Correct 8 ms 3932 KB Output is correct
175 Correct 31 ms 6460 KB Output is correct
176 Correct 38 ms 14716 KB Output is correct
177 Correct 75 ms 18332 KB Output is correct
178 Correct 27 ms 23496 KB Output is correct
179 Correct 82 ms 27144 KB Output is correct
180 Correct 133 ms 27328 KB Output is correct
181 Correct 139 ms 28020 KB Output is correct
182 Correct 155 ms 29656 KB Output is correct
183 Correct 207 ms 34756 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 452 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 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 1 ms 456 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 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 456 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 344 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 8 ms 1368 KB Output is correct
20 Correct 5 ms 1440 KB Output is correct
21 Correct 4 ms 1372 KB Output is correct
22 Correct 7 ms 1628 KB Output is correct
23 Correct 9 ms 1372 KB Output is correct
24 Correct 3 ms 1648 KB Output is correct
25 Correct 6 ms 1648 KB Output is correct
26 Correct 2 ms 1372 KB Output is correct
27 Correct 2 ms 1368 KB Output is correct
28 Correct 6 ms 1628 KB Output is correct
29 Correct 23 ms 3164 KB Output is correct
30 Correct 5 ms 1624 KB Output is correct
31 Correct 9 ms 3100 KB Output is correct
32 Correct 22 ms 3164 KB Output is correct
33 Correct 22 ms 3164 KB Output is correct
34 Correct 7 ms 3704 KB Output is correct
35 Correct 17 ms 3452 KB Output is correct
36 Correct 13 ms 3676 KB Output is correct
37 Correct 18 ms 3416 KB Output is correct
38 Correct 4 ms 3164 KB Output is correct
39 Correct 260 ms 27248 KB Output is correct
40 Correct 8 ms 3420 KB Output is correct
41 Correct 6 ms 4304 KB Output is correct
42 Correct 36 ms 4188 KB Output is correct
43 Correct 22 ms 5312 KB Output is correct
44 Correct 40 ms 13984 KB Output is correct
45 Correct 53 ms 15176 KB Output is correct
46 Correct 84 ms 27804 KB Output is correct
47 Correct 244 ms 27476 KB Output is correct
48 Correct 232 ms 27448 KB Output is correct
49 Correct 49 ms 32692 KB Output is correct
50 Correct 112 ms 32692 KB Output is correct
51 Correct 168 ms 29580 KB Output is correct
52 Correct 135 ms 28012 KB Output is correct
53 Correct 224 ms 27476 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 1 ms 344 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 1 ms 348 KB Output is correct
62 Correct 1 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 600 KB Output is correct
66 Correct 1 ms 348 KB Output is correct
67 Correct 1 ms 348 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 456 KB Output is correct
71 Correct 1 ms 348 KB Output is correct
72 Correct 0 ms 348 KB Output is correct
73 Correct 1 ms 348 KB Output is correct
74 Correct 0 ms 452 KB Output is correct
75 Correct 1 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 1 ms 348 KB Output is correct
80 Correct 1 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 1 ms 600 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 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 1 ms 348 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 1 ms 348 KB Output is correct
94 Correct 0 ms 348 KB Output is correct
95 Correct 1 ms 348 KB Output is correct
96 Correct 0 ms 344 KB Output is correct
97 Correct 0 ms 600 KB Output is correct
98 Correct 1 ms 348 KB Output is correct
99 Correct 0 ms 348 KB Output is correct
100 Correct 0 ms 352 KB Output is correct
101 Correct 1 ms 344 KB Output is correct
102 Correct 1 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 1 ms 344 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 0 ms 348 KB Output is correct
108 Correct 0 ms 348 KB Output is correct
109 Correct 1 ms 348 KB Output is correct
110 Correct 2 ms 1116 KB Output is correct
111 Correct 4 ms 1628 KB Output is correct
112 Correct 4 ms 1368 KB Output is correct
113 Correct 4 ms 1372 KB Output is correct
114 Correct 5 ms 1372 KB Output is correct
115 Correct 5 ms 1372 KB Output is correct
116 Correct 3 ms 1596 KB Output is correct
117 Correct 2 ms 1372 KB Output is correct
118 Correct 2 ms 1368 KB Output is correct
119 Correct 9 ms 3164 KB Output is correct
120 Correct 9 ms 3164 KB Output is correct
121 Correct 8 ms 3160 KB Output is correct
122 Correct 10 ms 3160 KB Output is correct
123 Correct 11 ms 3164 KB Output is correct
124 Correct 26 ms 10936 KB Output is correct
125 Correct 75 ms 30692 KB Output is correct
126 Correct 92 ms 27852 KB Output is correct
127 Correct 91 ms 27556 KB Output is correct
128 Correct 96 ms 27532 KB Output is correct
129 Correct 93 ms 26968 KB Output is correct
130 Correct 83 ms 35676 KB Output is correct
131 Correct 77 ms 35896 KB Output is correct
132 Correct 8 ms 1600 KB Output is correct
133 Correct 1 ms 344 KB Output is correct
134 Correct 1 ms 344 KB Output is correct
135 Correct 2 ms 1160 KB Output is correct
136 Correct 5 ms 1444 KB Output is correct
137 Correct 4 ms 1568 KB Output is correct
138 Correct 4 ms 1368 KB Output is correct
139 Correct 8 ms 1628 KB Output is correct
140 Correct 9 ms 1372 KB Output is correct
141 Correct 4 ms 1368 KB Output is correct
142 Correct 4 ms 1604 KB Output is correct
143 Correct 4 ms 1372 KB Output is correct
144 Correct 3 ms 1648 KB Output is correct
145 Correct 6 ms 1648 KB Output is correct
146 Correct 5 ms 1628 KB Output is correct
147 Correct 5 ms 1372 KB Output is correct
148 Correct 4 ms 1372 KB Output is correct
149 Correct 6 ms 1600 KB Output is correct
150 Correct 4 ms 1628 KB Output is correct
151 Correct 2 ms 1372 KB Output is correct
152 Correct 2 ms 1372 KB Output is correct
153 Correct 5 ms 1628 KB Output is correct
154 Correct 23 ms 3160 KB Output is correct
155 Correct 5 ms 2036 KB Output is correct
156 Correct 10 ms 3212 KB Output is correct
157 Correct 12 ms 2916 KB Output is correct
158 Correct 11 ms 3164 KB Output is correct
159 Correct 24 ms 3164 KB Output is correct
160 Correct 21 ms 3164 KB Output is correct
161 Correct 9 ms 3160 KB Output is correct
162 Correct 11 ms 3160 KB Output is correct
163 Correct 10 ms 3164 KB Output is correct
164 Correct 6 ms 3708 KB Output is correct
165 Correct 17 ms 3452 KB Output is correct
166 Correct 16 ms 3380 KB Output is correct
167 Correct 14 ms 3160 KB Output is correct
168 Correct 18 ms 3032 KB Output is correct
169 Correct 14 ms 3164 KB Output is correct
170 Correct 12 ms 3748 KB Output is correct
171 Correct 12 ms 3676 KB Output is correct
172 Correct 17 ms 3420 KB Output is correct
173 Correct 4 ms 3164 KB Output is correct
174 Correct 8 ms 3932 KB Output is correct
175 Correct 31 ms 6460 KB Output is correct
176 Correct 38 ms 14716 KB Output is correct
177 Correct 75 ms 18332 KB Output is correct
178 Correct 27 ms 23496 KB Output is correct
179 Correct 82 ms 27144 KB Output is correct
180 Correct 133 ms 27328 KB Output is correct
181 Correct 139 ms 28020 KB Output is correct
182 Correct 155 ms 29656 KB Output is correct
183 Correct 207 ms 34756 KB Output is correct
184 Correct 643 ms 54100 KB Output is correct
185 Correct 65 ms 29588 KB Output is correct
186 Correct 114 ms 41472 KB Output is correct
187 Correct 60 ms 39868 KB Output is correct
188 Correct 173 ms 55012 KB Output is correct
189 Correct 388 ms 54196 KB Output is correct
190 Correct 206 ms 53612 KB Output is correct
191 Correct 183 ms 54864 KB Output is correct
192 Correct 210 ms 53816 KB Output is correct
193 Correct 180 ms 53732 KB Output is correct
194 Correct 121 ms 64784 KB Output is correct
195 Correct 238 ms 64880 KB Output is correct
196 Correct 310 ms 53632 KB Output is correct
197 Correct 157 ms 54188 KB Output is correct
198 Correct 168 ms 55124 KB Output is correct
199 Correct 305 ms 57616 KB Output is correct
200 Correct 221 ms 57100 KB Output is correct
201 Correct 344 ms 55252 KB Output is correct
202 Correct 592 ms 54096 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 452 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 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 1 ms 456 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 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 456 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 344 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 8 ms 1368 KB Output is correct
20 Correct 5 ms 1440 KB Output is correct
21 Correct 4 ms 1372 KB Output is correct
22 Correct 7 ms 1628 KB Output is correct
23 Correct 9 ms 1372 KB Output is correct
24 Correct 3 ms 1648 KB Output is correct
25 Correct 6 ms 1648 KB Output is correct
26 Correct 2 ms 1372 KB Output is correct
27 Correct 2 ms 1368 KB Output is correct
28 Correct 6 ms 1628 KB Output is correct
29 Correct 23 ms 3164 KB Output is correct
30 Correct 5 ms 1624 KB Output is correct
31 Correct 9 ms 3100 KB Output is correct
32 Correct 22 ms 3164 KB Output is correct
33 Correct 22 ms 3164 KB Output is correct
34 Correct 7 ms 3704 KB Output is correct
35 Correct 17 ms 3452 KB Output is correct
36 Correct 13 ms 3676 KB Output is correct
37 Correct 18 ms 3416 KB Output is correct
38 Correct 4 ms 3164 KB Output is correct
39 Correct 260 ms 27248 KB Output is correct
40 Correct 8 ms 3420 KB Output is correct
41 Correct 6 ms 4304 KB Output is correct
42 Correct 36 ms 4188 KB Output is correct
43 Correct 22 ms 5312 KB Output is correct
44 Correct 40 ms 13984 KB Output is correct
45 Correct 53 ms 15176 KB Output is correct
46 Correct 84 ms 27804 KB Output is correct
47 Correct 244 ms 27476 KB Output is correct
48 Correct 232 ms 27448 KB Output is correct
49 Correct 49 ms 32692 KB Output is correct
50 Correct 112 ms 32692 KB Output is correct
51 Correct 168 ms 29580 KB Output is correct
52 Correct 135 ms 28012 KB Output is correct
53 Correct 224 ms 27476 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 1 ms 344 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 1 ms 348 KB Output is correct
62 Correct 1 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 600 KB Output is correct
66 Correct 1 ms 348 KB Output is correct
67 Correct 1 ms 348 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 456 KB Output is correct
71 Correct 1 ms 348 KB Output is correct
72 Correct 0 ms 348 KB Output is correct
73 Correct 1 ms 348 KB Output is correct
74 Correct 0 ms 452 KB Output is correct
75 Correct 1 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 1 ms 348 KB Output is correct
80 Correct 1 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 1 ms 600 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 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 1 ms 348 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 1 ms 348 KB Output is correct
94 Correct 0 ms 348 KB Output is correct
95 Correct 1 ms 348 KB Output is correct
96 Correct 0 ms 344 KB Output is correct
97 Correct 0 ms 600 KB Output is correct
98 Correct 1 ms 348 KB Output is correct
99 Correct 0 ms 348 KB Output is correct
100 Correct 0 ms 352 KB Output is correct
101 Correct 1 ms 344 KB Output is correct
102 Correct 1 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 1 ms 344 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 0 ms 348 KB Output is correct
108 Correct 0 ms 348 KB Output is correct
109 Correct 1 ms 348 KB Output is correct
110 Correct 2 ms 1116 KB Output is correct
111 Correct 4 ms 1628 KB Output is correct
112 Correct 4 ms 1368 KB Output is correct
113 Correct 4 ms 1372 KB Output is correct
114 Correct 5 ms 1372 KB Output is correct
115 Correct 5 ms 1372 KB Output is correct
116 Correct 3 ms 1596 KB Output is correct
117 Correct 2 ms 1372 KB Output is correct
118 Correct 2 ms 1368 KB Output is correct
119 Correct 9 ms 3164 KB Output is correct
120 Correct 9 ms 3164 KB Output is correct
121 Correct 8 ms 3160 KB Output is correct
122 Correct 10 ms 3160 KB Output is correct
123 Correct 11 ms 3164 KB Output is correct
124 Correct 26 ms 10936 KB Output is correct
125 Correct 75 ms 30692 KB Output is correct
126 Correct 92 ms 27852 KB Output is correct
127 Correct 91 ms 27556 KB Output is correct
128 Correct 96 ms 27532 KB Output is correct
129 Correct 93 ms 26968 KB Output is correct
130 Correct 83 ms 35676 KB Output is correct
131 Correct 77 ms 35896 KB Output is correct
132 Correct 8 ms 1600 KB Output is correct
133 Correct 1 ms 344 KB Output is correct
134 Correct 1 ms 344 KB Output is correct
135 Correct 2 ms 1160 KB Output is correct
136 Correct 5 ms 1444 KB Output is correct
137 Correct 4 ms 1568 KB Output is correct
138 Correct 4 ms 1368 KB Output is correct
139 Correct 8 ms 1628 KB Output is correct
140 Correct 9 ms 1372 KB Output is correct
141 Correct 4 ms 1368 KB Output is correct
142 Correct 4 ms 1604 KB Output is correct
143 Correct 4 ms 1372 KB Output is correct
144 Correct 3 ms 1648 KB Output is correct
145 Correct 6 ms 1648 KB Output is correct
146 Correct 5 ms 1628 KB Output is correct
147 Correct 5 ms 1372 KB Output is correct
148 Correct 4 ms 1372 KB Output is correct
149 Correct 6 ms 1600 KB Output is correct
150 Correct 4 ms 1628 KB Output is correct
151 Correct 2 ms 1372 KB Output is correct
152 Correct 2 ms 1372 KB Output is correct
153 Correct 5 ms 1628 KB Output is correct
154 Correct 23 ms 3160 KB Output is correct
155 Correct 5 ms 2036 KB Output is correct
156 Correct 10 ms 3212 KB Output is correct
157 Correct 12 ms 2916 KB Output is correct
158 Correct 11 ms 3164 KB Output is correct
159 Correct 24 ms 3164 KB Output is correct
160 Correct 21 ms 3164 KB Output is correct
161 Correct 9 ms 3160 KB Output is correct
162 Correct 11 ms 3160 KB Output is correct
163 Correct 10 ms 3164 KB Output is correct
164 Correct 6 ms 3708 KB Output is correct
165 Correct 17 ms 3452 KB Output is correct
166 Correct 16 ms 3380 KB Output is correct
167 Correct 14 ms 3160 KB Output is correct
168 Correct 18 ms 3032 KB Output is correct
169 Correct 14 ms 3164 KB Output is correct
170 Correct 12 ms 3748 KB Output is correct
171 Correct 12 ms 3676 KB Output is correct
172 Correct 17 ms 3420 KB Output is correct
173 Correct 4 ms 3164 KB Output is correct
174 Correct 8 ms 3932 KB Output is correct
175 Correct 31 ms 6460 KB Output is correct
176 Correct 38 ms 14716 KB Output is correct
177 Correct 75 ms 18332 KB Output is correct
178 Correct 27 ms 23496 KB Output is correct
179 Correct 82 ms 27144 KB Output is correct
180 Correct 133 ms 27328 KB Output is correct
181 Correct 139 ms 28020 KB Output is correct
182 Correct 155 ms 29656 KB Output is correct
183 Correct 207 ms 34756 KB Output is correct
184 Correct 643 ms 54100 KB Output is correct
185 Correct 65 ms 29588 KB Output is correct
186 Correct 114 ms 41472 KB Output is correct
187 Correct 60 ms 39868 KB Output is correct
188 Correct 173 ms 55012 KB Output is correct
189 Correct 388 ms 54196 KB Output is correct
190 Correct 206 ms 53612 KB Output is correct
191 Correct 183 ms 54864 KB Output is correct
192 Correct 210 ms 53816 KB Output is correct
193 Correct 180 ms 53732 KB Output is correct
194 Correct 121 ms 64784 KB Output is correct
195 Correct 238 ms 64880 KB Output is correct
196 Correct 310 ms 53632 KB Output is correct
197 Correct 157 ms 54188 KB Output is correct
198 Correct 168 ms 55124 KB Output is correct
199 Correct 305 ms 57616 KB Output is correct
200 Correct 221 ms 57100 KB Output is correct
201 Correct 344 ms 55252 KB Output is correct
202 Correct 592 ms 54096 KB Output is correct
203 Correct 1182 ms 106840 KB Output is correct
204 Correct 343 ms 69348 KB Output is correct
205 Correct 427 ms 65876 KB Output is correct
206 Correct 248 ms 106232 KB Output is correct
207 Correct 396 ms 109156 KB Output is correct
208 Correct 930 ms 107608 KB Output is correct
209 Correct 1265 ms 106732 KB Output is correct
210 Correct 355 ms 109152 KB Output is correct
211 Correct 418 ms 107508 KB Output is correct
212 Correct 393 ms 106580 KB Output is correct
213 Correct 185 ms 129752 KB Output is correct
214 Correct 578 ms 129416 KB Output is correct
215 Correct 546 ms 106768 KB Output is correct
216 Correct 535 ms 107384 KB Output is correct
217 Correct 560 ms 109240 KB Output is correct
218 Correct 486 ms 113340 KB Output is correct
219 Correct 785 ms 178844 KB Output is correct
220 Correct 235 ms 128776 KB Output is correct
221 Correct 312 ms 142300 KB Output is correct
222 Correct 1445 ms 330832 KB Output is correct
223 Correct 769 ms 111416 KB Output is correct
224 Correct 815 ms 109224 KB Output is correct
225 Correct 577 ms 107252 KB Output is correct