답안 #1046856

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1046856 2024-08-07T05:10:00 Z 1L1YA Maze (JOI23_ho_t3) C++17
100 / 100
380 ms 479892 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 45 ms 329040 KB Output is correct
2 Correct 43 ms 329048 KB Output is correct
3 Correct 44 ms 329216 KB Output is correct
4 Correct 44 ms 329040 KB Output is correct
5 Correct 43 ms 329040 KB Output is correct
6 Correct 43 ms 329052 KB Output is correct
7 Correct 44 ms 329036 KB Output is correct
8 Correct 43 ms 329052 KB Output is correct
9 Correct 49 ms 329184 KB Output is correct
10 Correct 43 ms 329048 KB Output is correct
11 Correct 43 ms 329044 KB Output is correct
12 Correct 43 ms 329040 KB Output is correct
13 Correct 43 ms 329052 KB Output is correct
14 Correct 43 ms 328976 KB Output is correct
15 Correct 44 ms 329112 KB Output is correct
16 Correct 43 ms 329016 KB Output is correct
17 Correct 44 ms 329040 KB Output is correct
18 Correct 44 ms 329048 KB Output is correct
19 Correct 45 ms 329808 KB Output is correct
20 Correct 46 ms 329808 KB Output is correct
21 Correct 45 ms 330456 KB Output is correct
22 Correct 46 ms 329816 KB Output is correct
23 Correct 49 ms 329820 KB Output is correct
24 Correct 46 ms 329812 KB Output is correct
25 Correct 45 ms 329812 KB Output is correct
26 Correct 47 ms 330320 KB Output is correct
27 Correct 46 ms 330064 KB Output is correct
28 Correct 44 ms 329812 KB Output is correct
29 Correct 48 ms 331088 KB Output is correct
30 Correct 47 ms 329808 KB Output is correct
31 Correct 46 ms 333256 KB Output is correct
32 Correct 54 ms 331092 KB Output is correct
33 Correct 46 ms 331100 KB Output is correct
34 Correct 44 ms 331228 KB Output is correct
35 Correct 46 ms 331232 KB Output is correct
36 Correct 54 ms 331488 KB Output is correct
37 Correct 48 ms 331356 KB Output is correct
38 Correct 48 ms 331052 KB Output is correct
39 Correct 88 ms 348496 KB Output is correct
40 Correct 51 ms 331356 KB Output is correct
41 Correct 45 ms 331684 KB Output is correct
42 Correct 54 ms 331868 KB Output is correct
43 Correct 52 ms 332380 KB Output is correct
44 Correct 65 ms 338780 KB Output is correct
45 Correct 69 ms 339440 KB Output is correct
46 Correct 80 ms 366780 KB Output is correct
47 Correct 105 ms 348600 KB Output is correct
48 Correct 85 ms 348244 KB Output is correct
49 Correct 60 ms 348404 KB Output is correct
50 Correct 66 ms 348428 KB Output is correct
51 Correct 113 ms 349452 KB Output is correct
52 Correct 107 ms 348876 KB Output is correct
53 Correct 96 ms 348752 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 44 ms 329208 KB Output is correct
2 Correct 43 ms 329052 KB Output is correct
3 Correct 45 ms 329044 KB Output is correct
4 Correct 46 ms 329184 KB Output is correct
5 Correct 45 ms 329184 KB Output is correct
6 Correct 43 ms 329052 KB Output is correct
7 Correct 45 ms 329044 KB Output is correct
8 Correct 42 ms 329048 KB Output is correct
9 Correct 43 ms 329044 KB Output is correct
10 Correct 43 ms 329040 KB Output is correct
11 Correct 44 ms 329052 KB Output is correct
12 Correct 45 ms 329040 KB Output is correct
13 Correct 44 ms 329044 KB Output is correct
14 Correct 44 ms 329040 KB Output is correct
15 Correct 44 ms 328988 KB Output is correct
16 Correct 43 ms 329128 KB Output is correct
17 Correct 44 ms 329040 KB Output is correct
18 Correct 43 ms 329040 KB Output is correct
19 Correct 43 ms 329120 KB Output is correct
20 Correct 43 ms 329052 KB Output is correct
21 Correct 47 ms 329052 KB Output is correct
22 Correct 43 ms 328972 KB Output is correct
23 Correct 44 ms 329040 KB Output is correct
24 Correct 44 ms 329040 KB Output is correct
25 Correct 45 ms 329052 KB Output is correct
26 Correct 43 ms 329120 KB Output is correct
27 Correct 45 ms 329168 KB Output is correct
28 Correct 44 ms 329044 KB Output is correct
29 Correct 43 ms 329044 KB Output is correct
30 Correct 44 ms 329052 KB Output is correct
31 Correct 44 ms 329052 KB Output is correct
32 Correct 42 ms 329044 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 43 ms 329052 KB Output is correct
2 Correct 43 ms 329052 KB Output is correct
3 Correct 43 ms 329052 KB Output is correct
4 Correct 43 ms 329040 KB Output is correct
5 Correct 44 ms 328972 KB Output is correct
6 Correct 43 ms 329044 KB Output is correct
7 Correct 43 ms 329040 KB Output is correct
8 Correct 45 ms 329044 KB Output is correct
9 Correct 44 ms 329044 KB Output is correct
10 Correct 44 ms 329236 KB Output is correct
11 Correct 43 ms 329136 KB Output is correct
12 Correct 43 ms 329224 KB Output is correct
13 Correct 44 ms 329040 KB Output is correct
14 Correct 44 ms 329048 KB Output is correct
15 Correct 44 ms 328964 KB Output is correct
16 Correct 48 ms 329052 KB Output is correct
17 Correct 44 ms 329040 KB Output is correct
18 Correct 43 ms 328976 KB Output is correct
19 Correct 44 ms 329040 KB Output is correct
20 Correct 44 ms 329192 KB Output is correct
21 Correct 49 ms 329212 KB Output is correct
22 Correct 51 ms 329228 KB Output is correct
23 Correct 45 ms 329132 KB Output is correct
24 Correct 52 ms 329204 KB Output is correct
25 Correct 48 ms 329648 KB Output is correct
26 Correct 47 ms 330524 KB Output is correct
27 Correct 44 ms 330460 KB Output is correct
28 Correct 45 ms 330536 KB Output is correct
29 Correct 46 ms 330376 KB Output is correct
30 Correct 57 ms 330452 KB Output is correct
31 Correct 46 ms 329940 KB Output is correct
32 Correct 47 ms 330272 KB Output is correct
33 Correct 45 ms 329928 KB Output is correct
34 Correct 47 ms 331976 KB Output is correct
35 Correct 46 ms 333264 KB Output is correct
36 Correct 51 ms 333152 KB Output is correct
37 Correct 49 ms 333252 KB Output is correct
38 Correct 46 ms 333252 KB Output is correct
39 Correct 59 ms 341176 KB Output is correct
40 Correct 99 ms 361428 KB Output is correct
41 Correct 75 ms 366288 KB Output is correct
42 Correct 74 ms 366268 KB Output is correct
43 Correct 101 ms 366268 KB Output is correct
44 Correct 80 ms 365248 KB Output is correct
45 Correct 107 ms 367276 KB Output is correct
46 Correct 104 ms 365224 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 44 ms 329208 KB Output is correct
2 Correct 43 ms 329052 KB Output is correct
3 Correct 45 ms 329044 KB Output is correct
4 Correct 46 ms 329184 KB Output is correct
5 Correct 45 ms 329184 KB Output is correct
6 Correct 43 ms 329052 KB Output is correct
7 Correct 45 ms 329044 KB Output is correct
8 Correct 42 ms 329048 KB Output is correct
9 Correct 43 ms 329044 KB Output is correct
10 Correct 43 ms 329040 KB Output is correct
11 Correct 44 ms 329052 KB Output is correct
12 Correct 45 ms 329040 KB Output is correct
13 Correct 44 ms 329044 KB Output is correct
14 Correct 44 ms 329040 KB Output is correct
15 Correct 44 ms 328988 KB Output is correct
16 Correct 43 ms 329128 KB Output is correct
17 Correct 44 ms 329040 KB Output is correct
18 Correct 43 ms 329040 KB Output is correct
19 Correct 43 ms 329120 KB Output is correct
20 Correct 43 ms 329052 KB Output is correct
21 Correct 47 ms 329052 KB Output is correct
22 Correct 43 ms 328972 KB Output is correct
23 Correct 44 ms 329040 KB Output is correct
24 Correct 44 ms 329040 KB Output is correct
25 Correct 45 ms 329052 KB Output is correct
26 Correct 43 ms 329120 KB Output is correct
27 Correct 45 ms 329168 KB Output is correct
28 Correct 44 ms 329044 KB Output is correct
29 Correct 43 ms 329044 KB Output is correct
30 Correct 44 ms 329052 KB Output is correct
31 Correct 44 ms 329052 KB Output is correct
32 Correct 42 ms 329044 KB Output is correct
33 Correct 44 ms 329820 KB Output is correct
34 Correct 43 ms 329052 KB Output is correct
35 Correct 48 ms 329040 KB Output is correct
36 Correct 47 ms 329552 KB Output is correct
37 Correct 44 ms 329812 KB Output is correct
38 Correct 46 ms 330400 KB Output is correct
39 Correct 46 ms 330444 KB Output is correct
40 Correct 46 ms 329808 KB Output is correct
41 Correct 45 ms 329812 KB Output is correct
42 Correct 44 ms 330452 KB Output is correct
43 Correct 46 ms 330448 KB Output is correct
44 Correct 44 ms 330456 KB Output is correct
45 Correct 44 ms 329812 KB Output is correct
46 Correct 49 ms 329836 KB Output is correct
47 Correct 45 ms 329792 KB Output is correct
48 Correct 50 ms 329812 KB Output is correct
49 Correct 45 ms 329932 KB Output is correct
50 Correct 45 ms 329840 KB Output is correct
51 Correct 46 ms 330108 KB Output is correct
52 Correct 45 ms 330112 KB Output is correct
53 Correct 45 ms 330064 KB Output is correct
54 Correct 49 ms 329808 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 44 ms 329208 KB Output is correct
2 Correct 43 ms 329052 KB Output is correct
3 Correct 45 ms 329044 KB Output is correct
4 Correct 46 ms 329184 KB Output is correct
5 Correct 45 ms 329184 KB Output is correct
6 Correct 43 ms 329052 KB Output is correct
7 Correct 45 ms 329044 KB Output is correct
8 Correct 42 ms 329048 KB Output is correct
9 Correct 43 ms 329044 KB Output is correct
10 Correct 43 ms 329040 KB Output is correct
11 Correct 44 ms 329052 KB Output is correct
12 Correct 45 ms 329040 KB Output is correct
13 Correct 44 ms 329044 KB Output is correct
14 Correct 44 ms 329040 KB Output is correct
15 Correct 44 ms 328988 KB Output is correct
16 Correct 43 ms 329128 KB Output is correct
17 Correct 44 ms 329040 KB Output is correct
18 Correct 43 ms 329040 KB Output is correct
19 Correct 43 ms 329120 KB Output is correct
20 Correct 43 ms 329052 KB Output is correct
21 Correct 47 ms 329052 KB Output is correct
22 Correct 43 ms 328972 KB Output is correct
23 Correct 44 ms 329040 KB Output is correct
24 Correct 44 ms 329040 KB Output is correct
25 Correct 45 ms 329052 KB Output is correct
26 Correct 43 ms 329120 KB Output is correct
27 Correct 45 ms 329168 KB Output is correct
28 Correct 44 ms 329044 KB Output is correct
29 Correct 43 ms 329044 KB Output is correct
30 Correct 44 ms 329052 KB Output is correct
31 Correct 44 ms 329052 KB Output is correct
32 Correct 42 ms 329044 KB Output is correct
33 Correct 44 ms 329820 KB Output is correct
34 Correct 43 ms 329052 KB Output is correct
35 Correct 48 ms 329040 KB Output is correct
36 Correct 47 ms 329552 KB Output is correct
37 Correct 44 ms 329812 KB Output is correct
38 Correct 46 ms 330400 KB Output is correct
39 Correct 46 ms 330444 KB Output is correct
40 Correct 46 ms 329808 KB Output is correct
41 Correct 45 ms 329812 KB Output is correct
42 Correct 44 ms 330452 KB Output is correct
43 Correct 46 ms 330448 KB Output is correct
44 Correct 44 ms 330456 KB Output is correct
45 Correct 44 ms 329812 KB Output is correct
46 Correct 49 ms 329836 KB Output is correct
47 Correct 45 ms 329792 KB Output is correct
48 Correct 50 ms 329812 KB Output is correct
49 Correct 45 ms 329932 KB Output is correct
50 Correct 45 ms 329840 KB Output is correct
51 Correct 46 ms 330108 KB Output is correct
52 Correct 45 ms 330112 KB Output is correct
53 Correct 45 ms 330064 KB Output is correct
54 Correct 49 ms 329808 KB Output is correct
55 Correct 47 ms 331100 KB Output is correct
56 Correct 45 ms 329816 KB Output is correct
57 Correct 49 ms 331976 KB Output is correct
58 Correct 50 ms 330844 KB Output is correct
59 Correct 47 ms 333252 KB Output is correct
60 Correct 54 ms 331344 KB Output is correct
61 Correct 46 ms 331092 KB Output is correct
62 Correct 46 ms 333256 KB Output is correct
63 Correct 52 ms 333396 KB Output is correct
64 Correct 47 ms 333256 KB Output is correct
65 Correct 47 ms 331240 KB Output is correct
66 Correct 46 ms 331152 KB Output is correct
67 Correct 47 ms 331280 KB Output is correct
68 Correct 52 ms 331344 KB Output is correct
69 Correct 56 ms 331600 KB Output is correct
70 Correct 48 ms 331348 KB Output is correct
71 Correct 49 ms 331600 KB Output is correct
72 Correct 49 ms 331600 KB Output is correct
73 Correct 48 ms 331344 KB Output is correct
74 Correct 48 ms 331740 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 45 ms 329040 KB Output is correct
2 Correct 43 ms 329048 KB Output is correct
3 Correct 44 ms 329216 KB Output is correct
4 Correct 44 ms 329040 KB Output is correct
5 Correct 43 ms 329040 KB Output is correct
6 Correct 43 ms 329052 KB Output is correct
7 Correct 44 ms 329036 KB Output is correct
8 Correct 43 ms 329052 KB Output is correct
9 Correct 49 ms 329184 KB Output is correct
10 Correct 43 ms 329048 KB Output is correct
11 Correct 43 ms 329044 KB Output is correct
12 Correct 43 ms 329040 KB Output is correct
13 Correct 43 ms 329052 KB Output is correct
14 Correct 43 ms 328976 KB Output is correct
15 Correct 44 ms 329112 KB Output is correct
16 Correct 43 ms 329016 KB Output is correct
17 Correct 44 ms 329040 KB Output is correct
18 Correct 44 ms 329048 KB Output is correct
19 Correct 45 ms 329808 KB Output is correct
20 Correct 46 ms 329808 KB Output is correct
21 Correct 45 ms 330456 KB Output is correct
22 Correct 46 ms 329816 KB Output is correct
23 Correct 49 ms 329820 KB Output is correct
24 Correct 46 ms 329812 KB Output is correct
25 Correct 45 ms 329812 KB Output is correct
26 Correct 47 ms 330320 KB Output is correct
27 Correct 46 ms 330064 KB Output is correct
28 Correct 44 ms 329812 KB Output is correct
29 Correct 48 ms 331088 KB Output is correct
30 Correct 47 ms 329808 KB Output is correct
31 Correct 46 ms 333256 KB Output is correct
32 Correct 54 ms 331092 KB Output is correct
33 Correct 46 ms 331100 KB Output is correct
34 Correct 44 ms 331228 KB Output is correct
35 Correct 46 ms 331232 KB Output is correct
36 Correct 54 ms 331488 KB Output is correct
37 Correct 48 ms 331356 KB Output is correct
38 Correct 48 ms 331052 KB Output is correct
39 Correct 88 ms 348496 KB Output is correct
40 Correct 51 ms 331356 KB Output is correct
41 Correct 45 ms 331684 KB Output is correct
42 Correct 54 ms 331868 KB Output is correct
43 Correct 52 ms 332380 KB Output is correct
44 Correct 65 ms 338780 KB Output is correct
45 Correct 69 ms 339440 KB Output is correct
46 Correct 80 ms 366780 KB Output is correct
47 Correct 105 ms 348600 KB Output is correct
48 Correct 85 ms 348244 KB Output is correct
49 Correct 60 ms 348404 KB Output is correct
50 Correct 66 ms 348428 KB Output is correct
51 Correct 113 ms 349452 KB Output is correct
52 Correct 107 ms 348876 KB Output is correct
53 Correct 96 ms 348752 KB Output is correct
54 Correct 44 ms 329208 KB Output is correct
55 Correct 43 ms 329052 KB Output is correct
56 Correct 45 ms 329044 KB Output is correct
57 Correct 46 ms 329184 KB Output is correct
58 Correct 45 ms 329184 KB Output is correct
59 Correct 43 ms 329052 KB Output is correct
60 Correct 45 ms 329044 KB Output is correct
61 Correct 42 ms 329048 KB Output is correct
62 Correct 43 ms 329044 KB Output is correct
63 Correct 43 ms 329040 KB Output is correct
64 Correct 44 ms 329052 KB Output is correct
65 Correct 45 ms 329040 KB Output is correct
66 Correct 44 ms 329044 KB Output is correct
67 Correct 44 ms 329040 KB Output is correct
68 Correct 44 ms 328988 KB Output is correct
69 Correct 43 ms 329128 KB Output is correct
70 Correct 44 ms 329040 KB Output is correct
71 Correct 43 ms 329040 KB Output is correct
72 Correct 43 ms 329120 KB Output is correct
73 Correct 43 ms 329052 KB Output is correct
74 Correct 47 ms 329052 KB Output is correct
75 Correct 43 ms 328972 KB Output is correct
76 Correct 44 ms 329040 KB Output is correct
77 Correct 44 ms 329040 KB Output is correct
78 Correct 45 ms 329052 KB Output is correct
79 Correct 43 ms 329120 KB Output is correct
80 Correct 45 ms 329168 KB Output is correct
81 Correct 44 ms 329044 KB Output is correct
82 Correct 43 ms 329044 KB Output is correct
83 Correct 44 ms 329052 KB Output is correct
84 Correct 44 ms 329052 KB Output is correct
85 Correct 42 ms 329044 KB Output is correct
86 Correct 43 ms 329052 KB Output is correct
87 Correct 43 ms 329052 KB Output is correct
88 Correct 43 ms 329052 KB Output is correct
89 Correct 43 ms 329040 KB Output is correct
90 Correct 44 ms 328972 KB Output is correct
91 Correct 43 ms 329044 KB Output is correct
92 Correct 43 ms 329040 KB Output is correct
93 Correct 45 ms 329044 KB Output is correct
94 Correct 44 ms 329044 KB Output is correct
95 Correct 44 ms 329236 KB Output is correct
96 Correct 43 ms 329136 KB Output is correct
97 Correct 43 ms 329224 KB Output is correct
98 Correct 44 ms 329040 KB Output is correct
99 Correct 44 ms 329048 KB Output is correct
100 Correct 44 ms 328964 KB Output is correct
101 Correct 48 ms 329052 KB Output is correct
102 Correct 44 ms 329040 KB Output is correct
103 Correct 43 ms 328976 KB Output is correct
104 Correct 44 ms 329040 KB Output is correct
105 Correct 44 ms 329192 KB Output is correct
106 Correct 49 ms 329212 KB Output is correct
107 Correct 51 ms 329228 KB Output is correct
108 Correct 45 ms 329132 KB Output is correct
109 Correct 52 ms 329204 KB Output is correct
110 Correct 48 ms 329648 KB Output is correct
111 Correct 47 ms 330524 KB Output is correct
112 Correct 44 ms 330460 KB Output is correct
113 Correct 45 ms 330536 KB Output is correct
114 Correct 46 ms 330376 KB Output is correct
115 Correct 57 ms 330452 KB Output is correct
116 Correct 46 ms 329940 KB Output is correct
117 Correct 47 ms 330272 KB Output is correct
118 Correct 45 ms 329928 KB Output is correct
119 Correct 47 ms 331976 KB Output is correct
120 Correct 46 ms 333264 KB Output is correct
121 Correct 51 ms 333152 KB Output is correct
122 Correct 49 ms 333252 KB Output is correct
123 Correct 46 ms 333252 KB Output is correct
124 Correct 59 ms 341176 KB Output is correct
125 Correct 99 ms 361428 KB Output is correct
126 Correct 75 ms 366288 KB Output is correct
127 Correct 74 ms 366268 KB Output is correct
128 Correct 101 ms 366268 KB Output is correct
129 Correct 80 ms 365248 KB Output is correct
130 Correct 107 ms 367276 KB Output is correct
131 Correct 104 ms 365224 KB Output is correct
132 Correct 44 ms 329820 KB Output is correct
133 Correct 43 ms 329052 KB Output is correct
134 Correct 48 ms 329040 KB Output is correct
135 Correct 47 ms 329552 KB Output is correct
136 Correct 44 ms 329812 KB Output is correct
137 Correct 46 ms 330400 KB Output is correct
138 Correct 46 ms 330444 KB Output is correct
139 Correct 46 ms 329808 KB Output is correct
140 Correct 45 ms 329812 KB Output is correct
141 Correct 44 ms 330452 KB Output is correct
142 Correct 46 ms 330448 KB Output is correct
143 Correct 44 ms 330456 KB Output is correct
144 Correct 44 ms 329812 KB Output is correct
145 Correct 49 ms 329836 KB Output is correct
146 Correct 45 ms 329792 KB Output is correct
147 Correct 50 ms 329812 KB Output is correct
148 Correct 45 ms 329932 KB Output is correct
149 Correct 45 ms 329840 KB Output is correct
150 Correct 46 ms 330108 KB Output is correct
151 Correct 45 ms 330112 KB Output is correct
152 Correct 45 ms 330064 KB Output is correct
153 Correct 49 ms 329808 KB Output is correct
154 Correct 47 ms 331100 KB Output is correct
155 Correct 45 ms 329816 KB Output is correct
156 Correct 49 ms 331976 KB Output is correct
157 Correct 50 ms 330844 KB Output is correct
158 Correct 47 ms 333252 KB Output is correct
159 Correct 54 ms 331344 KB Output is correct
160 Correct 46 ms 331092 KB Output is correct
161 Correct 46 ms 333256 KB Output is correct
162 Correct 52 ms 333396 KB Output is correct
163 Correct 47 ms 333256 KB Output is correct
164 Correct 47 ms 331240 KB Output is correct
165 Correct 46 ms 331152 KB Output is correct
166 Correct 47 ms 331280 KB Output is correct
167 Correct 52 ms 331344 KB Output is correct
168 Correct 56 ms 331600 KB Output is correct
169 Correct 48 ms 331348 KB Output is correct
170 Correct 49 ms 331600 KB Output is correct
171 Correct 49 ms 331600 KB Output is correct
172 Correct 48 ms 331344 KB Output is correct
173 Correct 48 ms 331740 KB Output is correct
174 Correct 51 ms 331856 KB Output is correct
175 Correct 55 ms 333968 KB Output is correct
176 Correct 66 ms 339700 KB Output is correct
177 Correct 75 ms 343120 KB Output is correct
178 Correct 93 ms 347472 KB Output is correct
179 Correct 93 ms 350036 KB Output is correct
180 Correct 99 ms 350548 KB Output is correct
181 Correct 94 ms 350944 KB Output is correct
182 Correct 99 ms 352200 KB Output is correct
183 Correct 97 ms 353408 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 45 ms 329040 KB Output is correct
2 Correct 43 ms 329048 KB Output is correct
3 Correct 44 ms 329216 KB Output is correct
4 Correct 44 ms 329040 KB Output is correct
5 Correct 43 ms 329040 KB Output is correct
6 Correct 43 ms 329052 KB Output is correct
7 Correct 44 ms 329036 KB Output is correct
8 Correct 43 ms 329052 KB Output is correct
9 Correct 49 ms 329184 KB Output is correct
10 Correct 43 ms 329048 KB Output is correct
11 Correct 43 ms 329044 KB Output is correct
12 Correct 43 ms 329040 KB Output is correct
13 Correct 43 ms 329052 KB Output is correct
14 Correct 43 ms 328976 KB Output is correct
15 Correct 44 ms 329112 KB Output is correct
16 Correct 43 ms 329016 KB Output is correct
17 Correct 44 ms 329040 KB Output is correct
18 Correct 44 ms 329048 KB Output is correct
19 Correct 45 ms 329808 KB Output is correct
20 Correct 46 ms 329808 KB Output is correct
21 Correct 45 ms 330456 KB Output is correct
22 Correct 46 ms 329816 KB Output is correct
23 Correct 49 ms 329820 KB Output is correct
24 Correct 46 ms 329812 KB Output is correct
25 Correct 45 ms 329812 KB Output is correct
26 Correct 47 ms 330320 KB Output is correct
27 Correct 46 ms 330064 KB Output is correct
28 Correct 44 ms 329812 KB Output is correct
29 Correct 48 ms 331088 KB Output is correct
30 Correct 47 ms 329808 KB Output is correct
31 Correct 46 ms 333256 KB Output is correct
32 Correct 54 ms 331092 KB Output is correct
33 Correct 46 ms 331100 KB Output is correct
34 Correct 44 ms 331228 KB Output is correct
35 Correct 46 ms 331232 KB Output is correct
36 Correct 54 ms 331488 KB Output is correct
37 Correct 48 ms 331356 KB Output is correct
38 Correct 48 ms 331052 KB Output is correct
39 Correct 88 ms 348496 KB Output is correct
40 Correct 51 ms 331356 KB Output is correct
41 Correct 45 ms 331684 KB Output is correct
42 Correct 54 ms 331868 KB Output is correct
43 Correct 52 ms 332380 KB Output is correct
44 Correct 65 ms 338780 KB Output is correct
45 Correct 69 ms 339440 KB Output is correct
46 Correct 80 ms 366780 KB Output is correct
47 Correct 105 ms 348600 KB Output is correct
48 Correct 85 ms 348244 KB Output is correct
49 Correct 60 ms 348404 KB Output is correct
50 Correct 66 ms 348428 KB Output is correct
51 Correct 113 ms 349452 KB Output is correct
52 Correct 107 ms 348876 KB Output is correct
53 Correct 96 ms 348752 KB Output is correct
54 Correct 44 ms 329208 KB Output is correct
55 Correct 43 ms 329052 KB Output is correct
56 Correct 45 ms 329044 KB Output is correct
57 Correct 46 ms 329184 KB Output is correct
58 Correct 45 ms 329184 KB Output is correct
59 Correct 43 ms 329052 KB Output is correct
60 Correct 45 ms 329044 KB Output is correct
61 Correct 42 ms 329048 KB Output is correct
62 Correct 43 ms 329044 KB Output is correct
63 Correct 43 ms 329040 KB Output is correct
64 Correct 44 ms 329052 KB Output is correct
65 Correct 45 ms 329040 KB Output is correct
66 Correct 44 ms 329044 KB Output is correct
67 Correct 44 ms 329040 KB Output is correct
68 Correct 44 ms 328988 KB Output is correct
69 Correct 43 ms 329128 KB Output is correct
70 Correct 44 ms 329040 KB Output is correct
71 Correct 43 ms 329040 KB Output is correct
72 Correct 43 ms 329120 KB Output is correct
73 Correct 43 ms 329052 KB Output is correct
74 Correct 47 ms 329052 KB Output is correct
75 Correct 43 ms 328972 KB Output is correct
76 Correct 44 ms 329040 KB Output is correct
77 Correct 44 ms 329040 KB Output is correct
78 Correct 45 ms 329052 KB Output is correct
79 Correct 43 ms 329120 KB Output is correct
80 Correct 45 ms 329168 KB Output is correct
81 Correct 44 ms 329044 KB Output is correct
82 Correct 43 ms 329044 KB Output is correct
83 Correct 44 ms 329052 KB Output is correct
84 Correct 44 ms 329052 KB Output is correct
85 Correct 42 ms 329044 KB Output is correct
86 Correct 43 ms 329052 KB Output is correct
87 Correct 43 ms 329052 KB Output is correct
88 Correct 43 ms 329052 KB Output is correct
89 Correct 43 ms 329040 KB Output is correct
90 Correct 44 ms 328972 KB Output is correct
91 Correct 43 ms 329044 KB Output is correct
92 Correct 43 ms 329040 KB Output is correct
93 Correct 45 ms 329044 KB Output is correct
94 Correct 44 ms 329044 KB Output is correct
95 Correct 44 ms 329236 KB Output is correct
96 Correct 43 ms 329136 KB Output is correct
97 Correct 43 ms 329224 KB Output is correct
98 Correct 44 ms 329040 KB Output is correct
99 Correct 44 ms 329048 KB Output is correct
100 Correct 44 ms 328964 KB Output is correct
101 Correct 48 ms 329052 KB Output is correct
102 Correct 44 ms 329040 KB Output is correct
103 Correct 43 ms 328976 KB Output is correct
104 Correct 44 ms 329040 KB Output is correct
105 Correct 44 ms 329192 KB Output is correct
106 Correct 49 ms 329212 KB Output is correct
107 Correct 51 ms 329228 KB Output is correct
108 Correct 45 ms 329132 KB Output is correct
109 Correct 52 ms 329204 KB Output is correct
110 Correct 48 ms 329648 KB Output is correct
111 Correct 47 ms 330524 KB Output is correct
112 Correct 44 ms 330460 KB Output is correct
113 Correct 45 ms 330536 KB Output is correct
114 Correct 46 ms 330376 KB Output is correct
115 Correct 57 ms 330452 KB Output is correct
116 Correct 46 ms 329940 KB Output is correct
117 Correct 47 ms 330272 KB Output is correct
118 Correct 45 ms 329928 KB Output is correct
119 Correct 47 ms 331976 KB Output is correct
120 Correct 46 ms 333264 KB Output is correct
121 Correct 51 ms 333152 KB Output is correct
122 Correct 49 ms 333252 KB Output is correct
123 Correct 46 ms 333252 KB Output is correct
124 Correct 59 ms 341176 KB Output is correct
125 Correct 99 ms 361428 KB Output is correct
126 Correct 75 ms 366288 KB Output is correct
127 Correct 74 ms 366268 KB Output is correct
128 Correct 101 ms 366268 KB Output is correct
129 Correct 80 ms 365248 KB Output is correct
130 Correct 107 ms 367276 KB Output is correct
131 Correct 104 ms 365224 KB Output is correct
132 Correct 44 ms 329820 KB Output is correct
133 Correct 43 ms 329052 KB Output is correct
134 Correct 48 ms 329040 KB Output is correct
135 Correct 47 ms 329552 KB Output is correct
136 Correct 44 ms 329812 KB Output is correct
137 Correct 46 ms 330400 KB Output is correct
138 Correct 46 ms 330444 KB Output is correct
139 Correct 46 ms 329808 KB Output is correct
140 Correct 45 ms 329812 KB Output is correct
141 Correct 44 ms 330452 KB Output is correct
142 Correct 46 ms 330448 KB Output is correct
143 Correct 44 ms 330456 KB Output is correct
144 Correct 44 ms 329812 KB Output is correct
145 Correct 49 ms 329836 KB Output is correct
146 Correct 45 ms 329792 KB Output is correct
147 Correct 50 ms 329812 KB Output is correct
148 Correct 45 ms 329932 KB Output is correct
149 Correct 45 ms 329840 KB Output is correct
150 Correct 46 ms 330108 KB Output is correct
151 Correct 45 ms 330112 KB Output is correct
152 Correct 45 ms 330064 KB Output is correct
153 Correct 49 ms 329808 KB Output is correct
154 Correct 47 ms 331100 KB Output is correct
155 Correct 45 ms 329816 KB Output is correct
156 Correct 49 ms 331976 KB Output is correct
157 Correct 50 ms 330844 KB Output is correct
158 Correct 47 ms 333252 KB Output is correct
159 Correct 54 ms 331344 KB Output is correct
160 Correct 46 ms 331092 KB Output is correct
161 Correct 46 ms 333256 KB Output is correct
162 Correct 52 ms 333396 KB Output is correct
163 Correct 47 ms 333256 KB Output is correct
164 Correct 47 ms 331240 KB Output is correct
165 Correct 46 ms 331152 KB Output is correct
166 Correct 47 ms 331280 KB Output is correct
167 Correct 52 ms 331344 KB Output is correct
168 Correct 56 ms 331600 KB Output is correct
169 Correct 48 ms 331348 KB Output is correct
170 Correct 49 ms 331600 KB Output is correct
171 Correct 49 ms 331600 KB Output is correct
172 Correct 48 ms 331344 KB Output is correct
173 Correct 48 ms 331740 KB Output is correct
174 Correct 51 ms 331856 KB Output is correct
175 Correct 55 ms 333968 KB Output is correct
176 Correct 66 ms 339700 KB Output is correct
177 Correct 75 ms 343120 KB Output is correct
178 Correct 93 ms 347472 KB Output is correct
179 Correct 93 ms 350036 KB Output is correct
180 Correct 99 ms 350548 KB Output is correct
181 Correct 94 ms 350944 KB Output is correct
182 Correct 99 ms 352200 KB Output is correct
183 Correct 97 ms 353408 KB Output is correct
184 Correct 140 ms 370524 KB Output is correct
185 Correct 95 ms 351900 KB Output is correct
186 Correct 113 ms 377920 KB Output is correct
187 Correct 97 ms 360372 KB Output is correct
188 Correct 103 ms 403868 KB Output is correct
189 Correct 181 ms 370828 KB Output is correct
190 Correct 156 ms 370524 KB Output is correct
191 Correct 107 ms 404408 KB Output is correct
192 Correct 181 ms 403820 KB Output is correct
193 Correct 128 ms 405428 KB Output is correct
194 Correct 75 ms 370428 KB Output is correct
195 Correct 88 ms 370428 KB Output is correct
196 Correct 141 ms 370772 KB Output is correct
197 Correct 139 ms 371324 KB Output is correct
198 Correct 142 ms 372464 KB Output is correct
199 Correct 140 ms 373700 KB Output is correct
200 Correct 206 ms 372052 KB Output is correct
201 Correct 177 ms 371320 KB Output is correct
202 Correct 160 ms 370772 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 45 ms 329040 KB Output is correct
2 Correct 43 ms 329048 KB Output is correct
3 Correct 44 ms 329216 KB Output is correct
4 Correct 44 ms 329040 KB Output is correct
5 Correct 43 ms 329040 KB Output is correct
6 Correct 43 ms 329052 KB Output is correct
7 Correct 44 ms 329036 KB Output is correct
8 Correct 43 ms 329052 KB Output is correct
9 Correct 49 ms 329184 KB Output is correct
10 Correct 43 ms 329048 KB Output is correct
11 Correct 43 ms 329044 KB Output is correct
12 Correct 43 ms 329040 KB Output is correct
13 Correct 43 ms 329052 KB Output is correct
14 Correct 43 ms 328976 KB Output is correct
15 Correct 44 ms 329112 KB Output is correct
16 Correct 43 ms 329016 KB Output is correct
17 Correct 44 ms 329040 KB Output is correct
18 Correct 44 ms 329048 KB Output is correct
19 Correct 45 ms 329808 KB Output is correct
20 Correct 46 ms 329808 KB Output is correct
21 Correct 45 ms 330456 KB Output is correct
22 Correct 46 ms 329816 KB Output is correct
23 Correct 49 ms 329820 KB Output is correct
24 Correct 46 ms 329812 KB Output is correct
25 Correct 45 ms 329812 KB Output is correct
26 Correct 47 ms 330320 KB Output is correct
27 Correct 46 ms 330064 KB Output is correct
28 Correct 44 ms 329812 KB Output is correct
29 Correct 48 ms 331088 KB Output is correct
30 Correct 47 ms 329808 KB Output is correct
31 Correct 46 ms 333256 KB Output is correct
32 Correct 54 ms 331092 KB Output is correct
33 Correct 46 ms 331100 KB Output is correct
34 Correct 44 ms 331228 KB Output is correct
35 Correct 46 ms 331232 KB Output is correct
36 Correct 54 ms 331488 KB Output is correct
37 Correct 48 ms 331356 KB Output is correct
38 Correct 48 ms 331052 KB Output is correct
39 Correct 88 ms 348496 KB Output is correct
40 Correct 51 ms 331356 KB Output is correct
41 Correct 45 ms 331684 KB Output is correct
42 Correct 54 ms 331868 KB Output is correct
43 Correct 52 ms 332380 KB Output is correct
44 Correct 65 ms 338780 KB Output is correct
45 Correct 69 ms 339440 KB Output is correct
46 Correct 80 ms 366780 KB Output is correct
47 Correct 105 ms 348600 KB Output is correct
48 Correct 85 ms 348244 KB Output is correct
49 Correct 60 ms 348404 KB Output is correct
50 Correct 66 ms 348428 KB Output is correct
51 Correct 113 ms 349452 KB Output is correct
52 Correct 107 ms 348876 KB Output is correct
53 Correct 96 ms 348752 KB Output is correct
54 Correct 44 ms 329208 KB Output is correct
55 Correct 43 ms 329052 KB Output is correct
56 Correct 45 ms 329044 KB Output is correct
57 Correct 46 ms 329184 KB Output is correct
58 Correct 45 ms 329184 KB Output is correct
59 Correct 43 ms 329052 KB Output is correct
60 Correct 45 ms 329044 KB Output is correct
61 Correct 42 ms 329048 KB Output is correct
62 Correct 43 ms 329044 KB Output is correct
63 Correct 43 ms 329040 KB Output is correct
64 Correct 44 ms 329052 KB Output is correct
65 Correct 45 ms 329040 KB Output is correct
66 Correct 44 ms 329044 KB Output is correct
67 Correct 44 ms 329040 KB Output is correct
68 Correct 44 ms 328988 KB Output is correct
69 Correct 43 ms 329128 KB Output is correct
70 Correct 44 ms 329040 KB Output is correct
71 Correct 43 ms 329040 KB Output is correct
72 Correct 43 ms 329120 KB Output is correct
73 Correct 43 ms 329052 KB Output is correct
74 Correct 47 ms 329052 KB Output is correct
75 Correct 43 ms 328972 KB Output is correct
76 Correct 44 ms 329040 KB Output is correct
77 Correct 44 ms 329040 KB Output is correct
78 Correct 45 ms 329052 KB Output is correct
79 Correct 43 ms 329120 KB Output is correct
80 Correct 45 ms 329168 KB Output is correct
81 Correct 44 ms 329044 KB Output is correct
82 Correct 43 ms 329044 KB Output is correct
83 Correct 44 ms 329052 KB Output is correct
84 Correct 44 ms 329052 KB Output is correct
85 Correct 42 ms 329044 KB Output is correct
86 Correct 43 ms 329052 KB Output is correct
87 Correct 43 ms 329052 KB Output is correct
88 Correct 43 ms 329052 KB Output is correct
89 Correct 43 ms 329040 KB Output is correct
90 Correct 44 ms 328972 KB Output is correct
91 Correct 43 ms 329044 KB Output is correct
92 Correct 43 ms 329040 KB Output is correct
93 Correct 45 ms 329044 KB Output is correct
94 Correct 44 ms 329044 KB Output is correct
95 Correct 44 ms 329236 KB Output is correct
96 Correct 43 ms 329136 KB Output is correct
97 Correct 43 ms 329224 KB Output is correct
98 Correct 44 ms 329040 KB Output is correct
99 Correct 44 ms 329048 KB Output is correct
100 Correct 44 ms 328964 KB Output is correct
101 Correct 48 ms 329052 KB Output is correct
102 Correct 44 ms 329040 KB Output is correct
103 Correct 43 ms 328976 KB Output is correct
104 Correct 44 ms 329040 KB Output is correct
105 Correct 44 ms 329192 KB Output is correct
106 Correct 49 ms 329212 KB Output is correct
107 Correct 51 ms 329228 KB Output is correct
108 Correct 45 ms 329132 KB Output is correct
109 Correct 52 ms 329204 KB Output is correct
110 Correct 48 ms 329648 KB Output is correct
111 Correct 47 ms 330524 KB Output is correct
112 Correct 44 ms 330460 KB Output is correct
113 Correct 45 ms 330536 KB Output is correct
114 Correct 46 ms 330376 KB Output is correct
115 Correct 57 ms 330452 KB Output is correct
116 Correct 46 ms 329940 KB Output is correct
117 Correct 47 ms 330272 KB Output is correct
118 Correct 45 ms 329928 KB Output is correct
119 Correct 47 ms 331976 KB Output is correct
120 Correct 46 ms 333264 KB Output is correct
121 Correct 51 ms 333152 KB Output is correct
122 Correct 49 ms 333252 KB Output is correct
123 Correct 46 ms 333252 KB Output is correct
124 Correct 59 ms 341176 KB Output is correct
125 Correct 99 ms 361428 KB Output is correct
126 Correct 75 ms 366288 KB Output is correct
127 Correct 74 ms 366268 KB Output is correct
128 Correct 101 ms 366268 KB Output is correct
129 Correct 80 ms 365248 KB Output is correct
130 Correct 107 ms 367276 KB Output is correct
131 Correct 104 ms 365224 KB Output is correct
132 Correct 44 ms 329820 KB Output is correct
133 Correct 43 ms 329052 KB Output is correct
134 Correct 48 ms 329040 KB Output is correct
135 Correct 47 ms 329552 KB Output is correct
136 Correct 44 ms 329812 KB Output is correct
137 Correct 46 ms 330400 KB Output is correct
138 Correct 46 ms 330444 KB Output is correct
139 Correct 46 ms 329808 KB Output is correct
140 Correct 45 ms 329812 KB Output is correct
141 Correct 44 ms 330452 KB Output is correct
142 Correct 46 ms 330448 KB Output is correct
143 Correct 44 ms 330456 KB Output is correct
144 Correct 44 ms 329812 KB Output is correct
145 Correct 49 ms 329836 KB Output is correct
146 Correct 45 ms 329792 KB Output is correct
147 Correct 50 ms 329812 KB Output is correct
148 Correct 45 ms 329932 KB Output is correct
149 Correct 45 ms 329840 KB Output is correct
150 Correct 46 ms 330108 KB Output is correct
151 Correct 45 ms 330112 KB Output is correct
152 Correct 45 ms 330064 KB Output is correct
153 Correct 49 ms 329808 KB Output is correct
154 Correct 47 ms 331100 KB Output is correct
155 Correct 45 ms 329816 KB Output is correct
156 Correct 49 ms 331976 KB Output is correct
157 Correct 50 ms 330844 KB Output is correct
158 Correct 47 ms 333252 KB Output is correct
159 Correct 54 ms 331344 KB Output is correct
160 Correct 46 ms 331092 KB Output is correct
161 Correct 46 ms 333256 KB Output is correct
162 Correct 52 ms 333396 KB Output is correct
163 Correct 47 ms 333256 KB Output is correct
164 Correct 47 ms 331240 KB Output is correct
165 Correct 46 ms 331152 KB Output is correct
166 Correct 47 ms 331280 KB Output is correct
167 Correct 52 ms 331344 KB Output is correct
168 Correct 56 ms 331600 KB Output is correct
169 Correct 48 ms 331348 KB Output is correct
170 Correct 49 ms 331600 KB Output is correct
171 Correct 49 ms 331600 KB Output is correct
172 Correct 48 ms 331344 KB Output is correct
173 Correct 48 ms 331740 KB Output is correct
174 Correct 51 ms 331856 KB Output is correct
175 Correct 55 ms 333968 KB Output is correct
176 Correct 66 ms 339700 KB Output is correct
177 Correct 75 ms 343120 KB Output is correct
178 Correct 93 ms 347472 KB Output is correct
179 Correct 93 ms 350036 KB Output is correct
180 Correct 99 ms 350548 KB Output is correct
181 Correct 94 ms 350944 KB Output is correct
182 Correct 99 ms 352200 KB Output is correct
183 Correct 97 ms 353408 KB Output is correct
184 Correct 140 ms 370524 KB Output is correct
185 Correct 95 ms 351900 KB Output is correct
186 Correct 113 ms 377920 KB Output is correct
187 Correct 97 ms 360372 KB Output is correct
188 Correct 103 ms 403868 KB Output is correct
189 Correct 181 ms 370828 KB Output is correct
190 Correct 156 ms 370524 KB Output is correct
191 Correct 107 ms 404408 KB Output is correct
192 Correct 181 ms 403820 KB Output is correct
193 Correct 128 ms 405428 KB Output is correct
194 Correct 75 ms 370428 KB Output is correct
195 Correct 88 ms 370428 KB Output is correct
196 Correct 141 ms 370772 KB Output is correct
197 Correct 139 ms 371324 KB Output is correct
198 Correct 142 ms 372464 KB Output is correct
199 Correct 140 ms 373700 KB Output is correct
200 Correct 206 ms 372052 KB Output is correct
201 Correct 177 ms 371320 KB Output is correct
202 Correct 160 ms 370772 KB Output is correct
203 Correct 262 ms 411984 KB Output is correct
204 Correct 126 ms 382656 KB Output is correct
205 Correct 224 ms 380624 KB Output is correct
206 Correct 239 ms 411348 KB Output is correct
207 Correct 168 ms 479280 KB Output is correct
208 Correct 337 ms 412368 KB Output is correct
209 Correct 228 ms 412032 KB Output is correct
210 Correct 165 ms 479892 KB Output is correct
211 Correct 296 ms 478624 KB Output is correct
212 Correct 283 ms 478752 KB Output is correct
213 Correct 102 ms 412868 KB Output is correct
214 Correct 119 ms 413180 KB Output is correct
215 Correct 251 ms 412044 KB Output is correct
216 Correct 239 ms 412880 KB Output is correct
217 Correct 254 ms 414836 KB Output is correct
218 Correct 264 ms 418240 KB Output is correct
219 Correct 269 ms 440084 KB Output is correct
220 Correct 310 ms 455688 KB Output is correct
221 Correct 336 ms 475484 KB Output is correct
222 Correct 380 ms 476896 KB Output is correct
223 Correct 333 ms 413640 KB Output is correct
224 Correct 344 ms 412856 KB Output is correct
225 Correct 287 ms 412100 KB Output is correct