답안 #741579

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
741579 2023-05-14T11:30:12 Z maomao90 Maze (JOI23_ho_t3) C++17
100 / 100
1369 ms 964628 KB
// Hallelujah, praise the one who set me free
// Hallelujah, death has lost its grip on me
// You have broken every chain, There's salvation in your name
// Jesus Christ, my living hope
#include <bits/stdc++.h> 
using namespace std;

#define REP(i, s, e) for (int i = (s); i < (e); i++)
#define RREP(i, s, e) for (int i = (s); i >= (e); i--)
template <class T>
inline bool mnto(T& a, T b) {return a > b ? a = b, 1 : 0;}
template <class T>
inline bool mxto(T& a, T b) {return a < b ? a = b, 1: 0;}
typedef long long ll;
typedef long double ld;
#define FI first
#define SE second
typedef pair<int, int> ii;
typedef pair<ll, ll> pll;
typedef tuple<int, int, int> iii;
#define ALL(_a) _a.begin(), _a.end()
#define SZ(_a) (int) _a.size()
#define pb push_back
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<ii> vii;
typedef vector<iii> viii;

#ifndef DEBUG
#define cerr if (0) cerr
#endif

const int INF = 1000000005;
const ll LINF = 1000000000000000005ll;
const int MAXN = 6000005;

const int dirr[] = {1, 0, -1, 0}, dirc[] = {0, 1, 0, -1};

int r, c, n;
int sr, sc, gr, gc;
string s[MAXN];
vi d[MAXN];
vii nd[MAXN];
queue<ii> bfs, nbfs;
vector<bool> vis[MAXN];

