Submission #821322

# Submission time Handle Problem Language Result Execution time Memory
821322 2023-08-11T09:07:22 Z Hanksburger Mars (APIO22_mars) C++17
54 / 100
278 ms 3804 KB
#include "mars.h"
#include <bits/stdc++.h>
using namespace std;
string process(vector<vector<string> > a, int i, int j, int k, int n)
{
    int il0=(2*n+1)*  i  /(2*(n-k)+1)+1;
    int ir0=(2*n+1)*(i+1)/(2*(n-k)+1);
    int il1=(2*n+1)*(i+1)/(2*(n-k)+1)+1;
    int ir1=(2*n+1)*(i+2)/(2*(n-k)+1);
    int il2=(2*n+1)*(i+2)/(2*(n-k)+1)+1;
    int ir2=(2*n+1)*(i+3)/(2*(n-k)+1);
    
    int jl0=(2*n+1)*  j  /(2*(n-k)+1)+1;
    int jr0=(2*n+1)*(j+1)/(2*(n-k)+1);
    int jl1=(2*n+1)*(j+1)/(2*(n-k)+1)+1;
    int jr1=(2*n+1)*(j+2)/(2*(n-k)+1);
    int jl2=(2*n+1)*(j+2)/(2*(n-k)+1)+1;
    int jr2=(2*n+1)*(j+3)/(2*(n-k)+1);
    
    int iltarget=(2*n+1)*  i  /(2*(n-k-1)+1)+1;
    int irtarget=(2*n+1)*(i+1)/(2*(n-k-1)+1);
    
    int jltarget=(2*n+1)*  j  /(2*(n-k-1)+1)+1;
    int jrtarget=(2*n+1)*(j+1)/(2*(n-k-1)+1);

    char arr[45][45];
    for (int i=il0; i<=ir0; i++)
    {
        for (int j=jl0; j<=jr0; j++)
            arr[i][j]=a[0][0][(i-il0)*(jr0-jl0+1)+j-jl0];
        for (int j=jl1; j<=jr1; j++)
            arr[i][j]=a[0][1][(i-il0)*(jr1-jl1+1)+j-jl1];
        for (int j=jl2; j<=jr2; j++)
            arr[i][j]=a[0][2][(i-il0)*(jr2-jl2+1)+j-jl2];
    }
    for (int i=il1; i<=ir1; i++)
    {
        for (int j=jl0; j<=jr0; j++)
            arr[i][j]=a[1][0][(i-il1)*(jr0-jl0+1)+j-jl0];
        for (int j=jl1; j<=jr1; j++)
            arr[i][j]=a[1][1][(i-il1)*(jr1-jl1+1)+j-jl1];
        for (int j=jl2; j<=jr2; j++)
            arr[i][j]=a[1][2][(i-il1)*(jr2-jl2+1)+j-jl2];
    }
    for (int i=il2; i<=ir2; i++)
    {
        for (int j=jl0; j<=jr0; j++)
            arr[i][j]=a[2][0][(i-il2)*(jr0-jl0+1)+j-jl0];
        for (int j=jl1; j<=jr1; j++)
            arr[i][j]=a[2][1][(i-il2)*(jr1-jl1+1)+j-jl1];
        for (int j=jl2; j<=jr2; j++)
            arr[i][j]=a[2][2][(i-il2)*(jr2-jl2+1)+j-jl2];
    }
    string str;
    for (int i=iltarget; i<=irtarget; i++)
        for (int j=jltarget; j<=jrtarget; j++)
            str.push_back(arr[i][j]);
    for (int i=0; i<100-(irtarget-iltarget+1)*(jrtarget-jltarget+1); i++)
        str.push_back('0');
    if (k!=n-1)
        return str;
    a[0][0]=str;

    int visited[45][45], ans=0;
    for (int i=0; i<=2*n; i++)
        for (int j=0; j<=2*n; j++)
            visited[i][j]=0;
    pair<int, int> adj[4]={{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
    queue<pair<int, int> > q;
    for (int i=0; i<=2*n; i++)
    {
        for (int j=0; j<=2*n; j++)
        {
            if (a[0][0][i*(2*n+1)+j]=='1' && !visited[i][j])
            {
                ans++;
                visited[i][j]=1;
                q.push({i, j});
                while (!q.empty())
                {
                    int ui=q.front().first, uj=q.front().second;
                    q.pop();
                    for (int l=0; l<4; l++)
                    {
                        int vi=ui+adj[l].first, vj=uj+adj[l].second;
                        if (0<=vi && vi<=2*n && 0<=vj && vj<=2*n && a[0][0][vi*(2*n+1)+vj]=='1' && !visited[vi][vj])
                        {
                            visited[vi][vj]=1;
                            q.push({vi, vj});
                        }
                    }
                }
            }
        }
    }
    a[0][0]="";
    for (int i=0; i<10; i++)
        a[0][0].push_back('0'+(bool)(ans&(1<<i)));
    for (int i=0; i<90; i++)
        a[0][0].push_back('0');
    return a[0][0];
}
# Verdict Execution time Memory Grader output
1 Correct 4 ms 1876 KB Output is correct
2 Correct 4 ms 1964 KB Output is correct
3 Correct 7 ms 1928 KB Output is correct
4 Correct 5 ms 1696 KB Output is correct
5 Correct 4 ms 1820 KB Output is correct
6 Correct 4 ms 2036 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 1876 KB Output is correct
2 Correct 4 ms 1964 KB Output is correct
3 Correct 7 ms 1928 KB Output is correct
4 Correct 5 ms 1696 KB Output is correct
5 Correct 4 ms 1820 KB Output is correct
6 Correct 4 ms 2036 KB Output is correct
7 Correct 8 ms 2052 KB Output is correct
8 Correct 11 ms 2008 KB Output is correct
9 Correct 8 ms 2152 KB Output is correct
10 Correct 9 ms 1844 KB Output is correct
11 Correct 8 ms 1988 KB Output is correct
12 Correct 8 ms 1892 KB Output is correct
13 Correct 8 ms 2228 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 1876 KB Output is correct
2 Correct 4 ms 1964 KB Output is correct
3 Correct 7 ms 1928 KB Output is correct
4 Correct 5 ms 1696 KB Output is correct
5 Correct 4 ms 1820 KB Output is correct
6 Correct 4 ms 2036 KB Output is correct
7 Correct 8 ms 2052 KB Output is correct
8 Correct 11 ms 2008 KB Output is correct
9 Correct 8 ms 2152 KB Output is correct
10 Correct 9 ms 1844 KB Output is correct
11 Correct 8 ms 1988 KB Output is correct
12 Correct 8 ms 1892 KB Output is correct
13 Correct 8 ms 2228 KB Output is correct
14 Correct 18 ms 2548 KB Output is correct
15 Correct 26 ms 2604 KB Output is correct
16 Correct 24 ms 2684 KB Output is correct
17 Correct 26 ms 2588 KB Output is correct
18 Correct 24 ms 2552 KB Output is correct
19 Correct 24 ms 2692 KB Output is correct
20 Correct 26 ms 2660 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 1876 KB Output is correct
2 Correct 4 ms 1964 KB Output is correct
3 Correct 7 ms 1928 KB Output is correct
4 Correct 5 ms 1696 KB Output is correct
5 Correct 4 ms 1820 KB Output is correct
6 Correct 4 ms 2036 KB Output is correct
7 Correct 8 ms 2052 KB Output is correct
8 Correct 11 ms 2008 KB Output is correct
9 Correct 8 ms 2152 KB Output is correct
10 Correct 9 ms 1844 KB Output is correct
11 Correct 8 ms 1988 KB Output is correct
12 Correct 8 ms 1892 KB Output is correct
13 Correct 8 ms 2228 KB Output is correct
14 Correct 18 ms 2548 KB Output is correct
15 Correct 26 ms 2604 KB Output is correct
16 Correct 24 ms 2684 KB Output is correct
17 Correct 26 ms 2588 KB Output is correct
18 Correct 24 ms 2552 KB Output is correct
19 Correct 24 ms 2692 KB Output is correct
20 Correct 26 ms 2660 KB Output is correct
21 Correct 39 ms 2668 KB Output is correct
22 Correct 52 ms 2812 KB Output is correct
23 Correct 51 ms 2832 KB Output is correct
24 Correct 55 ms 2836 KB Output is correct
25 Correct 51 ms 2932 KB Output is correct
26 Correct 51 ms 2836 KB Output is correct
27 Correct 55 ms 2896 KB Output is correct
28 Correct 56 ms 2892 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 1876 KB Output is correct
2 Correct 4 ms 1964 KB Output is correct
3 Correct 7 ms 1928 KB Output is correct
4 Correct 5 ms 1696 KB Output is correct
5 Correct 4 ms 1820 KB Output is correct
6 Correct 4 ms 2036 KB Output is correct
7 Correct 8 ms 2052 KB Output is correct
8 Correct 11 ms 2008 KB Output is correct
9 Correct 8 ms 2152 KB Output is correct
10 Correct 9 ms 1844 KB Output is correct
11 Correct 8 ms 1988 KB Output is correct
12 Correct 8 ms 1892 KB Output is correct
13 Correct 8 ms 2228 KB Output is correct
14 Correct 18 ms 2548 KB Output is correct
15 Correct 26 ms 2604 KB Output is correct
16 Correct 24 ms 2684 KB Output is correct
17 Correct 26 ms 2588 KB Output is correct
18 Correct 24 ms 2552 KB Output is correct
19 Correct 24 ms 2692 KB Output is correct
20 Correct 26 ms 2660 KB Output is correct
21 Correct 39 ms 2668 KB Output is correct
22 Correct 52 ms 2812 KB Output is correct
23 Correct 51 ms 2832 KB Output is correct
24 Correct 55 ms 2836 KB Output is correct
25 Correct 51 ms 2932 KB Output is correct
26 Correct 51 ms 2836 KB Output is correct
27 Correct 55 ms 2896 KB Output is correct
28 Correct 56 ms 2892 KB Output is correct
29 Correct 74 ms 2856 KB Output is correct
30 Correct 103 ms 3320 KB Output is correct
31 Correct 108 ms 3184 KB Output is correct
32 Correct 99 ms 3128 KB Output is correct
33 Correct 107 ms 3092 KB Output is correct
34 Correct 102 ms 3232 KB Output is correct
35 Correct 103 ms 3188 KB Output is correct
36 Correct 98 ms 3140 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 1876 KB Output is correct
2 Correct 4 ms 1964 KB Output is correct
3 Correct 7 ms 1928 KB Output is correct
4 Correct 5 ms 1696 KB Output is correct
5 Correct 4 ms 1820 KB Output is correct
6 Correct 4 ms 2036 KB Output is correct
7 Correct 8 ms 2052 KB Output is correct
8 Correct 11 ms 2008 KB Output is correct
9 Correct 8 ms 2152 KB Output is correct
10 Correct 9 ms 1844 KB Output is correct
11 Correct 8 ms 1988 KB Output is correct
12 Correct 8 ms 1892 KB Output is correct
13 Correct 8 ms 2228 KB Output is correct
14 Correct 18 ms 2548 KB Output is correct
15 Correct 26 ms 2604 KB Output is correct
16 Correct 24 ms 2684 KB Output is correct
17 Correct 26 ms 2588 KB Output is correct
18 Correct 24 ms 2552 KB Output is correct
19 Correct 24 ms 2692 KB Output is correct
20 Correct 26 ms 2660 KB Output is correct
21 Correct 39 ms 2668 KB Output is correct
22 Correct 52 ms 2812 KB Output is correct
23 Correct 51 ms 2832 KB Output is correct
24 Correct 55 ms 2836 KB Output is correct
25 Correct 51 ms 2932 KB Output is correct
26 Correct 51 ms 2836 KB Output is correct
27 Correct 55 ms 2896 KB Output is correct
28 Correct 56 ms 2892 KB Output is correct
29 Correct 74 ms 2856 KB Output is correct
30 Correct 103 ms 3320 KB Output is correct
31 Correct 108 ms 3184 KB Output is correct
32 Correct 99 ms 3128 KB Output is correct
33 Correct 107 ms 3092 KB Output is correct
34 Correct 102 ms 3232 KB Output is correct
35 Correct 103 ms 3188 KB Output is correct
36 Correct 98 ms 3140 KB Output is correct
37 Correct 133 ms 3296 KB Output is correct
38 Correct 183 ms 3592 KB Output is correct
39 Correct 178 ms 3288 KB Output is correct
40 Correct 173 ms 3332 KB Output is correct
41 Correct 173 ms 3320 KB Output is correct
42 Correct 163 ms 3300 KB Output is correct
43 Correct 161 ms 3316 KB Output is correct
44 Correct 176 ms 3320 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 1876 KB Output is correct
2 Correct 4 ms 1964 KB Output is correct
3 Correct 7 ms 1928 KB Output is correct
4 Correct 5 ms 1696 KB Output is correct
5 Correct 4 ms 1820 KB Output is correct
6 Correct 4 ms 2036 KB Output is correct
7 Correct 8 ms 2052 KB Output is correct
8 Correct 11 ms 2008 KB Output is correct
9 Correct 8 ms 2152 KB Output is correct
10 Correct 9 ms 1844 KB Output is correct
11 Correct 8 ms 1988 KB Output is correct
12 Correct 8 ms 1892 KB Output is correct
13 Correct 8 ms 2228 KB Output is correct
14 Correct 18 ms 2548 KB Output is correct
15 Correct 26 ms 2604 KB Output is correct
16 Correct 24 ms 2684 KB Output is correct
17 Correct 26 ms 2588 KB Output is correct
18 Correct 24 ms 2552 KB Output is correct
19 Correct 24 ms 2692 KB Output is correct
20 Correct 26 ms 2660 KB Output is correct
21 Correct 39 ms 2668 KB Output is correct
22 Correct 52 ms 2812 KB Output is correct
23 Correct 51 ms 2832 KB Output is correct
24 Correct 55 ms 2836 KB Output is correct
25 Correct 51 ms 2932 KB Output is correct
26 Correct 51 ms 2836 KB Output is correct
27 Correct 55 ms 2896 KB Output is correct
28 Correct 56 ms 2892 KB Output is correct
29 Correct 74 ms 2856 KB Output is correct
30 Correct 103 ms 3320 KB Output is correct
31 Correct 108 ms 3184 KB Output is correct
32 Correct 99 ms 3128 KB Output is correct
33 Correct 107 ms 3092 KB Output is correct
34 Correct 102 ms 3232 KB Output is correct
35 Correct 103 ms 3188 KB Output is correct
36 Correct 98 ms 3140 KB Output is correct
37 Correct 133 ms 3296 KB Output is correct
38 Correct 183 ms 3592 KB Output is correct
39 Correct 178 ms 3288 KB Output is correct
40 Correct 173 ms 3332 KB Output is correct
41 Correct 173 ms 3320 KB Output is correct
42 Correct 163 ms 3300 KB Output is correct
43 Correct 161 ms 3316 KB Output is correct
44 Correct 176 ms 3320 KB Output is correct
45 Correct 216 ms 3632 KB Output is correct
46 Correct 258 ms 3636 KB Output is correct
47 Correct 265 ms 3636 KB Output is correct
48 Correct 268 ms 3744 KB Output is correct
49 Correct 277 ms 3760 KB Output is correct
50 Correct 278 ms 3772 KB Output is correct
51 Correct 278 ms 3660 KB Output is correct
52 Correct 262 ms 3652 KB Output is correct
53 Correct 275 ms 3672 KB Output is correct
54 Correct 265 ms 3632 KB Output is correct
55 Correct 259 ms 3804 KB Output is correct
56 Correct 269 ms 3680 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 1876 KB Output is correct
2 Correct 4 ms 1964 KB Output is correct
3 Correct 7 ms 1928 KB Output is correct
4 Correct 5 ms 1696 KB Output is correct
5 Correct 4 ms 1820 KB Output is correct
6 Correct 4 ms 2036 KB Output is correct
7 Correct 8 ms 2052 KB Output is correct
8 Correct 11 ms 2008 KB Output is correct
9 Correct 8 ms 2152 KB Output is correct
10 Correct 9 ms 1844 KB Output is correct
11 Correct 8 ms 1988 KB Output is correct
12 Correct 8 ms 1892 KB Output is correct
13 Correct 8 ms 2228 KB Output is correct
14 Correct 18 ms 2548 KB Output is correct
15 Correct 26 ms 2604 KB Output is correct
16 Correct 24 ms 2684 KB Output is correct
17 Correct 26 ms 2588 KB Output is correct
18 Correct 24 ms 2552 KB Output is correct
19 Correct 24 ms 2692 KB Output is correct
20 Correct 26 ms 2660 KB Output is correct
21 Correct 39 ms 2668 KB Output is correct
22 Correct 52 ms 2812 KB Output is correct
23 Correct 51 ms 2832 KB Output is correct
24 Correct 55 ms 2836 KB Output is correct
25 Correct 51 ms 2932 KB Output is correct
26 Correct 51 ms 2836 KB Output is correct
27 Correct 55 ms 2896 KB Output is correct
28 Correct 56 ms 2892 KB Output is correct
29 Correct 74 ms 2856 KB Output is correct
30 Correct 103 ms 3320 KB Output is correct
31 Correct 108 ms 3184 KB Output is correct
32 Correct 99 ms 3128 KB Output is correct
33 Correct 107 ms 3092 KB Output is correct
34 Correct 102 ms 3232 KB Output is correct
35 Correct 103 ms 3188 KB Output is correct
36 Correct 98 ms 3140 KB Output is correct
37 Correct 133 ms 3296 KB Output is correct
38 Correct 183 ms 3592 KB Output is correct
39 Correct 178 ms 3288 KB Output is correct
40 Correct 173 ms 3332 KB Output is correct
41 Correct 173 ms 3320 KB Output is correct
42 Correct 163 ms 3300 KB Output is correct
43 Correct 161 ms 3316 KB Output is correct
44 Correct 176 ms 3320 KB Output is correct
45 Correct 216 ms 3632 KB Output is correct
46 Correct 258 ms 3636 KB Output is correct
47 Correct 265 ms 3636 KB Output is correct
48 Correct 268 ms 3744 KB Output is correct
49 Correct 277 ms 3760 KB Output is correct
50 Correct 278 ms 3772 KB Output is correct
51 Correct 278 ms 3660 KB Output is correct
52 Correct 262 ms 3652 KB Output is correct
53 Correct 275 ms 3672 KB Output is correct
54 Correct 265 ms 3632 KB Output is correct
55 Correct 259 ms 3804 KB Output is correct
56 Correct 269 ms 3680 KB Output is correct
57 Incorrect 44 ms 528 KB invalid len
58 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 4 ms 1876 KB Output is correct
2 Correct 4 ms 1964 KB Output is correct
3 Correct 7 ms 1928 KB Output is correct
4 Correct 5 ms 1696 KB Output is correct
5 Correct 4 ms 1820 KB Output is correct
6 Correct 4 ms 2036 KB Output is correct
7 Correct 8 ms 2052 KB Output is correct
8 Correct 11 ms 2008 KB Output is correct
9 Correct 8 ms 2152 KB Output is correct
10 Correct 9 ms 1844 KB Output is correct
11 Correct 8 ms 1988 KB Output is correct
12 Correct 8 ms 1892 KB Output is correct
13 Correct 8 ms 2228 KB Output is correct
14 Correct 18 ms 2548 KB Output is correct
15 Correct 26 ms 2604 KB Output is correct
16 Correct 24 ms 2684 KB Output is correct
17 Correct 26 ms 2588 KB Output is correct
18 Correct 24 ms 2552 KB Output is correct
19 Correct 24 ms 2692 KB Output is correct
20 Correct 26 ms 2660 KB Output is correct
21 Correct 39 ms 2668 KB Output is correct
22 Correct 52 ms 2812 KB Output is correct
23 Correct 51 ms 2832 KB Output is correct
24 Correct 55 ms 2836 KB Output is correct
25 Correct 51 ms 2932 KB Output is correct
26 Correct 51 ms 2836 KB Output is correct
27 Correct 55 ms 2896 KB Output is correct
28 Correct 56 ms 2892 KB Output is correct
29 Correct 74 ms 2856 KB Output is correct
30 Correct 103 ms 3320 KB Output is correct
31 Correct 108 ms 3184 KB Output is correct
32 Correct 99 ms 3128 KB Output is correct
33 Correct 107 ms 3092 KB Output is correct
34 Correct 102 ms 3232 KB Output is correct
35 Correct 103 ms 3188 KB Output is correct
36 Correct 98 ms 3140 KB Output is correct
37 Correct 133 ms 3296 KB Output is correct
38 Correct 183 ms 3592 KB Output is correct
39 Correct 178 ms 3288 KB Output is correct
40 Correct 173 ms 3332 KB Output is correct
41 Correct 173 ms 3320 KB Output is correct
42 Correct 163 ms 3300 KB Output is correct
43 Correct 161 ms 3316 KB Output is correct
44 Correct 176 ms 3320 KB Output is correct
45 Correct 216 ms 3632 KB Output is correct
46 Correct 258 ms 3636 KB Output is correct
47 Correct 265 ms 3636 KB Output is correct
48 Correct 268 ms 3744 KB Output is correct
49 Correct 277 ms 3760 KB Output is correct
50 Correct 278 ms 3772 KB Output is correct
51 Correct 278 ms 3660 KB Output is correct
52 Correct 262 ms 3652 KB Output is correct
53 Correct 275 ms 3672 KB Output is correct
54 Correct 265 ms 3632 KB Output is correct
55 Correct 259 ms 3804 KB Output is correct
56 Correct 269 ms 3680 KB Output is correct
57 Incorrect 44 ms 528 KB invalid len
58 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 4 ms 1876 KB Output is correct
2 Correct 4 ms 1964 KB Output is correct
3 Correct 7 ms 1928 KB Output is correct
4 Correct 5 ms 1696 KB Output is correct
5 Correct 4 ms 1820 KB Output is correct
6 Correct 4 ms 2036 KB Output is correct
7 Correct 8 ms 2052 KB Output is correct
8 Correct 11 ms 2008 KB Output is correct
9 Correct 8 ms 2152 KB Output is correct
10 Correct 9 ms 1844 KB Output is correct
11 Correct 8 ms 1988 KB Output is correct
12 Correct 8 ms 1892 KB Output is correct
13 Correct 8 ms 2228 KB Output is correct
14 Correct 18 ms 2548 KB Output is correct
15 Correct 26 ms 2604 KB Output is correct
16 Correct 24 ms 2684 KB Output is correct
17 Correct 26 ms 2588 KB Output is correct
18 Correct 24 ms 2552 KB Output is correct
19 Correct 24 ms 2692 KB Output is correct
20 Correct 26 ms 2660 KB Output is correct
21 Correct 39 ms 2668 KB Output is correct
22 Correct 52 ms 2812 KB Output is correct
23 Correct 51 ms 2832 KB Output is correct
24 Correct 55 ms 2836 KB Output is correct
25 Correct 51 ms 2932 KB Output is correct
26 Correct 51 ms 2836 KB Output is correct
27 Correct 55 ms 2896 KB Output is correct
28 Correct 56 ms 2892 KB Output is correct
29 Correct 74 ms 2856 KB Output is correct
30 Correct 103 ms 3320 KB Output is correct
31 Correct 108 ms 3184 KB Output is correct
32 Correct 99 ms 3128 KB Output is correct
33 Correct 107 ms 3092 KB Output is correct
34 Correct 102 ms 3232 KB Output is correct
35 Correct 103 ms 3188 KB Output is correct
36 Correct 98 ms 3140 KB Output is correct
37 Correct 133 ms 3296 KB Output is correct
38 Correct 183 ms 3592 KB Output is correct
39 Correct 178 ms 3288 KB Output is correct
40 Correct 173 ms 3332 KB Output is correct
41 Correct 173 ms 3320 KB Output is correct
42 Correct 163 ms 3300 KB Output is correct
43 Correct 161 ms 3316 KB Output is correct
44 Correct 176 ms 3320 KB Output is correct
45 Correct 216 ms 3632 KB Output is correct
46 Correct 258 ms 3636 KB Output is correct
47 Correct 265 ms 3636 KB Output is correct
48 Correct 268 ms 3744 KB Output is correct
49 Correct 277 ms 3760 KB Output is correct
50 Correct 278 ms 3772 KB Output is correct
51 Correct 278 ms 3660 KB Output is correct
52 Correct 262 ms 3652 KB Output is correct
53 Correct 275 ms 3672 KB Output is correct
54 Correct 265 ms 3632 KB Output is correct
55 Correct 259 ms 3804 KB Output is correct
56 Correct 269 ms 3680 KB Output is correct
57 Incorrect 44 ms 528 KB invalid len
58 Halted 0 ms 0 KB -