답안 #924430

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
924430 2024-02-09T03:39:57 Z Edu175 Maze (JOI23_ho_t3) C++17
100 / 100
605 ms 520208 KB
#include <bits/stdc++.h>
#define pb push_back
#define fst first
#define snd second
#define fore(i,a,b) for(ll i=a,ggdem=b;i<ggdem;++i)
#define SZ(x) ((int)x.size())
#define ALL(x) x.begin(),x.end()
#define mset(a,v) memset((a),(v),sizeof(a))
#define FIN ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define imp(v) for(auto edu:v)cout<<edu<<" "; cout<<"\n"
using namespace std;
typedef int ll;
typedef unsigned long long ull;
typedef pair<ll,ll> ii;

#pragma GCC optimize("Ofast") // may lead to precision errors

#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
const ll MAXN=6e6+5,R=2500;

ll a[MAXN];
ll n,m,k;
ii mem[MAXN];
vector<vector<ll>>mem2;
//inline ll cv(ii x){return m*x.fst+x.snd;}
//inline ii cv(ll x){return {x/m,x%m};}
inline ll cv(ii x){return mem2[x.fst][x.snd];}
inline ii cv(ll x){return mem[x];}
vector<ll>dir;
//vector<ii>diir={{0,1},{-1,0},{0,-1},{1,0}};
//ii operator+(ii a, ii b){return {a.fst+b.fst,a.snd+b.snd};}
//void operator+=(ii &a, ii b){a=a+b;}
bool allowed(ll x, ll w){
	auto [i,j]=cv(x);
	if(w==0&&j>=m-1)return 0;
	if(w==1&&i<=0)return 0;
	if(w==2&&j<=0)return 0;
	if(w==3&&i>=n-1)return 0;
	return 1;
}
ll d[MAXN],vis[MAXN];
deque<pair<ll,bool>>q;
//set<ll>r[MAXN],c[MAXN];
const ll W=64;
struct my_bitset{
	vector<ull>bs; int n;
	my_bitset(int n):bs((n+W)/W),n(n){}
	void flip(int p){bs[p/W]^=1ull<<(p%W);}
	int _Find_next(int p){
		++p;
		ll i=p/W;
		ull bl=bs[i];
		bl&=(~0ull)<<(p%W);
		if(bl)return i*W+__builtin_ctzl(bl);
		i++;
		for(;i<SZ(bs);i++){
			bl=bs[i];
			if(bl)return i*W+__builtin_ctzl(bl);
		}
		return n;
	}
};
vector<my_bitset> r,c;

vector<ll>pop;
void go(ll x, ll y, ll g){
	if(vis[y])return;
	d[y]=d[x]+g;
	q.push_front({y,0});
	vis[y]=1;
	pop.pb(y);
}
void popit(){
	for(auto x:pop){
		auto [i,j]=cv(x);
		r[i].flip(j);
		c[j].flip(i);
	}
	pop.clear();
}
ll reach(ll _x, ll _e){
	ii x=cv(_x),e=cv(_e);
	return (max(abs(x.fst-e.fst),abs(x.snd-e.snd))<=k&&
	       abs(x.fst-e.fst)+abs(x.snd-e.snd)<2*k);
}

ll bfs(ll s, ll e){
	mset(d,-1);
	d[s]=0;
	q.push_front({s,0});
	while(SZ(q)){
		auto [x,g]=q.front(); q.pop_front();
		if(!g){
			fore(w,0,4){
				auto y=x+dir[w];
				if(!allowed(x,w)||(!g&&a[y]))continue;
				go(x,y,0);
				popit();
			}
			q.pb({x,1});
		}
		else {
			auto [i,j]=cv(x);
			if(reach(x,e)){
				go(x,e,1);
				return d[e];
			}
			if(i-k>=0)
				for(ll it=(j-k<0?0:r[i-k]._Find_next(j-k));it<m&&it<j+k;
				it=r[i-k]._Find_next(it))go(x,cv({i-k,it}),1);
			if(i+k<n)
				for(ll it=(j-k<0?0:r[i+k]._Find_next(j-k));it<m&&it<j+k;
				it=r[i+k]._Find_next(it))go(x,cv({i+k,it}),1);
			if(j-k>=0)
				for(ll it=(i-k<0?0:c[j-k]._Find_next(i-k));it<n&&it<i+k;
				it=c[j-k]._Find_next(it))go(x,cv({it,j-k}),1);
			if(j+k<m)
				for(ll it=(i-k<0?0:c[j+k]._Find_next(i-k));it<n&&it<i+k;
				it=c[j+k]._Find_next(it))go(x,cv({it,j+k}),1);
			popit();
		}
	}
	return d[e];
}

