답안 #739028

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
739028 2023-05-09T18:54:55 Z He_Huanglu Maze (JOI23_ho_t3) C++17
94 / 100
2000 ms 693192 KB
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
//#pragma GCC optimize("O3,fast-math,unroll-loops")
#include <bits/stdc++.h>
#define ii pair<int, int>
#define fi first
#define se second
using namespace std;

const int N = 6e6 + 1;
int n, m, s, rs, cs, re, ce;
int dx[4] = {0, -1, 0, 1};
int dy[4] = {-1, 0, 1, 0};
vector <int> f[N], a[N], p[2][N];
queue <ii> q[2];

void up(int u, int v, int val) {
    if(0 < u && u <= m && 0 < v && v <= n && !f[u][v]) {
        q[1].push({u, v});
        f[u][v] = val;
    }
}

int get(int t, int id, int u) {
    return p[t][id][u] == u ? u : p[t][id][u] = get(t, id, p[t][id][u]);
}

void upd(int t, int id, int i, int j, int val) {
    int u = get(t, id, i);
    while (u <= j) {
        if(t && !f[id][u]) {
            q[1].push({id, u});
            f[id][u] = val;
        }
        if(!t && !f[u][id]) {
            q[1].push({u, id});
            f[u][id] = val;
        }
        u = get(t, id, u + 1);
        p[t][id][i] = u;
    }
}

main () {
    cin.tie(0)->sync_with_stdio(0);
    if(fopen("task.inp", "r")) {
        freopen("task.inp", "r", stdin);
        freopen("wa.out", "w", stdout);
    }
    cin >> m >> n >> s >> rs >> cs >> re >> ce;
    for(int i = 1; i <= m; i++) a[i].resize(n + 1), f[i].resize(n + 1);
    for(int i = 1; i <= m; i++) {
        for(int j = 0; j <= n + 1; j++) p[1][i].push_back(j);
    }
    for(int i = 1; i <= n; i++) {
        for(int j = 0; j <= m + 1; j++) p[0][i].push_back(j);
    }
    for(int i = 1; i <= m; i++) {
        for(int j = 1; j <= n; j++) {
            char ch; cin >> ch;
            a[i][j] = (ch == '.' ? 1 : 0);
        }
    }
    q[1].push({rs, cs}); f[rs][cs] = 1;
    while (!q[1].empty() || !q[0].empty()) {
        while (!q[1].empty()) {
            int x, y; tie(x, y) = q[1].front(); q[1].pop();
            q[0].push({x, y});
            if(x == re && y == ce) return cout << f[x][y] - 1 << "\n", 0;
            for(int i = 0; i < 4; i++) {
                int u = x + dx[i], v = y + dy[i];
                if(0 < u && u <= m && 0 < v && v <= n && !f[u][v] && a[u][v]) {
                    f[u][v] = f[x][y];
                    q[1].push({u, v});
                }
            }
        }
        while (!q[0].empty()) {
            int x, y; tie(x, y) = q[0].front(); q[0].pop();
            if(x == rs && y == cs) {
                int s1 = max(1, x - s), s2 = max(1, y - s);
                int s3 = min(m, x + s), s4 = min(n, y + s);
                for(int i = s1; i <= s3; i++) {
                    for(int j = s2; j <= s4; j++) if(!f[i][j]) {
                        if(i == x - s && (j == y - s || j == y + s)) continue ;
                        if(i == x + s && (j == y - s || j == y + s)) continue ;
                        f[i][j] = f[x][y] + 1;
                        q[1].push({i, j});
                    }
                }
                continue ;
            }
            int val = f[x][y] + 1;
            for(int i = 0; i < 4; i++) {
                int u = x + dx[i], v = y + dy[i];
                up(x - s, y + s - 1, val);
                up(x + s, y + s - 1, val);
                if(y + s <= n) upd(0, y + s, max(1, x - s + 1), min(m, x + s - 1), val);
                up(x + s - 1, y - s, val);
                up(x + s - 1, y + s, val);
                if(x + s <= m) upd(1, x + s, max(1, y - s + 1), min(n, y + s - 1), val);
                up(x - s, y - s + 1, val);
                up(x + s, y - s + 1, val);
                if(y > s) upd(0, y - s, max(1, x - s + 1), min(m, x + s - 1), val);
                up(x - s + 1, y - s, val);
                up(x - s + 1, y + s, val);
                if(x > s) upd(1, x - s, max(1, y - s + 1), min(n, y + s - 1), val);
            }
        }
    }
}

Compilation message

