답안 #921642

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
921642 2024-02-04T08:40:44 Z vjudge1 Maze (JOI23_ho_t3) C++17
100 / 100
551 ms 477692 KB
#include <bits/stdc++.h>
using namespace std;

#pragma GCC optimize("O3,unroll-loops")
// #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
// Ofast, O0, O1, O2, O3, unroll-loops, fast-math, trapv

typedef long long ll;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;

#define Mp          make_pair
#define sep         ' '
#define endl        '\n'
#define F	        first
#define S	        second
#define pb          push_back
#define all(x)      (x).begin(),(x).end()
#define kill(res)	cout << res << '\n', exit(0);
#define set_dec(x)	cout << fixed << setprecision(x);
#define fast_io     ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define file_io     freopen("input.txt", "r", stdin) ; freopen("output.txt", "w", stdout);

mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

const ll N = 6e6 + 50;
const ll Mod = 1e9 + 7;

int R, C, n; 
pii s, t;

string a[N];

struct cst{
    int F = Mod, S, T;
};

vector<cst> cost[N];

bool ok(int x, int y){
    return (0 <= min(x, y) && x < R && y < C);
}

int main(){
    fast_io;
    
    cin >> R >> C >> n >> s.F >> s.S >> t.F >> t.S;
    s.F--; s.S--; t.F--; t.S--; n--; n = -n;

    for(int i = 0; i < R; i++) cin >> a[i];
    for(int i = 0; i < R; i++) cost[i].resize(C);

    vector<pii> q0, q1;

    q0.pb({s.F, s.S});
    cost[s.F][s.S] = {0, 0, 0};

    while(!q0.empty()){
        for(int i = 0; i < q0.size(); i++){
            auto [r, c] = q0[i];
            auto [x, y, z] = cost[r][c];
            if(y != 0){
                if(ok(r+1, c) && x < cost[r+1][c].F){
                    cost[r+1][c] = {x, y+1, z};
                    q0.pb({r+1, c});
                }
                if(ok(r-1, c) && x < cost[r-1][c].F){
                    cost[r-1][c] = {x, y+1, z};
                    q0.pb({r-1, c});
                }
            }
        }
        for(int i = 0; i < q0.size(); i++){
            auto [r, c] = q0[i];
            auto [x, y, z] = cost[r][c];
            if(z != 0){
                if(ok(r, c+1) && x < cost[r][c+1].F){
                    cost[r][c+1] = {x, y, z+1};
                    q0.pb({r, c+1});
                }
                if(ok(r, c-1) && x < cost[r][c-1].F){
                    cost[r][c-1] = {x, y, z+1};
                    q0.pb({r, c-1});
                }
            }
        }
        for(int i = 0; i < q0.size(); i++){
            auto [r, c] = q0[i];
            auto [x, y, z] = cost[r][c];
            if(ok(r+1, c)){
                if(a[r+1][c] == '#'){
                    if(cost[r+1][c].F > x+1){
                        cost[r+1][c] = {x+1, n, n};
                        q1.pb({r+1, c});
                    }
                }
                else{
                    if(cost[r+1][c].F > x){
                        cost[r+1][c] = {x, 0, 0};
                        q0.pb({r+1, c});
                    }
                }
            }
            if(ok(r-1, c)){
                if(a[r-1][c] == '#'){
                    if(cost[r-1][c].F > x+1){
                        cost[r-1][c] = {x+1, n, n};
                        q1.pb({r-1, c});
                    }
                }
                else{
                    if(cost[r-1][c].F > x){
                        cost[r-1][c] = {x, 0, 0};
                        q0.pb({r-1, c});
                    }
                }
            }
            if(ok(r, c+1)){
                if(a[r][c+1] == '#'){
                    if(cost[r][c+1].F > x+1){
                        cost[r][c+1] = {x+1, n, n};
                        q1.pb({r, c+1});
                    }
                }
                else{
                    if(cost[r][c+1].F > x){
                        cost[r][c+1] = {x, 0, 0};
                        q0.pb({r, c+1});
                    }
                }
            }
            if(ok(r, c-1)){
                if(a[r][c-1] == '#'){
                    if(cost[r][c-1].F > x+1){
                        cost[r][c-1] = {x+1, n, n};
                        q1.pb({r, c-1});
                    }
                }
                else{
                    if(cost[r][c-1].F > x){
                        cost[r][c-1] = {x, 0, 0};
                        q0.pb({r, c-1});
                    }
                }
            }
        }
        q0.clear();
        swap(q0, q1);
    }

    cout << cost[t.F][t.S].F;

}

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:59:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   59 |         for(int i = 0; i < q0.size(); i++){
      |                        ~~^~~~~~~~~~~
Main.cpp:73:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   73 |         for(int i = 0; i < q0.size(); i++){
      |                        ~~^~~~~~~~~~~
Main.cpp:87:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   87 |         for(int i = 0; i < q0.size(); i++){
      |                        ~~^~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 143 ms 329024 KB Output is correct
2 Correct 151 ms 329208 KB Output is correct
3 Correct 149 ms 329116 KB Output is correct
4 Correct 141 ms 329240 KB Output is correct
5 Correct 142 ms 329160 KB Output is correct
6 Correct 140 ms 329200 KB Output is correct
7 Correct 142 ms 329040 KB Output is correct
8 Correct 140 ms 329160 KB Output is correct
9 Correct 150 ms 329204 KB Output is correct
10 Correct 143 ms 329112 KB Output is correct
11 Correct 144 ms 329468 KB Output is correct
12 Correct 142 ms 329204 KB Output is correct
13 Correct 141 ms 329044 KB Output is correct
14 Correct 155 ms 329296 KB Output is correct
15 Correct 143 ms 329040 KB Output is correct
16 Correct 141 ms 329040 KB Output is correct
17 Correct 153 ms 329236 KB Output is correct
18 Correct 144 ms 328980 KB Output is correct
19 Correct 149 ms 329852 KB Output is correct
20 Correct 140 ms 329808 KB Output is correct
21 Correct 127 ms 330808 KB Output is correct
22 Correct 127 ms 329944 KB Output is correct
23 Correct 140 ms 329868 KB Output is correct
24 Correct 128 ms 330364 KB Output is correct
25 Correct 121 ms 330064 KB Output is correct
26 Correct 139 ms 330324 KB Output is correct
27 Correct 129 ms 330116 KB Output is correct
28 Correct 123 ms 330012 KB Output is correct
29 Correct 130 ms 331252 KB Output is correct
30 Correct 120 ms 330044 KB Output is correct
31 Correct 120 ms 333292 KB Output is correct
32 Correct 129 ms 331380 KB Output is correct
33 Correct 120 ms 331156 KB Output is correct
34 Correct 120 ms 331228 KB Output is correct
35 Correct 122 ms 331232 KB Output is correct
36 Correct 123 ms 331636 KB Output is correct
37 Correct 124 ms 331444 KB Output is correct
38 Correct 121 ms 331160 KB Output is correct
39 Correct 176 ms 349920 KB Output is correct
40 Correct 122 ms 331600 KB Output is correct
41 Correct 131 ms 331876 KB Output is correct
42 Correct 121 ms 332112 KB Output is correct
43 Correct 119 ms 332624 KB Output is correct
44 Correct 141 ms 339540 KB Output is correct
45 Correct 145 ms 340260 KB Output is correct
46 Correct 192 ms 367012 KB Output is correct
47 Correct 181 ms 350032 KB Output is correct
48 Correct 153 ms 349892 KB Output is correct
49 Correct 136 ms 349688 KB Output is correct
50 Correct 147 ms 349684 KB Output is correct
51 Correct 229 ms 350952 KB Output is correct
52 Correct 191 ms 350304 KB Output is correct
53 Correct 190 ms 350164 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 123 ms 329216 KB Output is correct
2 Correct 116 ms 329220 KB Output is correct
3 Correct 103 ms 329056 KB Output is correct
4 Correct 106 ms 329216 KB Output is correct
5 Correct 111 ms 329204 KB Output is correct
6 Correct 102 ms 328976 KB Output is correct
7 Correct 106 ms 329048 KB Output is correct
8 Correct 103 ms 329216 KB Output is correct
9 Correct 100 ms 329216 KB Output is correct
10 Correct 103 ms 328988 KB Output is correct
11 Correct 112 ms 329016 KB Output is correct
12 Correct 101 ms 329008 KB Output is correct
13 Correct 102 ms 329236 KB Output is correct
14 Correct 100 ms 329052 KB Output is correct
15 Correct 110 ms 329232 KB Output is correct
16 Correct 103 ms 329044 KB Output is correct
17 Correct 101 ms 329108 KB Output is correct
18 Correct 102 ms 329204 KB Output is correct
19 Correct 103 ms 329044 KB Output is correct
20 Correct 101 ms 329044 KB Output is correct
21 Correct 102 ms 329032 KB Output is correct
22 Correct 103 ms 329108 KB Output is correct
23 Correct 105 ms 329080 KB Output is correct
24 Correct 101 ms 329040 KB Output is correct
25 Correct 100 ms 329208 KB Output is correct
26 Correct 103 ms 329044 KB Output is correct
27 Correct 113 ms 329296 KB Output is correct
28 Correct 114 ms 329220 KB Output is correct
29 Correct 108 ms 329204 KB Output is correct
30 Correct 119 ms 329176 KB Output is correct
31 Correct 103 ms 329044 KB Output is correct
32 Correct 116 ms 329176 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 108 ms 329212 KB Output is correct
2 Correct 101 ms 329308 KB Output is correct
3 Correct 108 ms 329256 KB Output is correct
4 Correct 102 ms 329104 KB Output is correct
5 Correct 102 ms 329040 KB Output is correct
6 Correct 99 ms 329040 KB Output is correct
7 Correct 102 ms 329040 KB Output is correct
8 Correct 102 ms 329044 KB Output is correct
9 Correct 100 ms 329232 KB Output is correct
10 Correct 101 ms 329044 KB Output is correct
11 Correct 111 ms 329236 KB Output is correct
12 Correct 117 ms 329204 KB Output is correct
13 Correct 100 ms 329044 KB Output is correct
14 Correct 118 ms 329040 KB Output is correct
15 Correct 111 ms 329208 KB Output is correct
16 Correct 103 ms 329040 KB Output is correct
17 Correct 102 ms 329136 KB Output is correct
18 Correct 102 ms 329116 KB Output is correct
19 Correct 106 ms 329364 KB Output is correct
20 Correct 103 ms 328960 KB Output is correct
21 Correct 100 ms 329040 KB Output is correct
22 Correct 101 ms 329020 KB Output is correct
23 Correct 101 ms 329220 KB Output is correct
24 Correct 102 ms 329044 KB Output is correct
25 Correct 103 ms 329808 KB Output is correct
26 Correct 106 ms 330448 KB Output is correct
27 Correct 106 ms 330696 KB Output is correct
28 Correct 104 ms 330452 KB Output is correct
29 Correct 105 ms 330624 KB Output is correct
30 Correct 114 ms 330660 KB Output is correct
31 Correct 106 ms 330068 KB Output is correct
32 Correct 108 ms 330172 KB Output is correct
33 Correct 105 ms 330144 KB Output is correct
34 Correct 116 ms 332132 KB Output is correct
35 Correct 111 ms 333252 KB Output is correct
36 Correct 120 ms 333356 KB Output is correct
37 Correct 110 ms 333252 KB Output is correct
38 Correct 109 ms 333440 KB Output is correct
39 Correct 128 ms 341068 KB Output is correct
40 Correct 202 ms 361308 KB Output is correct
41 Correct 148 ms 366520 KB Output is correct
42 Correct 152 ms 368280 KB Output is correct
43 Correct 200 ms 366780 KB Output is correct
44 Correct 182 ms 366256 KB Output is correct
45 Correct 195 ms 365684 KB Output is correct
46 Correct 189 ms 366044 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 123 ms 329216 KB Output is correct
2 Correct 116 ms 329220 KB Output is correct
3 Correct 103 ms 329056 KB Output is correct
4 Correct 106 ms 329216 KB Output is correct
5 Correct 111 ms 329204 KB Output is correct
6 Correct 102 ms 328976 KB Output is correct
7 Correct 106 ms 329048 KB Output is correct
8 Correct 103 ms 329216 KB Output is correct
9 Correct 100 ms 329216 KB Output is correct
10 Correct 103 ms 328988 KB Output is correct
11 Correct 112 ms 329016 KB Output is correct
12 Correct 101 ms 329008 KB Output is correct
13 Correct 102 ms 329236 KB Output is correct
14 Correct 100 ms 329052 KB Output is correct
15 Correct 110 ms 329232 KB Output is correct
16 Correct 103 ms 329044 KB Output is correct
17 Correct 101 ms 329108 KB Output is correct
18 Correct 102 ms 329204 KB Output is correct
19 Correct 103 ms 329044 KB Output is correct
20 Correct 101 ms 329044 KB Output is correct
21 Correct 102 ms 329032 KB Output is correct
22 Correct 103 ms 329108 KB Output is correct
23 Correct 105 ms 329080 KB Output is correct
24 Correct 101 ms 329040 KB Output is correct
25 Correct 100 ms 329208 KB Output is correct
26 Correct 103 ms 329044 KB Output is correct
27 Correct 113 ms 329296 KB Output is correct
28 Correct 114 ms 329220 KB Output is correct
29 Correct 108 ms 329204 KB Output is correct
30 Correct 119 ms 329176 KB Output is correct
31 Correct 103 ms 329044 KB Output is correct
32 Correct 116 ms 329176 KB Output is correct
33 Correct 102 ms 330048 KB Output is correct
34 Correct 98 ms 329020 KB Output is correct
35 Correct 96 ms 329040 KB Output is correct
36 Correct 102 ms 329788 KB Output is correct
37 Correct 103 ms 329708 KB Output is correct
38 Correct 97 ms 330512 KB Output is correct
39 Correct 101 ms 330668 KB Output is correct
40 Correct 100 ms 330044 KB Output is correct
41 Correct 101 ms 329812 KB Output is correct
42 Correct 100 ms 330612 KB Output is correct
43 Correct 99 ms 330688 KB Output is correct
44 Correct 108 ms 330584 KB Output is correct
45 Correct 107 ms 330064 KB Output is correct
46 Correct 97 ms 330064 KB Output is correct
47 Correct 101 ms 330072 KB Output is correct
48 Correct 104 ms 329940 KB Output is correct
49 Correct 101 ms 330048 KB Output is correct
50 Correct 97 ms 330064 KB Output is correct
51 Correct 100 ms 330176 KB Output is correct
52 Correct 102 ms 330140 KB Output is correct
53 Correct 98 ms 330064 KB Output is correct
54 Correct 105 ms 330084 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 123 ms 329216 KB Output is correct
2 Correct 116 ms 329220 KB Output is correct
3 Correct 103 ms 329056 KB Output is correct
4 Correct 106 ms 329216 KB Output is correct
5 Correct 111 ms 329204 KB Output is correct
6 Correct 102 ms 328976 KB Output is correct
7 Correct 106 ms 329048 KB Output is correct
8 Correct 103 ms 329216 KB Output is correct
9 Correct 100 ms 329216 KB Output is correct
10 Correct 103 ms 328988 KB Output is correct
11 Correct 112 ms 329016 KB Output is correct
12 Correct 101 ms 329008 KB Output is correct
13 Correct 102 ms 329236 KB Output is correct
14 Correct 100 ms 329052 KB Output is correct
15 Correct 110 ms 329232 KB Output is correct
16 Correct 103 ms 329044 KB Output is correct
17 Correct 101 ms 329108 KB Output is correct
18 Correct 102 ms 329204 KB Output is correct
19 Correct 103 ms 329044 KB Output is correct
20 Correct 101 ms 329044 KB Output is correct
21 Correct 102 ms 329032 KB Output is correct
22 Correct 103 ms 329108 KB Output is correct
23 Correct 105 ms 329080 KB Output is correct
24 Correct 101 ms 329040 KB Output is correct
25 Correct 100 ms 329208 KB Output is correct
26 Correct 103 ms 329044 KB Output is correct
27 Correct 113 ms 329296 KB Output is correct
28 Correct 114 ms 329220 KB Output is correct
29 Correct 108 ms 329204 KB Output is correct
30 Correct 119 ms 329176 KB Output is correct
31 Correct 103 ms 329044 KB Output is correct
32 Correct 116 ms 329176 KB Output is correct
33 Correct 102 ms 330048 KB Output is correct
34 Correct 98 ms 329020 KB Output is correct
35 Correct 96 ms 329040 KB Output is correct
36 Correct 102 ms 329788 KB Output is correct
37 Correct 103 ms 329708 KB Output is correct
38 Correct 97 ms 330512 KB Output is correct
39 Correct 101 ms 330668 KB Output is correct
40 Correct 100 ms 330044 KB Output is correct
41 Correct 101 ms 329812 KB Output is correct
42 Correct 100 ms 330612 KB Output is correct
43 Correct 99 ms 330688 KB Output is correct
44 Correct 108 ms 330584 KB Output is correct
45 Correct 107 ms 330064 KB Output is correct
46 Correct 97 ms 330064 KB Output is correct
47 Correct 101 ms 330072 KB Output is correct
48 Correct 104 ms 329940 KB Output is correct
49 Correct 101 ms 330048 KB Output is correct
50 Correct 97 ms 330064 KB Output is correct
51 Correct 100 ms 330176 KB Output is correct
52 Correct 102 ms 330140 KB Output is correct
53 Correct 98 ms 330064 KB Output is correct
54 Correct 105 ms 330084 KB Output is correct
55 Correct 99 ms 331100 KB Output is correct
56 Correct 105 ms 329872 KB Output is correct
57 Correct 101 ms 332380 KB Output is correct
58 Correct 103 ms 331088 KB Output is correct
59 Correct 106 ms 333256 KB Output is correct
60 Correct 104 ms 331600 KB Output is correct
61 Correct 104 ms 331308 KB Output is correct
62 Correct 99 ms 333252 KB Output is correct
63 Correct 105 ms 333432 KB Output is correct
64 Correct 99 ms 333256 KB Output is correct
65 Correct 105 ms 331396 KB Output is correct
66 Correct 101 ms 331212 KB Output is correct
67 Correct 102 ms 331400 KB Output is correct
68 Correct 106 ms 331264 KB Output is correct
69 Correct 115 ms 331448 KB Output is correct
70 Correct 103 ms 331360 KB Output is correct
71 Correct 103 ms 331600 KB Output is correct
72 Correct 114 ms 331820 KB Output is correct
73 Correct 109 ms 331348 KB Output is correct
74 Correct 104 ms 331128 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 143 ms 329024 KB Output is correct
2 Correct 151 ms 329208 KB Output is correct
3 Correct 149 ms 329116 KB Output is correct
4 Correct 141 ms 329240 KB Output is correct
5 Correct 142 ms 329160 KB Output is correct
6 Correct 140 ms 329200 KB Output is correct
7 Correct 142 ms 329040 KB Output is correct
8 Correct 140 ms 329160 KB Output is correct
9 Correct 150 ms 329204 KB Output is correct
10 Correct 143 ms 329112 KB Output is correct
11 Correct 144 ms 329468 KB Output is correct
12 Correct 142 ms 329204 KB Output is correct
13 Correct 141 ms 329044 KB Output is correct
14 Correct 155 ms 329296 KB Output is correct
15 Correct 143 ms 329040 KB Output is correct
16 Correct 141 ms 329040 KB Output is correct
17 Correct 153 ms 329236 KB Output is correct
18 Correct 144 ms 328980 KB Output is correct
19 Correct 149 ms 329852 KB Output is correct
20 Correct 140 ms 329808 KB Output is correct
21 Correct 127 ms 330808 KB Output is correct
22 Correct 127 ms 329944 KB Output is correct
23 Correct 140 ms 329868 KB Output is correct
24 Correct 128 ms 330364 KB Output is correct
25 Correct 121 ms 330064 KB Output is correct
26 Correct 139 ms 330324 KB Output is correct
27 Correct 129 ms 330116 KB Output is correct
28 Correct 123 ms 330012 KB Output is correct
29 Correct 130 ms 331252 KB Output is correct
30 Correct 120 ms 330044 KB Output is correct
31 Correct 120 ms 333292 KB Output is correct
32 Correct 129 ms 331380 KB Output is correct
33 Correct 120 ms 331156 KB Output is correct
34 Correct 120 ms 331228 KB Output is correct
35 Correct 122 ms 331232 KB Output is correct
36 Correct 123 ms 331636 KB Output is correct
37 Correct 124 ms 331444 KB Output is correct
38 Correct 121 ms 331160 KB Output is correct
39 Correct 176 ms 349920 KB Output is correct
40 Correct 122 ms 331600 KB Output is correct
41 Correct 131 ms 331876 KB Output is correct
42 Correct 121 ms 332112 KB Output is correct
43 Correct 119 ms 332624 KB Output is correct
44 Correct 141 ms 339540 KB Output is correct
45 Correct 145 ms 340260 KB Output is correct
46 Correct 192 ms 367012 KB Output is correct
47 Correct 181 ms 350032 KB Output is correct
48 Correct 153 ms 349892 KB Output is correct
49 Correct 136 ms 349688 KB Output is correct
50 Correct 147 ms 349684 KB Output is correct
51 Correct 229 ms 350952 KB Output is correct
52 Correct 191 ms 350304 KB Output is correct
53 Correct 190 ms 350164 KB Output is correct
54 Correct 123 ms 329216 KB Output is correct
55 Correct 116 ms 329220 KB Output is correct
56 Correct 103 ms 329056 KB Output is correct
57 Correct 106 ms 329216 KB Output is correct
58 Correct 111 ms 329204 KB Output is correct
59 Correct 102 ms 328976 KB Output is correct
60 Correct 106 ms 329048 KB Output is correct
61 Correct 103 ms 329216 KB Output is correct
62 Correct 100 ms 329216 KB Output is correct
63 Correct 103 ms 328988 KB Output is correct
64 Correct 112 ms 329016 KB Output is correct
65 Correct 101 ms 329008 KB Output is correct
66 Correct 102 ms 329236 KB Output is correct
67 Correct 100 ms 329052 KB Output is correct
68 Correct 110 ms 329232 KB Output is correct
69 Correct 103 ms 329044 KB Output is correct
70 Correct 101 ms 329108 KB Output is correct
71 Correct 102 ms 329204 KB Output is correct
72 Correct 103 ms 329044 KB Output is correct
73 Correct 101 ms 329044 KB Output is correct
74 Correct 102 ms 329032 KB Output is correct
75 Correct 103 ms 329108 KB Output is correct
76 Correct 105 ms 329080 KB Output is correct
77 Correct 101 ms 329040 KB Output is correct
78 Correct 100 ms 329208 KB Output is correct
79 Correct 103 ms 329044 KB Output is correct
80 Correct 113 ms 329296 KB Output is correct
81 Correct 114 ms 329220 KB Output is correct
82 Correct 108 ms 329204 KB Output is correct
83 Correct 119 ms 329176 KB Output is correct
84 Correct 103 ms 329044 KB Output is correct
85 Correct 116 ms 329176 KB Output is correct
86 Correct 108 ms 329212 KB Output is correct
87 Correct 101 ms 329308 KB Output is correct
88 Correct 108 ms 329256 KB Output is correct
89 Correct 102 ms 329104 KB Output is correct
90 Correct 102 ms 329040 KB Output is correct
91 Correct 99 ms 329040 KB Output is correct
92 Correct 102 ms 329040 KB Output is correct
93 Correct 102 ms 329044 KB Output is correct
94 Correct 100 ms 329232 KB Output is correct
95 Correct 101 ms 329044 KB Output is correct
96 Correct 111 ms 329236 KB Output is correct
97 Correct 117 ms 329204 KB Output is correct
98 Correct 100 ms 329044 KB Output is correct
99 Correct 118 ms 329040 KB Output is correct
100 Correct 111 ms 329208 KB Output is correct
101 Correct 103 ms 329040 KB Output is correct
102 Correct 102 ms 329136 KB Output is correct
103 Correct 102 ms 329116 KB Output is correct
104 Correct 106 ms 329364 KB Output is correct
105 Correct 103 ms 328960 KB Output is correct
106 Correct 100 ms 329040 KB Output is correct
107 Correct 101 ms 329020 KB Output is correct
108 Correct 101 ms 329220 KB Output is correct
109 Correct 102 ms 329044 KB Output is correct
110 Correct 103 ms 329808 KB Output is correct
111 Correct 106 ms 330448 KB Output is correct
112 Correct 106 ms 330696 KB Output is correct
113 Correct 104 ms 330452 KB Output is correct
114 Correct 105 ms 330624 KB Output is correct
115 Correct 114 ms 330660 KB Output is correct
116 Correct 106 ms 330068 KB Output is correct
117 Correct 108 ms 330172 KB Output is correct
118 Correct 105 ms 330144 KB Output is correct
119 Correct 116 ms 332132 KB Output is correct
120 Correct 111 ms 333252 KB Output is correct
121 Correct 120 ms 333356 KB Output is correct
122 Correct 110 ms 333252 KB Output is correct
123 Correct 109 ms 333440 KB Output is correct
124 Correct 128 ms 341068 KB Output is correct
125 Correct 202 ms 361308 KB Output is correct
126 Correct 148 ms 366520 KB Output is correct
127 Correct 152 ms 368280 KB Output is correct
128 Correct 200 ms 366780 KB Output is correct
129 Correct 182 ms 366256 KB Output is correct
130 Correct 195 ms 365684 KB Output is correct
131 Correct 189 ms 366044 KB Output is correct
132 Correct 102 ms 330048 KB Output is correct
133 Correct 98 ms 329020 KB Output is correct
134 Correct 96 ms 329040 KB Output is correct
135 Correct 102 ms 329788 KB Output is correct
136 Correct 103 ms 329708 KB Output is correct
137 Correct 97 ms 330512 KB Output is correct
138 Correct 101 ms 330668 KB Output is correct
139 Correct 100 ms 330044 KB Output is correct
140 Correct 101 ms 329812 KB Output is correct
141 Correct 100 ms 330612 KB Output is correct
142 Correct 99 ms 330688 KB Output is correct
143 Correct 108 ms 330584 KB Output is correct
144 Correct 107 ms 330064 KB Output is correct
145 Correct 97 ms 330064 KB Output is correct
146 Correct 101 ms 330072 KB Output is correct
147 Correct 104 ms 329940 KB Output is correct
148 Correct 101 ms 330048 KB Output is correct
149 Correct 97 ms 330064 KB Output is correct
150 Correct 100 ms 330176 KB Output is correct
151 Correct 102 ms 330140 KB Output is correct
152 Correct 98 ms 330064 KB Output is correct
153 Correct 105 ms 330084 KB Output is correct
154 Correct 99 ms 331100 KB Output is correct
155 Correct 105 ms 329872 KB Output is correct
156 Correct 101 ms 332380 KB Output is correct
157 Correct 103 ms 331088 KB Output is correct
158 Correct 106 ms 333256 KB Output is correct
159 Correct 104 ms 331600 KB Output is correct
160 Correct 104 ms 331308 KB Output is correct
161 Correct 99 ms 333252 KB Output is correct
162 Correct 105 ms 333432 KB Output is correct
163 Correct 99 ms 333256 KB Output is correct
164 Correct 105 ms 331396 KB Output is correct
165 Correct 101 ms 331212 KB Output is correct
166 Correct 102 ms 331400 KB Output is correct
167 Correct 106 ms 331264 KB Output is correct
168 Correct 115 ms 331448 KB Output is correct
169 Correct 103 ms 331360 KB Output is correct
170 Correct 103 ms 331600 KB Output is correct
171 Correct 114 ms 331820 KB Output is correct
172 Correct 109 ms 331348 KB Output is correct
173 Correct 104 ms 331128 KB Output is correct
174 Correct 118 ms 332120 KB Output is correct
175 Correct 115 ms 333976 KB Output is correct
176 Correct 143 ms 339824 KB Output is correct
177 Correct 138 ms 343188 KB Output is correct
178 Correct 164 ms 347244 KB Output is correct
179 Correct 169 ms 350168 KB Output is correct
180 Correct 183 ms 350544 KB Output is correct
181 Correct 165 ms 350912 KB Output is correct
182 Correct 175 ms 351948 KB Output is correct
183 Correct 169 ms 353436 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 143 ms 329024 KB Output is correct
2 Correct 151 ms 329208 KB Output is correct
3 Correct 149 ms 329116 KB Output is correct
4 Correct 141 ms 329240 KB Output is correct
5 Correct 142 ms 329160 KB Output is correct
6 Correct 140 ms 329200 KB Output is correct
7 Correct 142 ms 329040 KB Output is correct
8 Correct 140 ms 329160 KB Output is correct
9 Correct 150 ms 329204 KB Output is correct
10 Correct 143 ms 329112 KB Output is correct
11 Correct 144 ms 329468 KB Output is correct
12 Correct 142 ms 329204 KB Output is correct
13 Correct 141 ms 329044 KB Output is correct
14 Correct 155 ms 329296 KB Output is correct
15 Correct 143 ms 329040 KB Output is correct
16 Correct 141 ms 329040 KB Output is correct
17 Correct 153 ms 329236 KB Output is correct
18 Correct 144 ms 328980 KB Output is correct
19 Correct 149 ms 329852 KB Output is correct
20 Correct 140 ms 329808 KB Output is correct
21 Correct 127 ms 330808 KB Output is correct
22 Correct 127 ms 329944 KB Output is correct
23 Correct 140 ms 329868 KB Output is correct
24 Correct 128 ms 330364 KB Output is correct
25 Correct 121 ms 330064 KB Output is correct
26 Correct 139 ms 330324 KB Output is correct
27 Correct 129 ms 330116 KB Output is correct
28 Correct 123 ms 330012 KB Output is correct
29 Correct 130 ms 331252 KB Output is correct
30 Correct 120 ms 330044 KB Output is correct
31 Correct 120 ms 333292 KB Output is correct
32 Correct 129 ms 331380 KB Output is correct
33 Correct 120 ms 331156 KB Output is correct
34 Correct 120 ms 331228 KB Output is correct
35 Correct 122 ms 331232 KB Output is correct
36 Correct 123 ms 331636 KB Output is correct
37 Correct 124 ms 331444 KB Output is correct
38 Correct 121 ms 331160 KB Output is correct
39 Correct 176 ms 349920 KB Output is correct
40 Correct 122 ms 331600 KB Output is correct
41 Correct 131 ms 331876 KB Output is correct
42 Correct 121 ms 332112 KB Output is correct
43 Correct 119 ms 332624 KB Output is correct
44 Correct 141 ms 339540 KB Output is correct
45 Correct 145 ms 340260 KB Output is correct
46 Correct 192 ms 367012 KB Output is correct
47 Correct 181 ms 350032 KB Output is correct
48 Correct 153 ms 349892 KB Output is correct
49 Correct 136 ms 349688 KB Output is correct
50 Correct 147 ms 349684 KB Output is correct
51 Correct 229 ms 350952 KB Output is correct
52 Correct 191 ms 350304 KB Output is correct
53 Correct 190 ms 350164 KB Output is correct
54 Correct 123 ms 329216 KB Output is correct
55 Correct 116 ms 329220 KB Output is correct
56 Correct 103 ms 329056 KB Output is correct
57 Correct 106 ms 329216 KB Output is correct
58 Correct 111 ms 329204 KB Output is correct
59 Correct 102 ms 328976 KB Output is correct
60 Correct 106 ms 329048 KB Output is correct
61 Correct 103 ms 329216 KB Output is correct
62 Correct 100 ms 329216 KB Output is correct
63 Correct 103 ms 328988 KB Output is correct
64 Correct 112 ms 329016 KB Output is correct
65 Correct 101 ms 329008 KB Output is correct
66 Correct 102 ms 329236 KB Output is correct
67 Correct 100 ms 329052 KB Output is correct
68 Correct 110 ms 329232 KB Output is correct
69 Correct 103 ms 329044 KB Output is correct
70 Correct 101 ms 329108 KB Output is correct
71 Correct 102 ms 329204 KB Output is correct
72 Correct 103 ms 329044 KB Output is correct
73 Correct 101 ms 329044 KB Output is correct
74 Correct 102 ms 329032 KB Output is correct
75 Correct 103 ms 329108 KB Output is correct
76 Correct 105 ms 329080 KB Output is correct
77 Correct 101 ms 329040 KB Output is correct
78 Correct 100 ms 329208 KB Output is correct
79 Correct 103 ms 329044 KB Output is correct
80 Correct 113 ms 329296 KB Output is correct
81 Correct 114 ms 329220 KB Output is correct
82 Correct 108 ms 329204 KB Output is correct
83 Correct 119 ms 329176 KB Output is correct
84 Correct 103 ms 329044 KB Output is correct
85 Correct 116 ms 329176 KB Output is correct
86 Correct 108 ms 329212 KB Output is correct
87 Correct 101 ms 329308 KB Output is correct
88 Correct 108 ms 329256 KB Output is correct
89 Correct 102 ms 329104 KB Output is correct
90 Correct 102 ms 329040 KB Output is correct
91 Correct 99 ms 329040 KB Output is correct
92 Correct 102 ms 329040 KB Output is correct
93 Correct 102 ms 329044 KB Output is correct
94 Correct 100 ms 329232 KB Output is correct
95 Correct 101 ms 329044 KB Output is correct
96 Correct 111 ms 329236 KB Output is correct
97 Correct 117 ms 329204 KB Output is correct
98 Correct 100 ms 329044 KB Output is correct
99 Correct 118 ms 329040 KB Output is correct
100 Correct 111 ms 329208 KB Output is correct
101 Correct 103 ms 329040 KB Output is correct
102 Correct 102 ms 329136 KB Output is correct
103 Correct 102 ms 329116 KB Output is correct
104 Correct 106 ms 329364 KB Output is correct
105 Correct 103 ms 328960 KB Output is correct
106 Correct 100 ms 329040 KB Output is correct
107 Correct 101 ms 329020 KB Output is correct
108 Correct 101 ms 329220 KB Output is correct
109 Correct 102 ms 329044 KB Output is correct
110 Correct 103 ms 329808 KB Output is correct
111 Correct 106 ms 330448 KB Output is correct
112 Correct 106 ms 330696 KB Output is correct
113 Correct 104 ms 330452 KB Output is correct
114 Correct 105 ms 330624 KB Output is correct
115 Correct 114 ms 330660 KB Output is correct
116 Correct 106 ms 330068 KB Output is correct
117 Correct 108 ms 330172 KB Output is correct
118 Correct 105 ms 330144 KB Output is correct
119 Correct 116 ms 332132 KB Output is correct
120 Correct 111 ms 333252 KB Output is correct
121 Correct 120 ms 333356 KB Output is correct
122 Correct 110 ms 333252 KB Output is correct
123 Correct 109 ms 333440 KB Output is correct
124 Correct 128 ms 341068 KB Output is correct
125 Correct 202 ms 361308 KB Output is correct
126 Correct 148 ms 366520 KB Output is correct
127 Correct 152 ms 368280 KB Output is correct
128 Correct 200 ms 366780 KB Output is correct
129 Correct 182 ms 366256 KB Output is correct
130 Correct 195 ms 365684 KB Output is correct
131 Correct 189 ms 366044 KB Output is correct
132 Correct 102 ms 330048 KB Output is correct
133 Correct 98 ms 329020 KB Output is correct
134 Correct 96 ms 329040 KB Output is correct
135 Correct 102 ms 329788 KB Output is correct
136 Correct 103 ms 329708 KB Output is correct
137 Correct 97 ms 330512 KB Output is correct
138 Correct 101 ms 330668 KB Output is correct
139 Correct 100 ms 330044 KB Output is correct
140 Correct 101 ms 329812 KB Output is correct
141 Correct 100 ms 330612 KB Output is correct
142 Correct 99 ms 330688 KB Output is correct
143 Correct 108 ms 330584 KB Output is correct
144 Correct 107 ms 330064 KB Output is correct
145 Correct 97 ms 330064 KB Output is correct
146 Correct 101 ms 330072 KB Output is correct
147 Correct 104 ms 329940 KB Output is correct
148 Correct 101 ms 330048 KB Output is correct
149 Correct 97 ms 330064 KB Output is correct
150 Correct 100 ms 330176 KB Output is correct
151 Correct 102 ms 330140 KB Output is correct
152 Correct 98 ms 330064 KB Output is correct
153 Correct 105 ms 330084 KB Output is correct
154 Correct 99 ms 331100 KB Output is correct
155 Correct 105 ms 329872 KB Output is correct
156 Correct 101 ms 332380 KB Output is correct
157 Correct 103 ms 331088 KB Output is correct
158 Correct 106 ms 333256 KB Output is correct
159 Correct 104 ms 331600 KB Output is correct
160 Correct 104 ms 331308 KB Output is correct
161 Correct 99 ms 333252 KB Output is correct
162 Correct 105 ms 333432 KB Output is correct
163 Correct 99 ms 333256 KB Output is correct
164 Correct 105 ms 331396 KB Output is correct
165 Correct 101 ms 331212 KB Output is correct
166 Correct 102 ms 331400 KB Output is correct
167 Correct 106 ms 331264 KB Output is correct
168 Correct 115 ms 331448 KB Output is correct
169 Correct 103 ms 331360 KB Output is correct
170 Correct 103 ms 331600 KB Output is correct
171 Correct 114 ms 331820 KB Output is correct
172 Correct 109 ms 331348 KB Output is correct
173 Correct 104 ms 331128 KB Output is correct
174 Correct 118 ms 332120 KB Output is correct
175 Correct 115 ms 333976 KB Output is correct
176 Correct 143 ms 339824 KB Output is correct
177 Correct 138 ms 343188 KB Output is correct
178 Correct 164 ms 347244 KB Output is correct
179 Correct 169 ms 350168 KB Output is correct
180 Correct 183 ms 350544 KB Output is correct
181 Correct 165 ms 350912 KB Output is correct
182 Correct 175 ms 351948 KB Output is correct
183 Correct 169 ms 353436 KB Output is correct
184 Correct 242 ms 370896 KB Output is correct
185 Correct 174 ms 352164 KB Output is correct
186 Correct 213 ms 376476 KB Output is correct
187 Correct 177 ms 360356 KB Output is correct
188 Correct 227 ms 403524 KB Output is correct
189 Correct 265 ms 370896 KB Output is correct
190 Correct 199 ms 370496 KB Output is correct
191 Correct 201 ms 403692 KB Output is correct
192 Correct 280 ms 403512 KB Output is correct
193 Correct 259 ms 403416 KB Output is correct
194 Correct 140 ms 370432 KB Output is correct
195 Correct 147 ms 370432 KB Output is correct
196 Correct 217 ms 370776 KB Output is correct
197 Correct 228 ms 371336 KB Output is correct
198 Correct 226 ms 372280 KB Output is correct
199 Correct 224 ms 373704 KB Output is correct
200 Correct 268 ms 372304 KB Output is correct
201 Correct 260 ms 371420 KB Output is correct
202 Correct 224 ms 370824 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 143 ms 329024 KB Output is correct
2 Correct 151 ms 329208 KB Output is correct
3 Correct 149 ms 329116 KB Output is correct
4 Correct 141 ms 329240 KB Output is correct
5 Correct 142 ms 329160 KB Output is correct
6 Correct 140 ms 329200 KB Output is correct
7 Correct 142 ms 329040 KB Output is correct
8 Correct 140 ms 329160 KB Output is correct
9 Correct 150 ms 329204 KB Output is correct
10 Correct 143 ms 329112 KB Output is correct
11 Correct 144 ms 329468 KB Output is correct
12 Correct 142 ms 329204 KB Output is correct
13 Correct 141 ms 329044 KB Output is correct
14 Correct 155 ms 329296 KB Output is correct
15 Correct 143 ms 329040 KB Output is correct
16 Correct 141 ms 329040 KB Output is correct
17 Correct 153 ms 329236 KB Output is correct
18 Correct 144 ms 328980 KB Output is correct
19 Correct 149 ms 329852 KB Output is correct
20 Correct 140 ms 329808 KB Output is correct
21 Correct 127 ms 330808 KB Output is correct
22 Correct 127 ms 329944 KB Output is correct
23 Correct 140 ms 329868 KB Output is correct
24 Correct 128 ms 330364 KB Output is correct
25 Correct 121 ms 330064 KB Output is correct
26 Correct 139 ms 330324 KB Output is correct
27 Correct 129 ms 330116 KB Output is correct
28 Correct 123 ms 330012 KB Output is correct
29 Correct 130 ms 331252 KB Output is correct
30 Correct 120 ms 330044 KB Output is correct
31 Correct 120 ms 333292 KB Output is correct
32 Correct 129 ms 331380 KB Output is correct
33 Correct 120 ms 331156 KB Output is correct
34 Correct 120 ms 331228 KB Output is correct
35 Correct 122 ms 331232 KB Output is correct
36 Correct 123 ms 331636 KB Output is correct
37 Correct 124 ms 331444 KB Output is correct
38 Correct 121 ms 331160 KB Output is correct
39 Correct 176 ms 349920 KB Output is correct
40 Correct 122 ms 331600 KB Output is correct
41 Correct 131 ms 331876 KB Output is correct
42 Correct 121 ms 332112 KB Output is correct
43 Correct 119 ms 332624 KB Output is correct
44 Correct 141 ms 339540 KB Output is correct
45 Correct 145 ms 340260 KB Output is correct
46 Correct 192 ms 367012 KB Output is correct
47 Correct 181 ms 350032 KB Output is correct
48 Correct 153 ms 349892 KB Output is correct
49 Correct 136 ms 349688 KB Output is correct
50 Correct 147 ms 349684 KB Output is correct
51 Correct 229 ms 350952 KB Output is correct
52 Correct 191 ms 350304 KB Output is correct
53 Correct 190 ms 350164 KB Output is correct
54 Correct 123 ms 329216 KB Output is correct
55 Correct 116 ms 329220 KB Output is correct
56 Correct 103 ms 329056 KB Output is correct
57 Correct 106 ms 329216 KB Output is correct
58 Correct 111 ms 329204 KB Output is correct
59 Correct 102 ms 328976 KB Output is correct
60 Correct 106 ms 329048 KB Output is correct
61 Correct 103 ms 329216 KB Output is correct
62 Correct 100 ms 329216 KB Output is correct
63 Correct 103 ms 328988 KB Output is correct
64 Correct 112 ms 329016 KB Output is correct
65 Correct 101 ms 329008 KB Output is correct
66 Correct 102 ms 329236 KB Output is correct
67 Correct 100 ms 329052 KB Output is correct
68 Correct 110 ms 329232 KB Output is correct
69 Correct 103 ms 329044 KB Output is correct
70 Correct 101 ms 329108 KB Output is correct
71 Correct 102 ms 329204 KB Output is correct
72 Correct 103 ms 329044 KB Output is correct
73 Correct 101 ms 329044 KB Output is correct
74 Correct 102 ms 329032 KB Output is correct
75 Correct 103 ms 329108 KB Output is correct
76 Correct 105 ms 329080 KB Output is correct
77 Correct 101 ms 329040 KB Output is correct
78 Correct 100 ms 329208 KB Output is correct
79 Correct 103 ms 329044 KB Output is correct
80 Correct 113 ms 329296 KB Output is correct
81 Correct 114 ms 329220 KB Output is correct
82 Correct 108 ms 329204 KB Output is correct
83 Correct 119 ms 329176 KB Output is correct
84 Correct 103 ms 329044 KB Output is correct
85 Correct 116 ms 329176 KB Output is correct
86 Correct 108 ms 329212 KB Output is correct
87 Correct 101 ms 329308 KB Output is correct
88 Correct 108 ms 329256 KB Output is correct
89 Correct 102 ms 329104 KB Output is correct
90 Correct 102 ms 329040 KB Output is correct
91 Correct 99 ms 329040 KB Output is correct
92 Correct 102 ms 329040 KB Output is correct
93 Correct 102 ms 329044 KB Output is correct
94 Correct 100 ms 329232 KB Output is correct
95 Correct 101 ms 329044 KB Output is correct
96 Correct 111 ms 329236 KB Output is correct
97 Correct 117 ms 329204 KB Output is correct
98 Correct 100 ms 329044 KB Output is correct
99 Correct 118 ms 329040 KB Output is correct
100 Correct 111 ms 329208 KB Output is correct
101 Correct 103 ms 329040 KB Output is correct
102 Correct 102 ms 329136 KB Output is correct
103 Correct 102 ms 329116 KB Output is correct
104 Correct 106 ms 329364 KB Output is correct
105 Correct 103 ms 328960 KB Output is correct
106 Correct 100 ms 329040 KB Output is correct
107 Correct 101 ms 329020 KB Output is correct
108 Correct 101 ms 329220 KB Output is correct
109 Correct 102 ms 329044 KB Output is correct
110 Correct 103 ms 329808 KB Output is correct
111 Correct 106 ms 330448 KB Output is correct
112 Correct 106 ms 330696 KB Output is correct
113 Correct 104 ms 330452 KB Output is correct
114 Correct 105 ms 330624 KB Output is correct
115 Correct 114 ms 330660 KB Output is correct
116 Correct 106 ms 330068 KB Output is correct
117 Correct 108 ms 330172 KB Output is correct
118 Correct 105 ms 330144 KB Output is correct
119 Correct 116 ms 332132 KB Output is correct
120 Correct 111 ms 333252 KB Output is correct
121 Correct 120 ms 333356 KB Output is correct
122 Correct 110 ms 333252 KB Output is correct
123 Correct 109 ms 333440 KB Output is correct
124 Correct 128 ms 341068 KB Output is correct
125 Correct 202 ms 361308 KB Output is correct
126 Correct 148 ms 366520 KB Output is correct
127 Correct 152 ms 368280 KB Output is correct
128 Correct 200 ms 366780 KB Output is correct
129 Correct 182 ms 366256 KB Output is correct
130 Correct 195 ms 365684 KB Output is correct
131 Correct 189 ms 366044 KB Output is correct
132 Correct 102 ms 330048 KB Output is correct
133 Correct 98 ms 329020 KB Output is correct
134 Correct 96 ms 329040 KB Output is correct
135 Correct 102 ms 329788 KB Output is correct
136 Correct 103 ms 329708 KB Output is correct
137 Correct 97 ms 330512 KB Output is correct
138 Correct 101 ms 330668 KB Output is correct
139 Correct 100 ms 330044 KB Output is correct
140 Correct 101 ms 329812 KB Output is correct
141 Correct 100 ms 330612 KB Output is correct
142 Correct 99 ms 330688 KB Output is correct
143 Correct 108 ms 330584 KB Output is correct
144 Correct 107 ms 330064 KB Output is correct
145 Correct 97 ms 330064 KB Output is correct
146 Correct 101 ms 330072 KB Output is correct
147 Correct 104 ms 329940 KB Output is correct
148 Correct 101 ms 330048 KB Output is correct
149 Correct 97 ms 330064 KB Output is correct
150 Correct 100 ms 330176 KB Output is correct
151 Correct 102 ms 330140 KB Output is correct
152 Correct 98 ms 330064 KB Output is correct
153 Correct 105 ms 330084 KB Output is correct
154 Correct 99 ms 331100 KB Output is correct
155 Correct 105 ms 329872 KB Output is correct
156 Correct 101 ms 332380 KB Output is correct
157 Correct 103 ms 331088 KB Output is correct
158 Correct 106 ms 333256 KB Output is correct
159 Correct 104 ms 331600 KB Output is correct
160 Correct 104 ms 331308 KB Output is correct
161 Correct 99 ms 333252 KB Output is correct
162 Correct 105 ms 333432 KB Output is correct
163 Correct 99 ms 333256 KB Output is correct
164 Correct 105 ms 331396 KB Output is correct
165 Correct 101 ms 331212 KB Output is correct
166 Correct 102 ms 331400 KB Output is correct
167 Correct 106 ms 331264 KB Output is correct
168 Correct 115 ms 331448 KB Output is correct
169 Correct 103 ms 331360 KB Output is correct
170 Correct 103 ms 331600 KB Output is correct
171 Correct 114 ms 331820 KB Output is correct
172 Correct 109 ms 331348 KB Output is correct
173 Correct 104 ms 331128 KB Output is correct
174 Correct 118 ms 332120 KB Output is correct
175 Correct 115 ms 333976 KB Output is correct
176 Correct 143 ms 339824 KB Output is correct
177 Correct 138 ms 343188 KB Output is correct
178 Correct 164 ms 347244 KB Output is correct
179 Correct 169 ms 350168 KB Output is correct
180 Correct 183 ms 350544 KB Output is correct
181 Correct 165 ms 350912 KB Output is correct
182 Correct 175 ms 351948 KB Output is correct
183 Correct 169 ms 353436 KB Output is correct
184 Correct 242 ms 370896 KB Output is correct
185 Correct 174 ms 352164 KB Output is correct
186 Correct 213 ms 376476 KB Output is correct
187 Correct 177 ms 360356 KB Output is correct
188 Correct 227 ms 403524 KB Output is correct
189 Correct 265 ms 370896 KB Output is correct
190 Correct 199 ms 370496 KB Output is correct
191 Correct 201 ms 403692 KB Output is correct
192 Correct 280 ms 403512 KB Output is correct
193 Correct 259 ms 403416 KB Output is correct
194 Correct 140 ms 370432 KB Output is correct
195 Correct 147 ms 370432 KB Output is correct
196 Correct 217 ms 370776 KB Output is correct
197 Correct 228 ms 371336 KB Output is correct
198 Correct 226 ms 372280 KB Output is correct
199 Correct 224 ms 373704 KB Output is correct
200 Correct 268 ms 372304 KB Output is correct
201 Correct 260 ms 371420 KB Output is correct
202 Correct 224 ms 370824 KB Output is correct
203 Correct 369 ms 411792 KB Output is correct
204 Correct 207 ms 381884 KB Output is correct
205 Correct 301 ms 380592 KB Output is correct
206 Correct 308 ms 411248 KB Output is correct
207 Correct 340 ms 476288 KB Output is correct
208 Correct 551 ms 412448 KB Output is correct
209 Correct 470 ms 411952 KB Output is correct
210 Correct 333 ms 477692 KB Output is correct
211 Correct 525 ms 475260 KB Output is correct
212 Correct 504 ms 471880 KB Output is correct
213 Correct 220 ms 410696 KB Output is correct
214 Correct 252 ms 409200 KB Output is correct
215 Correct 382 ms 412292 KB Output is correct
216 Correct 359 ms 410804 KB Output is correct
217 Correct 392 ms 410328 KB Output is correct
218 Correct 513 ms 417892 KB Output is correct
219 Correct 411 ms 440496 KB Output is correct
220 Correct 504 ms 456124 KB Output is correct
221 Correct 531 ms 468084 KB Output is correct
222 Correct 549 ms 474440 KB Output is correct
223 Correct 520 ms 413636 KB Output is correct
224 Correct 539 ms 412956 KB Output is correct
225 Correct 463 ms 411988 KB Output is correct