int main(){FIN;
	cin>>n>>m>>k;
	mem2.resize(n,vector<ll>(m));
	r.resize(n,my_bitset(m)),c.resize(m,my_bitset(n));
	fore(i,0,n)fore(j,0,m){
		mem2[i][j]=m*i+j;
		mem[m*i+j]={i,j};
	}
	dir={1,-m,-1,m};
	ii s,e; cin>>s.fst>>s.snd>>e.fst>>e.snd; s.fst--,s.snd--,e.fst--,e.snd--;
	fore(i,0,n*m){
		char c; cin>>c;
		a[i]=(c=='#');
	}
	fore(i,0,n)fore(j,0,m)r[i].flip(j),c[j].flip(i);
	cout<<bfs(cv(s),cv(e))<<"\n";
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 26972 KB Output is correct
2 Correct 3 ms 26972 KB Output is correct
3 Correct 4 ms 27108 KB Output is correct
4 Correct 3 ms 26972 KB Output is correct
5 Correct 4 ms 26972 KB Output is correct
6 Correct 4 ms 27092 KB Output is correct
7 Correct 4 ms 26972 KB Output is correct
8 Correct 4 ms 27172 KB Output is correct
9 Correct 4 ms 26972 KB Output is correct
10 Correct 4 ms 27088 KB Output is correct
11 Correct 4 ms 26972 KB Output is correct
12 Correct 5 ms 26972 KB Output is correct
13 Correct 4 ms 27148 KB Output is correct
14 Correct 4 ms 26972 KB Output is correct
15 Correct 4 ms 26972 KB Output is correct
16 Correct 4 ms 26972 KB Output is correct
17 Correct 4 ms 26972 KB Output is correct
18 Correct 4 ms 26972 KB Output is correct
19 Correct 8 ms 29668 KB Output is correct
20 Correct 8 ms 30248 KB Output is correct
21 Correct 8 ms 30044 KB Output is correct
22 Correct 9 ms 29528 KB Output is correct
23 Correct 9 ms 29532 KB Output is correct
24 Correct 10 ms 33268 KB Output is correct
25 Correct 9 ms 33420 KB Output is correct
26 Correct 6 ms 29788 KB Output is correct
27 Correct 5 ms 29784 KB Output is correct
28 Correct 6 ms 29532 KB Output is correct
29 Correct 14 ms 30416 KB Output is correct
30 Correct 10 ms 31580 KB Output is correct
31 Correct 12 ms 31832 KB Output is correct
32 Correct 18 ms 30416 KB Output is correct
33 Correct 13 ms 30556 KB Output is correct
34 Correct 18 ms 39692 KB Output is correct
35 Correct 16 ms 39696 KB Output is correct
36 Correct 15 ms 30696 KB Output is correct
37 Correct 16 ms 30552 KB Output is correct
38 Correct 7 ms 30556 KB Output is correct
39 Correct 157 ms 59268 KB Output is correct
40 Correct 10 ms 32856 KB Output is correct
41 Correct 17 ms 43912 KB Output is correct
42 Correct 25 ms 33252 KB Output is correct
43 Correct 39 ms 40460 KB Output is correct
44 Correct 59 ms 49520 KB Output is correct
45 Correct 81 ms 52484 KB Output is correct
46 Correct 147 ms 71260 KB Output is correct
47 Correct 165 ms 58864 KB Output is correct
48 Correct 130 ms 58708 KB Output is correct
49 Correct 129 ms 150376 KB Output is correct
50 Correct 118 ms 149864 KB Output is correct
51 Correct 124 ms 59144 KB Output is correct
52 Correct 86 ms 58936 KB Output is correct
53 Correct 123 ms 58708 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 26972 KB Output is correct
2 Correct 4 ms 26968 KB Output is correct
3 Correct 4 ms 26972 KB Output is correct
4 Correct 4 ms 27096 KB Output is correct
5 Correct 4 ms 26972 KB Output is correct
6 Correct 3 ms 26968 KB Output is correct
7 Correct 4 ms 26968 KB Output is correct
8 Correct 4 ms 26960 KB Output is correct
9 Correct 4 ms 26972 KB Output is correct
10 Correct 4 ms 26972 KB Output is correct
11 Correct 4 ms 26972 KB Output is correct
12 Correct 4 ms 26972 KB Output is correct
13 Correct 4 ms 26968 KB Output is correct
14 Correct 4 ms 26968 KB Output is correct
15 Correct 4 ms 26972 KB Output is correct
16 Correct 4 ms 26968 KB Output is correct
17 Correct 4 ms 26972 KB Output is correct
18 Correct 4 ms 26972 KB Output is correct
19 Correct 4 ms 26972 KB Output is correct
20 Correct 4 ms 26972 KB Output is correct
21 Correct 4 ms 26972 KB Output is correct
22 Correct 5 ms 26972 KB Output is correct
23 Correct 4 ms 26972 KB Output is correct
24 Correct 5 ms 26972 KB Output is correct
25 Correct 4 ms 27228 KB Output is correct
26 Correct 4 ms 26972 KB Output is correct
27 Correct 4 ms 26972 KB Output is correct
28 Correct 4 ms 26972 KB Output is correct
29 Correct 4 ms 26968 KB Output is correct
30 Correct 4 ms 26972 KB Output is correct
31 Correct 4 ms 27132 KB Output is correct
32 Correct 4 ms 26972 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 26972 KB Output is correct
2 Correct 4 ms 26972 KB Output is correct
3 Correct 4 ms 27108 KB Output is correct
4 Correct 4 ms 26972 KB Output is correct
5 Correct 4 ms 27116 KB Output is correct
6 Correct 4 ms 26972 KB Output is correct
7 Correct 4 ms 26972 KB Output is correct
8 Correct 4 ms 26968 KB Output is correct
9 Correct 4 ms 26972 KB Output is correct
10 Correct 4 ms 26972 KB Output is correct
11 Correct 4 ms 26968 KB Output is correct
12 Correct 4 ms 26972 KB Output is correct
13 Correct 4 ms 26972 KB Output is correct
14 Correct 4 ms 26972 KB Output is correct
15 Correct 4 ms 26972 KB Output is correct
16 Correct 4 ms 26972 KB Output is correct
17 Correct 4 ms 26972 KB Output is correct
18 Correct 4 ms 26968 KB Output is correct
19 Correct 4 ms 26972 KB Output is correct
20 Correct 4 ms 26972 KB Output is correct
21 Correct 4 ms 26972 KB Output is correct
22 Correct 4 ms 26968 KB Output is correct
23 Correct 4 ms 26972 KB Output is correct
24 Correct 3 ms 26972 KB Output is correct
25 Correct 5 ms 27484 KB Output is correct
26 Correct 7 ms 30044 KB Output is correct
27 Correct 7 ms 30044 KB Output is correct
28 Correct 9 ms 30044 KB Output is correct
29 Correct 5 ms 29532 KB Output is correct
30 Correct 5 ms 29532 KB Output is correct
31 Correct 7 ms 29768 KB Output is correct
32 Correct 6 ms 29788 KB Output is correct
33 Correct 5 ms 29788 KB Output is correct
34 Correct 12 ms 31012 KB Output is correct
35 Correct 11 ms 31832 KB Output is correct
36 Correct 12 ms 31768 KB Output is correct
37 Correct 7 ms 29788 KB Output is correct
38 Correct 6 ms 29788 KB Output is correct
39 Correct 26 ms 39772 KB Output is correct
40 Correct 89 ms 63700 KB Output is correct
41 Correct 137 ms 71192 KB Output is correct
42 Correct 100 ms 70012 KB Output is correct
43 Correct 25 ms 52048 KB Output is correct
44 Correct 24 ms 51804 KB Output is correct
45 Correct 117 ms 66320 KB Output is correct
46 Correct 115 ms 65756 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 26972 KB Output is correct
2 Correct 4 ms 26968 KB Output is correct
3 Correct 4 ms 26972 KB Output is correct
4 Correct 4 ms 27096 KB Output is correct
5 Correct 4 ms 26972 KB Output is correct
6 Correct 3 ms 26968 KB Output is correct
7 Correct 4 ms 26968 KB Output is correct
8 Correct 4 ms 26960 KB Output is correct
9 Correct 4 ms 26972 KB Output is correct
10 Correct 4 ms 26972 KB Output is correct
11 Correct 4 ms 26972 KB Output is correct
12 Correct 4 ms 26972 KB Output is correct
13 Correct 4 ms 26968 KB Output is correct
14 Correct 4 ms 26968 KB Output is correct
15 Correct 4 ms 26972 KB Output is correct
16 Correct 4 ms 26968 KB Output is correct
17 Correct 4 ms 26972 KB Output is correct
18 Correct 4 ms 26972 KB Output is correct
19 Correct 4 ms 26972 KB Output is correct
20 Correct 4 ms 26972 KB Output is correct
21 Correct 4 ms 26972 KB Output is correct
22 Correct 5 ms 26972 KB Output is correct
23 Correct 4 ms 26972 KB Output is correct
24 Correct 5 ms 26972 KB Output is correct
25 Correct 4 ms 27228 KB Output is correct
26 Correct 4 ms 26972 KB Output is correct
27 Correct 4 ms 26972 KB Output is correct
28 Correct 4 ms 26972 KB Output is correct
29 Correct 4 ms 26968 KB Output is correct
30 Correct 4 ms 26972 KB Output is correct
31 Correct 4 ms 27132 KB Output is correct
32 Correct 4 ms 26972 KB Output is correct
33 Correct 8 ms 29528 KB Output is correct
34 Correct 4 ms 26968 KB Output is correct
35 Correct 4 ms 27228 KB Output is correct
36 Correct 5 ms 27368 KB Output is correct
37 Correct 8 ms 30368 KB Output is correct
38 Correct 7 ms 30044 KB Output is correct
39 Correct 7 ms 30044 KB Output is correct
40 Correct 10 ms 29528 KB Output is correct
41 Correct 8 ms 29532 KB Output is correct
42 Correct 7 ms 30044 KB Output is correct
43 Correct 5 ms 29532 KB Output is correct
44 Correct 5 ms 29532 KB Output is correct
45 Correct 10 ms 33392 KB Output is correct
46 Correct 10 ms 33216 KB Output is correct
47 Correct 8 ms 31576 KB Output is correct
48 Correct 9 ms 29784 KB Output is correct
49 Correct 8 ms 29784 KB Output is correct
50 Correct 9 ms 29804 KB Output is correct
51 Correct 6 ms 29788 KB Output is correct
52 Correct 6 ms 29788 KB Output is correct
53 Correct 5 ms 29788 KB Output is correct
54 Correct 6 ms 29528 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 26972 KB Output is correct
2 Correct 4 ms 26968 KB Output is correct
3 Correct 4 ms 26972 KB Output is correct
4 Correct 4 ms 27096 KB Output is correct
5 Correct 4 ms 26972 KB Output is correct
6 Correct 3 ms 26968 KB Output is correct
7 Correct 4 ms 26968 KB Output is correct
8 Correct 4 ms 26960 KB Output is correct
9 Correct 4 ms 26972 KB Output is correct
10 Correct 4 ms 26972 KB Output is correct
11 Correct 4 ms 26972 KB Output is correct
12 Correct 4 ms 26972 KB Output is correct
13 Correct 4 ms 26968 KB Output is correct
14 Correct 4 ms 26968 KB Output is correct
15 Correct 4 ms 26972 KB Output is correct
16 Correct 4 ms 26968 KB Output is correct
17 Correct 4 ms 26972 KB Output is correct
18 Correct 4 ms 26972 KB Output is correct
19 Correct 4 ms 26972 KB Output is correct
20 Correct 4 ms 26972 KB Output is correct
21 Correct 4 ms 26972 KB Output is correct
22 Correct 5 ms 26972 KB Output is correct
23 Correct 4 ms 26972 KB Output is correct
24 Correct 5 ms 26972 KB Output is correct
25 Correct 4 ms 27228 KB Output is correct
26 Correct 4 ms 26972 KB Output is correct
27 Correct 4 ms 26972 KB Output is correct
28 Correct 4 ms 26972 KB Output is correct
29 Correct 4 ms 26968 KB Output is correct
30 Correct 4 ms 26972 KB Output is correct
31 Correct 4 ms 27132 KB Output is correct
32 Correct 4 ms 26972 KB Output is correct
33 Correct 8 ms 29528 KB Output is correct
34 Correct 4 ms 26968 KB Output is correct
35 Correct 4 ms 27228 KB Output is correct
36 Correct 5 ms 27368 KB Output is correct
37 Correct 8 ms 30368 KB Output is correct
38 Correct 7 ms 30044 KB Output is correct
39 Correct 7 ms 30044 KB Output is correct
40 Correct 10 ms 29528 KB Output is correct
41 Correct 8 ms 29532 KB Output is correct
42 Correct 7 ms 30044 KB Output is correct
43 Correct 5 ms 29532 KB Output is correct
44 Correct 5 ms 29532 KB Output is correct
45 Correct 10 ms 33392 KB Output is correct
46 Correct 10 ms 33216 KB Output is correct
47 Correct 8 ms 31576 KB Output is correct
48 Correct 9 ms 29784 KB Output is correct
49 Correct 8 ms 29784 KB Output is correct
50 Correct 9 ms 29804 KB Output is correct
51 Correct 6 ms 29788 KB Output is correct
52 Correct 6 ms 29788 KB Output is correct
53 Correct 5 ms 29788 KB Output is correct
54 Correct 6 ms 29528 KB Output is correct
55 Correct 15 ms 30484 KB Output is correct
56 Correct 10 ms 31580 KB Output is correct
57 Correct 12 ms 31176 KB Output is correct
58 Correct 16 ms 30812 KB Output is correct
59 Correct 13 ms 31832 KB Output is correct
60 Correct 18 ms 30500 KB Output is correct
61 Correct 13 ms 30552 KB Output is correct
62 Correct 11 ms 31836 KB Output is correct
63 Correct 6 ms 29788 KB Output is correct
64 Correct 6 ms 29788 KB Output is correct
65 Correct 19 ms 39952 KB Output is correct
66 Correct 16 ms 39856 KB Output is correct
67 Correct 16 ms 35128 KB Output is correct
68 Correct 16 ms 30940 KB Output is correct
69 Correct 16 ms 30804 KB Output is correct
70 Correct 15 ms 30556 KB Output is correct
71 Correct 15 ms 30772 KB Output is correct
72 Correct 14 ms 30556 KB Output is correct
73 Correct 16 ms 30556 KB Output is correct
74 Correct 7 ms 30504 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 26972 KB Output is correct
2 Correct 3 ms 26972 KB Output is correct
3 Correct 4 ms 27108 KB Output is correct
4 Correct 3 ms 26972 KB Output is correct
5 Correct 4 ms 26972 KB Output is correct
6 Correct 4 ms 27092 KB Output is correct
7 Correct 4 ms 26972 KB Output is correct
8 Correct 4 ms 27172 KB Output is correct
9 Correct 4 ms 26972 KB Output is correct
10 Correct 4 ms 27088 KB Output is correct
11 Correct 4 ms 26972 KB Output is correct
12 Correct 5 ms 26972 KB Output is correct
13 Correct 4 ms 27148 KB Output is correct
14 Correct 4 ms 26972 KB Output is correct
15 Correct 4 ms 26972 KB Output is correct
16 Correct 4 ms 26972 KB Output is correct
17 Correct 4 ms 26972 KB Output is correct
18 Correct 4 ms 26972 KB Output is correct
19 Correct 8 ms 29668 KB Output is correct
20 Correct 8 ms 30248 KB Output is correct
21 Correct 8 ms 30044 KB Output is correct
22 Correct 9 ms 29528 KB Output is correct
23 Correct 9 ms 29532 KB Output is correct
24 Correct 10 ms 33268 KB Output is correct
25 Correct 9 ms 33420 KB Output is correct
26 Correct 6 ms 29788 KB Output is correct
27 Correct 5 ms 29784 KB Output is correct
28 Correct 6 ms 29532 KB Output is correct
29 Correct 14 ms 30416 KB Output is correct
30 Correct 10 ms 31580 KB Output is correct
31 Correct 12 ms 31832 KB Output is correct
32 Correct 18 ms 30416 KB Output is correct
33 Correct 13 ms 30556 KB Output is correct
34 Correct 18 ms 39692 KB Output is correct
35 Correct 16 ms 39696 KB Output is correct
36 Correct 15 ms 30696 KB Output is correct
37 Correct 16 ms 30552 KB Output is correct
38 Correct 7 ms 30556 KB Output is correct
39 Correct 157 ms 59268 KB Output is correct
40 Correct 10 ms 32856 KB Output is correct
41 Correct 17 ms 43912 KB Output is correct
42 Correct 25 ms 33252 KB Output is correct
43 Correct 39 ms 40460 KB Output is correct
44 Correct 59 ms 49520 KB Output is correct
45 Correct 81 ms 52484 KB Output is correct
46 Correct 147 ms 71260 KB Output is correct
47 Correct 165 ms 58864 KB Output is correct
48 Correct 130 ms 58708 KB Output is correct
49 Correct 129 ms 150376 KB Output is correct
50 Correct 118 ms 149864 KB Output is correct
51 Correct 124 ms 59144 KB Output is correct
52 Correct 86 ms 58936 KB Output is correct
53 Correct 123 ms 58708 KB Output is correct
54 Correct 4 ms 26972 KB Output is correct
55 Correct 4 ms 26968 KB Output is correct
56 Correct 4 ms 26972 KB Output is correct
57 Correct 4 ms 27096 KB Output is correct
58 Correct 4 ms 26972 KB Output is correct
59 Correct 3 ms 26968 KB Output is correct
60 Correct 4 ms 26968 KB Output is correct
61 Correct 4 ms 26960 KB Output is correct
62 Correct 4 ms 26972 KB Output is correct
63 Correct 4 ms 26972 KB Output is correct
64 Correct 4 ms 26972 KB Output is correct
65 Correct 4 ms 26972 KB Output is correct
66 Correct 4 ms 26968 KB Output is correct
67 Correct 4 ms 26968 KB Output is correct
68 Correct 4 ms 26972 KB Output is correct
69 Correct 4 ms 26968 KB Output is correct
70 Correct 4 ms 26972 KB Output is correct
71 Correct 4 ms 26972 KB Output is correct
72 Correct 4 ms 26972 KB Output is correct
73 Correct 4 ms 26972 KB Output is correct
74 Correct 4 ms 26972 KB Output is correct
75 Correct 5 ms 26972 KB Output is correct
76 Correct 4 ms 26972 KB Output is correct
77 Correct 5 ms 26972 KB Output is correct
78 Correct 4 ms 27228 KB Output is correct
79 Correct 4 ms 26972 KB Output is correct
80 Correct 4 ms 26972 KB Output is correct
81 Correct 4 ms 26972 KB Output is correct
82 Correct 4 ms 26968 KB Output is correct
83 Correct 4 ms 26972 KB Output is correct
84 Correct 4 ms 27132 KB Output is correct
85 Correct 4 ms 26972 KB Output is correct
86 Correct 4 ms 26972 KB Output is correct
87 Correct 4 ms 26972 KB Output is correct
88 Correct 4 ms 27108 KB Output is correct
89 Correct 4 ms 26972 KB Output is correct
90 Correct 4 ms 27116 KB Output is correct
91 Correct 4 ms 26972 KB Output is correct
92 Correct 4 ms 26972 KB Output is correct
93 Correct 4 ms 26968 KB Output is correct
94 Correct 4 ms 26972 KB Output is correct
95 Correct 4 ms 26972 KB Output is correct
96 Correct 4 ms 26968 KB Output is correct
97 Correct 4 ms 26972 KB Output is correct
98 Correct 4 ms 26972 KB Output is correct
99 Correct 4 ms 26972 KB Output is correct
100 Correct 4 ms 26972 KB Output is correct
101 Correct 4 ms 26972 KB Output is correct
102 Correct 4 ms 26972 KB Output is correct
103 Correct 4 ms 26968 KB Output is correct
104 Correct 4 ms 26972 KB Output is correct
105 Correct 4 ms 26972 KB Output is correct
106 Correct 4 ms 26972 KB Output is correct
107 Correct 4 ms 26968 KB Output is correct
108 Correct 4 ms 26972 KB Output is correct
109 Correct 3 ms 26972 KB Output is correct
110 Correct 5 ms 27484 KB Output is correct
111 Correct 7 ms 30044 KB Output is correct
112 Correct 7 ms 30044 KB Output is correct
113 Correct 9 ms 30044 KB Output is correct
114 Correct 5 ms 29532 KB Output is correct
115 Correct 5 ms 29532 KB Output is correct
116 Correct 7 ms 29768 KB Output is correct
117 Correct 6 ms 29788 KB Output is correct
118 Correct 5 ms 29788 KB Output is correct
119 Correct 12 ms 31012 KB Output is correct
120 Correct 11 ms 31832 KB Output is correct
121 Correct 12 ms 31768 KB Output is correct
122 Correct 7 ms 29788 KB Output is correct
123 Correct 6 ms 29788 KB Output is correct
124 Correct 26 ms 39772 KB Output is correct
125 Correct 89 ms 63700 KB Output is correct
126 Correct 137 ms 71192 KB Output is correct
127 Correct 100 ms 70012 KB Output is correct
128 Correct 25 ms 52048 KB Output is correct
129 Correct 24 ms 51804 KB Output is correct
130 Correct 117 ms 66320 KB Output is correct
131 Correct 115 ms 65756 KB Output is correct
132 Correct 8 ms 29528 KB Output is correct
133 Correct 4 ms 26968 KB Output is correct
134 Correct 4 ms 27228 KB Output is correct
135 Correct 5 ms 27368 KB Output is correct
136 Correct 8 ms 30368 KB Output is correct
137 Correct 7 ms 30044 KB Output is correct
138 Correct 7 ms 30044 KB Output is correct
139 Correct 10 ms 29528 KB Output is correct
140 Correct 8 ms 29532 KB Output is correct
141 Correct 7 ms 30044 KB Output is correct
142 Correct 5 ms 29532 KB Output is correct
143 Correct 5 ms 29532 KB Output is correct
144 Correct 10 ms 33392 KB Output is correct
145 Correct 10 ms 33216 KB Output is correct
146 Correct 8 ms 31576 KB Output is correct
147 Correct 9 ms 29784 KB Output is correct
148 Correct 8 ms 29784 KB Output is correct
149 Correct 9 ms 29804 KB Output is correct
150 Correct 6 ms 29788 KB Output is correct
151 Correct 6 ms 29788 KB Output is correct
152 Correct 5 ms 29788 KB Output is correct
153 Correct 6 ms 29528 KB Output is correct
154 Correct 15 ms 30484 KB Output is correct
155 Correct 10 ms 31580 KB Output is correct
156 Correct 12 ms 31176 KB Output is correct
157 Correct 16 ms 30812 KB Output is correct
158 Correct 13 ms 31832 KB Output is correct
159 Correct 18 ms 30500 KB Output is correct
160 Correct 13 ms 30552 KB Output is correct
161 Correct 11 ms 31836 KB Output is correct
162 Correct 6 ms 29788 KB Output is correct
163 Correct 6 ms 29788 KB Output is correct
164 Correct 19 ms 39952 KB Output is correct
165 Correct 16 ms 39856 KB Output is correct
166 Correct 16 ms 35128 KB Output is correct
167 Correct 16 ms 30940 KB Output is correct
168 Correct 16 ms 30804 KB Output is correct
169 Correct 15 ms 30556 KB Output is correct
170 Correct 15 ms 30772 KB Output is correct
171 Correct 14 ms 30556 KB Output is correct
172 Correct 16 ms 30556 KB Output is correct
173 Correct 7 ms 30504 KB Output is correct
174 Correct 11 ms 33372 KB Output is correct
175 Correct 29 ms 36700 KB Output is correct
176 Correct 61 ms 57784 KB Output is correct
177 Correct 97 ms 49820 KB Output is correct
178 Correct 30 ms 52388 KB Output is correct
179 Correct 78 ms 58140 KB Output is correct
180 Correct 131 ms 59732 KB Output is correct
181 Correct 125 ms 59756 KB Output is correct
182 Correct 133 ms 60188 KB Output is correct
183 Correct 118 ms 62012 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 26972 KB Output is correct
2 Correct 3 ms 26972 KB Output is correct
3 Correct 4 ms 27108 KB Output is correct
4 Correct 3 ms 26972 KB Output is correct
5 Correct 4 ms 26972 KB Output is correct
6 Correct 4 ms 27092 KB Output is correct
7 Correct 4 ms 26972 KB Output is correct
8 Correct 4 ms 27172 KB Output is correct
9 Correct 4 ms 26972 KB Output is correct
10 Correct 4 ms 27088 KB Output is correct
11 Correct 4 ms 26972 KB Output is correct
12 Correct 5 ms 26972 KB Output is correct
13 Correct 4 ms 27148 KB Output is correct
14 Correct 4 ms 26972 KB Output is correct
15 Correct 4 ms 26972 KB Output is correct
16 Correct 4 ms 26972 KB Output is correct
17 Correct 4 ms 26972 KB Output is correct
18 Correct 4 ms 26972 KB Output is correct
19 Correct 8 ms 29668 KB Output is correct
20 Correct 8 ms 30248 KB Output is correct
21 Correct 8 ms 30044 KB Output is correct
22 Correct 9 ms 29528 KB Output is correct
23 Correct 9 ms 29532 KB Output is correct
24 Correct 10 ms 33268 KB Output is correct
25 Correct 9 ms 33420 KB Output is correct
26 Correct 6 ms 29788 KB Output is correct
27 Correct 5 ms 29784 KB Output is correct
28 Correct 6 ms 29532 KB Output is correct
29 Correct 14 ms 30416 KB Output is correct
30 Correct 10 ms 31580 KB Output is correct
31 Correct 12 ms 31832 KB Output is correct
32 Correct 18 ms 30416 KB Output is correct
33 Correct 13 ms 30556 KB Output is correct
34 Correct 18 ms 39692 KB Output is correct
35 Correct 16 ms 39696 KB Output is correct
36 Correct 15 ms 30696 KB Output is correct
37 Correct 16 ms 30552 KB Output is correct
38 Correct 7 ms 30556 KB Output is correct
39 Correct 157 ms 59268 KB Output is correct
40 Correct 10 ms 32856 KB Output is correct
41 Correct 17 ms 43912 KB Output is correct
42 Correct 25 ms 33252 KB Output is correct
43 Correct 39 ms 40460 KB Output is correct
44 Correct 59 ms 49520 KB Output is correct
45 Correct 81 ms 52484 KB Output is correct
46 Correct 147 ms 71260 KB Output is correct
47 Correct 165 ms 58864 KB Output is correct
48 Correct 130 ms 58708 KB Output is correct
49 Correct 129 ms 150376 KB Output is correct
50 Correct 118 ms 149864 KB Output is correct
51 Correct 124 ms 59144 KB Output is correct
52 Correct 86 ms 58936 KB Output is correct
53 Correct 123 ms 58708 KB Output is correct
54 Correct 4 ms 26972 KB Output is correct
55 Correct 4 ms 26968 KB Output is correct
56 Correct 4 ms 26972 KB Output is correct
57 Correct 4 ms 27096 KB Output is correct
58 Correct 4 ms 26972 KB Output is correct
59 Correct 3 ms 26968 KB Output is correct
60 Correct 4 ms 26968 KB Output is correct
61 Correct 4 ms 26960 KB Output is correct
62 Correct 4 ms 26972 KB Output is correct
63 Correct 4 ms 26972 KB Output is correct
64 Correct 4 ms 26972 KB Output is correct
65 Correct 4 ms 26972 KB Output is correct
66 Correct 4 ms 26968 KB Output is correct
67 Correct 4 ms 26968 KB Output is correct
68 Correct 4 ms 26972 KB Output is correct
69 Correct 4 ms 26968 KB Output is correct
70 Correct 4 ms 26972 KB Output is correct
71 Correct 4 ms 26972 KB Output is correct
72 Correct 4 ms 26972 KB Output is correct
73 Correct 4 ms 26972 KB Output is correct
74 Correct 4 ms 26972 KB Output is correct
75 Correct 5 ms 26972 KB Output is correct
76 Correct 4 ms 26972 KB Output is correct
77 Correct 5 ms 26972 KB Output is correct
78 Correct 4 ms 27228 KB Output is correct
79 Correct 4 ms 26972 KB Output is correct
80 Correct 4 ms 26972 KB Output is correct
81 Correct 4 ms 26972 KB Output is correct
82 Correct 4 ms 26968 KB Output is correct
83 Correct 4 ms 26972 KB Output is correct
84 Correct 4 ms 27132 KB Output is correct
85 Correct 4 ms 26972 KB Output is correct
86 Correct 4 ms 26972 KB Output is correct
87 Correct 4 ms 26972 KB Output is correct
88 Correct 4 ms 27108 KB Output is correct
89 Correct 4 ms 26972 KB Output is correct
90 Correct 4 ms 27116 KB Output is correct
91 Correct 4 ms 26972 KB Output is correct
92 Correct 4 ms 26972 KB Output is correct
93 Correct 4 ms 26968 KB Output is correct
94 Correct 4 ms 26972 KB Output is correct
95 Correct 4 ms 26972 KB Output is correct
96 Correct 4 ms 26968 KB Output is correct
97 Correct 4 ms 26972 KB Output is correct
98 Correct 4 ms 26972 KB Output is correct
99 Correct 4 ms 26972 KB Output is correct
100 Correct 4 ms 26972 KB Output is correct
101 Correct 4 ms 26972 KB Output is correct
102 Correct 4 ms 26972 KB Output is correct
103 Correct 4 ms 26968 KB Output is correct
104 Correct 4 ms 26972 KB Output is correct
105 Correct 4 ms 26972 KB Output is correct
106 Correct 4 ms 26972 KB Output is correct
107 Correct 4 ms 26968 KB Output is correct
108 Correct 4 ms 26972 KB Output is correct
109 Correct 3 ms 26972 KB Output is correct
110 Correct 5 ms 27484 KB Output is correct
111 Correct 7 ms 30044 KB Output is correct
112 Correct 7 ms 30044 KB Output is correct
113 Correct 9 ms 30044 KB Output is correct
114 Correct 5 ms 29532 KB Output is correct
115 Correct 5 ms 29532 KB Output is correct
116 Correct 7 ms 29768 KB Output is correct
117 Correct 6 ms 29788 KB Output is correct
118 Correct 5 ms 29788 KB Output is correct
119 Correct 12 ms 31012 KB Output is correct
120 Correct 11 ms 31832 KB Output is correct
121 Correct 12 ms 31768 KB Output is correct
122 Correct 7 ms 29788 KB Output is correct
123 Correct 6 ms 29788 KB Output is correct
124 Correct 26 ms 39772 KB Output is correct
125 Correct 89 ms 63700 KB Output is correct
126 Correct 137 ms 71192 KB Output is correct
127 Correct 100 ms 70012 KB Output is correct
128 Correct 25 ms 52048 KB Output is correct
129 Correct 24 ms 51804 KB Output is correct
130 Correct 117 ms 66320 KB Output is correct
131 Correct 115 ms 65756 KB Output is correct
132 Correct 8 ms 29528 KB Output is correct
133 Correct 4 ms 26968 KB Output is correct
134 Correct 4 ms 27228 KB Output is correct
135 Correct 5 ms 27368 KB Output is correct
136 Correct 8 ms 30368 KB Output is correct
137 Correct 7 ms 30044 KB Output is correct
138 Correct 7 ms 30044 KB Output is correct
139 Correct 10 ms 29528 KB Output is correct
140 Correct 8 ms 29532 KB Output is correct
141 Correct 7 ms 30044 KB Output is correct
142 Correct 5 ms 29532 KB Output is correct
143 Correct 5 ms 29532 KB Output is correct
144 Correct 10 ms 33392 KB Output is correct
145 Correct 10 ms 33216 KB Output is correct
146 Correct 8 ms 31576 KB Output is correct
147 Correct 9 ms 29784 KB Output is correct
148 Correct 8 ms 29784 KB Output is correct
149 Correct 9 ms 29804 KB Output is correct
150 Correct 6 ms 29788 KB Output is correct
151 Correct 6 ms 29788 KB Output is correct
152 Correct 5 ms 29788 KB Output is correct
153 Correct 6 ms 29528 KB Output is correct
154 Correct 15 ms 30484 KB Output is correct
155 Correct 10 ms 31580 KB Output is correct
156 Correct 12 ms 31176 KB Output is correct
157 Correct 16 ms 30812 KB Output is correct
158 Correct 13 ms 31832 KB Output is correct
159 Correct 18 ms 30500 KB Output is correct
160 Correct 13 ms 30552 KB Output is correct
161 Correct 11 ms 31836 KB Output is correct
162 Correct 6 ms 29788 KB Output is correct
163 Correct 6 ms 29788 KB Output is correct
164 Correct 19 ms 39952 KB Output is correct
165 Correct 16 ms 39856 KB Output is correct
166 Correct 16 ms 35128 KB Output is correct
167 Correct 16 ms 30940 KB Output is correct
168 Correct 16 ms 30804 KB Output is correct
169 Correct 15 ms 30556 KB Output is correct
170 Correct 15 ms 30772 KB Output is correct
171 Correct 14 ms 30556 KB Output is correct
172 Correct 16 ms 30556 KB Output is correct
173 Correct 7 ms 30504 KB Output is correct
174 Correct 11 ms 33372 KB Output is correct
175 Correct 29 ms 36700 KB Output is correct
176 Correct 61 ms 57784 KB Output is correct
177 Correct 97 ms 49820 KB Output is correct
178 Correct 30 ms 52388 KB Output is correct
179 Correct 78 ms 58140 KB Output is correct
180 Correct 131 ms 59732 KB Output is correct
181 Correct 125 ms 59756 KB Output is correct
182 Correct 133 ms 60188 KB Output is correct
183 Correct 118 ms 62012 KB Output is correct
184 Correct 327 ms 90524 KB Output is correct
185 Correct 76 ms 60564 KB Output is correct
186 Correct 118 ms 74184 KB Output is correct
187 Correct 47 ms 66640 KB Output is correct
188 Correct 323 ms 115824 KB Output is correct
189 Correct 250 ms 91336 KB Output is correct
190 Correct 127 ms 86832 KB Output is correct
191 Correct 217 ms 115824 KB Output is correct
192 Correct 46 ms 79440 KB Output is correct
193 Correct 46 ms 79408 KB Output is correct
194 Correct 298 ms 278544 KB Output is correct
195 Correct 320 ms 274064 KB Output is correct
196 Correct 229 ms 93760 KB Output is correct
197 Correct 134 ms 86732 KB Output is correct
198 Correct 152 ms 86864 KB Output is correct
199 Correct 272 ms 92464 KB Output is correct
200 Correct 136 ms 90088 KB Output is correct
201 Correct 202 ms 90820 KB Output is correct
202 Correct 289 ms 91156 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 26972 KB Output is correct
2 Correct 3 ms 26972 KB Output is correct
3 Correct 4 ms 27108 KB Output is correct
4 Correct 3 ms 26972 KB Output is correct
5 Correct 4 ms 26972 KB Output is correct
6 Correct 4 ms 27092 KB Output is correct
7 Correct 4 ms 26972 KB Output is correct
8 Correct 4 ms 27172 KB Output is correct
9 Correct 4 ms 26972 KB Output is correct
10 Correct 4 ms 27088 KB Output is correct
11 Correct 4 ms 26972 KB Output is correct
12 Correct 5 ms 26972 KB Output is correct
13 Correct 4 ms 27148 KB Output is correct
14 Correct 4 ms 26972 KB Output is correct
15 Correct 4 ms 26972 KB Output is correct
16 Correct 4 ms 26972 KB Output is correct
17 Correct 4 ms 26972 KB Output is correct
18 Correct 4 ms 26972 KB Output is correct
19 Correct 8 ms 29668 KB Output is correct
20 Correct 8 ms 30248 KB Output is correct
21 Correct 8 ms 30044 KB Output is correct
22 Correct 9 ms 29528 KB Output is correct
23 Correct 9 ms 29532 KB Output is correct
24 Correct 10 ms 33268 KB Output is correct
25 Correct 9 ms 33420 KB Output is correct
26 Correct 6 ms 29788 KB Output is correct
27 Correct 5 ms 29784 KB Output is correct
28 Correct 6 ms 29532 KB Output is correct
29 Correct 14 ms 30416 KB Output is correct
30 Correct 10 ms 31580 KB Output is correct
31 Correct 12 ms 31832 KB Output is correct
32 Correct 18 ms 30416 KB Output is correct
33 Correct 13 ms 30556 KB Output is correct
34 Correct 18 ms 39692 KB Output is correct
35 Correct 16 ms 39696 KB Output is correct
36 Correct 15 ms 30696 KB Output is correct
37 Correct 16 ms 30552 KB Output is correct
38 Correct 7 ms 30556 KB Output is correct
39 Correct 157 ms 59268 KB Output is correct
40 Correct 10 ms 32856 KB Output is correct
41 Correct 17 ms 43912 KB Output is correct
42 Correct 25 ms 33252 KB Output is correct
43 Correct 39 ms 40460 KB Output is correct
44 Correct 59 ms 49520 KB Output is correct
45 Correct 81 ms 52484 KB Output is correct
46 Correct 147 ms 71260 KB Output is correct
47 Correct 165 ms 58864 KB Output is correct
48 Correct 130 ms 58708 KB Output is correct
49 Correct 129 ms 150376 KB Output is correct
50 Correct 118 ms 149864 KB Output is correct
51 Correct 124 ms 59144 KB Output is correct
52 Correct 86 ms 58936 KB Output is correct
53 Correct 123 ms 58708 KB Output is correct
54 Correct 4 ms 26972 KB Output is correct
55 Correct 4 ms 26968 KB Output is correct
56 Correct 4 ms 26972 KB Output is correct
57 Correct 4 ms 27096 KB Output is correct
58 Correct 4 ms 26972 KB Output is correct
59 Correct 3 ms 26968 KB Output is correct
60 Correct 4 ms 26968 KB Output is correct
61 Correct 4 ms 26960 KB Output is correct
62 Correct 4 ms 26972 KB Output is correct
63 Correct 4 ms 26972 KB Output is correct
64 Correct 4 ms 26972 KB Output is correct
65 Correct 4 ms 26972 KB Output is correct
66 Correct 4 ms 26968 KB Output is correct
67 Correct 4 ms 26968 KB Output is correct
68 Correct 4 ms 26972 KB Output is correct
69 Correct 4 ms 26968 KB Output is correct
70 Correct 4 ms 26972 KB Output is correct
71 Correct 4 ms 26972 KB Output is correct
72 Correct 4 ms 26972 KB Output is correct
73 Correct 4 ms 26972 KB Output is correct
74 Correct 4 ms 26972 KB Output is correct
75 Correct 5 ms 26972 KB Output is correct
76 Correct 4 ms 26972 KB Output is correct
77 Correct 5 ms 26972 KB Output is correct
78 Correct 4 ms 27228 KB Output is correct
79 Correct 4 ms 26972 KB Output is correct
80 Correct 4 ms 26972 KB Output is correct
81 Correct 4 ms 26972 KB Output is correct
82 Correct 4 ms 26968 KB Output is correct
83 Correct 4 ms 26972 KB Output is correct
84 Correct 4 ms 27132 KB Output is correct
85 Correct 4 ms 26972 KB Output is correct
86 Correct 4 ms 26972 KB Output is correct
87 Correct 4 ms 26972 KB Output is correct
88 Correct 4 ms 27108 KB Output is correct
89 Correct 4 ms 26972 KB Output is correct
90 Correct 4 ms 27116 KB Output is correct
91 Correct 4 ms 26972 KB Output is correct
92 Correct 4 ms 26972 KB Output is correct
93 Correct 4 ms 26968 KB Output is correct
94 Correct 4 ms 26972 KB Output is correct
95 Correct 4 ms 26972 KB Output is correct
96 Correct 4 ms 26968 KB Output is correct
97 Correct 4 ms 26972 KB Output is correct
98 Correct 4 ms 26972 KB Output is correct
99 Correct 4 ms 26972 KB Output is correct
100 Correct 4 ms 26972 KB Output is correct
101 Correct 4 ms 26972 KB Output is correct
102 Correct 4 ms 26972 KB Output is correct
103 Correct 4 ms 26968 KB Output is correct
104 Correct 4 ms 26972 KB Output is correct
105 Correct 4 ms 26972 KB Output is correct
106 Correct 4 ms 26972 KB Output is correct
107 Correct 4 ms 26968 KB Output is correct
108 Correct 4 ms 26972 KB Output is correct
109 Correct 3 ms 26972 KB Output is correct
110 Correct 5 ms 27484 KB Output is correct
111 Correct 7 ms 30044 KB Output is correct
112 Correct 7 ms 30044 KB Output is correct
113 Correct 9 ms 30044 KB Output is correct
114 Correct 5 ms 29532 KB Output is correct
115 Correct 5 ms 29532 KB Output is correct
116 Correct 7 ms 29768 KB Output is correct
117 Correct 6 ms 29788 KB Output is correct
118 Correct 5 ms 29788 KB Output is correct
119 Correct 12 ms 31012 KB Output is correct
120 Correct 11 ms 31832 KB Output is correct
121 Correct 12 ms 31768 KB Output is correct
122 Correct 7 ms 29788 KB Output is correct
123 Correct 6 ms 29788 KB Output is correct
124 Correct 26 ms 39772 KB Output is correct
125 Correct 89 ms 63700 KB Output is correct
126 Correct 137 ms 71192 KB Output is correct
127 Correct 100 ms 70012 KB Output is correct
128 Correct 25 ms 52048 KB Output is correct
129 Correct 24 ms 51804 KB Output is correct
130 Correct 117 ms 66320 KB Output is correct
131 Correct 115 ms 65756 KB Output is correct
132 Correct 8 ms 29528 KB Output is correct
133 Correct 4 ms 26968 KB Output is correct
134 Correct 4 ms 27228 KB Output is correct
135 Correct 5 ms 27368 KB Output is correct
136 Correct 8 ms 30368 KB Output is correct
137 Correct 7 ms 30044 KB Output is correct
138 Correct 7 ms 30044 KB Output is correct
139 Correct 10 ms 29528 KB Output is correct
140 Correct 8 ms 29532 KB Output is correct
141 Correct 7 ms 30044 KB Output is correct
142 Correct 5 ms 29532 KB Output is correct
143 Correct 5 ms 29532 KB Output is correct
144 Correct 10 ms 33392 KB Output is correct
145 Correct 10 ms 33216 KB Output is correct
146 Correct 8 ms 31576 KB Output is correct
147 Correct 9 ms 29784 KB Output is correct
148 Correct 8 ms 29784 KB Output is correct
149 Correct 9 ms 29804 KB Output is correct
150 Correct 6 ms 29788 KB Output is correct
151 Correct 6 ms 29788 KB Output is correct
152 Correct 5 ms 29788 KB Output is correct
153 Correct 6 ms 29528 KB Output is correct
154 Correct 15 ms 30484 KB Output is correct
155 Correct 10 ms 31580 KB Output is correct
156 Correct 12 ms 31176 KB Output is correct
157 Correct 16 ms 30812 KB Output is correct
158 Correct 13 ms 31832 KB Output is correct
159 Correct 18 ms 30500 KB Output is correct
160 Correct 13 ms 30552 KB Output is correct
161 Correct 11 ms 31836 KB Output is correct
162 Correct 6 ms 29788 KB Output is correct
163 Correct 6 ms 29788 KB Output is correct
164 Correct 19 ms 39952 KB Output is correct
165 Correct 16 ms 39856 KB Output is correct
166 Correct 16 ms 35128 KB Output is correct
167 Correct 16 ms 30940 KB Output is correct
168 Correct 16 ms 30804 KB Output is correct
169 Correct 15 ms 30556 KB Output is correct
170 Correct 15 ms 30772 KB Output is correct
171 Correct 14 ms 30556 KB Output is correct
172 Correct 16 ms 30556 KB Output is correct
173 Correct 7 ms 30504 KB Output is correct
174 Correct 11 ms 33372 KB Output is correct
175 Correct 29 ms 36700 KB Output is correct
176 Correct 61 ms 57784 KB Output is correct
177 Correct 97 ms 49820 KB Output is correct
178 Correct 30 ms 52388 KB Output is correct
179 Correct 78 ms 58140 KB Output is correct
180 Correct 131 ms 59732 KB Output is correct
181 Correct 125 ms 59756 KB Output is correct
182 Correct 133 ms 60188 KB Output is correct
183 Correct 118 ms 62012 KB Output is correct
184 Correct 327 ms 90524 KB Output is correct
185 Correct 76 ms 60564 KB Output is correct
186 Correct 118 ms 74184 KB Output is correct
187 Correct 47 ms 66640 KB Output is correct
188 Correct 323 ms 115824 KB Output is correct
189 Correct 250 ms 91336 KB Output is correct
190 Correct 127 ms 86832 KB Output is correct
191 Correct 217 ms 115824 KB Output is correct
192 Correct 46 ms 79440 KB Output is correct
193 Correct 46 ms 79408 KB Output is correct
194 Correct 298 ms 278544 KB Output is correct
195 Correct 320 ms 274064 KB Output is correct
196 Correct 229 ms 93760 KB Output is correct
197 Correct 134 ms 86732 KB Output is correct
198 Correct 152 ms 86864 KB Output is correct
199 Correct 272 ms 92464 KB Output is correct
200 Correct 136 ms 90088 KB Output is correct
201 Correct 202 ms 90820 KB Output is correct
202 Correct 289 ms 91156 KB Output is correct
203 Correct 597 ms 148112 KB Output is correct
204 Correct 236 ms 100068 KB Output is correct
205 Correct 374 ms 103576 KB Output is correct
206 Correct 266 ms 139484 KB Output is correct
207 Correct 570 ms 197620 KB Output is correct
208 Correct 530 ms 147916 KB Output is correct
209 Correct 605 ms 147792 KB Output is correct
210 Correct 441 ms 197364 KB Output is correct
211 Correct 85 ms 125268 KB Output is correct
212 Correct 90 ms 125012 KB Output is correct
213 Correct 536 ms 514976 KB Output is correct
214 Correct 493 ms 520208 KB Output is correct
215 Correct 459 ms 149224 KB Output is correct
216 Correct 427 ms 146284 KB Output is correct
217 Correct 482 ms 147944 KB Output is correct
218 Correct 449 ms 144572 KB Output is correct
219 Correct 403 ms 158368 KB Output is correct
220 Correct 312 ms 166156 KB Output is correct
221 Correct 466 ms 193100 KB Output is correct
222 Correct 409 ms 186856 KB Output is correct
223 Correct 501 ms 146008 KB Output is correct
224 Correct 472 ms 147248 KB Output is correct
225 Correct 317 ms 142176 KB Output is correct