답안 #915338

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
915338 2024-01-23T17:50:19 Z bachhoangxuan Maze (JOI23_ho_t3) C++17
100 / 100
629 ms 293848 KB
// Judges with GCC >= 12 only needs Ofast
// #pragma GCC optimize("O3,no-stack-protector,fast-math,unroll-loops,tree-vectorize")
// MLE optimization
// #pragma GCC optimize("conserve-stack")
// Old judges
// #pragma GCC target("sse4.2,popcnt,lzcnt,abm,mmx,fma,bmi,bmi2")
// New judges. Test with assert(__builtin_cpu_supports("avx2"));
// #pragma GCC target("avx2,popcnt,lzcnt,abm,bmi,bmi2,fma,tune=native")
// Atcoder
// #pragma GCC target("avx2,popcnt,lzcnt,abm,bmi,bmi2,fma")
/*
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;
- insert(x),erase(x)
- find_by_order(k): return iterator to the k-th smallest element
- order_of_key(x): the number of elements that are strictly smaller
*/

#include<bits/stdc++.h>
using namespace std;
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
uniform_real_distribution<> pp(0.0,1.0);
#define int long long
#define ld long double
#define pii pair<int,int>
#define piii pair<int,pii>
#define mpp make_pair
#define fi first
#define se second
const int inf=1e18;
const int mod=998244353;
const int maxn=200005;
const int bl=650;
const int maxs=655;
const int maxm=200005;
const int maxq=1000005;
const int maxl=25;
const int maxa=1000000;
const int root=3;
int power(int a,int n){
    int res=1;
    while(n){
        if(n&1) res=res*a%mod;
        a=a*a%mod;n>>=1;
    }
    return res;
}
const int iroot=power(3,mod-2);
const int base=131;

int n,m,k;
int sx,sy,tx,ty;

void solve(){
    cin >> n >> m >> k >> sx >> sy >> tx >> ty;
    sx--;sy--;tx--;ty--;k=1-k;
    vector<vector<char>> c(n,vector<char>(m));
    for(int i=0;i<n;i++) for(int j=0;j<m;j++) cin >> c[i][j];
    vector<vector<array<int,3>>> d(n,vector<array<int,3>>(m,{inf,0,0}));
    vector<pii> q1,q2;

    auto add = [&](vector<pii> &q,int x,int y,int dd,int a,int b){
        if(x<0 || y<0 || x>=n || y>=m) return;
        if(d[x][y][0]<=dd) return;
        d[x][y]={dd,a,b};
        q.push_back({x,y});
    };
    auto add2 = [&](int x,int y,int dd){
        if(x<0 || y<0 || x>=n || y>=m) return;
        if(c[x][y]=='#') add(q2,x,y,dd+1,k,k);
        else add(q1,x,y,dd,0,0);
    };

    add(q1,sx,sy,0,0,0);
    while(!q1.empty()){
        for(int i=0;i<(int)q1.size();i++){
            auto [x,y]=q1[i];
            auto [dd,a,b]=d[x][y];
            if(b==0) continue;
            add(q1,x,y+1,dd,a,b+1);
            add(q1,x,y-1,dd,a,b+1);
        }
        for(int i=0;i<(int)q1.size();i++){
            auto [x,y]=q1[i];
            auto [dd,a,b]=d[x][y];
            if(a==0) continue;
            add(q1,x-1,y,dd,a+1,b);
            add(q1,x+1,y,dd,a+1,b);
        }
        for(int i=0;i<(int)q1.size();i++){
            auto [x,y]=q1[i];
            auto [dd,a,b]=d[x][y];
            add2(x-1,y,dd);
            add2(x+1,y,dd);
            add2(x,y-1,dd);
            add2(x,y+1,dd);
        }
        swap(q1,q2);
        q2.clear();
    }
    cout << d[tx][ty][0] << '\n';
}