int main() {
#ifndef DEBUG
    ios::sync_with_stdio(0), cin.tie(0);
#endif
    cin >> r >> c >> n;
    cin >> sr >> sc >> gr >> gc;
    sr--; sc--; gr--; gc--;
    REP (i, 0, r) {
        cin >> s[i];
    }
    REP (i, 0, r) {
        d[i] = vi(c, INF);
        nd[i] = vii(c, {INF, INF});
        vis[i] = vector<bool>(c);
    }
    bfs.push({sr, sc});
    int curdist = 0;
    while (!bfs.empty()) {
        vii pot;
        while (!bfs.empty()) {
            auto [ur, uc] = bfs.front(); bfs.pop();
            d[ur][uc] = curdist;
            pot.pb({ur, uc});
            REP (k, 0, 4) {
                int vr = ur + dirr[k], vc = uc + dirc[k];
                if (vr < 0 || vr >= r || vc < 0 || vc >= c) {
                    continue;
                }
                if (s[vr][vc] == '#') {
                    continue;
                }
                if (mnto(d[vr][vc], d[ur][uc])) {
                    bfs.push({vr, vc});
                }
            }
        }
        for (auto [ur, uc] : pot) {
            REP (k, 0, 4) {
                int vr = ur + dirr[k], vc = uc + dirc[k];
                if (vr < 0 || vr >= r || vc < 0 || vc >= c) {
                    continue;
                }
                if (d[vr][vc] != INF || vis[vr][vc]) {
                    continue;
                }
                vis[vr][vc] = 1;
                nd[vr][vc] = {1, 1};
                nbfs.push({vr, vc});
            }
        }
        cerr << curdist << '\n';
        while (!nbfs.empty()) {
            auto [ur, uc] = nbfs.front(); nbfs.pop();
            cerr << ' ' << ur << ' ' << uc << '\n';
            bfs.push({ur, uc});
            REP (k, 0, 4) {
                int vr = ur + dirr[k], vc = uc + dirc[k];
                if (vr < 0 || vr >= r || vc < 0 || vc >= c) {
                    continue;
                }
                if (d[vr][vc] != INF || vis[vr][vc]) {
                    continue;
                }
                ii tmp = {nd[ur][uc].FI + abs(dirr[k]),
                            nd[ur][uc].SE + abs(dirc[k])};
                if (tmp.FI > n || tmp.SE > n) {
                    continue;
                }
                if (mnto(nd[vr][vc], tmp)) {
                    vis[vr][vc] = 1;
                    nbfs.push({vr, vc});
                }
            }
        }
        curdist++;
    }
    cout << d[gr][gc] << '\n';
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 348 ms 704816 KB Output is correct
2 Correct 316 ms 704716 KB Output is correct
3 Correct 313 ms 704828 KB Output is correct
4 Correct 310 ms 704756 KB Output is correct
5 Correct 333 ms 704860 KB Output is correct
6 Correct 312 ms 704744 KB Output is correct
7 Correct 310 ms 704716 KB Output is correct
8 Correct 321 ms 704772 KB Output is correct
9 Correct 324 ms 704752 KB Output is correct
10 Correct 310 ms 704804 KB Output is correct
11 Correct 313 ms 704756 KB Output is correct
12 Correct 320 ms 704808 KB Output is correct
13 Correct 321 ms 704800 KB Output is correct
14 Correct 304 ms 704872 KB Output is correct
15 Correct 318 ms 704748 KB Output is correct
16 Correct 309 ms 704764 KB Output is correct
17 Correct 309 ms 704860 KB Output is correct
18 Correct 307 ms 704828 KB Output is correct
19 Correct 352 ms 705656 KB Output is correct
20 Correct 310 ms 705376 KB Output is correct
21 Correct 360 ms 706228 KB Output is correct
22 Correct 314 ms 705616 KB Output is correct
23 Correct 346 ms 705780 KB Output is correct
24 Correct 311 ms 705700 KB Output is correct
25 Correct 323 ms 705704 KB Output is correct
26 Correct 336 ms 705820 KB Output is correct
27 Correct 318 ms 705676 KB Output is correct
28 Correct 317 ms 705672 KB Output is correct
29 Correct 345 ms 706764 KB Output is correct
30 Correct 327 ms 705636 KB Output is correct
31 Correct 315 ms 708996 KB Output is correct
32 Correct 329 ms 707008 KB Output is correct
33 Correct 324 ms 706924 KB Output is correct
34 Correct 310 ms 706952 KB Output is correct
35 Correct 320 ms 706892 KB Output is correct
36 Correct 328 ms 707132 KB Output is correct
37 Correct 324 ms 706948 KB Output is correct
38 Correct 322 ms 706952 KB Output is correct
39 Correct 470 ms 724856 KB Output is correct
40 Correct 327 ms 707072 KB Output is correct
41 Correct 348 ms 707364 KB Output is correct
42 Correct 339 ms 707688 KB Output is correct
43 Correct 360 ms 708312 KB Output is correct
44 Correct 384 ms 714772 KB Output is correct
45 Correct 415 ms 715964 KB Output is correct
46 Correct 418 ms 742092 KB Output is correct
47 Correct 570 ms 725368 KB Output is correct
48 Correct 540 ms 725748 KB Output is correct
49 Correct 371 ms 725324 KB Output is correct
50 Correct 414 ms 725444 KB Output is correct
51 Correct 525 ms 726856 KB Output is correct
52 Correct 515 ms 726240 KB Output is correct
53 Correct 492 ms 725864 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 324 ms 704756 KB Output is correct
2 Correct 332 ms 704816 KB Output is correct
3 Correct 322 ms 704808 KB Output is correct
4 Correct 308 ms 704808 KB Output is correct
5 Correct 335 ms 704816 KB Output is correct
6 Correct 319 ms 704812 KB Output is correct
7 Correct 319 ms 704764 KB Output is correct
8 Correct 311 ms 704796 KB Output is correct
9 Correct 326 ms 704748 KB Output is correct
10 Correct 316 ms 704820 KB Output is correct
11 Correct 334 ms 704852 KB Output is correct
12 Correct 356 ms 704748 KB Output is correct
13 Correct 313 ms 704800 KB Output is correct
14 Correct 347 ms 704784 KB Output is correct
15 Correct 317 ms 704832 KB Output is correct
16 Correct 342 ms 704764 KB Output is correct
17 Correct 315 ms 704712 KB Output is correct
18 Correct 345 ms 704896 KB Output is correct
19 Correct 308 ms 704828 KB Output is correct
20 Correct 317 ms 704748 KB Output is correct
21 Correct 309 ms 704808 KB Output is correct
22 Correct 350 ms 704796 KB Output is correct
23 Correct 318 ms 704736 KB Output is correct
24 Correct 331 ms 704812 KB Output is correct
25 Correct 351 ms 704808 KB Output is correct
26 Correct 350 ms 704808 KB Output is correct
27 Correct 349 ms 704720 KB Output is correct
28 Correct 325 ms 704824 KB Output is correct
29 Correct 404 ms 704748 KB Output is correct
30 Correct 326 ms 704804 KB Output is correct
31 Correct 329 ms 704868 KB Output is correct
32 Correct 336 ms 704924 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 384 ms 704808 KB Output is correct
2 Correct 372 ms 704808 KB Output is correct
3 Correct 349 ms 704812 KB Output is correct
4 Correct 361 ms 704796 KB Output is correct
5 Correct 342 ms 704760 KB Output is correct
6 Correct 370 ms 704708 KB Output is correct
7 Correct 360 ms 704848 KB Output is correct
8 Correct 367 ms 704804 KB Output is correct
9 Correct 341 ms 704732 KB Output is correct
10 Correct 343 ms 704808 KB Output is correct
11 Correct 397 ms 704744 KB Output is correct
12 Correct 380 ms 704836 KB Output is correct
13 Correct 350 ms 704784 KB Output is correct
14 Correct 386 ms 704828 KB Output is correct
15 Correct 344 ms 704808 KB Output is correct
16 Correct 354 ms 704732 KB Output is correct
17 Correct 351 ms 704924 KB Output is correct
18 Correct 358 ms 704788 KB Output is correct
19 Correct 352 ms 704716 KB Output is correct
20 Correct 330 ms 704812 KB Output is correct
21 Correct 330 ms 704816 KB Output is correct
22 Correct 348 ms 704788 KB Output is correct
23 Correct 339 ms 704748 KB Output is correct
24 Correct 348 ms 704888 KB Output is correct
25 Correct 329 ms 705376 KB Output is correct
26 Correct 341 ms 706104 KB Output is correct
27 Correct 336 ms 706232 KB Output is correct
28 Correct 332 ms 706268 KB Output is correct
29 Correct 336 ms 707208 KB Output is correct
30 Correct 343 ms 706804 KB Output is correct
31 Correct 325 ms 705692 KB Output is correct
32 Correct 337 ms 706148 KB Output is correct
33 Correct 359 ms 705656 KB Output is correct
34 Correct 376 ms 707724 KB Output is correct
35 Correct 327 ms 709052 KB Output is correct
36 Correct 344 ms 709024 KB Output is correct
37 Correct 355 ms 710224 KB Output is correct
38 Correct 337 ms 710232 KB Output is correct
39 Correct 372 ms 715204 KB Output is correct
40 Correct 470 ms 732804 KB Output is correct
41 Correct 428 ms 742332 KB Output is correct
42 Correct 436 ms 742072 KB Output is correct
43 Correct 554 ms 771108 KB Output is correct
44 Correct 480 ms 754788 KB Output is correct
45 Correct 491 ms 744252 KB Output is correct
46 Correct 475 ms 743976 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 324 ms 704756 KB Output is correct
2 Correct 332 ms 704816 KB Output is correct
3 Correct 322 ms 704808 KB Output is correct
4 Correct 308 ms 704808 KB Output is correct
5 Correct 335 ms 704816 KB Output is correct
6 Correct 319 ms 704812 KB Output is correct
7 Correct 319 ms 704764 KB Output is correct
8 Correct 311 ms 704796 KB Output is correct
9 Correct 326 ms 704748 KB Output is correct
10 Correct 316 ms 704820 KB Output is correct
11 Correct 334 ms 704852 KB Output is correct
12 Correct 356 ms 704748 KB Output is correct
13 Correct 313 ms 704800 KB Output is correct
14 Correct 347 ms 704784 KB Output is correct
15 Correct 317 ms 704832 KB Output is correct
16 Correct 342 ms 704764 KB Output is correct
17 Correct 315 ms 704712 KB Output is correct
18 Correct 345 ms 704896 KB Output is correct
19 Correct 308 ms 704828 KB Output is correct
20 Correct 317 ms 704748 KB Output is correct
21 Correct 309 ms 704808 KB Output is correct
22 Correct 350 ms 704796 KB Output is correct
23 Correct 318 ms 704736 KB Output is correct
24 Correct 331 ms 704812 KB Output is correct
25 Correct 351 ms 704808 KB Output is correct
26 Correct 350 ms 704808 KB Output is correct
27 Correct 349 ms 704720 KB Output is correct
28 Correct 325 ms 704824 KB Output is correct
29 Correct 404 ms 704748 KB Output is correct
30 Correct 326 ms 704804 KB Output is correct
31 Correct 329 ms 704868 KB Output is correct
32 Correct 336 ms 704924 KB Output is correct
33 Correct 352 ms 705712 KB Output is correct
34 Correct 329 ms 704832 KB Output is correct
35 Correct 334 ms 704812 KB Output is correct
36 Correct 325 ms 705408 KB Output is correct
37 Correct 336 ms 705452 KB Output is correct
38 Correct 333 ms 706128 KB Output is correct
39 Correct 339 ms 706252 KB Output is correct
40 Correct 364 ms 705640 KB Output is correct
41 Correct 329 ms 705600 KB Output is correct
42 Correct 336 ms 706260 KB Output is correct
43 Correct 345 ms 707224 KB Output is correct
44 Correct 326 ms 706748 KB Output is correct
45 Correct 326 ms 705588 KB Output is correct
46 Correct 333 ms 705616 KB Output is correct
47 Correct 325 ms 705648 KB Output is correct
48 Correct 323 ms 705564 KB Output is correct
49 Correct 323 ms 705640 KB Output is correct
50 Correct 344 ms 705652 KB Output is correct
51 Correct 329 ms 705912 KB Output is correct
52 Correct 324 ms 706088 KB Output is correct
53 Correct 388 ms 705836 KB Output is correct
54 Correct 330 ms 705612 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 324 ms 704756 KB Output is correct
2 Correct 332 ms 704816 KB Output is correct
3 Correct 322 ms 704808 KB Output is correct
4 Correct 308 ms 704808 KB Output is correct
5 Correct 335 ms 704816 KB Output is correct
6 Correct 319 ms 704812 KB Output is correct
7 Correct 319 ms 704764 KB Output is correct
8 Correct 311 ms 704796 KB Output is correct
9 Correct 326 ms 704748 KB Output is correct
10 Correct 316 ms 704820 KB Output is correct
11 Correct 334 ms 704852 KB Output is correct
12 Correct 356 ms 704748 KB Output is correct
13 Correct 313 ms 704800 KB Output is correct
14 Correct 347 ms 704784 KB Output is correct
15 Correct 317 ms 704832 KB Output is correct
16 Correct 342 ms 704764 KB Output is correct
17 Correct 315 ms 704712 KB Output is correct
18 Correct 345 ms 704896 KB Output is correct
19 Correct 308 ms 704828 KB Output is correct
20 Correct 317 ms 704748 KB Output is correct
21 Correct 309 ms 704808 KB Output is correct
22 Correct 350 ms 704796 KB Output is correct
23 Correct 318 ms 704736 KB Output is correct
24 Correct 331 ms 704812 KB Output is correct
25 Correct 351 ms 704808 KB Output is correct
26 Correct 350 ms 704808 KB Output is correct
27 Correct 349 ms 704720 KB Output is correct
28 Correct 325 ms 704824 KB Output is correct
29 Correct 404 ms 704748 KB Output is correct
30 Correct 326 ms 704804 KB Output is correct
31 Correct 329 ms 704868 KB Output is correct
32 Correct 336 ms 704924 KB Output is correct
33 Correct 352 ms 705712 KB Output is correct
34 Correct 329 ms 704832 KB Output is correct
35 Correct 334 ms 704812 KB Output is correct
36 Correct 325 ms 705408 KB Output is correct
37 Correct 336 ms 705452 KB Output is correct
38 Correct 333 ms 706128 KB Output is correct
39 Correct 339 ms 706252 KB Output is correct
40 Correct 364 ms 705640 KB Output is correct
41 Correct 329 ms 705600 KB Output is correct
42 Correct 336 ms 706260 KB Output is correct
43 Correct 345 ms 707224 KB Output is correct
44 Correct 326 ms 706748 KB Output is correct
45 Correct 326 ms 705588 KB Output is correct
46 Correct 333 ms 705616 KB Output is correct
47 Correct 325 ms 705648 KB Output is correct
48 Correct 323 ms 705564 KB Output is correct
49 Correct 323 ms 705640 KB Output is correct
50 Correct 344 ms 705652 KB Output is correct
51 Correct 329 ms 705912 KB Output is correct
52 Correct 324 ms 706088 KB Output is correct
53 Correct 388 ms 705836 KB Output is correct
54 Correct 330 ms 705612 KB Output is correct
55 Correct 346 ms 707052 KB Output is correct
56 Correct 328 ms 705672 KB Output is correct
57 Correct 348 ms 707576 KB Output is correct
58 Correct 336 ms 706784 KB Output is correct
59 Correct 330 ms 709084 KB Output is correct
60 Correct 333 ms 707044 KB Output is correct
61 Correct 348 ms 706872 KB Output is correct
62 Correct 335 ms 708972 KB Output is correct
63 Correct 331 ms 710332 KB Output is correct
64 Correct 335 ms 710408 KB Output is correct
65 Correct 345 ms 706952 KB Output is correct
66 Correct 331 ms 706948 KB Output is correct
67 Correct 344 ms 706876 KB Output is correct
68 Correct 343 ms 706888 KB Output is correct
69 Correct 340 ms 706984 KB Output is correct
70 Correct 333 ms 707128 KB Output is correct
71 Correct 351 ms 707528 KB Output is correct
72 Correct 350 ms 707148 KB Output is correct
73 Correct 337 ms 707044 KB Output is correct
74 Correct 333 ms 706952 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 348 ms 704816 KB Output is correct
2 Correct 316 ms 704716 KB Output is correct
3 Correct 313 ms 704828 KB Output is correct
4 Correct 310 ms 704756 KB Output is correct
5 Correct 333 ms 704860 KB Output is correct
6 Correct 312 ms 704744 KB Output is correct
7 Correct 310 ms 704716 KB Output is correct
8 Correct 321 ms 704772 KB Output is correct
9 Correct 324 ms 704752 KB Output is correct
10 Correct 310 ms 704804 KB Output is correct
11 Correct 313 ms 704756 KB Output is correct
12 Correct 320 ms 704808 KB Output is correct
13 Correct 321 ms 704800 KB Output is correct
14 Correct 304 ms 704872 KB Output is correct
15 Correct 318 ms 704748 KB Output is correct
16 Correct 309 ms 704764 KB Output is correct
17 Correct 309 ms 704860 KB Output is correct
18 Correct 307 ms 704828 KB Output is correct
19 Correct 352 ms 705656 KB Output is correct
20 Correct 310 ms 705376 KB Output is correct
21 Correct 360 ms 706228 KB Output is correct
22 Correct 314 ms 705616 KB Output is correct
23 Correct 346 ms 705780 KB Output is correct
24 Correct 311 ms 705700 KB Output is correct
25 Correct 323 ms 705704 KB Output is correct
26 Correct 336 ms 705820 KB Output is correct
27 Correct 318 ms 705676 KB Output is correct
28 Correct 317 ms 705672 KB Output is correct
29 Correct 345 ms 706764 KB Output is correct
30 Correct 327 ms 705636 KB Output is correct
31 Correct 315 ms 708996 KB Output is correct
32 Correct 329 ms 707008 KB Output is correct
33 Correct 324 ms 706924 KB Output is correct
34 Correct 310 ms 706952 KB Output is correct
35 Correct 320 ms 706892 KB Output is correct
36 Correct 328 ms 707132 KB Output is correct
37 Correct 324 ms 706948 KB Output is correct
38 Correct 322 ms 706952 KB Output is correct
39 Correct 470 ms 724856 KB Output is correct
40 Correct 327 ms 707072 KB Output is correct
41 Correct 348 ms 707364 KB Output is correct
42 Correct 339 ms 707688 KB Output is correct
43 Correct 360 ms 708312 KB Output is correct
44 Correct 384 ms 714772 KB Output is correct
45 Correct 415 ms 715964 KB Output is correct
46 Correct 418 ms 742092 KB Output is correct
47 Correct 570 ms 725368 KB Output is correct
48 Correct 540 ms 725748 KB Output is correct
49 Correct 371 ms 725324 KB Output is correct
50 Correct 414 ms 725444 KB Output is correct
51 Correct 525 ms 726856 KB Output is correct
52 Correct 515 ms 726240 KB Output is correct
53 Correct 492 ms 725864 KB Output is correct
54 Correct 324 ms 704756 KB Output is correct
55 Correct 332 ms 704816 KB Output is correct
56 Correct 322 ms 704808 KB Output is correct
57 Correct 308 ms 704808 KB Output is correct
58 Correct 335 ms 704816 KB Output is correct
59 Correct 319 ms 704812 KB Output is correct
60 Correct 319 ms 704764 KB Output is correct
61 Correct 311 ms 704796 KB Output is correct
62 Correct 326 ms 704748 KB Output is correct
63 Correct 316 ms 704820 KB Output is correct
64 Correct 334 ms 704852 KB Output is correct
65 Correct 356 ms 704748 KB Output is correct
66 Correct 313 ms 704800 KB Output is correct
67 Correct 347 ms 704784 KB Output is correct
68 Correct 317 ms 704832 KB Output is correct
69 Correct 342 ms 704764 KB Output is correct
70 Correct 315 ms 704712 KB Output is correct
71 Correct 345 ms 704896 KB Output is correct
72 Correct 308 ms 704828 KB Output is correct
73 Correct 317 ms 704748 KB Output is correct
74 Correct 309 ms 704808 KB Output is correct
75 Correct 350 ms 704796 KB Output is correct
76 Correct 318 ms 704736 KB Output is correct
77 Correct 331 ms 704812 KB Output is correct
78 Correct 351 ms 704808 KB Output is correct
79 Correct 350 ms 704808 KB Output is correct
80 Correct 349 ms 704720 KB Output is correct
81 Correct 325 ms 704824 KB Output is correct
82 Correct 404 ms 704748 KB Output is correct
83 Correct 326 ms 704804 KB Output is correct
84 Correct 329 ms 704868 KB Output is correct
85 Correct 336 ms 704924 KB Output is correct
86 Correct 384 ms 704808 KB Output is correct
87 Correct 372 ms 704808 KB Output is correct
88 Correct 349 ms 704812 KB Output is correct
89 Correct 361 ms 704796 KB Output is correct
90 Correct 342 ms 704760 KB Output is correct
91 Correct 370 ms 704708 KB Output is correct
92 Correct 360 ms 704848 KB Output is correct
93 Correct 367 ms 704804 KB Output is correct
94 Correct 341 ms 704732 KB Output is correct
95 Correct 343 ms 704808 KB Output is correct
96 Correct 397 ms 704744 KB Output is correct
97 Correct 380 ms 704836 KB Output is correct
98 Correct 350 ms 704784 KB Output is correct
99 Correct 386 ms 704828 KB Output is correct
100 Correct 344 ms 704808 KB Output is correct
101 Correct 354 ms 704732 KB Output is correct
102 Correct 351 ms 704924 KB Output is correct
103 Correct 358 ms 704788 KB Output is correct
104 Correct 352 ms 704716 KB Output is correct
105 Correct 330 ms 704812 KB Output is correct
106 Correct 330 ms 704816 KB Output is correct
107 Correct 348 ms 704788 KB Output is correct
108 Correct 339 ms 704748 KB Output is correct
109 Correct 348 ms 704888 KB Output is correct
110 Correct 329 ms 705376 KB Output is correct
111 Correct 341 ms 706104 KB Output is correct
112 Correct 336 ms 706232 KB Output is correct
113 Correct 332 ms 706268 KB Output is correct
114 Correct 336 ms 707208 KB Output is correct
115 Correct 343 ms 706804 KB Output is correct
116 Correct 325 ms 705692 KB Output is correct
117 Correct 337 ms 706148 KB Output is correct
118 Correct 359 ms 705656 KB Output is correct
119 Correct 376 ms 707724 KB Output is correct
120 Correct 327 ms 709052 KB Output is correct
121 Correct 344 ms 709024 KB Output is correct
122 Correct 355 ms 710224 KB Output is correct
123 Correct 337 ms 710232 KB Output is correct
124 Correct 372 ms 715204 KB Output is correct
125 Correct 470 ms 732804 KB Output is correct
126 Correct 428 ms 742332 KB Output is correct
127 Correct 436 ms 742072 KB Output is correct
128 Correct 554 ms 771108 KB Output is correct
129 Correct 480 ms 754788 KB Output is correct
130 Correct 491 ms 744252 KB Output is correct
131 Correct 475 ms 743976 KB Output is correct
132 Correct 352 ms 705712 KB Output is correct
133 Correct 329 ms 704832 KB Output is correct
134 Correct 334 ms 704812 KB Output is correct
135 Correct 325 ms 705408 KB Output is correct
136 Correct 336 ms 705452 KB Output is correct
137 Correct 333 ms 706128 KB Output is correct
138 Correct 339 ms 706252 KB Output is correct
139 Correct 364 ms 705640 KB Output is correct
140 Correct 329 ms 705600 KB Output is correct
141 Correct 336 ms 706260 KB Output is correct
142 Correct 345 ms 707224 KB Output is correct
143 Correct 326 ms 706748 KB Output is correct
144 Correct 326 ms 705588 KB Output is correct
145 Correct 333 ms 705616 KB Output is correct
146 Correct 325 ms 705648 KB Output is correct
147 Correct 323 ms 705564 KB Output is correct
148 Correct 323 ms 705640 KB Output is correct
149 Correct 344 ms 705652 KB Output is correct
150 Correct 329 ms 705912 KB Output is correct
151 Correct 324 ms 706088 KB Output is correct
152 Correct 388 ms 705836 KB Output is correct
153 Correct 330 ms 705612 KB Output is correct
154 Correct 346 ms 707052 KB Output is correct
155 Correct 328 ms 705672 KB Output is correct
156 Correct 348 ms 707576 KB Output is correct
157 Correct 336 ms 706784 KB Output is correct
158 Correct 330 ms 709084 KB Output is correct
159 Correct 333 ms 707044 KB Output is correct
160 Correct 348 ms 706872 KB Output is correct
161 Correct 335 ms 708972 KB Output is correct
162 Correct 331 ms 710332 KB Output is correct
163 Correct 335 ms 710408 KB Output is correct
164 Correct 345 ms 706952 KB Output is correct
165 Correct 331 ms 706948 KB Output is correct
166 Correct 344 ms 706876 KB Output is correct
167 Correct 343 ms 706888 KB Output is correct
168 Correct 340 ms 706984 KB Output is correct
169 Correct 333 ms 707128 KB Output is correct
170 Correct 351 ms 707528 KB Output is correct
171 Correct 350 ms 707148 KB Output is correct
172 Correct 337 ms 707044 KB Output is correct
173 Correct 333 ms 706952 KB Output is correct
174 Correct 352 ms 707636 KB Output is correct
175 Correct 356 ms 709512 KB Output is correct
176 Correct 436 ms 715468 KB Output is correct
177 Correct 421 ms 718764 KB Output is correct
178 Correct 490 ms 723324 KB Output is correct
179 Correct 494 ms 726156 KB Output is correct
180 Correct 480 ms 725496 KB Output is correct
181 Correct 504 ms 727068 KB Output is correct
182 Correct 508 ms 727588 KB Output is correct
183 Correct 477 ms 729160 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 348 ms 704816 KB Output is correct
2 Correct 316 ms 704716 KB Output is correct
3 Correct 313 ms 704828 KB Output is correct
4 Correct 310 ms 704756 KB Output is correct
5 Correct 333 ms 704860 KB Output is correct
6 Correct 312 ms 704744 KB Output is correct
7 Correct 310 ms 704716 KB Output is correct
8 Correct 321 ms 704772 KB Output is correct
9 Correct 324 ms 704752 KB Output is correct
10 Correct 310 ms 704804 KB Output is correct
11 Correct 313 ms 704756 KB Output is correct
12 Correct 320 ms 704808 KB Output is correct
13 Correct 321 ms 704800 KB Output is correct
14 Correct 304 ms 704872 KB Output is correct
15 Correct 318 ms 704748 KB Output is correct
16 Correct 309 ms 704764 KB Output is correct
17 Correct 309 ms 704860 KB Output is correct
18 Correct 307 ms 704828 KB Output is correct
19 Correct 352 ms 705656 KB Output is correct
20 Correct 310 ms 705376 KB Output is correct
21 Correct 360 ms 706228 KB Output is correct
22 Correct 314 ms 705616 KB Output is correct
23 Correct 346 ms 705780 KB Output is correct
24 Correct 311 ms 705700 KB Output is correct
25 Correct 323 ms 705704 KB Output is correct
26 Correct 336 ms 705820 KB Output is correct
27 Correct 318 ms 705676 KB Output is correct
28 Correct 317 ms 705672 KB Output is correct
29 Correct 345 ms 706764 KB Output is correct
30 Correct 327 ms 705636 KB Output is correct
31 Correct 315 ms 708996 KB Output is correct
32 Correct 329 ms 707008 KB Output is correct
33 Correct 324 ms 706924 KB Output is correct
34 Correct 310 ms 706952 KB Output is correct
35 Correct 320 ms 706892 KB Output is correct
36 Correct 328 ms 707132 KB Output is correct
37 Correct 324 ms 706948 KB Output is correct
38 Correct 322 ms 706952 KB Output is correct
39 Correct 470 ms 724856 KB Output is correct
40 Correct 327 ms 707072 KB Output is correct
41 Correct 348 ms 707364 KB Output is correct
42 Correct 339 ms 707688 KB Output is correct
43 Correct 360 ms 708312 KB Output is correct
44 Correct 384 ms 714772 KB Output is correct
45 Correct 415 ms 715964 KB Output is correct
46 Correct 418 ms 742092 KB Output is correct
47 Correct 570 ms 725368 KB Output is correct
48 Correct 540 ms 725748 KB Output is correct
49 Correct 371 ms 725324 KB Output is correct
50 Correct 414 ms 725444 KB Output is correct
51 Correct 525 ms 726856 KB Output is correct
52 Correct 515 ms 726240 KB Output is correct
53 Correct 492 ms 725864 KB Output is correct
54 Correct 324 ms 704756 KB Output is correct
55 Correct 332 ms 704816 KB Output is correct
56 Correct 322 ms 704808 KB Output is correct
57 Correct 308 ms 704808 KB Output is correct
58 Correct 335 ms 704816 KB Output is correct
59 Correct 319 ms 704812 KB Output is correct
60 Correct 319 ms 704764 KB Output is correct
61 Correct 311 ms 704796 KB Output is correct
62 Correct 326 ms 704748 KB Output is correct
63 Correct 316 ms 704820 KB Output is correct
64 Correct 334 ms 704852 KB Output is correct
65 Correct 356 ms 704748 KB Output is correct
66 Correct 313 ms 704800 KB Output is correct
67 Correct 347 ms 704784 KB Output is correct
68 Correct 317 ms 704832 KB Output is correct
69 Correct 342 ms 704764 KB Output is correct
70 Correct 315 ms 704712 KB Output is correct
71 Correct 345 ms 704896 KB Output is correct
72 Correct 308 ms 704828 KB Output is correct
73 Correct 317 ms 704748 KB Output is correct
74 Correct 309 ms 704808 KB Output is correct
75 Correct 350 ms 704796 KB Output is correct
76 Correct 318 ms 704736 KB Output is correct
77 Correct 331 ms 704812 KB Output is correct
78 Correct 351 ms 704808 KB Output is correct
79 Correct 350 ms 704808 KB Output is correct
80 Correct 349 ms 704720 KB Output is correct
81 Correct 325 ms 704824 KB Output is correct
82 Correct 404 ms 704748 KB Output is correct
83 Correct 326 ms 704804 KB Output is correct
84 Correct 329 ms 704868 KB Output is correct
85 Correct 336 ms 704924 KB Output is correct
86 Correct 384 ms 704808 KB Output is correct
87 Correct 372 ms 704808 KB Output is correct
88 Correct 349 ms 704812 KB Output is correct
89 Correct 361 ms 704796 KB Output is correct
90 Correct 342 ms 704760 KB Output is correct
91 Correct 370 ms 704708 KB Output is correct
92 Correct 360 ms 704848 KB Output is correct
93 Correct 367 ms 704804 KB Output is correct
94 Correct 341 ms 704732 KB Output is correct
95 Correct 343 ms 704808 KB Output is correct
96 Correct 397 ms 704744 KB Output is correct
97 Correct 380 ms 704836 KB Output is correct
98 Correct 350 ms 704784 KB Output is correct
99 Correct 386 ms 704828 KB Output is correct
100 Correct 344 ms 704808 KB Output is correct
101 Correct 354 ms 704732 KB Output is correct
102 Correct 351 ms 704924 KB Output is correct
103 Correct 358 ms 704788 KB Output is correct
104 Correct 352 ms 704716 KB Output is correct
105 Correct 330 ms 704812 KB Output is correct
106 Correct 330 ms 704816 KB Output is correct
107 Correct 348 ms 704788 KB Output is correct
108 Correct 339 ms 704748 KB Output is correct
109 Correct 348 ms 704888 KB Output is correct
110 Correct 329 ms 705376 KB Output is correct
111 Correct 341 ms 706104 KB Output is correct
112 Correct 336 ms 706232 KB Output is correct
113 Correct 332 ms 706268 KB Output is correct
114 Correct 336 ms 707208 KB Output is correct
115 Correct 343 ms 706804 KB Output is correct
116 Correct 325 ms 705692 KB Output is correct
117 Correct 337 ms 706148 KB Output is correct
118 Correct 359 ms 705656 KB Output is correct
119 Correct 376 ms 707724 KB Output is correct
120 Correct 327 ms 709052 KB Output is correct
121 Correct 344 ms 709024 KB Output is correct
122 Correct 355 ms 710224 KB Output is correct
123 Correct 337 ms 710232 KB Output is correct
124 Correct 372 ms 715204 KB Output is correct
125 Correct 470 ms 732804 KB Output is correct
126 Correct 428 ms 742332 KB Output is correct
127 Correct 436 ms 742072 KB Output is correct
128 Correct 554 ms 771108 KB Output is correct
129 Correct 480 ms 754788 KB Output is correct
130 Correct 491 ms 744252 KB Output is correct
131 Correct 475 ms 743976 KB Output is correct
132 Correct 352 ms 705712 KB Output is correct
133 Correct 329 ms 704832 KB Output is correct
134 Correct 334 ms 704812 KB Output is correct
135 Correct 325 ms 705408 KB Output is correct
136 Correct 336 ms 705452 KB Output is correct
137 Correct 333 ms 706128 KB Output is correct
138 Correct 339 ms 706252 KB Output is correct
139 Correct 364 ms 705640 KB Output is correct
140 Correct 329 ms 705600 KB Output is correct
141 Correct 336 ms 706260 KB Output is correct
142 Correct 345 ms 707224 KB Output is correct
143 Correct 326 ms 706748 KB Output is correct
144 Correct 326 ms 705588 KB Output is correct
145 Correct 333 ms 705616 KB Output is correct
146 Correct 325 ms 705648 KB Output is correct
147 Correct 323 ms 705564 KB Output is correct
148 Correct 323 ms 705640 KB Output is correct
149 Correct 344 ms 705652 KB Output is correct
150 Correct 329 ms 705912 KB Output is correct
151 Correct 324 ms 706088 KB Output is correct
152 Correct 388 ms 705836 KB Output is correct
153 Correct 330 ms 705612 KB Output is correct
154 Correct 346 ms 707052 KB Output is correct
155 Correct 328 ms 705672 KB Output is correct
156 Correct 348 ms 707576 KB Output is correct
157 Correct 336 ms 706784 KB Output is correct
158 Correct 330 ms 709084 KB Output is correct
159 Correct 333 ms 707044 KB Output is correct
160 Correct 348 ms 706872 KB Output is correct
161 Correct 335 ms 708972 KB Output is correct
162 Correct 331 ms 710332 KB Output is correct
163 Correct 335 ms 710408 KB Output is correct
164 Correct 345 ms 706952 KB Output is correct
165 Correct 331 ms 706948 KB Output is correct
166 Correct 344 ms 706876 KB Output is correct
167 Correct 343 ms 706888 KB Output is correct
168 Correct 340 ms 706984 KB Output is correct
169 Correct 333 ms 707128 KB Output is correct
170 Correct 351 ms 707528 KB Output is correct
171 Correct 350 ms 707148 KB Output is correct
172 Correct 337 ms 707044 KB Output is correct
173 Correct 333 ms 706952 KB Output is correct
174 Correct 352 ms 707636 KB Output is correct
175 Correct 356 ms 709512 KB Output is correct
176 Correct 436 ms 715468 KB Output is correct
177 Correct 421 ms 718764 KB Output is correct
178 Correct 490 ms 723324 KB Output is correct
179 Correct 494 ms 726156 KB Output is correct
180 Correct 480 ms 725496 KB Output is correct
181 Correct 504 ms 727068 KB Output is correct
182 Correct 508 ms 727588 KB Output is correct
183 Correct 477 ms 729160 KB Output is correct
184 Correct 737 ms 746564 KB Output is correct
185 Correct 474 ms 727920 KB Output is correct
186 Correct 489 ms 745628 KB Output is correct
187 Correct 562 ms 736772 KB Output is correct
188 Correct 571 ms 779332 KB Output is correct
189 Correct 745 ms 746904 KB Output is correct
190 Correct 693 ms 746316 KB Output is correct
191 Correct 517 ms 779544 KB Output is correct
192 Correct 803 ms 837140 KB Output is correct
193 Correct 702 ms 804272 KB Output is correct
194 Correct 446 ms 745840 KB Output is correct
195 Correct 525 ms 745200 KB Output is correct
196 Correct 657 ms 746856 KB Output is correct
197 Correct 687 ms 747564 KB Output is correct
198 Correct 668 ms 748336 KB Output is correct
199 Correct 725 ms 750992 KB Output is correct
200 Correct 757 ms 746876 KB Output is correct
201 Correct 789 ms 747464 KB Output is correct
202 Correct 743 ms 746784 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 348 ms 704816 KB Output is correct
2 Correct 316 ms 704716 KB Output is correct
3 Correct 313 ms 704828 KB Output is correct
4 Correct 310 ms 704756 KB Output is correct
5 Correct 333 ms 704860 KB Output is correct
6 Correct 312 ms 704744 KB Output is correct
7 Correct 310 ms 704716 KB Output is correct
8 Correct 321 ms 704772 KB Output is correct
9 Correct 324 ms 704752 KB Output is correct
10 Correct 310 ms 704804 KB Output is correct
11 Correct 313 ms 704756 KB Output is correct
12 Correct 320 ms 704808 KB Output is correct
13 Correct 321 ms 704800 KB Output is correct
14 Correct 304 ms 704872 KB Output is correct
15 Correct 318 ms 704748 KB Output is correct
16 Correct 309 ms 704764 KB Output is correct
17 Correct 309 ms 704860 KB Output is correct
18 Correct 307 ms 704828 KB Output is correct
19 Correct 352 ms 705656 KB Output is correct
20 Correct 310 ms 705376 KB Output is correct
21 Correct 360 ms 706228 KB Output is correct
22 Correct 314 ms 705616 KB Output is correct
23 Correct 346 ms 705780 KB Output is correct
24 Correct 311 ms 705700 KB Output is correct
25 Correct 323 ms 705704 KB Output is correct
26 Correct 336 ms 705820 KB Output is correct
27 Correct 318 ms 705676 KB Output is correct
28 Correct 317 ms 705672 KB Output is correct
29 Correct 345 ms 706764 KB Output is correct
30 Correct 327 ms 705636 KB Output is correct
31 Correct 315 ms 708996 KB Output is correct
32 Correct 329 ms 707008 KB Output is correct
33 Correct 324 ms 706924 KB Output is correct
34 Correct 310 ms 706952 KB Output is correct
35 Correct 320 ms 706892 KB Output is correct
36 Correct 328 ms 707132 KB Output is correct
37 Correct 324 ms 706948 KB Output is correct
38 Correct 322 ms 706952 KB Output is correct
39 Correct 470 ms 724856 KB Output is correct
40 Correct 327 ms 707072 KB Output is correct
41 Correct 348 ms 707364 KB Output is correct
42 Correct 339 ms 707688 KB Output is correct
43 Correct 360 ms 708312 KB Output is correct
44 Correct 384 ms 714772 KB Output is correct
45 Correct 415 ms 715964 KB Output is correct
46 Correct 418 ms 742092 KB Output is correct
47 Correct 570 ms 725368 KB Output is correct
48 Correct 540 ms 725748 KB Output is correct
49 Correct 371 ms 725324 KB Output is correct
50 Correct 414 ms 725444 KB Output is correct
51 Correct 525 ms 726856 KB Output is correct
52 Correct 515 ms 726240 KB Output is correct
53 Correct 492 ms 725864 KB Output is correct
54 Correct 324 ms 704756 KB Output is correct
55 Correct 332 ms 704816 KB Output is correct
56 Correct 322 ms 704808 KB Output is correct
57 Correct 308 ms 704808 KB Output is correct
58 Correct 335 ms 704816 KB Output is correct
59 Correct 319 ms 704812 KB Output is correct
60 Correct 319 ms 704764 KB Output is correct
61 Correct 311 ms 704796 KB Output is correct
62 Correct 326 ms 704748 KB Output is correct
63 Correct 316 ms 704820 KB Output is correct
64 Correct 334 ms 704852 KB Output is correct
65 Correct 356 ms 704748 KB Output is correct
66 Correct 313 ms 704800 KB Output is correct
67 Correct 347 ms 704784 KB Output is correct
68 Correct 317 ms 704832 KB Output is correct
69 Correct 342 ms 704764 KB Output is correct
70 Correct 315 ms 704712 KB Output is correct
71 Correct 345 ms 704896 KB Output is correct
72 Correct 308 ms 704828 KB Output is correct
73 Correct 317 ms 704748 KB Output is correct
74 Correct 309 ms 704808 KB Output is correct
75 Correct 350 ms 704796 KB Output is correct
76 Correct 318 ms 704736 KB Output is correct
77 Correct 331 ms 704812 KB Output is correct
78 Correct 351 ms 704808 KB Output is correct
79 Correct 350 ms 704808 KB Output is correct
80 Correct 349 ms 704720 KB Output is correct
81 Correct 325 ms 704824 KB Output is correct
82 Correct 404 ms 704748 KB Output is correct
83 Correct 326 ms 704804 KB Output is correct
84 Correct 329 ms 704868 KB Output is correct
85 Correct 336 ms 704924 KB Output is correct
86 Correct 384 ms 704808 KB Output is correct
87 Correct 372 ms 704808 KB Output is correct
88 Correct 349 ms 704812 KB Output is correct
89 Correct 361 ms 704796 KB Output is correct
90 Correct 342 ms 704760 KB Output is correct
91 Correct 370 ms 704708 KB Output is correct
92 Correct 360 ms 704848 KB Output is correct
93 Correct 367 ms 704804 KB Output is correct
94 Correct 341 ms 704732 KB Output is correct
95 Correct 343 ms 704808 KB Output is correct
96 Correct 397 ms 704744 KB Output is correct
97 Correct 380 ms 704836 KB Output is correct
98 Correct 350 ms 704784 KB Output is correct
99 Correct 386 ms 704828 KB Output is correct
100 Correct 344 ms 704808 KB Output is correct
101 Correct 354 ms 704732 KB Output is correct
102 Correct 351 ms 704924 KB Output is correct
103 Correct 358 ms 704788 KB Output is correct
104 Correct 352 ms 704716 KB Output is correct
105 Correct 330 ms 704812 KB Output is correct
106 Correct 330 ms 704816 KB Output is correct
107 Correct 348 ms 704788 KB Output is correct
108 Correct 339 ms 704748 KB Output is correct
109 Correct 348 ms 704888 KB Output is correct
110 Correct 329 ms 705376 KB Output is correct
111 Correct 341 ms 706104 KB Output is correct
112 Correct 336 ms 706232 KB Output is correct
113 Correct 332 ms 706268 KB Output is correct
114 Correct 336 ms 707208 KB Output is correct
115 Correct 343 ms 706804 KB Output is correct
116 Correct 325 ms 705692 KB Output is correct
117 Correct 337 ms 706148 KB Output is correct
118 Correct 359 ms 705656 KB Output is correct
119 Correct 376 ms 707724 KB Output is correct
120 Correct 327 ms 709052 KB Output is correct
121 Correct 344 ms 709024 KB Output is correct
122 Correct 355 ms 710224 KB Output is correct
123 Correct 337 ms 710232 KB Output is correct
124 Correct 372 ms 715204 KB Output is correct
125 Correct 470 ms 732804 KB Output is correct
126 Correct 428 ms 742332 KB Output is correct
127 Correct 436 ms 742072 KB Output is correct
128 Correct 554 ms 771108 KB Output is correct
129 Correct 480 ms 754788 KB Output is correct
130 Correct 491 ms 744252 KB Output is correct
131 Correct 475 ms 743976 KB Output is correct
132 Correct 352 ms 705712 KB Output is correct
133 Correct 329 ms 704832 KB Output is correct
134 Correct 334 ms 704812 KB Output is correct
135 Correct 325 ms 705408 KB Output is correct
136 Correct 336 ms 705452 KB Output is correct
137 Correct 333 ms 706128 KB Output is correct
138 Correct 339 ms 706252 KB Output is correct
139 Correct 364 ms 705640 KB Output is correct
140 Correct 329 ms 705600 KB Output is correct
141 Correct 336 ms 706260 KB Output is correct
142 Correct 345 ms 707224 KB Output is correct
143 Correct 326 ms 706748 KB Output is correct
144 Correct 326 ms 705588 KB Output is correct
145 Correct 333 ms 705616 KB Output is correct
146 Correct 325 ms 705648 KB Output is correct
147 Correct 323 ms 705564 KB Output is correct
148 Correct 323 ms 705640 KB Output is correct
149 Correct 344 ms 705652 KB Output is correct
150 Correct 329 ms 705912 KB Output is correct
151 Correct 324 ms 706088 KB Output is correct
152 Correct 388 ms 705836 KB Output is correct
153 Correct 330 ms 705612 KB Output is correct
154 Correct 346 ms 707052 KB Output is correct
155 Correct 328 ms 705672 KB Output is correct
156 Correct 348 ms 707576 KB Output is correct
157 Correct 336 ms 706784 KB Output is correct
158 Correct 330 ms 709084 KB Output is correct
159 Correct 333 ms 707044 KB Output is correct
160 Correct 348 ms 706872 KB Output is correct
161 Correct 335 ms 708972 KB Output is correct
162 Correct 331 ms 710332 KB Output is correct
163 Correct 335 ms 710408 KB Output is correct
164 Correct 345 ms 706952 KB Output is correct
165 Correct 331 ms 706948 KB Output is correct
166 Correct 344 ms 706876 KB Output is correct
167 Correct 343 ms 706888 KB Output is correct
168 Correct 340 ms 706984 KB Output is correct
169 Correct 333 ms 707128 KB Output is correct
170 Correct 351 ms 707528 KB Output is correct
171 Correct 350 ms 707148 KB Output is correct
172 Correct 337 ms 707044 KB Output is correct
173 Correct 333 ms 706952 KB Output is correct
174 Correct 352 ms 707636 KB Output is correct
175 Correct 356 ms 709512 KB Output is correct
176 Correct 436 ms 715468 KB Output is correct
177 Correct 421 ms 718764 KB Output is correct
178 Correct 490 ms 723324 KB Output is correct
179 Correct 494 ms 726156 KB Output is correct
180 Correct 480 ms 725496 KB Output is correct
181 Correct 504 ms 727068 KB Output is correct
182 Correct 508 ms 727588 KB Output is correct
183 Correct 477 ms 729160 KB Output is correct
184 Correct 737 ms 746564 KB Output is correct
185 Correct 474 ms 727920 KB Output is correct
186 Correct 489 ms 745628 KB Output is correct
187 Correct 562 ms 736772 KB Output is correct
188 Correct 571 ms 779332 KB Output is correct
189 Correct 745 ms 746904 KB Output is correct
190 Correct 693 ms 746316 KB Output is correct
191 Correct 517 ms 779544 KB Output is correct
192 Correct 803 ms 837140 KB Output is correct
193 Correct 702 ms 804272 KB Output is correct
194 Correct 446 ms 745840 KB Output is correct
195 Correct 525 ms 745200 KB Output is correct
196 Correct 657 ms 746856 KB Output is correct
197 Correct 687 ms 747564 KB Output is correct
198 Correct 668 ms 748336 KB Output is correct
199 Correct 725 ms 750992 KB Output is correct
200 Correct 757 ms 746876 KB Output is correct
201 Correct 789 ms 747464 KB Output is correct
202 Correct 743 ms 746784 KB Output is correct
203 Correct 1137 ms 786348 KB Output is correct
204 Correct 601 ms 758080 KB Output is correct
205 Correct 869 ms 757032 KB Output is correct
206 Correct 1012 ms 786936 KB Output is correct
207 Correct 769 ms 852912 KB Output is correct
208 Correct 1288 ms 783896 KB Output is correct
209 Correct 1200 ms 788184 KB Output is correct
210 Correct 760 ms 854092 KB Output is correct
211 Correct 1305 ms 964628 KB Output is correct
212 Correct 1052 ms 902032 KB Output is correct
213 Correct 571 ms 786304 KB Output is correct
214 Correct 751 ms 787852 KB Output is correct
215 Correct 988 ms 787060 KB Output is correct
216 Correct 1035 ms 789620 KB Output is correct
217 Correct 1078 ms 786016 KB Output is correct
218 Correct 1146 ms 791428 KB Output is correct
219 Correct 953 ms 819192 KB Output is correct
220 Correct 980 ms 832844 KB Output is correct
221 Correct 1016 ms 856276 KB Output is correct
222 Correct 1041 ms 853396 KB Output is correct
223 Correct 1369 ms 789708 KB Output is correct
224 Correct 1321 ms 784452 KB Output is correct
225 Correct 1305 ms 786860 KB Output is correct