Submission #888228

# Submission time Handle Problem Language Result Execution time Memory
888228 2023-12-16T14:40:26 Z ace5 Maze (JOI23_ho_t3) C++17
86 / 100
2000 ms 452504 KB
#include <bits/stdc++.h>

using namespace std;

const int INF = 1e9;

vector<set<int>> r;
vector<set<int>> c;
vector<vector<int>> vis;
vector<vector<int>> d;
vector<vector<char>> a;
deque<pair<int,int>> f;

int R,C,n;

int bfs(int si,int sj,int fi,int fj)
{
    d.resize(R);
    vis.resize(R);
    r.resize(R);
    c.resize(C);
    for(int i = 0;i < R;++i)
    {
        d[i].resize(C);
        vis[i].resize(C);
        for(int j = 0;j < C;++j)
        {
            d[i][j] = INF;
            vis[i][j] = 0;
            if(i != si || j != sj)
            {
                r[i].insert(j);
                c[j].insert(i);

            }
        }
    }
    d[si][sj] = 0;
    vis[si][sj] = 2;
    f.push_back({si,sj});
    while(f.size())
    {
        int i = f[0].first;
        int j = f[0].second;
        f.pop_front();
       // cout << i << ' ' << j << ' ' << d[fi][fj] << ' ' << vis[5][0] << "\n";
        if(vis[i][j] == 3)
            continue;
        vis[i][j] = 3;
        if(i == fi && j == fj)
            break;
        if(i > 0 && a[i-1][j] == '.' && vis[i-1][j] < 2)
        {
            if(!vis[i-1][j])
            {
                r[i-1].erase(j);
                c[j].erase(i-1);
            }
            vis[i-1][j] = 2;
            d[i-1][j] = d[i][j];
            f.push_front({i-1,j});
        }
        if(j > 0 && a[i][j-1] == '.' && vis[i][j-1] < 2)
        {
            if(!vis[i][j-1])
            {
                r[i].erase(j-1);
                c[j-1].erase(i);
            }
          //  if(i == 5 && j == 1)
         //   {
          //      cout << d[i][j] << ' ' << d[i][j-1] << "\n";
          //  }
            vis[i][j-1] = 2;
            d[i][j-1] = d[i][j];
            f.push_front({i,j-1});
        }
        if(i < R-1 && a[i+1][j] == '.' && vis[i+1][j] < 2)
        {
            if(!vis[i+1][j])
            {
                r[i+1].erase(j);
                c[j].erase(i+1);
            }
            vis[i+1][j] = 2;
            d[i+1][j] = d[i][j];
            f.push_front({i+1,j});
        }
        if(j < C-1 && a[i][j+1] == '.' && vis[i][j+1] < 2)
        {
            if(!vis[i][j+1])
            {
                r[i].erase(j+1);
                c[j+1].erase(i);
            }
            vis[i][j+1] = 2;
            d[i][j+1] = d[i][j];
            f.push_front({i,j+1});
        }
        if(abs(i-fi) <= n && abs(j-fj) <= n && !vis[fi][fj])
        {
            r[fi].erase(fj);
            c[fj].erase(fi);
            //cout << i << ' ' << j << ' ' << d[i][j] << "!\n";
            vis[fi][fj] = 1;
            d[fi][fj] = d[i][j]+1;
            f.push_back({fi,fj});
        }
        int indd = min(R-1,i+n);
        int indu = max(0,i-n);
        int indl = max(0,j-n);
        int indr = min(C-1,j+n);
        int indd2 = i+n-1;
        int indu2 = i-n+1;
        int indr2 = j+n-1;
        int indl2 = j-n+1;
        for(;;)
        {
            auto it = r[indd].lower_bound(indl2);
            if(it != r[indd].end() && (*it) <= indr2)
            {
                int k = (*it);
                vis[indd][k] = 1;
                //cout << indd << ' ' << k << ' ' << d[i][j] << "!\n";
                d[indd][k] = d[i][j]+1;
                //cout << d[1][0] << ' ';
                f.push_back({indd,k});
                r[indd].erase(it);
                c[(*it)].erase(indd);
            }
            else
                break;
        }
        for(;;)
        {
            auto it = r[indu].lower_bound(indl2);
            if(it != r[indu].end() && (*it) <= indr2)
            {
                int k = (*it);
                vis[indu][k] = 1;
                d[indu][k] = d[i][j]+1;
                //cout << indu << ' ' << k << "!!\n";
                f.push_back({indu,k});
                r[indu].erase(it);
                c[(*it)].erase(indu);
            }
            else
                break;
        }
        for(;;)
        {
            auto it = c[indl].lower_bound(indu2);
            if(it != c[indl].end() && (*it) <= indd2)
            {
                int k = (*it);
                vis[k][indl] = 1;
                d[k][indl] = d[i][j]+1;
                //cout << k << ' ' << indl << "!!!\n";
                f.push_back({k,indl});
                c[indl].erase(it);
                r[(*it)].erase(indl);
            }
            else
                break;
        }
        for(;;)
        {
            auto it = c[indr].lower_bound(indu2);
            if(it != c[indr].end() && (*it) <= indd2)
            {
                int k = (*it);
                vis[k][indr] = 1;
                d[k][indr] = d[i][j]+1;
                //cout << k << ' ' << indr << "!!!!\n";
                f.push_back({k,indr});
                c[indr].erase(it);
                r[(*it)].erase(indr);
            }
            else
                break;
        }
    }
    return d[fi][fj];
}

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cin >> R >> C >> n;
    int si,sj,fi,fj;
    cin >> si >> sj >> fi >> fj;
    si--;
    sj--;
    fi--;
    fj--;
    a.resize(R);
    for(int i = 0;i < R;++i)
    {
        string s;
        cin >> s;
        a[i].resize(C);
        for(int j =0;j < C;++j)
        {
            a[i][j] = s[j];
        }
    }
    cout << bfs(si,sj,fi,fj);
    return 0;

}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 460 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 1 ms 604 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 456 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 1 ms 348 KB Output is correct
18 Correct 1 ms 452 KB Output is correct
19 Correct 23 ms 6500 KB Output is correct
20 Correct 20 ms 7252 KB Output is correct
21 Correct 20 ms 6732 KB Output is correct
22 Correct 26 ms 6492 KB Output is correct
23 Correct 19 ms 6492 KB Output is correct
24 Correct 21 ms 9308 KB Output is correct
25 Correct 21 ms 9308 KB Output is correct
26 Correct 13 ms 6732 KB Output is correct
27 Correct 12 ms 6744 KB Output is correct
28 Correct 15 ms 6492 KB Output is correct
29 Correct 76 ms 16268 KB Output is correct
30 Correct 19 ms 8028 KB Output is correct
31 Correct 43 ms 15932 KB Output is correct
32 Correct 67 ms 16076 KB Output is correct
33 Correct 60 ms 15956 KB Output is correct
34 Correct 61 ms 23056 KB Output is correct
35 Correct 62 ms 23040 KB Output is correct
36 Correct 59 ms 16092 KB Output is correct
37 Correct 65 ms 16076 KB Output is correct
38 Correct 42 ms 16068 KB Output is correct
39 Correct 894 ms 156252 KB Output is correct
40 Correct 46 ms 18516 KB Output is correct
41 Correct 60 ms 28240 KB Output is correct
42 Correct 106 ms 22752 KB Output is correct
43 Correct 92 ms 31164 KB Output is correct
44 Correct 259 ms 83280 KB Output is correct
45 Correct 285 ms 91320 KB Output is correct
46 Correct 612 ms 156432 KB Output is correct
47 Correct 833 ms 156396 KB Output is correct
48 Correct 916 ms 156268 KB Output is correct
49 Correct 599 ms 226444 KB Output is correct
50 Correct 602 ms 226404 KB Output is correct
51 Correct 912 ms 156264 KB Output is correct
52 Correct 849 ms 156272 KB Output is correct
53 Correct 911 ms 156412 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 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 344 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 452 KB Output is correct
10 Correct 1 ms 452 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 604 KB Output is correct
16 Correct 1 ms 604 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 456 KB Output is correct
28 Correct 0 ms 452 KB Output is correct
29 Correct 0 ms 344 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 600 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 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 1 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 0 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 1 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 352 KB Output is correct
19 Correct 0 ms 344 KB Output is correct
20 Correct 0 ms 352 KB Output is correct
21 Correct 1 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 1 ms 452 KB Output is correct
24 Correct 1 ms 604 KB Output is correct
25 Correct 8 ms 4360 KB Output is correct
26 Correct 15 ms 6136 KB Output is correct
27 Correct 20 ms 6496 KB Output is correct
28 Correct 12 ms 6500 KB Output is correct
29 Correct 11 ms 6496 KB Output is correct
30 Correct 12 ms 6500 KB Output is correct
31 Correct 16 ms 6752 KB Output is correct
32 Correct 13 ms 6500 KB Output is correct
33 Correct 12 ms 6488 KB Output is correct
34 Correct 41 ms 12892 KB Output is correct
35 Correct 42 ms 15964 KB Output is correct
36 Correct 50 ms 15952 KB Output is correct
37 Correct 39 ms 15884 KB Output is correct
38 Correct 38 ms 16292 KB Output is correct
39 Correct 165 ms 45728 KB Output is correct
40 Correct 596 ms 132436 KB Output is correct
41 Correct 613 ms 156268 KB Output is correct
42 Correct 620 ms 156344 KB Output is correct
43 Correct 658 ms 156240 KB Output is correct
44 Correct 667 ms 156272 KB Output is correct
45 Correct 753 ms 156964 KB Output is correct
46 Correct 808 ms 156492 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 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 344 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 452 KB Output is correct
10 Correct 1 ms 452 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 604 KB Output is correct
16 Correct 1 ms 604 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 456 KB Output is correct
28 Correct 0 ms 452 KB Output is correct
29 Correct 0 ms 344 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
33 Correct 22 ms 6488 KB Output is correct
34 Correct 1 ms 604 KB Output is correct
35 Correct 1 ms 860 KB Output is correct
36 Correct 11 ms 4440 KB Output is correct
37 Correct 15 ms 7256 KB Output is correct
38 Correct 15 ms 5980 KB Output is correct
39 Correct 19 ms 6492 KB Output is correct
40 Correct 23 ms 6488 KB Output is correct
41 Correct 21 ms 6684 KB Output is correct
42 Correct 12 ms 6488 KB Output is correct
43 Correct 11 ms 6492 KB Output is correct
44 Correct 11 ms 6692 KB Output is correct
45 Correct 23 ms 9364 KB Output is correct
46 Correct 21 ms 9308 KB Output is correct
47 Correct 19 ms 8028 KB Output is correct
48 Correct 17 ms 6748 KB Output is correct
49 Correct 16 ms 6744 KB Output is correct
50 Correct 19 ms 6744 KB Output is correct
51 Correct 16 ms 6748 KB Output is correct
52 Correct 13 ms 6488 KB Output is correct
53 Correct 12 ms 6488 KB Output is correct
54 Correct 16 ms 6716 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 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 344 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 452 KB Output is correct
10 Correct 1 ms 452 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 604 KB Output is correct
16 Correct 1 ms 604 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 456 KB Output is correct
28 Correct 0 ms 452 KB Output is correct
29 Correct 0 ms 344 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
33 Correct 22 ms 6488 KB Output is correct
34 Correct 1 ms 604 KB Output is correct
35 Correct 1 ms 860 KB Output is correct
36 Correct 11 ms 4440 KB Output is correct
37 Correct 15 ms 7256 KB Output is correct
38 Correct 15 ms 5980 KB Output is correct
39 Correct 19 ms 6492 KB Output is correct
40 Correct 23 ms 6488 KB Output is correct
41 Correct 21 ms 6684 KB Output is correct
42 Correct 12 ms 6488 KB Output is correct
43 Correct 11 ms 6492 KB Output is correct
44 Correct 11 ms 6692 KB Output is correct
45 Correct 23 ms 9364 KB Output is correct
46 Correct 21 ms 9308 KB Output is correct
47 Correct 19 ms 8028 KB Output is correct
48 Correct 17 ms 6748 KB Output is correct
49 Correct 16 ms 6744 KB Output is correct
50 Correct 19 ms 6744 KB Output is correct
51 Correct 16 ms 6748 KB Output is correct
52 Correct 13 ms 6488 KB Output is correct
53 Correct 12 ms 6488 KB Output is correct
54 Correct 16 ms 6716 KB Output is correct
55 Correct 66 ms 15964 KB Output is correct
56 Correct 19 ms 8028 KB Output is correct
57 Correct 40 ms 12892 KB Output is correct
58 Correct 48 ms 14928 KB Output is correct
59 Correct 40 ms 15964 KB Output is correct
60 Correct 66 ms 15960 KB Output is correct
61 Correct 60 ms 16064 KB Output is correct
62 Correct 52 ms 15952 KB Output is correct
63 Correct 38 ms 15960 KB Output is correct
64 Correct 38 ms 15964 KB Output is correct
65 Correct 60 ms 22868 KB Output is correct
66 Correct 59 ms 22860 KB Output is correct
67 Correct 68 ms 19544 KB Output is correct
68 Correct 56 ms 16160 KB Output is correct
69 Correct 56 ms 16208 KB Output is correct
70 Correct 60 ms 16152 KB Output is correct
71 Correct 49 ms 15952 KB Output is correct
72 Correct 56 ms 15856 KB Output is correct
73 Correct 65 ms 16044 KB Output is correct
74 Correct 42 ms 15956 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 460 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 1 ms 604 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 456 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 1 ms 348 KB Output is correct
18 Correct 1 ms 452 KB Output is correct
19 Correct 23 ms 6500 KB Output is correct
20 Correct 20 ms 7252 KB Output is correct
21 Correct 20 ms 6732 KB Output is correct
22 Correct 26 ms 6492 KB Output is correct
23 Correct 19 ms 6492 KB Output is correct
24 Correct 21 ms 9308 KB Output is correct
25 Correct 21 ms 9308 KB Output is correct
26 Correct 13 ms 6732 KB Output is correct
27 Correct 12 ms 6744 KB Output is correct
28 Correct 15 ms 6492 KB Output is correct
29 Correct 76 ms 16268 KB Output is correct
30 Correct 19 ms 8028 KB Output is correct
31 Correct 43 ms 15932 KB Output is correct
32 Correct 67 ms 16076 KB Output is correct
33 Correct 60 ms 15956 KB Output is correct
34 Correct 61 ms 23056 KB Output is correct
35 Correct 62 ms 23040 KB Output is correct
36 Correct 59 ms 16092 KB Output is correct
37 Correct 65 ms 16076 KB Output is correct
38 Correct 42 ms 16068 KB Output is correct
39 Correct 894 ms 156252 KB Output is correct
40 Correct 46 ms 18516 KB Output is correct
41 Correct 60 ms 28240 KB Output is correct
42 Correct 106 ms 22752 KB Output is correct
43 Correct 92 ms 31164 KB Output is correct
44 Correct 259 ms 83280 KB Output is correct
45 Correct 285 ms 91320 KB Output is correct
46 Correct 612 ms 156432 KB Output is correct
47 Correct 833 ms 156396 KB Output is correct
48 Correct 916 ms 156268 KB Output is correct
49 Correct 599 ms 226444 KB Output is correct
50 Correct 602 ms 226404 KB Output is correct
51 Correct 912 ms 156264 KB Output is correct
52 Correct 849 ms 156272 KB Output is correct
53 Correct 911 ms 156412 KB Output is correct
54 Correct 0 ms 348 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 344 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 1 ms 452 KB Output is correct
63 Correct 1 ms 452 KB Output is correct
64 Correct 1 ms 348 KB Output is correct
65 Correct 1 ms 348 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 0 ms 348 KB Output is correct
68 Correct 1 ms 604 KB Output is correct
69 Correct 1 ms 604 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 0 ms 348 KB Output is correct
72 Correct 1 ms 348 KB Output is correct
73 Correct 0 ms 348 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 ms 348 KB Output is correct
76 Correct 1 ms 348 KB Output is correct
77 Correct 0 ms 348 KB Output is correct
78 Correct 0 ms 348 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 0 ms 456 KB Output is correct
81 Correct 0 ms 452 KB Output is correct
82 Correct 0 ms 344 KB Output is correct
83 Correct 1 ms 344 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 600 KB Output is correct
87 Correct 0 ms 348 KB Output is correct
88 Correct 0 ms 348 KB Output is correct
89 Correct 0 ms 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 1 ms 348 KB Output is correct
95 Correct 0 ms 348 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 1 ms 604 KB Output is correct
98 Correct 0 ms 348 KB Output is correct
99 Correct 1 ms 348 KB Output is correct
100 Correct 0 ms 348 KB Output is correct
101 Correct 1 ms 348 KB Output is correct
102 Correct 0 ms 348 KB Output is correct
103 Correct 0 ms 352 KB Output is correct
104 Correct 0 ms 344 KB Output is correct
105 Correct 0 ms 352 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 1 ms 348 KB Output is correct
108 Correct 1 ms 452 KB Output is correct
109 Correct 1 ms 604 KB Output is correct
110 Correct 8 ms 4360 KB Output is correct
111 Correct 15 ms 6136 KB Output is correct
112 Correct 20 ms 6496 KB Output is correct
113 Correct 12 ms 6500 KB Output is correct
114 Correct 11 ms 6496 KB Output is correct
115 Correct 12 ms 6500 KB Output is correct
116 Correct 16 ms 6752 KB Output is correct
117 Correct 13 ms 6500 KB Output is correct
118 Correct 12 ms 6488 KB Output is correct
119 Correct 41 ms 12892 KB Output is correct
120 Correct 42 ms 15964 KB Output is correct
121 Correct 50 ms 15952 KB Output is correct
122 Correct 39 ms 15884 KB Output is correct
123 Correct 38 ms 16292 KB Output is correct
124 Correct 165 ms 45728 KB Output is correct
125 Correct 596 ms 132436 KB Output is correct
126 Correct 613 ms 156268 KB Output is correct
127 Correct 620 ms 156344 KB Output is correct
128 Correct 658 ms 156240 KB Output is correct
129 Correct 667 ms 156272 KB Output is correct
130 Correct 753 ms 156964 KB Output is correct
131 Correct 808 ms 156492 KB Output is correct
132 Correct 22 ms 6488 KB Output is correct
133 Correct 1 ms 604 KB Output is correct
134 Correct 1 ms 860 KB Output is correct
135 Correct 11 ms 4440 KB Output is correct
136 Correct 15 ms 7256 KB Output is correct
137 Correct 15 ms 5980 KB Output is correct
138 Correct 19 ms 6492 KB Output is correct
139 Correct 23 ms 6488 KB Output is correct
140 Correct 21 ms 6684 KB Output is correct
141 Correct 12 ms 6488 KB Output is correct
142 Correct 11 ms 6492 KB Output is correct
143 Correct 11 ms 6692 KB Output is correct
144 Correct 23 ms 9364 KB Output is correct
145 Correct 21 ms 9308 KB Output is correct
146 Correct 19 ms 8028 KB Output is correct
147 Correct 17 ms 6748 KB Output is correct
148 Correct 16 ms 6744 KB Output is correct
149 Correct 19 ms 6744 KB Output is correct
150 Correct 16 ms 6748 KB Output is correct
151 Correct 13 ms 6488 KB Output is correct
152 Correct 12 ms 6488 KB Output is correct
153 Correct 16 ms 6716 KB Output is correct
154 Correct 66 ms 15964 KB Output is correct
155 Correct 19 ms 8028 KB Output is correct
156 Correct 40 ms 12892 KB Output is correct
157 Correct 48 ms 14928 KB Output is correct
158 Correct 40 ms 15964 KB Output is correct
159 Correct 66 ms 15960 KB Output is correct
160 Correct 60 ms 16064 KB Output is correct
161 Correct 52 ms 15952 KB Output is correct
162 Correct 38 ms 15960 KB Output is correct
163 Correct 38 ms 15964 KB Output is correct
164 Correct 60 ms 22868 KB Output is correct
165 Correct 59 ms 22860 KB Output is correct
166 Correct 68 ms 19544 KB Output is correct
167 Correct 56 ms 16160 KB Output is correct
168 Correct 56 ms 16208 KB Output is correct
169 Correct 60 ms 16152 KB Output is correct
170 Correct 49 ms 15952 KB Output is correct
171 Correct 56 ms 15856 KB Output is correct
172 Correct 65 ms 16044 KB Output is correct
173 Correct 42 ms 15956 KB Output is correct
174 Correct 52 ms 21404 KB Output is correct
175 Correct 145 ms 35408 KB Output is correct
176 Correct 268 ms 91448 KB Output is correct
177 Correct 472 ms 106544 KB Output is correct
178 Correct 483 ms 137812 KB Output is correct
179 Correct 703 ms 157700 KB Output is correct
180 Correct 837 ms 156844 KB Output is correct
181 Correct 834 ms 156652 KB Output is correct
182 Correct 1037 ms 156512 KB Output is correct
183 Correct 759 ms 157768 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 460 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 1 ms 604 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 456 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 1 ms 348 KB Output is correct
18 Correct 1 ms 452 KB Output is correct
19 Correct 23 ms 6500 KB Output is correct
20 Correct 20 ms 7252 KB Output is correct
21 Correct 20 ms 6732 KB Output is correct
22 Correct 26 ms 6492 KB Output is correct
23 Correct 19 ms 6492 KB Output is correct
24 Correct 21 ms 9308 KB Output is correct
25 Correct 21 ms 9308 KB Output is correct
26 Correct 13 ms 6732 KB Output is correct
27 Correct 12 ms 6744 KB Output is correct
28 Correct 15 ms 6492 KB Output is correct
29 Correct 76 ms 16268 KB Output is correct
30 Correct 19 ms 8028 KB Output is correct
31 Correct 43 ms 15932 KB Output is correct
32 Correct 67 ms 16076 KB Output is correct
33 Correct 60 ms 15956 KB Output is correct
34 Correct 61 ms 23056 KB Output is correct
35 Correct 62 ms 23040 KB Output is correct
36 Correct 59 ms 16092 KB Output is correct
37 Correct 65 ms 16076 KB Output is correct
38 Correct 42 ms 16068 KB Output is correct
39 Correct 894 ms 156252 KB Output is correct
40 Correct 46 ms 18516 KB Output is correct
41 Correct 60 ms 28240 KB Output is correct
42 Correct 106 ms 22752 KB Output is correct
43 Correct 92 ms 31164 KB Output is correct
44 Correct 259 ms 83280 KB Output is correct
45 Correct 285 ms 91320 KB Output is correct
46 Correct 612 ms 156432 KB Output is correct
47 Correct 833 ms 156396 KB Output is correct
48 Correct 916 ms 156268 KB Output is correct
49 Correct 599 ms 226444 KB Output is correct
50 Correct 602 ms 226404 KB Output is correct
51 Correct 912 ms 156264 KB Output is correct
52 Correct 849 ms 156272 KB Output is correct
53 Correct 911 ms 156412 KB Output is correct
54 Correct 0 ms 348 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 344 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 1 ms 452 KB Output is correct
63 Correct 1 ms 452 KB Output is correct
64 Correct 1 ms 348 KB Output is correct
65 Correct 1 ms 348 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 0 ms 348 KB Output is correct
68 Correct 1 ms 604 KB Output is correct
69 Correct 1 ms 604 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 0 ms 348 KB Output is correct
72 Correct 1 ms 348 KB Output is correct
73 Correct 0 ms 348 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 ms 348 KB Output is correct
76 Correct 1 ms 348 KB Output is correct
77 Correct 0 ms 348 KB Output is correct
78 Correct 0 ms 348 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 0 ms 456 KB Output is correct
81 Correct 0 ms 452 KB Output is correct
82 Correct 0 ms 344 KB Output is correct
83 Correct 1 ms 344 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 600 KB Output is correct
87 Correct 0 ms 348 KB Output is correct
88 Correct 0 ms 348 KB Output is correct
89 Correct 0 ms 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 1 ms 348 KB Output is correct
95 Correct 0 ms 348 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 1 ms 604 KB Output is correct
98 Correct 0 ms 348 KB Output is correct
99 Correct 1 ms 348 KB Output is correct
100 Correct 0 ms 348 KB Output is correct
101 Correct 1 ms 348 KB Output is correct
102 Correct 0 ms 348 KB Output is correct
103 Correct 0 ms 352 KB Output is correct
104 Correct 0 ms 344 KB Output is correct
105 Correct 0 ms 352 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 1 ms 348 KB Output is correct
108 Correct 1 ms 452 KB Output is correct
109 Correct 1 ms 604 KB Output is correct
110 Correct 8 ms 4360 KB Output is correct
111 Correct 15 ms 6136 KB Output is correct
112 Correct 20 ms 6496 KB Output is correct
113 Correct 12 ms 6500 KB Output is correct
114 Correct 11 ms 6496 KB Output is correct
115 Correct 12 ms 6500 KB Output is correct
116 Correct 16 ms 6752 KB Output is correct
117 Correct 13 ms 6500 KB Output is correct
118 Correct 12 ms 6488 KB Output is correct
119 Correct 41 ms 12892 KB Output is correct
120 Correct 42 ms 15964 KB Output is correct
121 Correct 50 ms 15952 KB Output is correct
122 Correct 39 ms 15884 KB Output is correct
123 Correct 38 ms 16292 KB Output is correct
124 Correct 165 ms 45728 KB Output is correct
125 Correct 596 ms 132436 KB Output is correct
126 Correct 613 ms 156268 KB Output is correct
127 Correct 620 ms 156344 KB Output is correct
128 Correct 658 ms 156240 KB Output is correct
129 Correct 667 ms 156272 KB Output is correct
130 Correct 753 ms 156964 KB Output is correct
131 Correct 808 ms 156492 KB Output is correct
132 Correct 22 ms 6488 KB Output is correct
133 Correct 1 ms 604 KB Output is correct
134 Correct 1 ms 860 KB Output is correct
135 Correct 11 ms 4440 KB Output is correct
136 Correct 15 ms 7256 KB Output is correct
137 Correct 15 ms 5980 KB Output is correct
138 Correct 19 ms 6492 KB Output is correct
139 Correct 23 ms 6488 KB Output is correct
140 Correct 21 ms 6684 KB Output is correct
141 Correct 12 ms 6488 KB Output is correct
142 Correct 11 ms 6492 KB Output is correct
143 Correct 11 ms 6692 KB Output is correct
144 Correct 23 ms 9364 KB Output is correct
145 Correct 21 ms 9308 KB Output is correct
146 Correct 19 ms 8028 KB Output is correct
147 Correct 17 ms 6748 KB Output is correct
148 Correct 16 ms 6744 KB Output is correct
149 Correct 19 ms 6744 KB Output is correct
150 Correct 16 ms 6748 KB Output is correct
151 Correct 13 ms 6488 KB Output is correct
152 Correct 12 ms 6488 KB Output is correct
153 Correct 16 ms 6716 KB Output is correct
154 Correct 66 ms 15964 KB Output is correct
155 Correct 19 ms 8028 KB Output is correct
156 Correct 40 ms 12892 KB Output is correct
157 Correct 48 ms 14928 KB Output is correct
158 Correct 40 ms 15964 KB Output is correct
159 Correct 66 ms 15960 KB Output is correct
160 Correct 60 ms 16064 KB Output is correct
161 Correct 52 ms 15952 KB Output is correct
162 Correct 38 ms 15960 KB Output is correct
163 Correct 38 ms 15964 KB Output is correct
164 Correct 60 ms 22868 KB Output is correct
165 Correct 59 ms 22860 KB Output is correct
166 Correct 68 ms 19544 KB Output is correct
167 Correct 56 ms 16160 KB Output is correct
168 Correct 56 ms 16208 KB Output is correct
169 Correct 60 ms 16152 KB Output is correct
170 Correct 49 ms 15952 KB Output is correct
171 Correct 56 ms 15856 KB Output is correct
172 Correct 65 ms 16044 KB Output is correct
173 Correct 42 ms 15956 KB Output is correct
174 Correct 52 ms 21404 KB Output is correct
175 Correct 145 ms 35408 KB Output is correct
176 Correct 268 ms 91448 KB Output is correct
177 Correct 472 ms 106544 KB Output is correct
178 Correct 483 ms 137812 KB Output is correct
179 Correct 703 ms 157700 KB Output is correct
180 Correct 837 ms 156844 KB Output is correct
181 Correct 834 ms 156652 KB Output is correct
182 Correct 1037 ms 156512 KB Output is correct
183 Correct 759 ms 157768 KB Output is correct
184 Correct 1954 ms 312028 KB Output is correct
185 Correct 609 ms 173784 KB Output is correct
186 Correct 837 ms 179896 KB Output is correct
187 Correct 981 ms 222248 KB Output is correct
188 Correct 1292 ms 312048 KB Output is correct
189 Correct 1806 ms 311796 KB Output is correct
190 Correct 1731 ms 312020 KB Output is correct
191 Correct 1348 ms 312364 KB Output is correct
192 Correct 1477 ms 311972 KB Output is correct
193 Correct 1430 ms 311972 KB Output is correct
194 Correct 1496 ms 449752 KB Output is correct
195 Correct 1218 ms 452504 KB Output is correct
196 Correct 1872 ms 314452 KB Output is correct
197 Correct 1701 ms 313448 KB Output is correct
198 Correct 1803 ms 312628 KB Output is correct
199 Execution timed out 2071 ms 312296 KB Time limit exceeded
200 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 460 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 1 ms 604 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 456 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 1 ms 348 KB Output is correct
18 Correct 1 ms 452 KB Output is correct
19 Correct 23 ms 6500 KB Output is correct
20 Correct 20 ms 7252 KB Output is correct
21 Correct 20 ms 6732 KB Output is correct
22 Correct 26 ms 6492 KB Output is correct
23 Correct 19 ms 6492 KB Output is correct
24 Correct 21 ms 9308 KB Output is correct
25 Correct 21 ms 9308 KB Output is correct
26 Correct 13 ms 6732 KB Output is correct
27 Correct 12 ms 6744 KB Output is correct
28 Correct 15 ms 6492 KB Output is correct
29 Correct 76 ms 16268 KB Output is correct
30 Correct 19 ms 8028 KB Output is correct
31 Correct 43 ms 15932 KB Output is correct
32 Correct 67 ms 16076 KB Output is correct
33 Correct 60 ms 15956 KB Output is correct
34 Correct 61 ms 23056 KB Output is correct
35 Correct 62 ms 23040 KB Output is correct
36 Correct 59 ms 16092 KB Output is correct
37 Correct 65 ms 16076 KB Output is correct
38 Correct 42 ms 16068 KB Output is correct
39 Correct 894 ms 156252 KB Output is correct
40 Correct 46 ms 18516 KB Output is correct
41 Correct 60 ms 28240 KB Output is correct
42 Correct 106 ms 22752 KB Output is correct
43 Correct 92 ms 31164 KB Output is correct
44 Correct 259 ms 83280 KB Output is correct
45 Correct 285 ms 91320 KB Output is correct
46 Correct 612 ms 156432 KB Output is correct
47 Correct 833 ms 156396 KB Output is correct
48 Correct 916 ms 156268 KB Output is correct
49 Correct 599 ms 226444 KB Output is correct
50 Correct 602 ms 226404 KB Output is correct
51 Correct 912 ms 156264 KB Output is correct
52 Correct 849 ms 156272 KB Output is correct
53 Correct 911 ms 156412 KB Output is correct
54 Correct 0 ms 348 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 344 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 1 ms 452 KB Output is correct
63 Correct 1 ms 452 KB Output is correct
64 Correct 1 ms 348 KB Output is correct
65 Correct 1 ms 348 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 0 ms 348 KB Output is correct
68 Correct 1 ms 604 KB Output is correct
69 Correct 1 ms 604 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 0 ms 348 KB Output is correct
72 Correct 1 ms 348 KB Output is correct
73 Correct 0 ms 348 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 ms 348 KB Output is correct
76 Correct 1 ms 348 KB Output is correct
77 Correct 0 ms 348 KB Output is correct
78 Correct 0 ms 348 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 0 ms 456 KB Output is correct
81 Correct 0 ms 452 KB Output is correct
82 Correct 0 ms 344 KB Output is correct
83 Correct 1 ms 344 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 600 KB Output is correct
87 Correct 0 ms 348 KB Output is correct
88 Correct 0 ms 348 KB Output is correct
89 Correct 0 ms 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 1 ms 348 KB Output is correct
95 Correct 0 ms 348 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 1 ms 604 KB Output is correct
98 Correct 0 ms 348 KB Output is correct
99 Correct 1 ms 348 KB Output is correct
100 Correct 0 ms 348 KB Output is correct
101 Correct 1 ms 348 KB Output is correct
102 Correct 0 ms 348 KB Output is correct
103 Correct 0 ms 352 KB Output is correct
104 Correct 0 ms 344 KB Output is correct
105 Correct 0 ms 352 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 1 ms 348 KB Output is correct
108 Correct 1 ms 452 KB Output is correct
109 Correct 1 ms 604 KB Output is correct
110 Correct 8 ms 4360 KB Output is correct
111 Correct 15 ms 6136 KB Output is correct
112 Correct 20 ms 6496 KB Output is correct
113 Correct 12 ms 6500 KB Output is correct
114 Correct 11 ms 6496 KB Output is correct
115 Correct 12 ms 6500 KB Output is correct
116 Correct 16 ms 6752 KB Output is correct
117 Correct 13 ms 6500 KB Output is correct
118 Correct 12 ms 6488 KB Output is correct
119 Correct 41 ms 12892 KB Output is correct
120 Correct 42 ms 15964 KB Output is correct
121 Correct 50 ms 15952 KB Output is correct
122 Correct 39 ms 15884 KB Output is correct
123 Correct 38 ms 16292 KB Output is correct
124 Correct 165 ms 45728 KB Output is correct
125 Correct 596 ms 132436 KB Output is correct
126 Correct 613 ms 156268 KB Output is correct
127 Correct 620 ms 156344 KB Output is correct
128 Correct 658 ms 156240 KB Output is correct
129 Correct 667 ms 156272 KB Output is correct
130 Correct 753 ms 156964 KB Output is correct
131 Correct 808 ms 156492 KB Output is correct
132 Correct 22 ms 6488 KB Output is correct
133 Correct 1 ms 604 KB Output is correct
134 Correct 1 ms 860 KB Output is correct
135 Correct 11 ms 4440 KB Output is correct
136 Correct 15 ms 7256 KB Output is correct
137 Correct 15 ms 5980 KB Output is correct
138 Correct 19 ms 6492 KB Output is correct
139 Correct 23 ms 6488 KB Output is correct
140 Correct 21 ms 6684 KB Output is correct
141 Correct 12 ms 6488 KB Output is correct
142 Correct 11 ms 6492 KB Output is correct
143 Correct 11 ms 6692 KB Output is correct
144 Correct 23 ms 9364 KB Output is correct
145 Correct 21 ms 9308 KB Output is correct
146 Correct 19 ms 8028 KB Output is correct
147 Correct 17 ms 6748 KB Output is correct
148 Correct 16 ms 6744 KB Output is correct
149 Correct 19 ms 6744 KB Output is correct
150 Correct 16 ms 6748 KB Output is correct
151 Correct 13 ms 6488 KB Output is correct
152 Correct 12 ms 6488 KB Output is correct
153 Correct 16 ms 6716 KB Output is correct
154 Correct 66 ms 15964 KB Output is correct
155 Correct 19 ms 8028 KB Output is correct
156 Correct 40 ms 12892 KB Output is correct
157 Correct 48 ms 14928 KB Output is correct
158 Correct 40 ms 15964 KB Output is correct
159 Correct 66 ms 15960 KB Output is correct
160 Correct 60 ms 16064 KB Output is correct
161 Correct 52 ms 15952 KB Output is correct
162 Correct 38 ms 15960 KB Output is correct
163 Correct 38 ms 15964 KB Output is correct
164 Correct 60 ms 22868 KB Output is correct
165 Correct 59 ms 22860 KB Output is correct
166 Correct 68 ms 19544 KB Output is correct
167 Correct 56 ms 16160 KB Output is correct
168 Correct 56 ms 16208 KB Output is correct
169 Correct 60 ms 16152 KB Output is correct
170 Correct 49 ms 15952 KB Output is correct
171 Correct 56 ms 15856 KB Output is correct
172 Correct 65 ms 16044 KB Output is correct
173 Correct 42 ms 15956 KB Output is correct
174 Correct 52 ms 21404 KB Output is correct
175 Correct 145 ms 35408 KB Output is correct
176 Correct 268 ms 91448 KB Output is correct
177 Correct 472 ms 106544 KB Output is correct
178 Correct 483 ms 137812 KB Output is correct
179 Correct 703 ms 157700 KB Output is correct
180 Correct 837 ms 156844 KB Output is correct
181 Correct 834 ms 156652 KB Output is correct
182 Correct 1037 ms 156512 KB Output is correct
183 Correct 759 ms 157768 KB Output is correct
184 Correct 1954 ms 312028 KB Output is correct
185 Correct 609 ms 173784 KB Output is correct
186 Correct 837 ms 179896 KB Output is correct
187 Correct 981 ms 222248 KB Output is correct
188 Correct 1292 ms 312048 KB Output is correct
189 Correct 1806 ms 311796 KB Output is correct
190 Correct 1731 ms 312020 KB Output is correct
191 Correct 1348 ms 312364 KB Output is correct
192 Correct 1477 ms 311972 KB Output is correct
193 Correct 1430 ms 311972 KB Output is correct
194 Correct 1496 ms 449752 KB Output is correct
195 Correct 1218 ms 452504 KB Output is correct
196 Correct 1872 ms 314452 KB Output is correct
197 Correct 1701 ms 313448 KB Output is correct
198 Correct 1803 ms 312628 KB Output is correct
199 Execution timed out 2071 ms 312296 KB Time limit exceeded
200 Halted 0 ms 0 KB -