signed main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);cout.tie(NULL);
    int test=1;//cin >> test;
    while(test--) solve();
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 600 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 388 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 456 KB Output is correct
19 Correct 3 ms 1884 KB Output is correct
20 Correct 2 ms 2648 KB Output is correct
21 Correct 3 ms 3036 KB Output is correct
22 Correct 4 ms 2004 KB Output is correct
23 Correct 3 ms 1884 KB Output is correct
24 Correct 3 ms 3420 KB Output is correct
25 Correct 3 ms 3416 KB Output is correct
26 Correct 5 ms 2396 KB Output is correct
27 Correct 4 ms 2012 KB Output is correct
28 Correct 3 ms 1884 KB Output is correct
29 Correct 6 ms 4264 KB Output is correct
30 Correct 4 ms 2544 KB Output is correct
31 Correct 10 ms 9684 KB Output is correct
32 Correct 9 ms 4440 KB Output is correct
33 Correct 6 ms 4384 KB Output is correct
34 Correct 6 ms 7624 KB Output is correct
35 Correct 9 ms 7640 KB Output is correct
36 Correct 11 ms 4832 KB Output is correct
37 Correct 9 ms 4612 KB Output is correct
38 Correct 6 ms 4184 KB Output is correct
39 Correct 81 ms 38704 KB Output is correct
40 Correct 10 ms 4952 KB Output is correct
41 Correct 8 ms 9380 KB Output is correct
42 Correct 11 ms 5980 KB Output is correct
43 Correct 12 ms 9564 KB Output is correct
44 Correct 38 ms 22264 KB Output is correct
45 Correct 35 ms 24508 KB Output is correct
46 Correct 97 ms 72612 KB Output is correct
47 Correct 109 ms 39316 KB Output is correct
48 Correct 79 ms 38692 KB Output is correct
49 Correct 61 ms 73728 KB Output is correct
50 Correct 58 ms 73632 KB Output is correct
51 Correct 123 ms 40468 KB Output is correct
52 Correct 106 ms 39632 KB Output is correct
53 Correct 92 ms 39248 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 460 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 344 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 344 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 544 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 0 ms 460 KB Output is correct
29 Correct 0 ms 456 KB Output is correct
30 Correct 1 ms 848 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 1 ms 460 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 344 KB Output is correct
16 Correct 1 ms 500 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 1 ms 596 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 1 ms 604 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 1 ms 348 KB Output is correct
25 Correct 3 ms 1372 KB Output is correct
26 Correct 4 ms 3028 KB Output is correct
27 Correct 3 ms 3036 KB Output is correct
28 Correct 3 ms 3036 KB Output is correct
29 Correct 5 ms 3032 KB Output is correct
30 Correct 3 ms 3036 KB Output is correct
31 Correct 4 ms 2284 KB Output is correct
32 Correct 5 ms 2392 KB Output is correct
33 Correct 5 ms 2140 KB Output is correct
34 Correct 9 ms 6224 KB Output is correct
35 Correct 11 ms 8916 KB Output is correct
36 Correct 9 ms 10196 KB Output is correct
37 Correct 11 ms 8916 KB Output is correct
38 Correct 9 ms 9688 KB Output is correct
39 Correct 36 ms 25020 KB Output is correct
40 Correct 120 ms 62996 KB Output is correct
41 Correct 95 ms 73388 KB Output is correct
42 Correct 85 ms 72784 KB Output is correct
43 Correct 102 ms 72884 KB Output is correct
44 Correct 73 ms 71500 KB Output is correct
45 Correct 144 ms 72284 KB Output is correct
46 Correct 137 ms 71828 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 460 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 344 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 344 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 544 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 0 ms 460 KB Output is correct
29 Correct 0 ms 456 KB Output is correct
30 Correct 1 ms 848 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
33 Correct 3 ms 1880 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 464 KB Output is correct
36 Correct 3 ms 1372 KB Output is correct
37 Correct 3 ms 2652 KB Output is correct
38 Correct 4 ms 3028 KB Output is correct
39 Correct 3 ms 3036 KB Output is correct
40 Correct 4 ms 1884 KB Output is correct
41 Correct 3 ms 1884 KB Output is correct
42 Correct 4 ms 3036 KB Output is correct
43 Correct 4 ms 3036 KB Output is correct
44 Correct 5 ms 3036 KB Output is correct
45 Correct 4 ms 3420 KB Output is correct
46 Correct 4 ms 3416 KB Output is correct
47 Correct 4 ms 2648 KB Output is correct
48 Correct 4 ms 1884 KB Output is correct
49 Correct 4 ms 2104 KB Output is correct
50 Correct 4 ms 1884 KB Output is correct
51 Correct 4 ms 2112 KB Output is correct
52 Correct 4 ms 2396 KB Output is correct
53 Correct 4 ms 2004 KB Output is correct
54 Correct 3 ms 1884 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 460 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 344 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 344 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 544 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 0 ms 460 KB Output is correct
29 Correct 0 ms 456 KB Output is correct
30 Correct 1 ms 848 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
33 Correct 3 ms 1880 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 464 KB Output is correct
36 Correct 3 ms 1372 KB Output is correct
37 Correct 3 ms 2652 KB Output is correct
38 Correct 4 ms 3028 KB Output is correct
39 Correct 3 ms 3036 KB Output is correct
40 Correct 4 ms 1884 KB Output is correct
41 Correct 3 ms 1884 KB Output is correct
42 Correct 4 ms 3036 KB Output is correct
43 Correct 4 ms 3036 KB Output is correct
44 Correct 5 ms 3036 KB Output is correct
45 Correct 4 ms 3420 KB Output is correct
46 Correct 4 ms 3416 KB Output is correct
47 Correct 4 ms 2648 KB Output is correct
48 Correct 4 ms 1884 KB Output is correct
49 Correct 4 ms 2104 KB Output is correct
50 Correct 4 ms 1884 KB Output is correct
51 Correct 4 ms 2112 KB Output is correct
52 Correct 4 ms 2396 KB Output is correct
53 Correct 4 ms 2004 KB Output is correct
54 Correct 3 ms 1884 KB Output is correct
55 Correct 7 ms 4148 KB Output is correct
56 Correct 4 ms 2652 KB Output is correct
57 Correct 8 ms 6304 KB Output is correct
58 Correct 9 ms 4188 KB Output is correct
59 Correct 9 ms 10200 KB Output is correct
60 Correct 10 ms 4700 KB Output is correct
61 Correct 8 ms 4700 KB Output is correct
62 Correct 9 ms 8788 KB Output is correct
63 Correct 13 ms 9308 KB Output is correct
64 Correct 9 ms 10196 KB Output is correct
65 Correct 6 ms 7624 KB Output is correct
66 Correct 7 ms 7624 KB Output is correct
67 Correct 8 ms 5912 KB Output is correct
68 Correct 10 ms 4444 KB Output is correct
69 Correct 9 ms 4444 KB Output is correct
70 Correct 10 ms 4600 KB Output is correct
71 Correct 10 ms 4824 KB Output is correct
72 Correct 13 ms 4832 KB Output is correct
73 Correct 10 ms 4608 KB Output is correct
74 Correct 7 ms 4184 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 600 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 388 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 456 KB Output is correct
19 Correct 3 ms 1884 KB Output is correct
20 Correct 2 ms 2648 KB Output is correct
21 Correct 3 ms 3036 KB Output is correct
22 Correct 4 ms 2004 KB Output is correct
23 Correct 3 ms 1884 KB Output is correct
24 Correct 3 ms 3420 KB Output is correct
25 Correct 3 ms 3416 KB Output is correct
26 Correct 5 ms 2396 KB Output is correct
27 Correct 4 ms 2012 KB Output is correct
28 Correct 3 ms 1884 KB Output is correct
29 Correct 6 ms 4264 KB Output is correct
30 Correct 4 ms 2544 KB Output is correct
31 Correct 10 ms 9684 KB Output is correct
32 Correct 9 ms 4440 KB Output is correct
33 Correct 6 ms 4384 KB Output is correct
34 Correct 6 ms 7624 KB Output is correct
35 Correct 9 ms 7640 KB Output is correct
36 Correct 11 ms 4832 KB Output is correct
37 Correct 9 ms 4612 KB Output is correct
38 Correct 6 ms 4184 KB Output is correct
39 Correct 81 ms 38704 KB Output is correct
40 Correct 10 ms 4952 KB Output is correct
41 Correct 8 ms 9380 KB Output is correct
42 Correct 11 ms 5980 KB Output is correct
43 Correct 12 ms 9564 KB Output is correct
44 Correct 38 ms 22264 KB Output is correct
45 Correct 35 ms 24508 KB Output is correct
46 Correct 97 ms 72612 KB Output is correct
47 Correct 109 ms 39316 KB Output is correct
48 Correct 79 ms 38692 KB Output is correct
49 Correct 61 ms 73728 KB Output is correct
50 Correct 58 ms 73632 KB Output is correct
51 Correct 123 ms 40468 KB Output is correct
52 Correct 106 ms 39632 KB Output is correct
53 Correct 92 ms 39248 KB Output is correct
54 Correct 1 ms 348 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 0 ms 460 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 0 ms 348 KB Output is correct
59 Correct 1 ms 348 KB Output is correct
60 Correct 1 ms 604 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 344 KB Output is correct
65 Correct 1 ms 344 KB Output is correct
66 Correct 1 ms 344 KB Output is correct
67 Correct 0 ms 348 KB Output is correct
68 Correct 1 ms 344 KB Output is correct
69 Correct 1 ms 348 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 1 ms 544 KB Output is correct
72 Correct 1 ms 348 KB Output is correct
73 Correct 0 ms 348 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 ms 348 KB Output is correct
76 Correct 0 ms 348 KB Output is correct
77 Correct 1 ms 344 KB Output is correct
78 Correct 1 ms 348 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 1 ms 348 KB Output is correct
81 Correct 0 ms 460 KB Output is correct
82 Correct 0 ms 456 KB Output is correct
83 Correct 1 ms 848 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 348 KB Output is correct
87 Correct 1 ms 348 KB Output is correct
88 Correct 1 ms 348 KB Output is correct
89 Correct 1 ms 460 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 0 ms 348 KB Output is correct
94 Correct 1 ms 348 KB Output is correct
95 Correct 0 ms 348 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 0 ms 348 KB Output is correct
98 Correct 1 ms 348 KB Output is correct
99 Correct 0 ms 348 KB Output is correct
100 Correct 1 ms 344 KB Output is correct
101 Correct 1 ms 500 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 1 ms 348 KB Output is correct
104 Correct 1 ms 596 KB Output is correct
105 Correct 0 ms 348 KB Output is correct
106 Correct 1 ms 604 KB Output is correct
107 Correct 1 ms 348 KB Output is correct
108 Correct 1 ms 348 KB Output is correct
109 Correct 1 ms 348 KB Output is correct
110 Correct 3 ms 1372 KB Output is correct
111 Correct 4 ms 3028 KB Output is correct
112 Correct 3 ms 3036 KB Output is correct
113 Correct 3 ms 3036 KB Output is correct
114 Correct 5 ms 3032 KB Output is correct
115 Correct 3 ms 3036 KB Output is correct
116 Correct 4 ms 2284 KB Output is correct
117 Correct 5 ms 2392 KB Output is correct
118 Correct 5 ms 2140 KB Output is correct
119 Correct 9 ms 6224 KB Output is correct
120 Correct 11 ms 8916 KB Output is correct
121 Correct 9 ms 10196 KB Output is correct
122 Correct 11 ms 8916 KB Output is correct
123 Correct 9 ms 9688 KB Output is correct
124 Correct 36 ms 25020 KB Output is correct
125 Correct 120 ms 62996 KB Output is correct
126 Correct 95 ms 73388 KB Output is correct
127 Correct 85 ms 72784 KB Output is correct
128 Correct 102 ms 72884 KB Output is correct
129 Correct 73 ms 71500 KB Output is correct
130 Correct 144 ms 72284 KB Output is correct
131 Correct 137 ms 71828 KB Output is correct
132 Correct 3 ms 1880 KB Output is correct
133 Correct 1 ms 348 KB Output is correct
134 Correct 1 ms 464 KB Output is correct
135 Correct 3 ms 1372 KB Output is correct
136 Correct 3 ms 2652 KB Output is correct
137 Correct 4 ms 3028 KB Output is correct
138 Correct 3 ms 3036 KB Output is correct
139 Correct 4 ms 1884 KB Output is correct
140 Correct 3 ms 1884 KB Output is correct
141 Correct 4 ms 3036 KB Output is correct
142 Correct 4 ms 3036 KB Output is correct
143 Correct 5 ms 3036 KB Output is correct
144 Correct 4 ms 3420 KB Output is correct
145 Correct 4 ms 3416 KB Output is correct
146 Correct 4 ms 2648 KB Output is correct
147 Correct 4 ms 1884 KB Output is correct
148 Correct 4 ms 2104 KB Output is correct
149 Correct 4 ms 1884 KB Output is correct
150 Correct 4 ms 2112 KB Output is correct
151 Correct 4 ms 2396 KB Output is correct
152 Correct 4 ms 2004 KB Output is correct
153 Correct 3 ms 1884 KB Output is correct
154 Correct 7 ms 4148 KB Output is correct
155 Correct 4 ms 2652 KB Output is correct
156 Correct 8 ms 6304 KB Output is correct
157 Correct 9 ms 4188 KB Output is correct
158 Correct 9 ms 10200 KB Output is correct
159 Correct 10 ms 4700 KB Output is correct
160 Correct 8 ms 4700 KB Output is correct
161 Correct 9 ms 8788 KB Output is correct
162 Correct 13 ms 9308 KB Output is correct
163 Correct 9 ms 10196 KB Output is correct
164 Correct 6 ms 7624 KB Output is correct
165 Correct 7 ms 7624 KB Output is correct
166 Correct 8 ms 5912 KB Output is correct
167 Correct 10 ms 4444 KB Output is correct
168 Correct 9 ms 4444 KB Output is correct
169 Correct 10 ms 4600 KB Output is correct
170 Correct 10 ms 4824 KB Output is correct
171 Correct 13 ms 4832 KB Output is correct
172 Correct 10 ms 4608 KB Output is correct
173 Correct 7 ms 4184 KB Output is correct
174 Correct 12 ms 5720 KB Output is correct
175 Correct 20 ms 9308 KB Output is correct
176 Correct 41 ms 25696 KB Output is correct
177 Correct 70 ms 26964 KB Output is correct
178 Correct 91 ms 34900 KB Output is correct
179 Correct 96 ms 39524 KB Output is correct
180 Correct 102 ms 39536 KB Output is correct
181 Correct 115 ms 40080 KB Output is correct
182 Correct 113 ms 42880 KB Output is correct
183 Correct 92 ms 49720 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 600 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 388 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 456 KB Output is correct
19 Correct 3 ms 1884 KB Output is correct
20 Correct 2 ms 2648 KB Output is correct
21 Correct 3 ms 3036 KB Output is correct
22 Correct 4 ms 2004 KB Output is correct
23 Correct 3 ms 1884 KB Output is correct
24 Correct 3 ms 3420 KB Output is correct
25 Correct 3 ms 3416 KB Output is correct
26 Correct 5 ms 2396 KB Output is correct
27 Correct 4 ms 2012 KB Output is correct
28 Correct 3 ms 1884 KB Output is correct
29 Correct 6 ms 4264 KB Output is correct
30 Correct 4 ms 2544 KB Output is correct
31 Correct 10 ms 9684 KB Output is correct
32 Correct 9 ms 4440 KB Output is correct
33 Correct 6 ms 4384 KB Output is correct
34 Correct 6 ms 7624 KB Output is correct
35 Correct 9 ms 7640 KB Output is correct
36 Correct 11 ms 4832 KB Output is correct
37 Correct 9 ms 4612 KB Output is correct
38 Correct 6 ms 4184 KB Output is correct
39 Correct 81 ms 38704 KB Output is correct
40 Correct 10 ms 4952 KB Output is correct
41 Correct 8 ms 9380 KB Output is correct
42 Correct 11 ms 5980 KB Output is correct
43 Correct 12 ms 9564 KB Output is correct
44 Correct 38 ms 22264 KB Output is correct
45 Correct 35 ms 24508 KB Output is correct
46 Correct 97 ms 72612 KB Output is correct
47 Correct 109 ms 39316 KB Output is correct
48 Correct 79 ms 38692 KB Output is correct
49 Correct 61 ms 73728 KB Output is correct
50 Correct 58 ms 73632 KB Output is correct
51 Correct 123 ms 40468 KB Output is correct
52 Correct 106 ms 39632 KB Output is correct
53 Correct 92 ms 39248 KB Output is correct
54 Correct 1 ms 348 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 0 ms 460 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 0 ms 348 KB Output is correct
59 Correct 1 ms 348 KB Output is correct
60 Correct 1 ms 604 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 344 KB Output is correct
65 Correct 1 ms 344 KB Output is correct
66 Correct 1 ms 344 KB Output is correct
67 Correct 0 ms 348 KB Output is correct
68 Correct 1 ms 344 KB Output is correct
69 Correct 1 ms 348 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 1 ms 544 KB Output is correct
72 Correct 1 ms 348 KB Output is correct
73 Correct 0 ms 348 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 ms 348 KB Output is correct
76 Correct 0 ms 348 KB Output is correct
77 Correct 1 ms 344 KB Output is correct
78 Correct 1 ms 348 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 1 ms 348 KB Output is correct
81 Correct 0 ms 460 KB Output is correct
82 Correct 0 ms 456 KB Output is correct
83 Correct 1 ms 848 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 348 KB Output is correct
87 Correct 1 ms 348 KB Output is correct
88 Correct 1 ms 348 KB Output is correct
89 Correct 1 ms 460 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 0 ms 348 KB Output is correct
94 Correct 1 ms 348 KB Output is correct
95 Correct 0 ms 348 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 0 ms 348 KB Output is correct
98 Correct 1 ms 348 KB Output is correct
99 Correct 0 ms 348 KB Output is correct
100 Correct 1 ms 344 KB Output is correct
101 Correct 1 ms 500 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 1 ms 348 KB Output is correct
104 Correct 1 ms 596 KB Output is correct
105 Correct 0 ms 348 KB Output is correct
106 Correct 1 ms 604 KB Output is correct
107 Correct 1 ms 348 KB Output is correct
108 Correct 1 ms 348 KB Output is correct
109 Correct 1 ms 348 KB Output is correct
110 Correct 3 ms 1372 KB Output is correct
111 Correct 4 ms 3028 KB Output is correct
112 Correct 3 ms 3036 KB Output is correct
113 Correct 3 ms 3036 KB Output is correct
114 Correct 5 ms 3032 KB Output is correct
115 Correct 3 ms 3036 KB Output is correct
116 Correct 4 ms 2284 KB Output is correct
117 Correct 5 ms 2392 KB Output is correct
118 Correct 5 ms 2140 KB Output is correct
119 Correct 9 ms 6224 KB Output is correct
120 Correct 11 ms 8916 KB Output is correct
121 Correct 9 ms 10196 KB Output is correct
122 Correct 11 ms 8916 KB Output is correct
123 Correct 9 ms 9688 KB Output is correct
124 Correct 36 ms 25020 KB Output is correct
125 Correct 120 ms 62996 KB Output is correct
126 Correct 95 ms 73388 KB Output is correct
127 Correct 85 ms 72784 KB Output is correct
128 Correct 102 ms 72884 KB Output is correct
129 Correct 73 ms 71500 KB Output is correct
130 Correct 144 ms 72284 KB Output is correct
131 Correct 137 ms 71828 KB Output is correct
132 Correct 3 ms 1880 KB Output is correct
133 Correct 1 ms 348 KB Output is correct
134 Correct 1 ms 464 KB Output is correct
135 Correct 3 ms 1372 KB Output is correct
136 Correct 3 ms 2652 KB Output is correct
137 Correct 4 ms 3028 KB Output is correct
138 Correct 3 ms 3036 KB Output is correct
139 Correct 4 ms 1884 KB Output is correct
140 Correct 3 ms 1884 KB Output is correct
141 Correct 4 ms 3036 KB Output is correct
142 Correct 4 ms 3036 KB Output is correct
143 Correct 5 ms 3036 KB Output is correct
144 Correct 4 ms 3420 KB Output is correct
145 Correct 4 ms 3416 KB Output is correct
146 Correct 4 ms 2648 KB Output is correct
147 Correct 4 ms 1884 KB Output is correct
148 Correct 4 ms 2104 KB Output is correct
149 Correct 4 ms 1884 KB Output is correct
150 Correct 4 ms 2112 KB Output is correct
151 Correct 4 ms 2396 KB Output is correct
152 Correct 4 ms 2004 KB Output is correct
153 Correct 3 ms 1884 KB Output is correct
154 Correct 7 ms 4148 KB Output is correct
155 Correct 4 ms 2652 KB Output is correct
156 Correct 8 ms 6304 KB Output is correct
157 Correct 9 ms 4188 KB Output is correct
158 Correct 9 ms 10200 KB Output is correct
159 Correct 10 ms 4700 KB Output is correct
160 Correct 8 ms 4700 KB Output is correct
161 Correct 9 ms 8788 KB Output is correct
162 Correct 13 ms 9308 KB Output is correct
163 Correct 9 ms 10196 KB Output is correct
164 Correct 6 ms 7624 KB Output is correct
165 Correct 7 ms 7624 KB Output is correct
166 Correct 8 ms 5912 KB Output is correct
167 Correct 10 ms 4444 KB Output is correct
168 Correct 9 ms 4444 KB Output is correct
169 Correct 10 ms 4600 KB Output is correct
170 Correct 10 ms 4824 KB Output is correct
171 Correct 13 ms 4832 KB Output is correct
172 Correct 10 ms 4608 KB Output is correct
173 Correct 7 ms 4184 KB Output is correct
174 Correct 12 ms 5720 KB Output is correct
175 Correct 20 ms 9308 KB Output is correct
176 Correct 41 ms 25696 KB Output is correct
177 Correct 70 ms 26964 KB Output is correct
178 Correct 91 ms 34900 KB Output is correct
179 Correct 96 ms 39524 KB Output is correct
180 Correct 102 ms 39536 KB Output is correct
181 Correct 115 ms 40080 KB Output is correct
182 Correct 113 ms 42880 KB Output is correct
183 Correct 92 ms 49720 KB Output is correct
184 Correct 150 ms 77064 KB Output is correct
185 Correct 99 ms 43356 KB Output is correct
186 Correct 154 ms 92144 KB Output is correct
187 Correct 118 ms 58192 KB Output is correct
188 Correct 161 ms 145092 KB Output is correct
189 Correct 238 ms 77556 KB Output is correct
190 Correct 140 ms 76880 KB Output is correct
191 Correct 168 ms 143572 KB Output is correct
192 Correct 216 ms 143140 KB Output is correct
193 Correct 138 ms 144168 KB Output is correct
194 Correct 127 ms 147168 KB Output is correct
195 Correct 144 ms 147056 KB Output is correct
196 Correct 201 ms 78100 KB Output is correct
197 Correct 192 ms 77896 KB Output is correct
198 Correct 209 ms 79456 KB Output is correct
199 Correct 201 ms 82456 KB Output is correct
200 Correct 224 ms 80160 KB Output is correct
201 Correct 223 ms 78608 KB Output is correct
202 Correct 185 ms 77396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 600 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 388 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 456 KB Output is correct
19 Correct 3 ms 1884 KB Output is correct
20 Correct 2 ms 2648 KB Output is correct
21 Correct 3 ms 3036 KB Output is correct
22 Correct 4 ms 2004 KB Output is correct
23 Correct 3 ms 1884 KB Output is correct
24 Correct 3 ms 3420 KB Output is correct
25 Correct 3 ms 3416 KB Output is correct
26 Correct 5 ms 2396 KB Output is correct
27 Correct 4 ms 2012 KB Output is correct
28 Correct 3 ms 1884 KB Output is correct
29 Correct 6 ms 4264 KB Output is correct
30 Correct 4 ms 2544 KB Output is correct
31 Correct 10 ms 9684 KB Output is correct
32 Correct 9 ms 4440 KB Output is correct
33 Correct 6 ms 4384 KB Output is correct
34 Correct 6 ms 7624 KB Output is correct
35 Correct 9 ms 7640 KB Output is correct
36 Correct 11 ms 4832 KB Output is correct
37 Correct 9 ms 4612 KB Output is correct
38 Correct 6 ms 4184 KB Output is correct
39 Correct 81 ms 38704 KB Output is correct
40 Correct 10 ms 4952 KB Output is correct
41 Correct 8 ms 9380 KB Output is correct
42 Correct 11 ms 5980 KB Output is correct
43 Correct 12 ms 9564 KB Output is correct
44 Correct 38 ms 22264 KB Output is correct
45 Correct 35 ms 24508 KB Output is correct
46 Correct 97 ms 72612 KB Output is correct
47 Correct 109 ms 39316 KB Output is correct
48 Correct 79 ms 38692 KB Output is correct
49 Correct 61 ms 73728 KB Output is correct
50 Correct 58 ms 73632 KB Output is correct
51 Correct 123 ms 40468 KB Output is correct
52 Correct 106 ms 39632 KB Output is correct
53 Correct 92 ms 39248 KB Output is correct
54 Correct 1 ms 348 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 0 ms 460 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 0 ms 348 KB Output is correct
59 Correct 1 ms 348 KB Output is correct
60 Correct 1 ms 604 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 344 KB Output is correct
65 Correct 1 ms 344 KB Output is correct
66 Correct 1 ms 344 KB Output is correct
67 Correct 0 ms 348 KB Output is correct
68 Correct 1 ms 344 KB Output is correct
69 Correct 1 ms 348 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 1 ms 544 KB Output is correct
72 Correct 1 ms 348 KB Output is correct
73 Correct 0 ms 348 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 ms 348 KB Output is correct
76 Correct 0 ms 348 KB Output is correct
77 Correct 1 ms 344 KB Output is correct
78 Correct 1 ms 348 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 1 ms 348 KB Output is correct
81 Correct 0 ms 460 KB Output is correct
82 Correct 0 ms 456 KB Output is correct
83 Correct 1 ms 848 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 348 KB Output is correct
87 Correct 1 ms 348 KB Output is correct
88 Correct 1 ms 348 KB Output is correct
89 Correct 1 ms 460 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 0 ms 348 KB Output is correct
94 Correct 1 ms 348 KB Output is correct
95 Correct 0 ms 348 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 0 ms 348 KB Output is correct
98 Correct 1 ms 348 KB Output is correct
99 Correct 0 ms 348 KB Output is correct
100 Correct 1 ms 344 KB Output is correct
101 Correct 1 ms 500 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 1 ms 348 KB Output is correct
104 Correct 1 ms 596 KB Output is correct
105 Correct 0 ms 348 KB Output is correct
106 Correct 1 ms 604 KB Output is correct
107 Correct 1 ms 348 KB Output is correct
108 Correct 1 ms 348 KB Output is correct
109 Correct 1 ms 348 KB Output is correct
110 Correct 3 ms 1372 KB Output is correct
111 Correct 4 ms 3028 KB Output is correct
112 Correct 3 ms 3036 KB Output is correct
113 Correct 3 ms 3036 KB Output is correct
114 Correct 5 ms 3032 KB Output is correct
115 Correct 3 ms 3036 KB Output is correct
116 Correct 4 ms 2284 KB Output is correct
117 Correct 5 ms 2392 KB Output is correct
118 Correct 5 ms 2140 KB Output is correct
119 Correct 9 ms 6224 KB Output is correct
120 Correct 11 ms 8916 KB Output is correct
121 Correct 9 ms 10196 KB Output is correct
122 Correct 11 ms 8916 KB Output is correct
123 Correct 9 ms 9688 KB Output is correct
124 Correct 36 ms 25020 KB Output is correct
125 Correct 120 ms 62996 KB Output is correct
126 Correct 95 ms 73388 KB Output is correct
127 Correct 85 ms 72784 KB Output is correct
128 Correct 102 ms 72884 KB Output is correct
129 Correct 73 ms 71500 KB Output is correct
130 Correct 144 ms 72284 KB Output is correct
131 Correct 137 ms 71828 KB Output is correct
132 Correct 3 ms 1880 KB Output is correct
133 Correct 1 ms 348 KB Output is correct
134 Correct 1 ms 464 KB Output is correct
135 Correct 3 ms 1372 KB Output is correct
136 Correct 3 ms 2652 KB Output is correct
137 Correct 4 ms 3028 KB Output is correct
138 Correct 3 ms 3036 KB Output is correct
139 Correct 4 ms 1884 KB Output is correct
140 Correct 3 ms 1884 KB Output is correct
141 Correct 4 ms 3036 KB Output is correct
142 Correct 4 ms 3036 KB Output is correct
143 Correct 5 ms 3036 KB Output is correct
144 Correct 4 ms 3420 KB Output is correct
145 Correct 4 ms 3416 KB Output is correct
146 Correct 4 ms 2648 KB Output is correct
147 Correct 4 ms 1884 KB Output is correct
148 Correct 4 ms 2104 KB Output is correct
149 Correct 4 ms 1884 KB Output is correct
150 Correct 4 ms 2112 KB Output is correct
151 Correct 4 ms 2396 KB Output is correct
152 Correct 4 ms 2004 KB Output is correct
153 Correct 3 ms 1884 KB Output is correct
154 Correct 7 ms 4148 KB Output is correct
155 Correct 4 ms 2652 KB Output is correct
156 Correct 8 ms 6304 KB Output is correct
157 Correct 9 ms 4188 KB Output is correct
158 Correct 9 ms 10200 KB Output is correct
159 Correct 10 ms 4700 KB Output is correct
160 Correct 8 ms 4700 KB Output is correct
161 Correct 9 ms 8788 KB Output is correct
162 Correct 13 ms 9308 KB Output is correct
163 Correct 9 ms 10196 KB Output is correct
164 Correct 6 ms 7624 KB Output is correct
165 Correct 7 ms 7624 KB Output is correct
166 Correct 8 ms 5912 KB Output is correct
167 Correct 10 ms 4444 KB Output is correct
168 Correct 9 ms 4444 KB Output is correct
169 Correct 10 ms 4600 KB Output is correct
170 Correct 10 ms 4824 KB Output is correct
171 Correct 13 ms 4832 KB Output is correct
172 Correct 10 ms 4608 KB Output is correct
173 Correct 7 ms 4184 KB Output is correct
174 Correct 12 ms 5720 KB Output is correct
175 Correct 20 ms 9308 KB Output is correct
176 Correct 41 ms 25696 KB Output is correct
177 Correct 70 ms 26964 KB Output is correct
178 Correct 91 ms 34900 KB Output is correct
179 Correct 96 ms 39524 KB Output is correct
180 Correct 102 ms 39536 KB Output is correct
181 Correct 115 ms 40080 KB Output is correct
182 Correct 113 ms 42880 KB Output is correct
183 Correct 92 ms 49720 KB Output is correct
184 Correct 150 ms 77064 KB Output is correct
185 Correct 99 ms 43356 KB Output is correct
186 Correct 154 ms 92144 KB Output is correct
187 Correct 118 ms 58192 KB Output is correct
188 Correct 161 ms 145092 KB Output is correct
189 Correct 238 ms 77556 KB Output is correct
190 Correct 140 ms 76880 KB Output is correct
191 Correct 168 ms 143572 KB Output is correct
192 Correct 216 ms 143140 KB Output is correct
193 Correct 138 ms 144168 KB Output is correct
194 Correct 127 ms 147168 KB Output is correct
195 Correct 144 ms 147056 KB Output is correct
196 Correct 201 ms 78100 KB Output is correct
197 Correct 192 ms 77896 KB Output is correct
198 Correct 209 ms 79456 KB Output is correct
199 Correct 201 ms 82456 KB Output is correct
200 Correct 224 ms 80160 KB Output is correct
201 Correct 223 ms 78608 KB Output is correct
202 Correct 185 ms 77396 KB Output is correct
203 Correct 354 ms 153428 KB Output is correct
204 Correct 230 ms 100328 KB Output is correct
205 Correct 276 ms 96648 KB Output is correct
206 Correct 277 ms 156320 KB Output is correct
207 Correct 368 ms 285884 KB Output is correct
208 Correct 469 ms 154216 KB Output is correct
209 Correct 403 ms 153412 KB Output is correct
210 Correct 338 ms 286132 KB Output is correct
211 Correct 398 ms 284856 KB Output is correct
212 Correct 304 ms 284596 KB Output is correct
213 Correct 263 ms 293780 KB Output is correct
214 Correct 281 ms 293848 KB Output is correct
215 Correct 412 ms 155216 KB Output is correct
216 Correct 400 ms 154788 KB Output is correct
217 Correct 418 ms 157764 KB Output is correct
218 Correct 453 ms 162904 KB Output is correct
219 Correct 442 ms 213392 KB Output is correct
220 Correct 563 ms 240776 KB Output is correct
221 Correct 629 ms 276600 KB Output is correct
222 Correct 618 ms 278492 KB Output is correct
223 Correct 485 ms 156800 KB Output is correct
224 Correct 484 ms 154904 KB Output is correct
225 Correct 416 ms 153652 KB Output is correct