Submission #924188

# Submission time Handle Problem Language Result Execution time Memory
924188 2024-02-08T16:00:31 Z ErJ Maze (JOI23_ho_t3) C++17
100 / 100
776 ms 340772 KB
#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define vi vector<ll>
#define vvi vector<vector<ll>>
#define vs vector<string>
#define vc vector<char>
#define vb vector<bool>
#define vp vector<pair<ll, ll>>
#define pp pair<ll, ll>
#define qi queue<ll>
#define qp queue<pp>
#define pqi priority_queue<ll>
#define pqp priority_queue<pp>
#define mi map<ll, ll>
#define mpi map<pp, ll>
#define mip map<ll, pp>
#define mpp map<pp, pp>
#define mb map<ll, bool>
#define si set<ll>
#define sp set<pp>
#define mod 1000000007
#define rep(a, b) for(int a = 0; a < (b); a++)
#define inf 100000000111111111


int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    int r, s, n;
    qi q;
    cin >> r >> s >> n;
    int startr, starts, endr, ends;
    cin >> startr >> starts >> endr >> ends;
    startr--; starts--; ends--; endr--;
    vvi table(r), dist(r), distbfs(r);
    rep(i, r) {
        table[i].resize(s);
        dist[i].resize(s);
        distbfs[i].resize(s);
        rep(j, s) {
            char ch;
            cin >> ch;
            if (ch == '.') {
                table[i][j] = 0;
            }
            else {
                table[i][j] = -1;
            }
            dist[i][j] = inf;
            distbfs[i][j] = 0;
        }
    }
    vp sousedi = { {0, 1}, {0, -1}, {1, 0}, {-1, 0} };
    vp sousedi2 = { {0, 1}, {0, -1}, {1, 0}, {-1, 0}, {1, 1}, {-1, -1}, {1, -1}, {-1, 1} };
    vp prevdist;
    qp q1;
    q1.push({startr, starts});
    
    while (!q1.empty()) {
        pp x = q1.front();
        q1.pop();
        dist[x.first][x.second] = 0;
        prevdist.push_back(x);
        for (pp i : sousedi) {
            ll a = x.first + i.first;
            ll b = x.second + i.second;
            if (a < r && a >= 0 && b < s && b >= 0) {
                if (table[a][b] == 0 && dist[a][b] == inf) {
                    q1.push({ a, b });
                    dist[a][b] = 0;
                }
            }
        }
    }
    ll pomoc = 0;
    while (dist[endr][ends] == inf) {
        /*rep(i, r) {
            rep(j, s) {
                cout << dist[i][j] << " ";
            }
            cout << endl;
        }*/
        pomoc++;
        qp q2;
        for (int i = 0; i < prevdist.size(); i++) {
            for (pp j : sousedi) {
                ll a = prevdist[i].first + j.first;
                ll b = prevdist[i].second + j.second;
                if (a < r && a >= 0 && b < s && b >= 0) {
                    if (dist[a][b] == inf && distbfs[a][b] != n) {
                        q2.push({ a, b });
                        distbfs[a][b] = n;
                    }
                }
            }
        }
        /*rep(i, r) {
            rep(j, s) {
                cout << distbfs[i][j] << " ";
            }
            cout << endl;
        }*/
        //cout << endl;
        prevdist.clear();
        while (!q2.empty()) {
            pp x = q2.front();
            prevdist.push_back(x);
            q2.pop();
            dist[x.first][x.second] = pomoc;
            if (distbfs[x.first][x.second] <= 1) {
                continue;
            }
            ll xd = distbfs[x.first][x.second];
            for (pp i : sousedi2) {
                ll a = x.first + i.first;
                ll b = x.second + i.second;
                if (a < r && a >= 0 && b < s && b >= 0) {
                    if (dist[a][b] == inf && distbfs[a][b] == 0) {
                        dist[a][b] = pomoc;
                        q2.push({ a, b });
                        distbfs[a][b] = xd - 1;
                    }
                }
            }
        }
        qp q3;
        rep(i, prevdist.size()) {
            q3.push(prevdist[i]);
        }
        while (!q3.empty()) {
            pp x = q3.front();
            q3.pop();
            for (pp i : sousedi) {
                ll a = x.first + i.first;
                ll b = x.second + i.second;
                if (a < r && a >= 0 && b < s && b >= 0) {
                    if (dist[a][b] == inf && table[a][b] == 0) {
                        q3.push({ a, b });
                        dist[a][b] = pomoc;
                        prevdist.push_back({ a, b });
                    }
                }
            }
        }
    }
    cout << dist[endr][ends] << endl;
}

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:87:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   87 |         for (int i = 0; i < prevdist.size(); i++) {
      |                         ~~^~~~~~~~~~~~~~~~~
Main.cpp:24:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 | #define rep(a, b) for(int a = 0; a < (b); a++)
      |                                    ^
Main.cpp:129:9: note: in expansion of macro 'rep'
  129 |         rep(i, prevdist.size()) {
      |         ^~~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 448 KB Output is correct
2 Correct 1 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 0 ms 456 KB Output is correct
6 Correct 1 ms 452 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 452 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 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 600 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 4 ms 1884 KB Output is correct
20 Correct 4 ms 1372 KB Output is correct
21 Correct 3 ms 3004 KB Output is correct
22 Correct 5 ms 1880 KB Output is correct
23 Correct 4 ms 1884 KB Output is correct
24 Correct 3 ms 1880 KB Output is correct
25 Correct 8 ms 1884 KB Output is correct
26 Correct 2 ms 2140 KB Output is correct
27 Correct 2 ms 1884 KB Output is correct
28 Correct 3 ms 1884 KB Output is correct
29 Correct 12 ms 4176 KB Output is correct
30 Correct 4 ms 1884 KB Output is correct
31 Correct 9 ms 9208 KB Output is correct
32 Correct 14 ms 4188 KB Output is correct
33 Correct 10 ms 4188 KB Output is correct
34 Correct 7 ms 3932 KB Output is correct
35 Correct 14 ms 3932 KB Output is correct
36 Correct 9 ms 4444 KB Output is correct
37 Correct 11 ms 4188 KB Output is correct
38 Correct 6 ms 4188 KB Output is correct
39 Correct 153 ms 37304 KB Output is correct
40 Correct 6 ms 4444 KB Output is correct
41 Correct 6 ms 4956 KB Output is correct
42 Correct 20 ms 5724 KB Output is correct
43 Correct 20 ms 6236 KB Output is correct
44 Correct 29 ms 18520 KB Output is correct
45 Correct 35 ms 20060 KB Output is correct
46 Correct 115 ms 71212 KB Output is correct
47 Correct 144 ms 36084 KB Output is correct
48 Correct 157 ms 35820 KB Output is correct
49 Correct 45 ms 35676 KB Output is correct
50 Correct 84 ms 35700 KB Output is correct
51 Correct 134 ms 37200 KB Output is correct
52 Correct 113 ms 36328 KB Output is correct
53 Correct 163 ms 35976 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 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 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 0 ms 348 KB Output is correct
10 Correct 0 ms 348 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 1 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 344 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 344 KB Output is correct
21 Correct 0 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 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 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 0 ms 388 KB Output is correct
32 Correct 1 ms 348 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 1 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 360 KB Output is correct
8 Correct 0 ms 360 KB Output is correct
9 Correct 1 ms 360 KB Output is correct
10 Correct 0 ms 500 KB Output is correct
11 Correct 0 ms 360 KB Output is correct
12 Correct 0 ms 360 KB Output is correct
13 Correct 0 ms 360 KB Output is correct
14 Correct 0 ms 360 KB Output is correct
15 Correct 0 ms 360 KB Output is correct
16 Correct 0 ms 360 KB Output is correct
17 Correct 1 ms 360 KB Output is correct
18 Correct 0 ms 360 KB Output is correct
19 Correct 1 ms 360 KB Output is correct
20 Correct 0 ms 360 KB Output is correct
21 Correct 0 ms 360 KB Output is correct
22 Correct 0 ms 360 KB Output is correct
23 Correct 0 ms 360 KB Output is correct
24 Correct 0 ms 360 KB Output is correct
25 Correct 1 ms 1384 KB Output is correct
26 Correct 4 ms 2788 KB Output is correct
27 Correct 6 ms 3048 KB Output is correct
28 Correct 4 ms 3048 KB Output is correct
29 Correct 5 ms 3816 KB Output is correct
30 Correct 5 ms 3812 KB Output is correct
31 Correct 3 ms 1884 KB Output is correct
32 Correct 3 ms 1880 KB Output is correct
33 Correct 2 ms 1884 KB Output is correct
34 Correct 8 ms 5256 KB Output is correct
35 Correct 9 ms 9944 KB Output is correct
36 Correct 11 ms 9632 KB Output is correct
37 Correct 15 ms 10196 KB Output is correct
38 Correct 12 ms 9396 KB Output is correct
39 Correct 26 ms 19052 KB Output is correct
40 Correct 72 ms 46780 KB Output is correct
41 Correct 122 ms 70188 KB Output is correct
42 Correct 97 ms 69556 KB Output is correct
43 Correct 132 ms 84224 KB Output is correct
44 Correct 138 ms 85856 KB Output is correct
45 Correct 82 ms 52776 KB Output is correct
46 Correct 82 ms 54148 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 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 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 0 ms 348 KB Output is correct
10 Correct 0 ms 348 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 1 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 344 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 344 KB Output is correct
21 Correct 0 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 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 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 0 ms 388 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
33 Correct 4 ms 1884 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 1 ms 600 KB Output is correct
36 Correct 2 ms 1372 KB Output is correct
37 Correct 4 ms 1372 KB Output is correct
38 Correct 4 ms 2776 KB Output is correct
39 Correct 4 ms 3036 KB Output is correct
40 Correct 5 ms 1884 KB Output is correct
41 Correct 5 ms 1884 KB Output is correct
42 Correct 4 ms 3036 KB Output is correct
43 Correct 6 ms 3628 KB Output is correct
44 Correct 5 ms 3796 KB Output is correct
45 Correct 3 ms 1884 KB Output is correct
46 Correct 5 ms 1884 KB Output is correct
47 Correct 4 ms 1880 KB Output is correct
48 Correct 4 ms 1884 KB Output is correct
49 Correct 4 ms 1884 KB Output is correct
50 Correct 4 ms 1940 KB Output is correct
51 Correct 3 ms 1884 KB Output is correct
52 Correct 2 ms 1884 KB Output is correct
53 Correct 2 ms 1824 KB Output is correct
54 Correct 3 ms 1944 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 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 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 0 ms 348 KB Output is correct
10 Correct 0 ms 348 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 1 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 344 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 344 KB Output is correct
21 Correct 0 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 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 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 0 ms 388 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
33 Correct 4 ms 1884 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 1 ms 600 KB Output is correct
36 Correct 2 ms 1372 KB Output is correct
37 Correct 4 ms 1372 KB Output is correct
38 Correct 4 ms 2776 KB Output is correct
39 Correct 4 ms 3036 KB Output is correct
40 Correct 5 ms 1884 KB Output is correct
41 Correct 5 ms 1884 KB Output is correct
42 Correct 4 ms 3036 KB Output is correct
43 Correct 6 ms 3628 KB Output is correct
44 Correct 5 ms 3796 KB Output is correct
45 Correct 3 ms 1884 KB Output is correct
46 Correct 5 ms 1884 KB Output is correct
47 Correct 4 ms 1880 KB Output is correct
48 Correct 4 ms 1884 KB Output is correct
49 Correct 4 ms 1884 KB Output is correct
50 Correct 4 ms 1940 KB Output is correct
51 Correct 3 ms 1884 KB Output is correct
52 Correct 2 ms 1884 KB Output is correct
53 Correct 2 ms 1824 KB Output is correct
54 Correct 3 ms 1944 KB Output is correct
55 Correct 11 ms 3932 KB Output is correct
56 Correct 4 ms 1880 KB Output is correct
57 Correct 7 ms 5324 KB Output is correct
58 Correct 11 ms 3672 KB Output is correct
59 Correct 9 ms 9176 KB Output is correct
60 Correct 13 ms 4132 KB Output is correct
61 Correct 11 ms 4028 KB Output is correct
62 Correct 10 ms 9432 KB Output is correct
63 Correct 16 ms 8788 KB Output is correct
64 Correct 12 ms 8800 KB Output is correct
65 Correct 7 ms 3992 KB Output is correct
66 Correct 15 ms 3996 KB Output is correct
67 Correct 11 ms 4184 KB Output is correct
68 Correct 10 ms 4184 KB Output is correct
69 Correct 12 ms 3932 KB Output is correct
70 Correct 10 ms 4224 KB Output is correct
71 Correct 10 ms 4312 KB Output is correct
72 Correct 12 ms 4332 KB Output is correct
73 Correct 13 ms 4188 KB Output is correct
74 Correct 4 ms 3932 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 448 KB Output is correct
2 Correct 1 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 0 ms 456 KB Output is correct
6 Correct 1 ms 452 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 452 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 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 600 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 4 ms 1884 KB Output is correct
20 Correct 4 ms 1372 KB Output is correct
21 Correct 3 ms 3004 KB Output is correct
22 Correct 5 ms 1880 KB Output is correct
23 Correct 4 ms 1884 KB Output is correct
24 Correct 3 ms 1880 KB Output is correct
25 Correct 8 ms 1884 KB Output is correct
26 Correct 2 ms 2140 KB Output is correct
27 Correct 2 ms 1884 KB Output is correct
28 Correct 3 ms 1884 KB Output is correct
29 Correct 12 ms 4176 KB Output is correct
30 Correct 4 ms 1884 KB Output is correct
31 Correct 9 ms 9208 KB Output is correct
32 Correct 14 ms 4188 KB Output is correct
33 Correct 10 ms 4188 KB Output is correct
34 Correct 7 ms 3932 KB Output is correct
35 Correct 14 ms 3932 KB Output is correct
36 Correct 9 ms 4444 KB Output is correct
37 Correct 11 ms 4188 KB Output is correct
38 Correct 6 ms 4188 KB Output is correct
39 Correct 153 ms 37304 KB Output is correct
40 Correct 6 ms 4444 KB Output is correct
41 Correct 6 ms 4956 KB Output is correct
42 Correct 20 ms 5724 KB Output is correct
43 Correct 20 ms 6236 KB Output is correct
44 Correct 29 ms 18520 KB Output is correct
45 Correct 35 ms 20060 KB Output is correct
46 Correct 115 ms 71212 KB Output is correct
47 Correct 144 ms 36084 KB Output is correct
48 Correct 157 ms 35820 KB Output is correct
49 Correct 45 ms 35676 KB Output is correct
50 Correct 84 ms 35700 KB Output is correct
51 Correct 134 ms 37200 KB Output is correct
52 Correct 113 ms 36328 KB Output is correct
53 Correct 163 ms 35976 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 0 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 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 0 ms 348 KB Output is correct
63 Correct 0 ms 348 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 1 ms 348 KB Output is correct
68 Correct 1 ms 348 KB Output is correct
69 Correct 1 ms 348 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 0 ms 344 KB Output is correct
72 Correct 0 ms 348 KB Output is correct
73 Correct 0 ms 344 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 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 0 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 0 ms 388 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 0 ms 348 KB Output is correct
87 Correct 1 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 1 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 1 ms 360 KB Output is correct
93 Correct 0 ms 360 KB Output is correct
94 Correct 1 ms 360 KB Output is correct
95 Correct 0 ms 500 KB Output is correct
96 Correct 0 ms 360 KB Output is correct
97 Correct 0 ms 360 KB Output is correct
98 Correct 0 ms 360 KB Output is correct
99 Correct 0 ms 360 KB Output is correct
100 Correct 0 ms 360 KB Output is correct
101 Correct 0 ms 360 KB Output is correct
102 Correct 1 ms 360 KB Output is correct
103 Correct 0 ms 360 KB Output is correct
104 Correct 1 ms 360 KB Output is correct
105 Correct 0 ms 360 KB Output is correct
106 Correct 0 ms 360 KB Output is correct
107 Correct 0 ms 360 KB Output is correct
108 Correct 0 ms 360 KB Output is correct
109 Correct 0 ms 360 KB Output is correct
110 Correct 1 ms 1384 KB Output is correct
111 Correct 4 ms 2788 KB Output is correct
112 Correct 6 ms 3048 KB Output is correct
113 Correct 4 ms 3048 KB Output is correct
114 Correct 5 ms 3816 KB Output is correct
115 Correct 5 ms 3812 KB Output is correct
116 Correct 3 ms 1884 KB Output is correct
117 Correct 3 ms 1880 KB Output is correct
118 Correct 2 ms 1884 KB Output is correct
119 Correct 8 ms 5256 KB Output is correct
120 Correct 9 ms 9944 KB Output is correct
121 Correct 11 ms 9632 KB Output is correct
122 Correct 15 ms 10196 KB Output is correct
123 Correct 12 ms 9396 KB Output is correct
124 Correct 26 ms 19052 KB Output is correct
125 Correct 72 ms 46780 KB Output is correct
126 Correct 122 ms 70188 KB Output is correct
127 Correct 97 ms 69556 KB Output is correct
128 Correct 132 ms 84224 KB Output is correct
129 Correct 138 ms 85856 KB Output is correct
130 Correct 82 ms 52776 KB Output is correct
131 Correct 82 ms 54148 KB Output is correct
132 Correct 4 ms 1884 KB Output is correct
133 Correct 0 ms 348 KB Output is correct
134 Correct 1 ms 600 KB Output is correct
135 Correct 2 ms 1372 KB Output is correct
136 Correct 4 ms 1372 KB Output is correct
137 Correct 4 ms 2776 KB Output is correct
138 Correct 4 ms 3036 KB Output is correct
139 Correct 5 ms 1884 KB Output is correct
140 Correct 5 ms 1884 KB Output is correct
141 Correct 4 ms 3036 KB Output is correct
142 Correct 6 ms 3628 KB Output is correct
143 Correct 5 ms 3796 KB Output is correct
144 Correct 3 ms 1884 KB Output is correct
145 Correct 5 ms 1884 KB Output is correct
146 Correct 4 ms 1880 KB Output is correct
147 Correct 4 ms 1884 KB Output is correct
148 Correct 4 ms 1884 KB Output is correct
149 Correct 4 ms 1940 KB Output is correct
150 Correct 3 ms 1884 KB Output is correct
151 Correct 2 ms 1884 KB Output is correct
152 Correct 2 ms 1824 KB Output is correct
153 Correct 3 ms 1944 KB Output is correct
154 Correct 11 ms 3932 KB Output is correct
155 Correct 4 ms 1880 KB Output is correct
156 Correct 7 ms 5324 KB Output is correct
157 Correct 11 ms 3672 KB Output is correct
158 Correct 9 ms 9176 KB Output is correct
159 Correct 13 ms 4132 KB Output is correct
160 Correct 11 ms 4028 KB Output is correct
161 Correct 10 ms 9432 KB Output is correct
162 Correct 16 ms 8788 KB Output is correct
163 Correct 12 ms 8800 KB Output is correct
164 Correct 7 ms 3992 KB Output is correct
165 Correct 15 ms 3996 KB Output is correct
166 Correct 11 ms 4184 KB Output is correct
167 Correct 10 ms 4184 KB Output is correct
168 Correct 12 ms 3932 KB Output is correct
169 Correct 10 ms 4224 KB Output is correct
170 Correct 10 ms 4312 KB Output is correct
171 Correct 12 ms 4332 KB Output is correct
172 Correct 13 ms 4188 KB Output is correct
173 Correct 4 ms 3932 KB Output is correct
174 Correct 8 ms 4956 KB Output is correct
175 Correct 25 ms 8444 KB Output is correct
176 Correct 31 ms 18256 KB Output is correct
177 Correct 65 ms 24288 KB Output is correct
178 Correct 32 ms 31572 KB Output is correct
179 Correct 80 ms 36180 KB Output is correct
180 Correct 121 ms 36344 KB Output is correct
181 Correct 116 ms 36640 KB Output is correct
182 Correct 120 ms 37764 KB Output is correct
183 Correct 142 ms 42636 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 448 KB Output is correct
2 Correct 1 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 0 ms 456 KB Output is correct
6 Correct 1 ms 452 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 452 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 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 600 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 4 ms 1884 KB Output is correct
20 Correct 4 ms 1372 KB Output is correct
21 Correct 3 ms 3004 KB Output is correct
22 Correct 5 ms 1880 KB Output is correct
23 Correct 4 ms 1884 KB Output is correct
24 Correct 3 ms 1880 KB Output is correct
25 Correct 8 ms 1884 KB Output is correct
26 Correct 2 ms 2140 KB Output is correct
27 Correct 2 ms 1884 KB Output is correct
28 Correct 3 ms 1884 KB Output is correct
29 Correct 12 ms 4176 KB Output is correct
30 Correct 4 ms 1884 KB Output is correct
31 Correct 9 ms 9208 KB Output is correct
32 Correct 14 ms 4188 KB Output is correct
33 Correct 10 ms 4188 KB Output is correct
34 Correct 7 ms 3932 KB Output is correct
35 Correct 14 ms 3932 KB Output is correct
36 Correct 9 ms 4444 KB Output is correct
37 Correct 11 ms 4188 KB Output is correct
38 Correct 6 ms 4188 KB Output is correct
39 Correct 153 ms 37304 KB Output is correct
40 Correct 6 ms 4444 KB Output is correct
41 Correct 6 ms 4956 KB Output is correct
42 Correct 20 ms 5724 KB Output is correct
43 Correct 20 ms 6236 KB Output is correct
44 Correct 29 ms 18520 KB Output is correct
45 Correct 35 ms 20060 KB Output is correct
46 Correct 115 ms 71212 KB Output is correct
47 Correct 144 ms 36084 KB Output is correct
48 Correct 157 ms 35820 KB Output is correct
49 Correct 45 ms 35676 KB Output is correct
50 Correct 84 ms 35700 KB Output is correct
51 Correct 134 ms 37200 KB Output is correct
52 Correct 113 ms 36328 KB Output is correct
53 Correct 163 ms 35976 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 0 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 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 0 ms 348 KB Output is correct
63 Correct 0 ms 348 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 1 ms 348 KB Output is correct
68 Correct 1 ms 348 KB Output is correct
69 Correct 1 ms 348 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 0 ms 344 KB Output is correct
72 Correct 0 ms 348 KB Output is correct
73 Correct 0 ms 344 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 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 0 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 0 ms 388 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 0 ms 348 KB Output is correct
87 Correct 1 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 1 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 1 ms 360 KB Output is correct
93 Correct 0 ms 360 KB Output is correct
94 Correct 1 ms 360 KB Output is correct
95 Correct 0 ms 500 KB Output is correct
96 Correct 0 ms 360 KB Output is correct
97 Correct 0 ms 360 KB Output is correct
98 Correct 0 ms 360 KB Output is correct
99 Correct 0 ms 360 KB Output is correct
100 Correct 0 ms 360 KB Output is correct
101 Correct 0 ms 360 KB Output is correct
102 Correct 1 ms 360 KB Output is correct
103 Correct 0 ms 360 KB Output is correct
104 Correct 1 ms 360 KB Output is correct
105 Correct 0 ms 360 KB Output is correct
106 Correct 0 ms 360 KB Output is correct
107 Correct 0 ms 360 KB Output is correct
108 Correct 0 ms 360 KB Output is correct
109 Correct 0 ms 360 KB Output is correct
110 Correct 1 ms 1384 KB Output is correct
111 Correct 4 ms 2788 KB Output is correct
112 Correct 6 ms 3048 KB Output is correct
113 Correct 4 ms 3048 KB Output is correct
114 Correct 5 ms 3816 KB Output is correct
115 Correct 5 ms 3812 KB Output is correct
116 Correct 3 ms 1884 KB Output is correct
117 Correct 3 ms 1880 KB Output is correct
118 Correct 2 ms 1884 KB Output is correct
119 Correct 8 ms 5256 KB Output is correct
120 Correct 9 ms 9944 KB Output is correct
121 Correct 11 ms 9632 KB Output is correct
122 Correct 15 ms 10196 KB Output is correct
123 Correct 12 ms 9396 KB Output is correct
124 Correct 26 ms 19052 KB Output is correct
125 Correct 72 ms 46780 KB Output is correct
126 Correct 122 ms 70188 KB Output is correct
127 Correct 97 ms 69556 KB Output is correct
128 Correct 132 ms 84224 KB Output is correct
129 Correct 138 ms 85856 KB Output is correct
130 Correct 82 ms 52776 KB Output is correct
131 Correct 82 ms 54148 KB Output is correct
132 Correct 4 ms 1884 KB Output is correct
133 Correct 0 ms 348 KB Output is correct
134 Correct 1 ms 600 KB Output is correct
135 Correct 2 ms 1372 KB Output is correct
136 Correct 4 ms 1372 KB Output is correct
137 Correct 4 ms 2776 KB Output is correct
138 Correct 4 ms 3036 KB Output is correct
139 Correct 5 ms 1884 KB Output is correct
140 Correct 5 ms 1884 KB Output is correct
141 Correct 4 ms 3036 KB Output is correct
142 Correct 6 ms 3628 KB Output is correct
143 Correct 5 ms 3796 KB Output is correct
144 Correct 3 ms 1884 KB Output is correct
145 Correct 5 ms 1884 KB Output is correct
146 Correct 4 ms 1880 KB Output is correct
147 Correct 4 ms 1884 KB Output is correct
148 Correct 4 ms 1884 KB Output is correct
149 Correct 4 ms 1940 KB Output is correct
150 Correct 3 ms 1884 KB Output is correct
151 Correct 2 ms 1884 KB Output is correct
152 Correct 2 ms 1824 KB Output is correct
153 Correct 3 ms 1944 KB Output is correct
154 Correct 11 ms 3932 KB Output is correct
155 Correct 4 ms 1880 KB Output is correct
156 Correct 7 ms 5324 KB Output is correct
157 Correct 11 ms 3672 KB Output is correct
158 Correct 9 ms 9176 KB Output is correct
159 Correct 13 ms 4132 KB Output is correct
160 Correct 11 ms 4028 KB Output is correct
161 Correct 10 ms 9432 KB Output is correct
162 Correct 16 ms 8788 KB Output is correct
163 Correct 12 ms 8800 KB Output is correct
164 Correct 7 ms 3992 KB Output is correct
165 Correct 15 ms 3996 KB Output is correct
166 Correct 11 ms 4184 KB Output is correct
167 Correct 10 ms 4184 KB Output is correct
168 Correct 12 ms 3932 KB Output is correct
169 Correct 10 ms 4224 KB Output is correct
170 Correct 10 ms 4312 KB Output is correct
171 Correct 12 ms 4332 KB Output is correct
172 Correct 13 ms 4188 KB Output is correct
173 Correct 4 ms 3932 KB Output is correct
174 Correct 8 ms 4956 KB Output is correct
175 Correct 25 ms 8444 KB Output is correct
176 Correct 31 ms 18256 KB Output is correct
177 Correct 65 ms 24288 KB Output is correct
178 Correct 32 ms 31572 KB Output is correct
179 Correct 80 ms 36180 KB Output is correct
180 Correct 121 ms 36344 KB Output is correct
181 Correct 116 ms 36640 KB Output is correct
182 Correct 120 ms 37764 KB Output is correct
183 Correct 142 ms 42636 KB Output is correct
184 Correct 394 ms 71196 KB Output is correct
185 Correct 58 ms 40752 KB Output is correct
186 Correct 106 ms 77160 KB Output is correct
187 Correct 66 ms 55800 KB Output is correct
188 Correct 200 ms 141692 KB Output is correct
189 Correct 300 ms 74388 KB Output is correct
190 Correct 160 ms 73948 KB Output is correct
191 Correct 203 ms 140300 KB Output is correct
192 Correct 291 ms 170536 KB Output is correct
193 Correct 314 ms 170964 KB Output is correct
194 Correct 128 ms 73900 KB Output is correct
195 Correct 176 ms 73848 KB Output is correct
196 Correct 211 ms 74232 KB Output is correct
197 Correct 158 ms 75432 KB Output is correct
198 Correct 153 ms 75732 KB Output is correct
199 Correct 220 ms 77252 KB Output is correct
200 Correct 168 ms 76484 KB Output is correct
201 Correct 253 ms 75264 KB Output is correct
202 Correct 381 ms 74340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 448 KB Output is correct
2 Correct 1 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 0 ms 456 KB Output is correct
6 Correct 1 ms 452 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 452 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 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 600 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 4 ms 1884 KB Output is correct
20 Correct 4 ms 1372 KB Output is correct
21 Correct 3 ms 3004 KB Output is correct
22 Correct 5 ms 1880 KB Output is correct
23 Correct 4 ms 1884 KB Output is correct
24 Correct 3 ms 1880 KB Output is correct
25 Correct 8 ms 1884 KB Output is correct
26 Correct 2 ms 2140 KB Output is correct
27 Correct 2 ms 1884 KB Output is correct
28 Correct 3 ms 1884 KB Output is correct
29 Correct 12 ms 4176 KB Output is correct
30 Correct 4 ms 1884 KB Output is correct
31 Correct 9 ms 9208 KB Output is correct
32 Correct 14 ms 4188 KB Output is correct
33 Correct 10 ms 4188 KB Output is correct
34 Correct 7 ms 3932 KB Output is correct
35 Correct 14 ms 3932 KB Output is correct
36 Correct 9 ms 4444 KB Output is correct
37 Correct 11 ms 4188 KB Output is correct
38 Correct 6 ms 4188 KB Output is correct
39 Correct 153 ms 37304 KB Output is correct
40 Correct 6 ms 4444 KB Output is correct
41 Correct 6 ms 4956 KB Output is correct
42 Correct 20 ms 5724 KB Output is correct
43 Correct 20 ms 6236 KB Output is correct
44 Correct 29 ms 18520 KB Output is correct
45 Correct 35 ms 20060 KB Output is correct
46 Correct 115 ms 71212 KB Output is correct
47 Correct 144 ms 36084 KB Output is correct
48 Correct 157 ms 35820 KB Output is correct
49 Correct 45 ms 35676 KB Output is correct
50 Correct 84 ms 35700 KB Output is correct
51 Correct 134 ms 37200 KB Output is correct
52 Correct 113 ms 36328 KB Output is correct
53 Correct 163 ms 35976 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 0 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 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 0 ms 348 KB Output is correct
63 Correct 0 ms 348 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 1 ms 348 KB Output is correct
68 Correct 1 ms 348 KB Output is correct
69 Correct 1 ms 348 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 0 ms 344 KB Output is correct
72 Correct 0 ms 348 KB Output is correct
73 Correct 0 ms 344 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 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 0 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 0 ms 388 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 0 ms 348 KB Output is correct
87 Correct 1 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 1 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 1 ms 360 KB Output is correct
93 Correct 0 ms 360 KB Output is correct
94 Correct 1 ms 360 KB Output is correct
95 Correct 0 ms 500 KB Output is correct
96 Correct 0 ms 360 KB Output is correct
97 Correct 0 ms 360 KB Output is correct
98 Correct 0 ms 360 KB Output is correct
99 Correct 0 ms 360 KB Output is correct
100 Correct 0 ms 360 KB Output is correct
101 Correct 0 ms 360 KB Output is correct
102 Correct 1 ms 360 KB Output is correct
103 Correct 0 ms 360 KB Output is correct
104 Correct 1 ms 360 KB Output is correct
105 Correct 0 ms 360 KB Output is correct
106 Correct 0 ms 360 KB Output is correct
107 Correct 0 ms 360 KB Output is correct
108 Correct 0 ms 360 KB Output is correct
109 Correct 0 ms 360 KB Output is correct
110 Correct 1 ms 1384 KB Output is correct
111 Correct 4 ms 2788 KB Output is correct
112 Correct 6 ms 3048 KB Output is correct
113 Correct 4 ms 3048 KB Output is correct
114 Correct 5 ms 3816 KB Output is correct
115 Correct 5 ms 3812 KB Output is correct
116 Correct 3 ms 1884 KB Output is correct
117 Correct 3 ms 1880 KB Output is correct
118 Correct 2 ms 1884 KB Output is correct
119 Correct 8 ms 5256 KB Output is correct
120 Correct 9 ms 9944 KB Output is correct
121 Correct 11 ms 9632 KB Output is correct
122 Correct 15 ms 10196 KB Output is correct
123 Correct 12 ms 9396 KB Output is correct
124 Correct 26 ms 19052 KB Output is correct
125 Correct 72 ms 46780 KB Output is correct
126 Correct 122 ms 70188 KB Output is correct
127 Correct 97 ms 69556 KB Output is correct
128 Correct 132 ms 84224 KB Output is correct
129 Correct 138 ms 85856 KB Output is correct
130 Correct 82 ms 52776 KB Output is correct
131 Correct 82 ms 54148 KB Output is correct
132 Correct 4 ms 1884 KB Output is correct
133 Correct 0 ms 348 KB Output is correct
134 Correct 1 ms 600 KB Output is correct
135 Correct 2 ms 1372 KB Output is correct
136 Correct 4 ms 1372 KB Output is correct
137 Correct 4 ms 2776 KB Output is correct
138 Correct 4 ms 3036 KB Output is correct
139 Correct 5 ms 1884 KB Output is correct
140 Correct 5 ms 1884 KB Output is correct
141 Correct 4 ms 3036 KB Output is correct
142 Correct 6 ms 3628 KB Output is correct
143 Correct 5 ms 3796 KB Output is correct
144 Correct 3 ms 1884 KB Output is correct
145 Correct 5 ms 1884 KB Output is correct
146 Correct 4 ms 1880 KB Output is correct
147 Correct 4 ms 1884 KB Output is correct
148 Correct 4 ms 1884 KB Output is correct
149 Correct 4 ms 1940 KB Output is correct
150 Correct 3 ms 1884 KB Output is correct
151 Correct 2 ms 1884 KB Output is correct
152 Correct 2 ms 1824 KB Output is correct
153 Correct 3 ms 1944 KB Output is correct
154 Correct 11 ms 3932 KB Output is correct
155 Correct 4 ms 1880 KB Output is correct
156 Correct 7 ms 5324 KB Output is correct
157 Correct 11 ms 3672 KB Output is correct
158 Correct 9 ms 9176 KB Output is correct
159 Correct 13 ms 4132 KB Output is correct
160 Correct 11 ms 4028 KB Output is correct
161 Correct 10 ms 9432 KB Output is correct
162 Correct 16 ms 8788 KB Output is correct
163 Correct 12 ms 8800 KB Output is correct
164 Correct 7 ms 3992 KB Output is correct
165 Correct 15 ms 3996 KB Output is correct
166 Correct 11 ms 4184 KB Output is correct
167 Correct 10 ms 4184 KB Output is correct
168 Correct 12 ms 3932 KB Output is correct
169 Correct 10 ms 4224 KB Output is correct
170 Correct 10 ms 4312 KB Output is correct
171 Correct 12 ms 4332 KB Output is correct
172 Correct 13 ms 4188 KB Output is correct
173 Correct 4 ms 3932 KB Output is correct
174 Correct 8 ms 4956 KB Output is correct
175 Correct 25 ms 8444 KB Output is correct
176 Correct 31 ms 18256 KB Output is correct
177 Correct 65 ms 24288 KB Output is correct
178 Correct 32 ms 31572 KB Output is correct
179 Correct 80 ms 36180 KB Output is correct
180 Correct 121 ms 36344 KB Output is correct
181 Correct 116 ms 36640 KB Output is correct
182 Correct 120 ms 37764 KB Output is correct
183 Correct 142 ms 42636 KB Output is correct
184 Correct 394 ms 71196 KB Output is correct
185 Correct 58 ms 40752 KB Output is correct
186 Correct 106 ms 77160 KB Output is correct
187 Correct 66 ms 55800 KB Output is correct
188 Correct 200 ms 141692 KB Output is correct
189 Correct 300 ms 74388 KB Output is correct
190 Correct 160 ms 73948 KB Output is correct
191 Correct 203 ms 140300 KB Output is correct
192 Correct 291 ms 170536 KB Output is correct
193 Correct 314 ms 170964 KB Output is correct
194 Correct 128 ms 73900 KB Output is correct
195 Correct 176 ms 73848 KB Output is correct
196 Correct 211 ms 74232 KB Output is correct
197 Correct 158 ms 75432 KB Output is correct
198 Correct 153 ms 75732 KB Output is correct
199 Correct 220 ms 77252 KB Output is correct
200 Correct 168 ms 76484 KB Output is correct
201 Correct 253 ms 75264 KB Output is correct
202 Correct 381 ms 74340 KB Output is correct
203 Correct 776 ms 147488 KB Output is correct
204 Correct 257 ms 88748 KB Output is correct
205 Correct 347 ms 90864 KB Output is correct
206 Correct 202 ms 146656 KB Output is correct
207 Correct 491 ms 279192 KB Output is correct
208 Correct 629 ms 147916 KB Output is correct
209 Correct 734 ms 147688 KB Output is correct
210 Correct 378 ms 280588 KB Output is correct
211 Correct 495 ms 340280 KB Output is correct
212 Correct 619 ms 340772 KB Output is correct
213 Correct 176 ms 147028 KB Output is correct
214 Correct 350 ms 146960 KB Output is correct
215 Correct 438 ms 148076 KB Output is correct
216 Correct 402 ms 148432 KB Output is correct
217 Correct 461 ms 150056 KB Output is correct
218 Correct 432 ms 154612 KB Output is correct
219 Correct 485 ms 181504 KB Output is correct
220 Correct 248 ms 215164 KB Output is correct
221 Correct 335 ms 213932 KB Output is correct
222 Correct 730 ms 245036 KB Output is correct
223 Correct 563 ms 150204 KB Output is correct
224 Correct 536 ms 148948 KB Output is correct
225 Correct 417 ms 147704 KB Output is correct