Main.cpp:44:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   44 | main () {
      | ^~~~
Main.cpp: In function 'int main()':
Main.cpp:95:21: warning: unused variable 'u' [-Wunused-variable]
   95 |                 int u = x + dx[i], v = y + dy[i];
      |                     ^
Main.cpp:95:36: warning: unused variable 'v' [-Wunused-variable]
   95 |                 int u = x + dx[i], v = y + dy[i];
      |                                    ^
Main.cpp:47:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   47 |         freopen("task.inp", "r", stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:48:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |         freopen("wa.out", "w", stdout);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 276 ms 563788 KB Output is correct
2 Correct 299 ms 563844 KB Output is correct
3 Correct 287 ms 563884 KB Output is correct
4 Correct 281 ms 563904 KB Output is correct
5 Correct 291 ms 563916 KB Output is correct
6 Correct 279 ms 563932 KB Output is correct
7 Correct 301 ms 563948 KB Output is correct
8 Correct 285 ms 563844 KB Output is correct
9 Correct 281 ms 563824 KB Output is correct
10 Correct 278 ms 563864 KB Output is correct
11 Correct 292 ms 563852 KB Output is correct
12 Correct 281 ms 563956 KB Output is correct
13 Correct 283 ms 563788 KB Output is correct
14 Correct 283 ms 563852 KB Output is correct
15 Correct 283 ms 563880 KB Output is correct
16 Correct 280 ms 564064 KB Output is correct
17 Correct 278 ms 563880 KB Output is correct
18 Correct 278 ms 563940 KB Output is correct
19 Correct 295 ms 564984 KB Output is correct
20 Correct 291 ms 565892 KB Output is correct
21 Correct 290 ms 565324 KB Output is correct
22 Correct 291 ms 564888 KB Output is correct
23 Correct 306 ms 564920 KB Output is correct
24 Correct 300 ms 566480 KB Output is correct
25 Correct 298 ms 566480 KB Output is correct
26 Correct 291 ms 564816 KB Output is correct
27 Correct 296 ms 564784 KB Output is correct
28 Correct 298 ms 564796 KB Output is correct
29 Correct 321 ms 566604 KB Output is correct
30 Correct 297 ms 565724 KB Output is correct
31 Correct 293 ms 567756 KB Output is correct
32 Correct 319 ms 566768 KB Output is correct
33 Correct 323 ms 566728 KB Output is correct
34 Correct 313 ms 570340 KB Output is correct
35 Correct 312 ms 570312 KB Output is correct
36 Correct 311 ms 566688 KB Output is correct
37 Correct 320 ms 566688 KB Output is correct
38 Correct 290 ms 566660 KB Output is correct
39 Correct 766 ms 595480 KB Output is correct
40 Correct 304 ms 567360 KB Output is correct
41 Correct 314 ms 571940 KB Output is correct
42 Correct 341 ms 568264 KB Output is correct
43 Correct 331 ms 570560 KB Output is correct
44 Correct 369 ms 578528 KB Output is correct
45 Correct 380 ms 580868 KB Output is correct
46 Correct 332 ms 598192 KB Output is correct
47 Correct 766 ms 595432 KB Output is correct
48 Correct 655 ms 595356 KB Output is correct
49 Correct 563 ms 628416 KB Output is correct
50 Correct 552 ms 628448 KB Output is correct
51 Correct 643 ms 595848 KB Output is correct
52 Correct 542 ms 595628 KB Output is correct
53 Correct 696 ms 595388 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 286 ms 563900 KB Output is correct
2 Correct 280 ms 563804 KB Output is correct
3 Correct 293 ms 563784 KB Output is correct
4 Correct 282 ms 563876 KB Output is correct
5 Correct 279 ms 563804 KB Output is correct
6 Correct 298 ms 564020 KB Output is correct
7 Correct 289 ms 563824 KB Output is correct
8 Correct 280 ms 563844 KB Output is correct
9 Correct 286 ms 563916 KB Output is correct
10 Correct 280 ms 563900 KB Output is correct
11 Correct 289 ms 563836 KB Output is correct
12 Correct 285 ms 563964 KB Output is correct
13 Correct 290 ms 564036 KB Output is correct
14 Correct 287 ms 564028 KB Output is correct
15 Correct 280 ms 563916 KB Output is correct
16 Correct 281 ms 563888 KB Output is correct
17 Correct 278 ms 563936 KB Output is correct
18 Correct 276 ms 563928 KB Output is correct
19 Correct 287 ms 563916 KB Output is correct
20 Correct 279 ms 563868 KB Output is correct
21 Correct 282 ms 563916 KB Output is correct
22 Correct 282 ms 564236 KB Output is correct
23 Correct 282 ms 563852 KB Output is correct
24 Correct 348 ms 563920 KB Output is correct
25 Correct 280 ms 563916 KB Output is correct
26 Correct 278 ms 563908 KB Output is correct
27 Correct 277 ms 563960 KB Output is correct
28 Correct 276 ms 563904 KB Output is correct
29 Correct 288 ms 563944 KB Output is correct
30 Correct 279 ms 563932 KB Output is correct
31 Correct 274 ms 563916 KB Output is correct
32 Correct 270 ms 564052 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 276 ms 563812 KB Output is correct
2 Correct 281 ms 564016 KB Output is correct
3 Correct 276 ms 563788 KB Output is correct
4 Correct 285 ms 563888 KB Output is correct
5 Correct 276 ms 564000 KB Output is correct
6 Correct 274 ms 563900 KB Output is correct
7 Correct 276 ms 563888 KB Output is correct
8 Correct 273 ms 563976 KB Output is correct
9 Correct 271 ms 563868 KB Output is correct
10 Correct 280 ms 563952 KB Output is correct
11 Correct 275 ms 563940 KB Output is correct
12 Correct 276 ms 564020 KB Output is correct
13 Correct 273 ms 563920 KB Output is correct
14 Correct 275 ms 563824 KB Output is correct
15 Correct 280 ms 563816 KB Output is correct
16 Correct 276 ms 563848 KB Output is correct
17 Correct 279 ms 563844 KB Output is correct
18 Correct 282 ms 563788 KB Output is correct
19 Correct 280 ms 563904 KB Output is correct
20 Correct 279 ms 563960 KB Output is correct
21 Correct 276 ms 564044 KB Output is correct
22 Correct 278 ms 563820 KB Output is correct
23 Correct 287 ms 564016 KB Output is correct
24 Correct 283 ms 564016 KB Output is correct
25 Correct 282 ms 564876 KB Output is correct
26 Correct 301 ms 565256 KB Output is correct
27 Correct 296 ms 565212 KB Output is correct
28 Correct 296 ms 565364 KB Output is correct
29 Correct 283 ms 565340 KB Output is correct
30 Correct 284 ms 565268 KB Output is correct
31 Correct 285 ms 564916 KB Output is correct
32 Correct 276 ms 564896 KB Output is correct
33 Correct 280 ms 564896 KB Output is correct
34 Correct 284 ms 566768 KB Output is correct
35 Correct 296 ms 567756 KB Output is correct
36 Correct 282 ms 567612 KB Output is correct
37 Correct 291 ms 567904 KB Output is correct
38 Correct 289 ms 567932 KB Output is correct
39 Correct 299 ms 574284 KB Output is correct
40 Correct 354 ms 592180 KB Output is correct
41 Correct 336 ms 598236 KB Output is correct
42 Correct 353 ms 605588 KB Output is correct
43 Correct 338 ms 607864 KB Output is correct
44 Correct 354 ms 607908 KB Output is correct
45 Correct 353 ms 598732 KB Output is correct
46 Correct 343 ms 594360 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 286 ms 563900 KB Output is correct
2 Correct 280 ms 563804 KB Output is correct
3 Correct 293 ms 563784 KB Output is correct
4 Correct 282 ms 563876 KB Output is correct
5 Correct 279 ms 563804 KB Output is correct
6 Correct 298 ms 564020 KB Output is correct
7 Correct 289 ms 563824 KB Output is correct
8 Correct 280 ms 563844 KB Output is correct
9 Correct 286 ms 563916 KB Output is correct
10 Correct 280 ms 563900 KB Output is correct
11 Correct 289 ms 563836 KB Output is correct
12 Correct 285 ms 563964 KB Output is correct
13 Correct 290 ms 564036 KB Output is correct
14 Correct 287 ms 564028 KB Output is correct
15 Correct 280 ms 563916 KB Output is correct
16 Correct 281 ms 563888 KB Output is correct
17 Correct 278 ms 563936 KB Output is correct
18 Correct 276 ms 563928 KB Output is correct
19 Correct 287 ms 563916 KB Output is correct
20 Correct 279 ms 563868 KB Output is correct
21 Correct 282 ms 563916 KB Output is correct
22 Correct 282 ms 564236 KB Output is correct
23 Correct 282 ms 563852 KB Output is correct
24 Correct 348 ms 563920 KB Output is correct
25 Correct 280 ms 563916 KB Output is correct
26 Correct 278 ms 563908 KB Output is correct
27 Correct 277 ms 563960 KB Output is correct
28 Correct 276 ms 563904 KB Output is correct
29 Correct 288 ms 563944 KB Output is correct
30 Correct 279 ms 563932 KB Output is correct
31 Correct 274 ms 563916 KB Output is correct
32 Correct 270 ms 564052 KB Output is correct
33 Correct 296 ms 564924 KB Output is correct
34 Correct 293 ms 563832 KB Output is correct
35 Correct 284 ms 563996 KB Output is correct
36 Correct 283 ms 564812 KB Output is correct
37 Correct 285 ms 565816 KB Output is correct
38 Correct 281 ms 565400 KB Output is correct
39 Correct 286 ms 565324 KB Output is correct
40 Correct 289 ms 564872 KB Output is correct
41 Correct 292 ms 564900 KB Output is correct
42 Correct 280 ms 565368 KB Output is correct
43 Correct 279 ms 565324 KB Output is correct
44 Correct 280 ms 565332 KB Output is correct
45 Correct 296 ms 566504 KB Output is correct
46 Correct 292 ms 566464 KB Output is correct
47 Correct 289 ms 565480 KB Output is correct
48 Correct 297 ms 565196 KB Output is correct
49 Correct 286 ms 564932 KB Output is correct
50 Correct 290 ms 565064 KB Output is correct
51 Correct 288 ms 565092 KB Output is correct
52 Correct 282 ms 564904 KB Output is correct
53 Correct 280 ms 564940 KB Output is correct
54 Correct 291 ms 565080 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 286 ms 563900 KB Output is correct
2 Correct 280 ms 563804 KB Output is correct
3 Correct 293 ms 563784 KB Output is correct
4 Correct 282 ms 563876 KB Output is correct
5 Correct 279 ms 563804 KB Output is correct
6 Correct 298 ms 564020 KB Output is correct
7 Correct 289 ms 563824 KB Output is correct
8 Correct 280 ms 563844 KB Output is correct
9 Correct 286 ms 563916 KB Output is correct
10 Correct 280 ms 563900 KB Output is correct
11 Correct 289 ms 563836 KB Output is correct
12 Correct 285 ms 563964 KB Output is correct
13 Correct 290 ms 564036 KB Output is correct
14 Correct 287 ms 564028 KB Output is correct
15 Correct 280 ms 563916 KB Output is correct
16 Correct 281 ms 563888 KB Output is correct
17 Correct 278 ms 563936 KB Output is correct
18 Correct 276 ms 563928 KB Output is correct
19 Correct 287 ms 563916 KB Output is correct
20 Correct 279 ms 563868 KB Output is correct
21 Correct 282 ms 563916 KB Output is correct
22 Correct 282 ms 564236 KB Output is correct
23 Correct 282 ms 563852 KB Output is correct
24 Correct 348 ms 563920 KB Output is correct
25 Correct 280 ms 563916 KB Output is correct
26 Correct 278 ms 563908 KB Output is correct
27 Correct 277 ms 563960 KB Output is correct
28 Correct 276 ms 563904 KB Output is correct
29 Correct 288 ms 563944 KB Output is correct
30 Correct 279 ms 563932 KB Output is correct
31 Correct 274 ms 563916 KB Output is correct
32 Correct 270 ms 564052 KB Output is correct
33 Correct 296 ms 564924 KB Output is correct
34 Correct 293 ms 563832 KB Output is correct
35 Correct 284 ms 563996 KB Output is correct
36 Correct 283 ms 564812 KB Output is correct
37 Correct 285 ms 565816 KB Output is correct
38 Correct 281 ms 565400 KB Output is correct
39 Correct 286 ms 565324 KB Output is correct
40 Correct 289 ms 564872 KB Output is correct
41 Correct 292 ms 564900 KB Output is correct
42 Correct 280 ms 565368 KB Output is correct
43 Correct 279 ms 565324 KB Output is correct
44 Correct 280 ms 565332 KB Output is correct
45 Correct 296 ms 566504 KB Output is correct
46 Correct 292 ms 566464 KB Output is correct
47 Correct 289 ms 565480 KB Output is correct
48 Correct 297 ms 565196 KB Output is correct
49 Correct 286 ms 564932 KB Output is correct
50 Correct 290 ms 565064 KB Output is correct
51 Correct 288 ms 565092 KB Output is correct
52 Correct 282 ms 564904 KB Output is correct
53 Correct 280 ms 564940 KB Output is correct
54 Correct 291 ms 565080 KB Output is correct
55 Correct 324 ms 566664 KB Output is correct
56 Correct 295 ms 565880 KB Output is correct
57 Correct 286 ms 566848 KB Output is correct
58 Correct 305 ms 566400 KB Output is correct
59 Correct 317 ms 567784 KB Output is correct
60 Correct 320 ms 566572 KB Output is correct
61 Correct 329 ms 566568 KB Output is correct
62 Correct 282 ms 567572 KB Output is correct
63 Correct 289 ms 567864 KB Output is correct
64 Correct 304 ms 567908 KB Output is correct
65 Correct 316 ms 570364 KB Output is correct
66 Correct 321 ms 570260 KB Output is correct
67 Correct 307 ms 567964 KB Output is correct
68 Correct 296 ms 566840 KB Output is correct
69 Correct 301 ms 567056 KB Output is correct
70 Correct 297 ms 566732 KB Output is correct
71 Correct 302 ms 566932 KB Output is correct
72 Correct 302 ms 566748 KB Output is correct
73 Correct 325 ms 566756 KB Output is correct
74 Correct 292 ms 566656 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 276 ms 563788 KB Output is correct
2 Correct 299 ms 563844 KB Output is correct
3 Correct 287 ms 563884 KB Output is correct
4 Correct 281 ms 563904 KB Output is correct
5 Correct 291 ms 563916 KB Output is correct
6 Correct 279 ms 563932 KB Output is correct
7 Correct 301 ms 563948 KB Output is correct
8 Correct 285 ms 563844 KB Output is correct
9 Correct 281 ms 563824 KB Output is correct
10 Correct 278 ms 563864 KB Output is correct
11 Correct 292 ms 563852 KB Output is correct
12 Correct 281 ms 563956 KB Output is correct
13 Correct 283 ms 563788 KB Output is correct
14 Correct 283 ms 563852 KB Output is correct
15 Correct 283 ms 563880 KB Output is correct
16 Correct 280 ms 564064 KB Output is correct
17 Correct 278 ms 563880 KB Output is correct
18 Correct 278 ms 563940 KB Output is correct
19 Correct 295 ms 564984 KB Output is correct
20 Correct 291 ms 565892 KB Output is correct
21 Correct 290 ms 565324 KB Output is correct
22 Correct 291 ms 564888 KB Output is correct
23 Correct 306 ms 564920 KB Output is correct
24 Correct 300 ms 566480 KB Output is correct
25 Correct 298 ms 566480 KB Output is correct
26 Correct 291 ms 564816 KB Output is correct
27 Correct 296 ms 564784 KB Output is correct
28 Correct 298 ms 564796 KB Output is correct
29 Correct 321 ms 566604 KB Output is correct
30 Correct 297 ms 565724 KB Output is correct
31 Correct 293 ms 567756 KB Output is correct
32 Correct 319 ms 566768 KB Output is correct
33 Correct 323 ms 566728 KB Output is correct
34 Correct 313 ms 570340 KB Output is correct
35 Correct 312 ms 570312 KB Output is correct
36 Correct 311 ms 566688 KB Output is correct
37 Correct 320 ms 566688 KB Output is correct
38 Correct 290 ms 566660 KB Output is correct
39 Correct 766 ms 595480 KB Output is correct
40 Correct 304 ms 567360 KB Output is correct
41 Correct 314 ms 571940 KB Output is correct
42 Correct 341 ms 568264 KB Output is correct
43 Correct 331 ms 570560 KB Output is correct
44 Correct 369 ms 578528 KB Output is correct
45 Correct 380 ms 580868 KB Output is correct
46 Correct 332 ms 598192 KB Output is correct
47 Correct 766 ms 595432 KB Output is correct
48 Correct 655 ms 595356 KB Output is correct
49 Correct 563 ms 628416 KB Output is correct
50 Correct 552 ms 628448 KB Output is correct
51 Correct 643 ms 595848 KB Output is correct
52 Correct 542 ms 595628 KB Output is correct
53 Correct 696 ms 595388 KB Output is correct
54 Correct 286 ms 563900 KB Output is correct
55 Correct 280 ms 563804 KB Output is correct
56 Correct 293 ms 563784 KB Output is correct
57 Correct 282 ms 563876 KB Output is correct
58 Correct 279 ms 563804 KB Output is correct
59 Correct 298 ms 564020 KB Output is correct
60 Correct 289 ms 563824 KB Output is correct
61 Correct 280 ms 563844 KB Output is correct
62 Correct 286 ms 563916 KB Output is correct
63 Correct 280 ms 563900 KB Output is correct
64 Correct 289 ms 563836 KB Output is correct
65 Correct 285 ms 563964 KB Output is correct
66 Correct 290 ms 564036 KB Output is correct
67 Correct 287 ms 564028 KB Output is correct
68 Correct 280 ms 563916 KB Output is correct
69 Correct 281 ms 563888 KB Output is correct
70 Correct 278 ms 563936 KB Output is correct
71 Correct 276 ms 563928 KB Output is correct
72 Correct 287 ms 563916 KB Output is correct
73 Correct 279 ms 563868 KB Output is correct
74 Correct 282 ms 563916 KB Output is correct
75 Correct 282 ms 564236 KB Output is correct
76 Correct 282 ms 563852 KB Output is correct
77 Correct 348 ms 563920 KB Output is correct
78 Correct 280 ms 563916 KB Output is correct
79 Correct 278 ms 563908 KB Output is correct
80 Correct 277 ms 563960 KB Output is correct
81 Correct 276 ms 563904 KB Output is correct
82 Correct 288 ms 563944 KB Output is correct
83 Correct 279 ms 563932 KB Output is correct
84 Correct 274 ms 563916 KB Output is correct
85 Correct 270 ms 564052 KB Output is correct
86 Correct 276 ms 563812 KB Output is correct
87 Correct 281 ms 564016 KB Output is correct
88 Correct 276 ms 563788 KB Output is correct
89 Correct 285 ms 563888 KB Output is correct
90 Correct 276 ms 564000 KB Output is correct
91 Correct 274 ms 563900 KB Output is correct
92 Correct 276 ms 563888 KB Output is correct
93 Correct 273 ms 563976 KB Output is correct
94 Correct 271 ms 563868 KB Output is correct
95 Correct 280 ms 563952 KB Output is correct
96 Correct 275 ms 563940 KB Output is correct
97 Correct 276 ms 564020 KB Output is correct
98 Correct 273 ms 563920 KB Output is correct
99 Correct 275 ms 563824 KB Output is correct
100 Correct 280 ms 563816 KB Output is correct
101 Correct 276 ms 563848 KB Output is correct
102 Correct 279 ms 563844 KB Output is correct
103 Correct 282 ms 563788 KB Output is correct
104 Correct 280 ms 563904 KB Output is correct
105 Correct 279 ms 563960 KB Output is correct
106 Correct 276 ms 564044 KB Output is correct
107 Correct 278 ms 563820 KB Output is correct
108 Correct 287 ms 564016 KB Output is correct
109 Correct 283 ms 564016 KB Output is correct
110 Correct 282 ms 564876 KB Output is correct
111 Correct 301 ms 565256 KB Output is correct
112 Correct 296 ms 565212 KB Output is correct
113 Correct 296 ms 565364 KB Output is correct
114 Correct 283 ms 565340 KB Output is correct
115 Correct 284 ms 565268 KB Output is correct
116 Correct 285 ms 564916 KB Output is correct
117 Correct 276 ms 564896 KB Output is correct
118 Correct 280 ms 564896 KB Output is correct
119 Correct 284 ms 566768 KB Output is correct
120 Correct 296 ms 567756 KB Output is correct
121 Correct 282 ms 567612 KB Output is correct
122 Correct 291 ms 567904 KB Output is correct
123 Correct 289 ms 567932 KB Output is correct
124 Correct 299 ms 574284 KB Output is correct
125 Correct 354 ms 592180 KB Output is correct
126 Correct 336 ms 598236 KB Output is correct
127 Correct 353 ms 605588 KB Output is correct
128 Correct 338 ms 607864 KB Output is correct
129 Correct 354 ms 607908 KB Output is correct
130 Correct 353 ms 598732 KB Output is correct
131 Correct 343 ms 594360 KB Output is correct
132 Correct 296 ms 564924 KB Output is correct
133 Correct 293 ms 563832 KB Output is correct
134 Correct 284 ms 563996 KB Output is correct
135 Correct 283 ms 564812 KB Output is correct
136 Correct 285 ms 565816 KB Output is correct
137 Correct 281 ms 565400 KB Output is correct
138 Correct 286 ms 565324 KB Output is correct
139 Correct 289 ms 564872 KB Output is correct
140 Correct 292 ms 564900 KB Output is correct
141 Correct 280 ms 565368 KB Output is correct
142 Correct 279 ms 565324 KB Output is correct
143 Correct 280 ms 565332 KB Output is correct
144 Correct 296 ms 566504 KB Output is correct
145 Correct 292 ms 566464 KB Output is correct
146 Correct 289 ms 565480 KB Output is correct
147 Correct 297 ms 565196 KB Output is correct
148 Correct 286 ms 564932 KB Output is correct
149 Correct 290 ms 565064 KB Output is correct
150 Correct 288 ms 565092 KB Output is correct
151 Correct 282 ms 564904 KB Output is correct
152 Correct 280 ms 564940 KB Output is correct
153 Correct 291 ms 565080 KB Output is correct
154 Correct 324 ms 566664 KB Output is correct
155 Correct 295 ms 565880 KB Output is correct
156 Correct 286 ms 566848 KB Output is correct
157 Correct 305 ms 566400 KB Output is correct
158 Correct 317 ms 567784 KB Output is correct
159 Correct 320 ms 566572 KB Output is correct
160 Correct 329 ms 566568 KB Output is correct
161 Correct 282 ms 567572 KB Output is correct
162 Correct 289 ms 567864 KB Output is correct
163 Correct 304 ms 567908 KB Output is correct
164 Correct 316 ms 570364 KB Output is correct
165 Correct 321 ms 570260 KB Output is correct
166 Correct 307 ms 567964 KB Output is correct
167 Correct 296 ms 566840 KB Output is correct
168 Correct 301 ms 567056 KB Output is correct
169 Correct 297 ms 566732 KB Output is correct
170 Correct 302 ms 566932 KB Output is correct
171 Correct 302 ms 566748 KB Output is correct
172 Correct 325 ms 566756 KB Output is correct
173 Correct 292 ms 566656 KB Output is correct
174 Correct 306 ms 567424 KB Output is correct
175 Correct 420 ms 569828 KB Output is correct
176 Correct 378 ms 584776 KB Output is correct
177 Correct 464 ms 582324 KB Output is correct
178 Correct 338 ms 589020 KB Output is correct
179 Correct 401 ms 590648 KB Output is correct
180 Correct 463 ms 592692 KB Output is correct
181 Correct 454 ms 589368 KB Output is correct
182 Correct 477 ms 591788 KB Output is correct
183 Correct 500 ms 591884 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 276 ms 563788 KB Output is correct
2 Correct 299 ms 563844 KB Output is correct
3 Correct 287 ms 563884 KB Output is correct
4 Correct 281 ms 563904 KB Output is correct
5 Correct 291 ms 563916 KB Output is correct
6 Correct 279 ms 563932 KB Output is correct
7 Correct 301 ms 563948 KB Output is correct
8 Correct 285 ms 563844 KB Output is correct
9 Correct 281 ms 563824 KB Output is correct
10 Correct 278 ms 563864 KB Output is correct
11 Correct 292 ms 563852 KB Output is correct
12 Correct 281 ms 563956 KB Output is correct
13 Correct 283 ms 563788 KB Output is correct
14 Correct 283 ms 563852 KB Output is correct
15 Correct 283 ms 563880 KB Output is correct
16 Correct 280 ms 564064 KB Output is correct
17 Correct 278 ms 563880 KB Output is correct
18 Correct 278 ms 563940 KB Output is correct
19 Correct 295 ms 564984 KB Output is correct
20 Correct 291 ms 565892 KB Output is correct
21 Correct 290 ms 565324 KB Output is correct
22 Correct 291 ms 564888 KB Output is correct
23 Correct 306 ms 564920 KB Output is correct
24 Correct 300 ms 566480 KB Output is correct
25 Correct 298 ms 566480 KB Output is correct
26 Correct 291 ms 564816 KB Output is correct
27 Correct 296 ms 564784 KB Output is correct
28 Correct 298 ms 564796 KB Output is correct
29 Correct 321 ms 566604 KB Output is correct
30 Correct 297 ms 565724 KB Output is correct
31 Correct 293 ms 567756 KB Output is correct
32 Correct 319 ms 566768 KB Output is correct
33 Correct 323 ms 566728 KB Output is correct
34 Correct 313 ms 570340 KB Output is correct
35 Correct 312 ms 570312 KB Output is correct
36 Correct 311 ms 566688 KB Output is correct
37 Correct 320 ms 566688 KB Output is correct
38 Correct 290 ms 566660 KB Output is correct
39 Correct 766 ms 595480 KB Output is correct
40 Correct 304 ms 567360 KB Output is correct
41 Correct 314 ms 571940 KB Output is correct
42 Correct 341 ms 568264 KB Output is correct
43 Correct 331 ms 570560 KB Output is correct
44 Correct 369 ms 578528 KB Output is correct
45 Correct 380 ms 580868 KB Output is correct
46 Correct 332 ms 598192 KB Output is correct
47 Correct 766 ms 595432 KB Output is correct
48 Correct 655 ms 595356 KB Output is correct
49 Correct 563 ms 628416 KB Output is correct
50 Correct 552 ms 628448 KB Output is correct
51 Correct 643 ms 595848 KB Output is correct
52 Correct 542 ms 595628 KB Output is correct
53 Correct 696 ms 595388 KB Output is correct
54 Correct 286 ms 563900 KB Output is correct
55 Correct 280 ms 563804 KB Output is correct
56 Correct 293 ms 563784 KB Output is correct
57 Correct 282 ms 563876 KB Output is correct
58 Correct 279 ms 563804 KB Output is correct
59 Correct 298 ms 564020 KB Output is correct
60 Correct 289 ms 563824 KB Output is correct
61 Correct 280 ms 563844 KB Output is correct
62 Correct 286 ms 563916 KB Output is correct
63 Correct 280 ms 563900 KB Output is correct
64 Correct 289 ms 563836 KB Output is correct
65 Correct 285 ms 563964 KB Output is correct
66 Correct 290 ms 564036 KB Output is correct
67 Correct 287 ms 564028 KB Output is correct
68 Correct 280 ms 563916 KB Output is correct
69 Correct 281 ms 563888 KB Output is correct
70 Correct 278 ms 563936 KB Output is correct
71 Correct 276 ms 563928 KB Output is correct
72 Correct 287 ms 563916 KB Output is correct
73 Correct 279 ms 563868 KB Output is correct
74 Correct 282 ms 563916 KB Output is correct
75 Correct 282 ms 564236 KB Output is correct
76 Correct 282 ms 563852 KB Output is correct
77 Correct 348 ms 563920 KB Output is correct
78 Correct 280 ms 563916 KB Output is correct
79 Correct 278 ms 563908 KB Output is correct
80 Correct 277 ms 563960 KB Output is correct
81 Correct 276 ms 563904 KB Output is correct
82 Correct 288 ms 563944 KB Output is correct
83 Correct 279 ms 563932 KB Output is correct
84 Correct 274 ms 563916 KB Output is correct
85 Correct 270 ms 564052 KB Output is correct
86 Correct 276 ms 563812 KB Output is correct
87 Correct 281 ms 564016 KB Output is correct
88 Correct 276 ms 563788 KB Output is correct
89 Correct 285 ms 563888 KB Output is correct
90 Correct 276 ms 564000 KB Output is correct
91 Correct 274 ms 563900 KB Output is correct
92 Correct 276 ms 563888 KB Output is correct
93 Correct 273 ms 563976 KB Output is correct
94 Correct 271 ms 563868 KB Output is correct
95 Correct 280 ms 563952 KB Output is correct
96 Correct 275 ms 563940 KB Output is correct
97 Correct 276 ms 564020 KB Output is correct
98 Correct 273 ms 563920 KB Output is correct
99 Correct 275 ms 563824 KB Output is correct
100 Correct 280 ms 563816 KB Output is correct
101 Correct 276 ms 563848 KB Output is correct
102 Correct 279 ms 563844 KB Output is correct
103 Correct 282 ms 563788 KB Output is correct
104 Correct 280 ms 563904 KB Output is correct
105 Correct 279 ms 563960 KB Output is correct
106 Correct 276 ms 564044 KB Output is correct
107 Correct 278 ms 563820 KB Output is correct
108 Correct 287 ms 564016 KB Output is correct
109 Correct 283 ms 564016 KB Output is correct
110 Correct 282 ms 564876 KB Output is correct
111 Correct 301 ms 565256 KB Output is correct
112 Correct 296 ms 565212 KB Output is correct
113 Correct 296 ms 565364 KB Output is correct
114 Correct 283 ms 565340 KB Output is correct
115 Correct 284 ms 565268 KB Output is correct
116 Correct 285 ms 564916 KB Output is correct
117 Correct 276 ms 564896 KB Output is correct
118 Correct 280 ms 564896 KB Output is correct
119 Correct 284 ms 566768 KB Output is correct
120 Correct 296 ms 567756 KB Output is correct
121 Correct 282 ms 567612 KB Output is correct
122 Correct 291 ms 567904 KB Output is correct
123 Correct 289 ms 567932 KB Output is correct
124 Correct 299 ms 574284 KB Output is correct
125 Correct 354 ms 592180 KB Output is correct
126 Correct 336 ms 598236 KB Output is correct
127 Correct 353 ms 605588 KB Output is correct
128 Correct 338 ms 607864 KB Output is correct
129 Correct 354 ms 607908 KB Output is correct
130 Correct 353 ms 598732 KB Output is correct
131 Correct 343 ms 594360 KB Output is correct
132 Correct 296 ms 564924 KB Output is correct
133 Correct 293 ms 563832 KB Output is correct
134 Correct 284 ms 563996 KB Output is correct
135 Correct 283 ms 564812 KB Output is correct
136 Correct 285 ms 565816 KB Output is correct
137 Correct 281 ms 565400 KB Output is correct
138 Correct 286 ms 565324 KB Output is correct
139 Correct 289 ms 564872 KB Output is correct
140 Correct 292 ms 564900 KB Output is correct
141 Correct 280 ms 565368 KB Output is correct
142 Correct 279 ms 565324 KB Output is correct
143 Correct 280 ms 565332 KB Output is correct
144 Correct 296 ms 566504 KB Output is correct
145 Correct 292 ms 566464 KB Output is correct
146 Correct 289 ms 565480 KB Output is correct
147 Correct 297 ms 565196 KB Output is correct
148 Correct 286 ms 564932 KB Output is correct
149 Correct 290 ms 565064 KB Output is correct
150 Correct 288 ms 565092 KB Output is correct
151 Correct 282 ms 564904 KB Output is correct
152 Correct 280 ms 564940 KB Output is correct
153 Correct 291 ms 565080 KB Output is correct
154 Correct 324 ms 566664 KB Output is correct
155 Correct 295 ms 565880 KB Output is correct
156 Correct 286 ms 566848 KB Output is correct
157 Correct 305 ms 566400 KB Output is correct
158 Correct 317 ms 567784 KB Output is correct
159 Correct 320 ms 566572 KB Output is correct
160 Correct 329 ms 566568 KB Output is correct
161 Correct 282 ms 567572 KB Output is correct
162 Correct 289 ms 567864 KB Output is correct
163 Correct 304 ms 567908 KB Output is correct
164 Correct 316 ms 570364 KB Output is correct
165 Correct 321 ms 570260 KB Output is correct
166 Correct 307 ms 567964 KB Output is correct
167 Correct 296 ms 566840 KB Output is correct
168 Correct 301 ms 567056 KB Output is correct
169 Correct 297 ms 566732 KB Output is correct
170 Correct 302 ms 566932 KB Output is correct
171 Correct 302 ms 566748 KB Output is correct
172 Correct 325 ms 566756 KB Output is correct
173 Correct 292 ms 566656 KB Output is correct
174 Correct 306 ms 567424 KB Output is correct
175 Correct 420 ms 569828 KB Output is correct
176 Correct 378 ms 584776 KB Output is correct
177 Correct 464 ms 582324 KB Output is correct
178 Correct 338 ms 589020 KB Output is correct
179 Correct 401 ms 590648 KB Output is correct
180 Correct 463 ms 592692 KB Output is correct
181 Correct 454 ms 589368 KB Output is correct
182 Correct 477 ms 591788 KB Output is correct
183 Correct 500 ms 591884 KB Output is correct
184 Correct 1304 ms 615180 KB Output is correct
185 Correct 471 ms 596500 KB Output is correct
186 Correct 372 ms 601852 KB Output is correct
187 Correct 490 ms 603980 KB Output is correct
188 Correct 434 ms 638964 KB Output is correct
189 Correct 1082 ms 615424 KB Output is correct
190 Correct 654 ms 615364 KB Output is correct
191 Correct 433 ms 639104 KB Output is correct
192 Correct 382 ms 640008 KB Output is correct
193 Correct 409 ms 640508 KB Output is correct
194 Correct 959 ms 693192 KB Output is correct
195 Correct 826 ms 692972 KB Output is correct
196 Correct 670 ms 613856 KB Output is correct
197 Correct 505 ms 617036 KB Output is correct
198 Correct 497 ms 621436 KB Output is correct
199 Correct 645 ms 615244 KB Output is correct
200 Correct 677 ms 615988 KB Output is correct
201 Correct 947 ms 615584 KB Output is correct
202 Correct 1265 ms 615396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 276 ms 563788 KB Output is correct
2 Correct 299 ms 563844 KB Output is correct
3 Correct 287 ms 563884 KB Output is correct
4 Correct 281 ms 563904 KB Output is correct
5 Correct 291 ms 563916 KB Output is correct
6 Correct 279 ms 563932 KB Output is correct
7 Correct 301 ms 563948 KB Output is correct
8 Correct 285 ms 563844 KB Output is correct
9 Correct 281 ms 563824 KB Output is correct
10 Correct 278 ms 563864 KB Output is correct
11 Correct 292 ms 563852 KB Output is correct
12 Correct 281 ms 563956 KB Output is correct
13 Correct 283 ms 563788 KB Output is correct
14 Correct 283 ms 563852 KB Output is correct
15 Correct 283 ms 563880 KB Output is correct
16 Correct 280 ms 564064 KB Output is correct
17 Correct 278 ms 563880 KB Output is correct
18 Correct 278 ms 563940 KB Output is correct
19 Correct 295 ms 564984 KB Output is correct
20 Correct 291 ms 565892 KB Output is correct
21 Correct 290 ms 565324 KB Output is correct
22 Correct 291 ms 564888 KB Output is correct
23 Correct 306 ms 564920 KB Output is correct
24 Correct 300 ms 566480 KB Output is correct
25 Correct 298 ms 566480 KB Output is correct
26 Correct 291 ms 564816 KB Output is correct
27 Correct 296 ms 564784 KB Output is correct
28 Correct 298 ms 564796 KB Output is correct
29 Correct 321 ms 566604 KB Output is correct
30 Correct 297 ms 565724 KB Output is correct
31 Correct 293 ms 567756 KB Output is correct
32 Correct 319 ms 566768 KB Output is correct
33 Correct 323 ms 566728 KB Output is correct
34 Correct 313 ms 570340 KB Output is correct
35 Correct 312 ms 570312 KB Output is correct
36 Correct 311 ms 566688 KB Output is correct
37 Correct 320 ms 566688 KB Output is correct
38 Correct 290 ms 566660 KB Output is correct
39 Correct 766 ms 595480 KB Output is correct
40 Correct 304 ms 567360 KB Output is correct
41 Correct 314 ms 571940 KB Output is correct
42 Correct 341 ms 568264 KB Output is correct
43 Correct 331 ms 570560 KB Output is correct
44 Correct 369 ms 578528 KB Output is correct
45 Correct 380 ms 580868 KB Output is correct
46 Correct 332 ms 598192 KB Output is correct
47 Correct 766 ms 595432 KB Output is correct
48 Correct 655 ms 595356 KB Output is correct
49 Correct 563 ms 628416 KB Output is correct
50 Correct 552 ms 628448 KB Output is correct
51 Correct 643 ms 595848 KB Output is correct
52 Correct 542 ms 595628 KB Output is correct
53 Correct 696 ms 595388 KB Output is correct
54 Correct 286 ms 563900 KB Output is correct
55 Correct 280 ms 563804 KB Output is correct
56 Correct 293 ms 563784 KB Output is correct
57 Correct 282 ms 563876 KB Output is correct
58 Correct 279 ms 563804 KB Output is correct
59 Correct 298 ms 564020 KB Output is correct
60 Correct 289 ms 563824 KB Output is correct
61 Correct 280 ms 563844 KB Output is correct
62 Correct 286 ms 563916 KB Output is correct
63 Correct 280 ms 563900 KB Output is correct
64 Correct 289 ms 563836 KB Output is correct
65 Correct 285 ms 563964 KB Output is correct
66 Correct 290 ms 564036 KB Output is correct
67 Correct 287 ms 564028 KB Output is correct
68 Correct 280 ms 563916 KB Output is correct
69 Correct 281 ms 563888 KB Output is correct
70 Correct 278 ms 563936 KB Output is correct
71 Correct 276 ms 563928 KB Output is correct
72 Correct 287 ms 563916 KB Output is correct
73 Correct 279 ms 563868 KB Output is correct
74 Correct 282 ms 563916 KB Output is correct
75 Correct 282 ms 564236 KB Output is correct
76 Correct 282 ms 563852 KB Output is correct
77 Correct 348 ms 563920 KB Output is correct
78 Correct 280 ms 563916 KB Output is correct
79 Correct 278 ms 563908 KB Output is correct
80 Correct 277 ms 563960 KB Output is correct
81 Correct 276 ms 563904 KB Output is correct
82 Correct 288 ms 563944 KB Output is correct
83 Correct 279 ms 563932 KB Output is correct
84 Correct 274 ms 563916 KB Output is correct
85 Correct 270 ms 564052 KB Output is correct
86 Correct 276 ms 563812 KB Output is correct
87 Correct 281 ms 564016 KB Output is correct
88 Correct 276 ms 563788 KB Output is correct
89 Correct 285 ms 563888 KB Output is correct
90 Correct 276 ms 564000 KB Output is correct
91 Correct 274 ms 563900 KB Output is correct
92 Correct 276 ms 563888 KB Output is correct
93 Correct 273 ms 563976 KB Output is correct
94 Correct 271 ms 563868 KB Output is correct
95 Correct 280 ms 563952 KB Output is correct
96 Correct 275 ms 563940 KB Output is correct
97 Correct 276 ms 564020 KB Output is correct
98 Correct 273 ms 563920 KB Output is correct
99 Correct 275 ms 563824 KB Output is correct
100 Correct 280 ms 563816 KB Output is correct
101 Correct 276 ms 563848 KB Output is correct
102 Correct 279 ms 563844 KB Output is correct
103 Correct 282 ms 563788 KB Output is correct
104 Correct 280 ms 563904 KB Output is correct
105 Correct 279 ms 563960 KB Output is correct
106 Correct 276 ms 564044 KB Output is correct
107 Correct 278 ms 563820 KB Output is correct
108 Correct 287 ms 564016 KB Output is correct
109 Correct 283 ms 564016 KB Output is correct
110 Correct 282 ms 564876 KB Output is correct
111 Correct 301 ms 565256 KB Output is correct
112 Correct 296 ms 565212 KB Output is correct
113 Correct 296 ms 565364 KB Output is correct
114 Correct 283 ms 565340 KB Output is correct
115 Correct 284 ms 565268 KB Output is correct
116 Correct 285 ms 564916 KB Output is correct
117 Correct 276 ms 564896 KB Output is correct
118 Correct 280 ms 564896 KB Output is correct
119 Correct 284 ms 566768 KB Output is correct
120 Correct 296 ms 567756 KB Output is correct
121 Correct 282 ms 567612 KB Output is correct
122 Correct 291 ms 567904 KB Output is correct
123 Correct 289 ms 567932 KB Output is correct
124 Correct 299 ms 574284 KB Output is correct
125 Correct 354 ms 592180 KB Output is correct
126 Correct 336 ms 598236 KB Output is correct
127 Correct 353 ms 605588 KB Output is correct
128 Correct 338 ms 607864 KB Output is correct
129 Correct 354 ms 607908 KB Output is correct
130 Correct 353 ms 598732 KB Output is correct
131 Correct 343 ms 594360 KB Output is correct
132 Correct 296 ms 564924 KB Output is correct
133 Correct 293 ms 563832 KB Output is correct
134 Correct 284 ms 563996 KB Output is correct
135 Correct 283 ms 564812 KB Output is correct
136 Correct 285 ms 565816 KB Output is correct
137 Correct 281 ms 565400 KB Output is correct
138 Correct 286 ms 565324 KB Output is correct
139 Correct 289 ms 564872 KB Output is correct
140 Correct 292 ms 564900 KB Output is correct
141 Correct 280 ms 565368 KB Output is correct
142 Correct 279 ms 565324 KB Output is correct
143 Correct 280 ms 565332 KB Output is correct
144 Correct 296 ms 566504 KB Output is correct
145 Correct 292 ms 566464 KB Output is correct
146 Correct 289 ms 565480 KB Output is correct
147 Correct 297 ms 565196 KB Output is correct
148 Correct 286 ms 564932 KB Output is correct
149 Correct 290 ms 565064 KB Output is correct
150 Correct 288 ms 565092 KB Output is correct
151 Correct 282 ms 564904 KB Output is correct
152 Correct 280 ms 564940 KB Output is correct
153 Correct 291 ms 565080 KB Output is correct
154 Correct 324 ms 566664 KB Output is correct
155 Correct 295 ms 565880 KB Output is correct
156 Correct 286 ms 566848 KB Output is correct
157 Correct 305 ms 566400 KB Output is correct
158 Correct 317 ms 567784 KB Output is correct
159 Correct 320 ms 566572 KB Output is correct
160 Correct 329 ms 566568 KB Output is correct
161 Correct 282 ms 567572 KB Output is correct
162 Correct 289 ms 567864 KB Output is correct
163 Correct 304 ms 567908 KB Output is correct
164 Correct 316 ms 570364 KB Output is correct
165 Correct 321 ms 570260 KB Output is correct
166 Correct 307 ms 567964 KB Output is correct
167 Correct 296 ms 566840 KB Output is correct
168 Correct 301 ms 567056 KB Output is correct
169 Correct 297 ms 566732 KB Output is correct
170 Correct 302 ms 566932 KB Output is correct
171 Correct 302 ms 566748 KB Output is correct
172 Correct 325 ms 566756 KB Output is correct
173 Correct 292 ms 566656 KB Output is correct
174 Correct 306 ms 567424 KB Output is correct
175 Correct 420 ms 569828 KB Output is correct
176 Correct 378 ms 584776 KB Output is correct
177 Correct 464 ms 582324 KB Output is correct
178 Correct 338 ms 589020 KB Output is correct
179 Correct 401 ms 590648 KB Output is correct
180 Correct 463 ms 592692 KB Output is correct
181 Correct 454 ms 589368 KB Output is correct
182 Correct 477 ms 591788 KB Output is correct
183 Correct 500 ms 591884 KB Output is correct
184 Correct 1304 ms 615180 KB Output is correct
185 Correct 471 ms 596500 KB Output is correct
186 Correct 372 ms 601852 KB Output is correct
187 Correct 490 ms 603980 KB Output is correct
188 Correct 434 ms 638964 KB Output is correct
189 Correct 1082 ms 615424 KB Output is correct
190 Correct 654 ms 615364 KB Output is correct
191 Correct 433 ms 639104 KB Output is correct
192 Correct 382 ms 640008 KB Output is correct
193 Correct 409 ms 640508 KB Output is correct
194 Correct 959 ms 693192 KB Output is correct
195 Correct 826 ms 692972 KB Output is correct
196 Correct 670 ms 613856 KB Output is correct
197 Correct 505 ms 617036 KB Output is correct
198 Correct 497 ms 621436 KB Output is correct
199 Correct 645 ms 615244 KB Output is correct
200 Correct 677 ms 615988 KB Output is correct
201 Correct 947 ms 615584 KB Output is correct
202 Correct 1265 ms 615396 KB Output is correct
203 Execution timed out 2090 ms 677676 KB Time limit exceeded
204 Halted 0 ms 0 KB -