Submission #933375

# Submission time Handle Problem Language Result Execution time Memory
933375 2024-02-25T15:12:29 Z pcc Maze (JOI23_ho_t3) C++17
100 / 100
1924 ms 522044 KB
#include <bits/stdc++.h>
using namespace std;

#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,popcnt")

#define ll long long
#define pll pair<ll,ll>
#define pii pair<int,int>
#define fs first
#define sc second
#define tlll tuple<ll,ll,ll>

struct node{
	int lvl,r,c,d;
	node(){lvl = r = c = d = 0;}
	node(int lv,int rr,int cc,int dd):lvl(lv),r(rr),c(cc),d(dd){}
	bool operator<(node b)const{
		return d<b.d;
	}
	bool operator>(node b)const{
		return d>b.d;
	}
};

bitset<6000006> bound;
int R,C,N;
vector<string> arr;
vector<vector<int>> dist[5];
pii s,e;

deque<node> dq;

pii dir[] = {{0,1},{0,-1},{1,0},{-1,0}};
pii dir2[] = {{1,1},{1,-1},{-1,-1},{-1,1}};

inline void add(int lvl,int r,int c,int d){
	if(lvl>4||r<0||c<0||r>=R||c>=C)return;
	//cout<<lvl<<','<<r<<' '<<c<<' '<<d<<endl;
	if(dist[lvl][r][c] != -1&&dist[lvl][r][c]<=d)return;
	dist[lvl][r][c] = d;
	if(dq.empty()||dq.back().d<=d)dq.push_back(node(lvl,r,c,d));
	else dq.push_front(node(lvl,r,c,d));
}

void add_center(int r,int c,int d){//extend radius of N*2-1 square
	pii row = {max((int)0,r-N+1),min(r+N-1,R-1)};
	pii col = {max((int)0,c-N+1),min(c+N-1,C-1)};
	for(int i = 0;i<4;i++){
		int nr = r-dir2[i].fs*(N-1),nc = c-dir2[i].sc*(N-1);
		if(nr>=0&&nr<R&&nc>=0&&nc<C)add(i,nr,nc,d);
		else {
			nr = max((int)0,nr),nr = min(nr,R-1),nc = max((int)0,nc),nc = min(nc,C-1);
			int er,ec;
			if(dir2[i].fs>0)er = (nr+N*2-2)/(N*2-1)*(N*2-1);
			else er = nr/(N*2-1)*(N*2-1);
			if(dir2[i].sc>0)ec = (nc+N*2-2)/(N*2-1)*(N*2-1);
			else ec = nc/(N*2-1)*(N*2-1);
			er = min(er,R-1),ec = min(ec,C-1);
			if(row.fs<=er&&er<=row.sc&&col.fs<=ec&&ec<=col.sc)add(i,nr,nc,d);
		}
	}
	return;
}

void BFS(pii s){
	add(4,s.fs,s.sc,0);
	dist[4][s.fs][s.sc] = 0;
	while(!dq.empty()){
		auto now = dq.front();
		dq.pop_front();
		//cout<<now.lvl<<','<<now.r<<' '<<now.c<<':'<<now.d<<":"<<dist[now.lvl][now.r][now.c]<<endl;
		assert(dist[now.lvl][now.r][now.c]<=now.d);
		if(dist[now.lvl][now.r][now.c] != now.d)continue;
		if(now.lvl == 4){
			add_center(now.r,now.c,now.d+1);
			for(auto &d:dir){
				int nr = d.fs+now.r,nc = d.sc+now.c;
				//cout<<nr<<','<<nc<<endl;
				if(nr>=0&&nc>=0&&nr<R&&nc<C){
					add_center(nr,nc,now.d+1);
					add(4,nr,nc,now.d+(arr[nr][nc] == '#'));
				}
			}
		}
		else{
			add(4,now.r,now.c,now.d);
			int nr = now.r+dir2[now.lvl].fs,nc = now.c+dir2[now.lvl].sc;
			if(nr>=0&&nr<R&&!bound[now.r])add(now.lvl,nr,now.c,now.d);
			if(nc>=0&&nc<C&&!bound[now.c])add(now.lvl,now.r,nc,now.d);
		}
	}
	return;
}

main(){
	ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
	cin>>R>>C>>N;
	arr = vector<string>(R);
	dist[0] = dist[1] = dist[2] = dist[3] = dist[4] = vector<vector<int>>(R,vector<int>(C,-1));
	for(int i = 0;i<6e6;i++)bound[i] = (i%(N*2-1)==0);
	cin>>s.fs>>s.sc>>e.fs>>e.sc;
	s.fs--,s.sc--,e.fs--,e.sc--;
	for(auto &i:arr)cin>>i;
	BFS(s);
	cout<<dist[4][e.fs][e.sc];
}

Compilation message

Main.cpp:96:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   96 | main(){
      | ^~~~
# Verdict Execution time Memory Grader output
1 Correct 45 ms 1112 KB Output is correct
2 Correct 45 ms 1104 KB Output is correct
3 Correct 45 ms 968 KB Output is correct
4 Correct 45 ms 1164 KB Output is correct
5 Correct 46 ms 1092 KB Output is correct
6 Correct 46 ms 1104 KB Output is correct
7 Correct 45 ms 1104 KB Output is correct
8 Correct 45 ms 1124 KB Output is correct
9 Correct 45 ms 1116 KB Output is correct
10 Correct 45 ms 1132 KB Output is correct
11 Correct 45 ms 1136 KB Output is correct
12 Correct 45 ms 1112 KB Output is correct
13 Correct 45 ms 1032 KB Output is correct
14 Correct 45 ms 1108 KB Output is correct
15 Correct 45 ms 1140 KB Output is correct
16 Correct 45 ms 1108 KB Output is correct
17 Correct 45 ms 1108 KB Output is correct
18 Correct 45 ms 1108 KB Output is correct
19 Correct 54 ms 2364 KB Output is correct
20 Correct 50 ms 2120 KB Output is correct
21 Correct 57 ms 6484 KB Output is correct
22 Correct 55 ms 2384 KB Output is correct
23 Correct 54 ms 2392 KB Output is correct
24 Correct 52 ms 2244 KB Output is correct
25 Correct 54 ms 2528 KB Output is correct
26 Correct 55 ms 3152 KB Output is correct
27 Correct 59 ms 2956 KB Output is correct
28 Correct 54 ms 2356 KB Output is correct
29 Correct 78 ms 4396 KB Output is correct
30 Correct 55 ms 2488 KB Output is correct
31 Correct 90 ms 14452 KB Output is correct
32 Correct 71 ms 4440 KB Output is correct
33 Correct 69 ms 4320 KB Output is correct
34 Correct 68 ms 4360 KB Output is correct
35 Correct 61 ms 4364 KB Output is correct
36 Correct 72 ms 5468 KB Output is correct
37 Correct 71 ms 4772 KB Output is correct
38 Correct 69 ms 4580 KB Output is correct
39 Correct 333 ms 32364 KB Output is correct
40 Correct 74 ms 4696 KB Output is correct
41 Correct 65 ms 4988 KB Output is correct
42 Correct 81 ms 5564 KB Output is correct
43 Correct 81 ms 6260 KB Output is correct
44 Correct 175 ms 16752 KB Output is correct
45 Correct 174 ms 17960 KB Output is correct
46 Correct 441 ms 131248 KB Output is correct
47 Correct 333 ms 33108 KB Output is correct
48 Correct 365 ms 32340 KB Output is correct
49 Correct 209 ms 35672 KB Output is correct
50 Correct 200 ms 35672 KB Output is correct
51 Correct 352 ms 36908 KB Output is correct
52 Correct 325 ms 33972 KB Output is correct
53 Correct 332 ms 33360 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 44 ms 1104 KB Output is correct
2 Correct 45 ms 1104 KB Output is correct
3 Correct 42 ms 1104 KB Output is correct
4 Correct 45 ms 1108 KB Output is correct
5 Correct 45 ms 1056 KB Output is correct
6 Correct 44 ms 1128 KB Output is correct
7 Correct 43 ms 1168 KB Output is correct
8 Correct 44 ms 1160 KB Output is correct
9 Correct 45 ms 1108 KB Output is correct
10 Correct 46 ms 1096 KB Output is correct
11 Correct 46 ms 1384 KB Output is correct
12 Correct 41 ms 1108 KB Output is correct
13 Correct 41 ms 1116 KB Output is correct
14 Correct 41 ms 1364 KB Output is correct
15 Correct 45 ms 1120 KB Output is correct
16 Correct 45 ms 1104 KB Output is correct
17 Correct 44 ms 1176 KB Output is correct
18 Correct 45 ms 916 KB Output is correct
19 Correct 43 ms 1104 KB Output is correct
20 Correct 44 ms 1108 KB Output is correct
21 Correct 45 ms 1104 KB Output is correct
22 Correct 43 ms 1104 KB Output is correct
23 Correct 43 ms 1080 KB Output is correct
24 Correct 45 ms 1296 KB Output is correct
25 Correct 45 ms 1416 KB Output is correct
26 Correct 45 ms 964 KB Output is correct
27 Correct 45 ms 1108 KB Output is correct
28 Correct 44 ms 1108 KB Output is correct
29 Correct 45 ms 1112 KB Output is correct
30 Correct 45 ms 1220 KB Output is correct
31 Correct 45 ms 1104 KB Output is correct
32 Correct 45 ms 1108 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 44 ms 1040 KB Output is correct
2 Correct 45 ms 1108 KB Output is correct
3 Correct 42 ms 1132 KB Output is correct
4 Correct 45 ms 1104 KB Output is correct
5 Correct 44 ms 1144 KB Output is correct
6 Correct 43 ms 1168 KB Output is correct
7 Correct 46 ms 1028 KB Output is correct
8 Correct 45 ms 1160 KB Output is correct
9 Correct 41 ms 1104 KB Output is correct
10 Correct 41 ms 1160 KB Output is correct
11 Correct 41 ms 1108 KB Output is correct
12 Correct 45 ms 1108 KB Output is correct
13 Correct 45 ms 1136 KB Output is correct
14 Correct 42 ms 1104 KB Output is correct
15 Correct 45 ms 1104 KB Output is correct
16 Correct 43 ms 1360 KB Output is correct
17 Correct 43 ms 936 KB Output is correct
18 Correct 45 ms 1032 KB Output is correct
19 Correct 45 ms 1104 KB Output is correct
20 Correct 45 ms 940 KB Output is correct
21 Correct 44 ms 1108 KB Output is correct
22 Correct 45 ms 1104 KB Output is correct
23 Correct 45 ms 1116 KB Output is correct
24 Correct 42 ms 1116 KB Output is correct
25 Correct 52 ms 1872 KB Output is correct
26 Correct 54 ms 5460 KB Output is correct
27 Correct 58 ms 6516 KB Output is correct
28 Correct 55 ms 2632 KB Output is correct
29 Correct 57 ms 3164 KB Output is correct
30 Correct 53 ms 3412 KB Output is correct
31 Correct 56 ms 2444 KB Output is correct
32 Correct 56 ms 3156 KB Output is correct
33 Correct 55 ms 2772 KB Output is correct
34 Correct 72 ms 9140 KB Output is correct
35 Correct 77 ms 14396 KB Output is correct
36 Correct 73 ms 5096 KB Output is correct
37 Correct 76 ms 5672 KB Output is correct
38 Correct 77 ms 6640 KB Output is correct
39 Correct 150 ms 38496 KB Output is correct
40 Correct 408 ms 62468 KB Output is correct
41 Correct 520 ms 131252 KB Output is correct
42 Correct 460 ms 44240 KB Output is correct
43 Correct 478 ms 47064 KB Output is correct
44 Correct 476 ms 56576 KB Output is correct
45 Correct 502 ms 41428 KB Output is correct
46 Correct 478 ms 41336 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 44 ms 1104 KB Output is correct
2 Correct 45 ms 1104 KB Output is correct
3 Correct 42 ms 1104 KB Output is correct
4 Correct 45 ms 1108 KB Output is correct
5 Correct 45 ms 1056 KB Output is correct
6 Correct 44 ms 1128 KB Output is correct
7 Correct 43 ms 1168 KB Output is correct
8 Correct 44 ms 1160 KB Output is correct
9 Correct 45 ms 1108 KB Output is correct
10 Correct 46 ms 1096 KB Output is correct
11 Correct 46 ms 1384 KB Output is correct
12 Correct 41 ms 1108 KB Output is correct
13 Correct 41 ms 1116 KB Output is correct
14 Correct 41 ms 1364 KB Output is correct
15 Correct 45 ms 1120 KB Output is correct
16 Correct 45 ms 1104 KB Output is correct
17 Correct 44 ms 1176 KB Output is correct
18 Correct 45 ms 916 KB Output is correct
19 Correct 43 ms 1104 KB Output is correct
20 Correct 44 ms 1108 KB Output is correct
21 Correct 45 ms 1104 KB Output is correct
22 Correct 43 ms 1104 KB Output is correct
23 Correct 43 ms 1080 KB Output is correct
24 Correct 45 ms 1296 KB Output is correct
25 Correct 45 ms 1416 KB Output is correct
26 Correct 45 ms 964 KB Output is correct
27 Correct 45 ms 1108 KB Output is correct
28 Correct 44 ms 1108 KB Output is correct
29 Correct 45 ms 1112 KB Output is correct
30 Correct 45 ms 1220 KB Output is correct
31 Correct 45 ms 1104 KB Output is correct
32 Correct 45 ms 1108 KB Output is correct
33 Correct 55 ms 2388 KB Output is correct
34 Correct 42 ms 1068 KB Output is correct
35 Correct 45 ms 1108 KB Output is correct
36 Correct 52 ms 1864 KB Output is correct
37 Correct 50 ms 2204 KB Output is correct
38 Correct 54 ms 5420 KB Output is correct
39 Correct 56 ms 6448 KB Output is correct
40 Correct 55 ms 2356 KB Output is correct
41 Correct 54 ms 2384 KB Output is correct
42 Correct 53 ms 2640 KB Output is correct
43 Correct 54 ms 2968 KB Output is correct
44 Correct 53 ms 3408 KB Output is correct
45 Correct 54 ms 2404 KB Output is correct
46 Correct 52 ms 2296 KB Output is correct
47 Correct 56 ms 2384 KB Output is correct
48 Correct 58 ms 2184 KB Output is correct
49 Correct 58 ms 2388 KB Output is correct
50 Correct 57 ms 2388 KB Output is correct
51 Correct 58 ms 2384 KB Output is correct
52 Correct 57 ms 3132 KB Output is correct
53 Correct 56 ms 2628 KB Output is correct
54 Correct 54 ms 2388 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 44 ms 1104 KB Output is correct
2 Correct 45 ms 1104 KB Output is correct
3 Correct 42 ms 1104 KB Output is correct
4 Correct 45 ms 1108 KB Output is correct
5 Correct 45 ms 1056 KB Output is correct
6 Correct 44 ms 1128 KB Output is correct
7 Correct 43 ms 1168 KB Output is correct
8 Correct 44 ms 1160 KB Output is correct
9 Correct 45 ms 1108 KB Output is correct
10 Correct 46 ms 1096 KB Output is correct
11 Correct 46 ms 1384 KB Output is correct
12 Correct 41 ms 1108 KB Output is correct
13 Correct 41 ms 1116 KB Output is correct
14 Correct 41 ms 1364 KB Output is correct
15 Correct 45 ms 1120 KB Output is correct
16 Correct 45 ms 1104 KB Output is correct
17 Correct 44 ms 1176 KB Output is correct
18 Correct 45 ms 916 KB Output is correct
19 Correct 43 ms 1104 KB Output is correct
20 Correct 44 ms 1108 KB Output is correct
21 Correct 45 ms 1104 KB Output is correct
22 Correct 43 ms 1104 KB Output is correct
23 Correct 43 ms 1080 KB Output is correct
24 Correct 45 ms 1296 KB Output is correct
25 Correct 45 ms 1416 KB Output is correct
26 Correct 45 ms 964 KB Output is correct
27 Correct 45 ms 1108 KB Output is correct
28 Correct 44 ms 1108 KB Output is correct
29 Correct 45 ms 1112 KB Output is correct
30 Correct 45 ms 1220 KB Output is correct
31 Correct 45 ms 1104 KB Output is correct
32 Correct 45 ms 1108 KB Output is correct
33 Correct 55 ms 2388 KB Output is correct
34 Correct 42 ms 1068 KB Output is correct
35 Correct 45 ms 1108 KB Output is correct
36 Correct 52 ms 1864 KB Output is correct
37 Correct 50 ms 2204 KB Output is correct
38 Correct 54 ms 5420 KB Output is correct
39 Correct 56 ms 6448 KB Output is correct
40 Correct 55 ms 2356 KB Output is correct
41 Correct 54 ms 2384 KB Output is correct
42 Correct 53 ms 2640 KB Output is correct
43 Correct 54 ms 2968 KB Output is correct
44 Correct 53 ms 3408 KB Output is correct
45 Correct 54 ms 2404 KB Output is correct
46 Correct 52 ms 2296 KB Output is correct
47 Correct 56 ms 2384 KB Output is correct
48 Correct 58 ms 2184 KB Output is correct
49 Correct 58 ms 2388 KB Output is correct
50 Correct 57 ms 2388 KB Output is correct
51 Correct 58 ms 2384 KB Output is correct
52 Correct 57 ms 3132 KB Output is correct
53 Correct 56 ms 2628 KB Output is correct
54 Correct 54 ms 2388 KB Output is correct
55 Correct 69 ms 4180 KB Output is correct
56 Correct 54 ms 2384 KB Output is correct
57 Correct 69 ms 9256 KB Output is correct
58 Correct 77 ms 3924 KB Output is correct
59 Correct 75 ms 14236 KB Output is correct
60 Correct 72 ms 4596 KB Output is correct
61 Correct 68 ms 4180 KB Output is correct
62 Correct 74 ms 5096 KB Output is correct
63 Correct 77 ms 5716 KB Output is correct
64 Correct 76 ms 6700 KB Output is correct
65 Correct 61 ms 4356 KB Output is correct
66 Correct 61 ms 4368 KB Output is correct
67 Correct 73 ms 4388 KB Output is correct
68 Correct 83 ms 4196 KB Output is correct
69 Correct 83 ms 4180 KB Output is correct
70 Correct 85 ms 4348 KB Output is correct
71 Correct 81 ms 4440 KB Output is correct
72 Correct 72 ms 5236 KB Output is correct
73 Correct 72 ms 4880 KB Output is correct
74 Correct 71 ms 4432 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 45 ms 1112 KB Output is correct
2 Correct 45 ms 1104 KB Output is correct
3 Correct 45 ms 968 KB Output is correct
4 Correct 45 ms 1164 KB Output is correct
5 Correct 46 ms 1092 KB Output is correct
6 Correct 46 ms 1104 KB Output is correct
7 Correct 45 ms 1104 KB Output is correct
8 Correct 45 ms 1124 KB Output is correct
9 Correct 45 ms 1116 KB Output is correct
10 Correct 45 ms 1132 KB Output is correct
11 Correct 45 ms 1136 KB Output is correct
12 Correct 45 ms 1112 KB Output is correct
13 Correct 45 ms 1032 KB Output is correct
14 Correct 45 ms 1108 KB Output is correct
15 Correct 45 ms 1140 KB Output is correct
16 Correct 45 ms 1108 KB Output is correct
17 Correct 45 ms 1108 KB Output is correct
18 Correct 45 ms 1108 KB Output is correct
19 Correct 54 ms 2364 KB Output is correct
20 Correct 50 ms 2120 KB Output is correct
21 Correct 57 ms 6484 KB Output is correct
22 Correct 55 ms 2384 KB Output is correct
23 Correct 54 ms 2392 KB Output is correct
24 Correct 52 ms 2244 KB Output is correct
25 Correct 54 ms 2528 KB Output is correct
26 Correct 55 ms 3152 KB Output is correct
27 Correct 59 ms 2956 KB Output is correct
28 Correct 54 ms 2356 KB Output is correct
29 Correct 78 ms 4396 KB Output is correct
30 Correct 55 ms 2488 KB Output is correct
31 Correct 90 ms 14452 KB Output is correct
32 Correct 71 ms 4440 KB Output is correct
33 Correct 69 ms 4320 KB Output is correct
34 Correct 68 ms 4360 KB Output is correct
35 Correct 61 ms 4364 KB Output is correct
36 Correct 72 ms 5468 KB Output is correct
37 Correct 71 ms 4772 KB Output is correct
38 Correct 69 ms 4580 KB Output is correct
39 Correct 333 ms 32364 KB Output is correct
40 Correct 74 ms 4696 KB Output is correct
41 Correct 65 ms 4988 KB Output is correct
42 Correct 81 ms 5564 KB Output is correct
43 Correct 81 ms 6260 KB Output is correct
44 Correct 175 ms 16752 KB Output is correct
45 Correct 174 ms 17960 KB Output is correct
46 Correct 441 ms 131248 KB Output is correct
47 Correct 333 ms 33108 KB Output is correct
48 Correct 365 ms 32340 KB Output is correct
49 Correct 209 ms 35672 KB Output is correct
50 Correct 200 ms 35672 KB Output is correct
51 Correct 352 ms 36908 KB Output is correct
52 Correct 325 ms 33972 KB Output is correct
53 Correct 332 ms 33360 KB Output is correct
54 Correct 44 ms 1104 KB Output is correct
55 Correct 45 ms 1104 KB Output is correct
56 Correct 42 ms 1104 KB Output is correct
57 Correct 45 ms 1108 KB Output is correct
58 Correct 45 ms 1056 KB Output is correct
59 Correct 44 ms 1128 KB Output is correct
60 Correct 43 ms 1168 KB Output is correct
61 Correct 44 ms 1160 KB Output is correct
62 Correct 45 ms 1108 KB Output is correct
63 Correct 46 ms 1096 KB Output is correct
64 Correct 46 ms 1384 KB Output is correct
65 Correct 41 ms 1108 KB Output is correct
66 Correct 41 ms 1116 KB Output is correct
67 Correct 41 ms 1364 KB Output is correct
68 Correct 45 ms 1120 KB Output is correct
69 Correct 45 ms 1104 KB Output is correct
70 Correct 44 ms 1176 KB Output is correct
71 Correct 45 ms 916 KB Output is correct
72 Correct 43 ms 1104 KB Output is correct
73 Correct 44 ms 1108 KB Output is correct
74 Correct 45 ms 1104 KB Output is correct
75 Correct 43 ms 1104 KB Output is correct
76 Correct 43 ms 1080 KB Output is correct
77 Correct 45 ms 1296 KB Output is correct
78 Correct 45 ms 1416 KB Output is correct
79 Correct 45 ms 964 KB Output is correct
80 Correct 45 ms 1108 KB Output is correct
81 Correct 44 ms 1108 KB Output is correct
82 Correct 45 ms 1112 KB Output is correct
83 Correct 45 ms 1220 KB Output is correct
84 Correct 45 ms 1104 KB Output is correct
85 Correct 45 ms 1108 KB Output is correct
86 Correct 44 ms 1040 KB Output is correct
87 Correct 45 ms 1108 KB Output is correct
88 Correct 42 ms 1132 KB Output is correct
89 Correct 45 ms 1104 KB Output is correct
90 Correct 44 ms 1144 KB Output is correct
91 Correct 43 ms 1168 KB Output is correct
92 Correct 46 ms 1028 KB Output is correct
93 Correct 45 ms 1160 KB Output is correct
94 Correct 41 ms 1104 KB Output is correct
95 Correct 41 ms 1160 KB Output is correct
96 Correct 41 ms 1108 KB Output is correct
97 Correct 45 ms 1108 KB Output is correct
98 Correct 45 ms 1136 KB Output is correct
99 Correct 42 ms 1104 KB Output is correct
100 Correct 45 ms 1104 KB Output is correct
101 Correct 43 ms 1360 KB Output is correct
102 Correct 43 ms 936 KB Output is correct
103 Correct 45 ms 1032 KB Output is correct
104 Correct 45 ms 1104 KB Output is correct
105 Correct 45 ms 940 KB Output is correct
106 Correct 44 ms 1108 KB Output is correct
107 Correct 45 ms 1104 KB Output is correct
108 Correct 45 ms 1116 KB Output is correct
109 Correct 42 ms 1116 KB Output is correct
110 Correct 52 ms 1872 KB Output is correct
111 Correct 54 ms 5460 KB Output is correct
112 Correct 58 ms 6516 KB Output is correct
113 Correct 55 ms 2632 KB Output is correct
114 Correct 57 ms 3164 KB Output is correct
115 Correct 53 ms 3412 KB Output is correct
116 Correct 56 ms 2444 KB Output is correct
117 Correct 56 ms 3156 KB Output is correct
118 Correct 55 ms 2772 KB Output is correct
119 Correct 72 ms 9140 KB Output is correct
120 Correct 77 ms 14396 KB Output is correct
121 Correct 73 ms 5096 KB Output is correct
122 Correct 76 ms 5672 KB Output is correct
123 Correct 77 ms 6640 KB Output is correct
124 Correct 150 ms 38496 KB Output is correct
125 Correct 408 ms 62468 KB Output is correct
126 Correct 520 ms 131252 KB Output is correct
127 Correct 460 ms 44240 KB Output is correct
128 Correct 478 ms 47064 KB Output is correct
129 Correct 476 ms 56576 KB Output is correct
130 Correct 502 ms 41428 KB Output is correct
131 Correct 478 ms 41336 KB Output is correct
132 Correct 55 ms 2388 KB Output is correct
133 Correct 42 ms 1068 KB Output is correct
134 Correct 45 ms 1108 KB Output is correct
135 Correct 52 ms 1864 KB Output is correct
136 Correct 50 ms 2204 KB Output is correct
137 Correct 54 ms 5420 KB Output is correct
138 Correct 56 ms 6448 KB Output is correct
139 Correct 55 ms 2356 KB Output is correct
140 Correct 54 ms 2384 KB Output is correct
141 Correct 53 ms 2640 KB Output is correct
142 Correct 54 ms 2968 KB Output is correct
143 Correct 53 ms 3408 KB Output is correct
144 Correct 54 ms 2404 KB Output is correct
145 Correct 52 ms 2296 KB Output is correct
146 Correct 56 ms 2384 KB Output is correct
147 Correct 58 ms 2184 KB Output is correct
148 Correct 58 ms 2388 KB Output is correct
149 Correct 57 ms 2388 KB Output is correct
150 Correct 58 ms 2384 KB Output is correct
151 Correct 57 ms 3132 KB Output is correct
152 Correct 56 ms 2628 KB Output is correct
153 Correct 54 ms 2388 KB Output is correct
154 Correct 69 ms 4180 KB Output is correct
155 Correct 54 ms 2384 KB Output is correct
156 Correct 69 ms 9256 KB Output is correct
157 Correct 77 ms 3924 KB Output is correct
158 Correct 75 ms 14236 KB Output is correct
159 Correct 72 ms 4596 KB Output is correct
160 Correct 68 ms 4180 KB Output is correct
161 Correct 74 ms 5096 KB Output is correct
162 Correct 77 ms 5716 KB Output is correct
163 Correct 76 ms 6700 KB Output is correct
164 Correct 61 ms 4356 KB Output is correct
165 Correct 61 ms 4368 KB Output is correct
166 Correct 73 ms 4388 KB Output is correct
167 Correct 83 ms 4196 KB Output is correct
168 Correct 83 ms 4180 KB Output is correct
169 Correct 85 ms 4348 KB Output is correct
170 Correct 81 ms 4440 KB Output is correct
171 Correct 72 ms 5236 KB Output is correct
172 Correct 72 ms 4880 KB Output is correct
173 Correct 71 ms 4432 KB Output is correct
174 Correct 90 ms 5312 KB Output is correct
175 Correct 131 ms 8292 KB Output is correct
176 Correct 222 ms 17032 KB Output is correct
177 Correct 329 ms 22172 KB Output is correct
178 Correct 383 ms 28664 KB Output is correct
179 Correct 480 ms 32732 KB Output is correct
180 Correct 493 ms 32336 KB Output is correct
181 Correct 485 ms 32852 KB Output is correct
182 Correct 479 ms 33596 KB Output is correct
183 Correct 473 ms 34028 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 45 ms 1112 KB Output is correct
2 Correct 45 ms 1104 KB Output is correct
3 Correct 45 ms 968 KB Output is correct
4 Correct 45 ms 1164 KB Output is correct
5 Correct 46 ms 1092 KB Output is correct
6 Correct 46 ms 1104 KB Output is correct
7 Correct 45 ms 1104 KB Output is correct
8 Correct 45 ms 1124 KB Output is correct
9 Correct 45 ms 1116 KB Output is correct
10 Correct 45 ms 1132 KB Output is correct
11 Correct 45 ms 1136 KB Output is correct
12 Correct 45 ms 1112 KB Output is correct
13 Correct 45 ms 1032 KB Output is correct
14 Correct 45 ms 1108 KB Output is correct
15 Correct 45 ms 1140 KB Output is correct
16 Correct 45 ms 1108 KB Output is correct
17 Correct 45 ms 1108 KB Output is correct
18 Correct 45 ms 1108 KB Output is correct
19 Correct 54 ms 2364 KB Output is correct
20 Correct 50 ms 2120 KB Output is correct
21 Correct 57 ms 6484 KB Output is correct
22 Correct 55 ms 2384 KB Output is correct
23 Correct 54 ms 2392 KB Output is correct
24 Correct 52 ms 2244 KB Output is correct
25 Correct 54 ms 2528 KB Output is correct
26 Correct 55 ms 3152 KB Output is correct
27 Correct 59 ms 2956 KB Output is correct
28 Correct 54 ms 2356 KB Output is correct
29 Correct 78 ms 4396 KB Output is correct
30 Correct 55 ms 2488 KB Output is correct
31 Correct 90 ms 14452 KB Output is correct
32 Correct 71 ms 4440 KB Output is correct
33 Correct 69 ms 4320 KB Output is correct
34 Correct 68 ms 4360 KB Output is correct
35 Correct 61 ms 4364 KB Output is correct
36 Correct 72 ms 5468 KB Output is correct
37 Correct 71 ms 4772 KB Output is correct
38 Correct 69 ms 4580 KB Output is correct
39 Correct 333 ms 32364 KB Output is correct
40 Correct 74 ms 4696 KB Output is correct
41 Correct 65 ms 4988 KB Output is correct
42 Correct 81 ms 5564 KB Output is correct
43 Correct 81 ms 6260 KB Output is correct
44 Correct 175 ms 16752 KB Output is correct
45 Correct 174 ms 17960 KB Output is correct
46 Correct 441 ms 131248 KB Output is correct
47 Correct 333 ms 33108 KB Output is correct
48 Correct 365 ms 32340 KB Output is correct
49 Correct 209 ms 35672 KB Output is correct
50 Correct 200 ms 35672 KB Output is correct
51 Correct 352 ms 36908 KB Output is correct
52 Correct 325 ms 33972 KB Output is correct
53 Correct 332 ms 33360 KB Output is correct
54 Correct 44 ms 1104 KB Output is correct
55 Correct 45 ms 1104 KB Output is correct
56 Correct 42 ms 1104 KB Output is correct
57 Correct 45 ms 1108 KB Output is correct
58 Correct 45 ms 1056 KB Output is correct
59 Correct 44 ms 1128 KB Output is correct
60 Correct 43 ms 1168 KB Output is correct
61 Correct 44 ms 1160 KB Output is correct
62 Correct 45 ms 1108 KB Output is correct
63 Correct 46 ms 1096 KB Output is correct
64 Correct 46 ms 1384 KB Output is correct
65 Correct 41 ms 1108 KB Output is correct
66 Correct 41 ms 1116 KB Output is correct
67 Correct 41 ms 1364 KB Output is correct
68 Correct 45 ms 1120 KB Output is correct
69 Correct 45 ms 1104 KB Output is correct
70 Correct 44 ms 1176 KB Output is correct
71 Correct 45 ms 916 KB Output is correct
72 Correct 43 ms 1104 KB Output is correct
73 Correct 44 ms 1108 KB Output is correct
74 Correct 45 ms 1104 KB Output is correct
75 Correct 43 ms 1104 KB Output is correct
76 Correct 43 ms 1080 KB Output is correct
77 Correct 45 ms 1296 KB Output is correct
78 Correct 45 ms 1416 KB Output is correct
79 Correct 45 ms 964 KB Output is correct
80 Correct 45 ms 1108 KB Output is correct
81 Correct 44 ms 1108 KB Output is correct
82 Correct 45 ms 1112 KB Output is correct
83 Correct 45 ms 1220 KB Output is correct
84 Correct 45 ms 1104 KB Output is correct
85 Correct 45 ms 1108 KB Output is correct
86 Correct 44 ms 1040 KB Output is correct
87 Correct 45 ms 1108 KB Output is correct
88 Correct 42 ms 1132 KB Output is correct
89 Correct 45 ms 1104 KB Output is correct
90 Correct 44 ms 1144 KB Output is correct
91 Correct 43 ms 1168 KB Output is correct
92 Correct 46 ms 1028 KB Output is correct
93 Correct 45 ms 1160 KB Output is correct
94 Correct 41 ms 1104 KB Output is correct
95 Correct 41 ms 1160 KB Output is correct
96 Correct 41 ms 1108 KB Output is correct
97 Correct 45 ms 1108 KB Output is correct
98 Correct 45 ms 1136 KB Output is correct
99 Correct 42 ms 1104 KB Output is correct
100 Correct 45 ms 1104 KB Output is correct
101 Correct 43 ms 1360 KB Output is correct
102 Correct 43 ms 936 KB Output is correct
103 Correct 45 ms 1032 KB Output is correct
104 Correct 45 ms 1104 KB Output is correct
105 Correct 45 ms 940 KB Output is correct
106 Correct 44 ms 1108 KB Output is correct
107 Correct 45 ms 1104 KB Output is correct
108 Correct 45 ms 1116 KB Output is correct
109 Correct 42 ms 1116 KB Output is correct
110 Correct 52 ms 1872 KB Output is correct
111 Correct 54 ms 5460 KB Output is correct
112 Correct 58 ms 6516 KB Output is correct
113 Correct 55 ms 2632 KB Output is correct
114 Correct 57 ms 3164 KB Output is correct
115 Correct 53 ms 3412 KB Output is correct
116 Correct 56 ms 2444 KB Output is correct
117 Correct 56 ms 3156 KB Output is correct
118 Correct 55 ms 2772 KB Output is correct
119 Correct 72 ms 9140 KB Output is correct
120 Correct 77 ms 14396 KB Output is correct
121 Correct 73 ms 5096 KB Output is correct
122 Correct 76 ms 5672 KB Output is correct
123 Correct 77 ms 6640 KB Output is correct
124 Correct 150 ms 38496 KB Output is correct
125 Correct 408 ms 62468 KB Output is correct
126 Correct 520 ms 131252 KB Output is correct
127 Correct 460 ms 44240 KB Output is correct
128 Correct 478 ms 47064 KB Output is correct
129 Correct 476 ms 56576 KB Output is correct
130 Correct 502 ms 41428 KB Output is correct
131 Correct 478 ms 41336 KB Output is correct
132 Correct 55 ms 2388 KB Output is correct
133 Correct 42 ms 1068 KB Output is correct
134 Correct 45 ms 1108 KB Output is correct
135 Correct 52 ms 1864 KB Output is correct
136 Correct 50 ms 2204 KB Output is correct
137 Correct 54 ms 5420 KB Output is correct
138 Correct 56 ms 6448 KB Output is correct
139 Correct 55 ms 2356 KB Output is correct
140 Correct 54 ms 2384 KB Output is correct
141 Correct 53 ms 2640 KB Output is correct
142 Correct 54 ms 2968 KB Output is correct
143 Correct 53 ms 3408 KB Output is correct
144 Correct 54 ms 2404 KB Output is correct
145 Correct 52 ms 2296 KB Output is correct
146 Correct 56 ms 2384 KB Output is correct
147 Correct 58 ms 2184 KB Output is correct
148 Correct 58 ms 2388 KB Output is correct
149 Correct 57 ms 2388 KB Output is correct
150 Correct 58 ms 2384 KB Output is correct
151 Correct 57 ms 3132 KB Output is correct
152 Correct 56 ms 2628 KB Output is correct
153 Correct 54 ms 2388 KB Output is correct
154 Correct 69 ms 4180 KB Output is correct
155 Correct 54 ms 2384 KB Output is correct
156 Correct 69 ms 9256 KB Output is correct
157 Correct 77 ms 3924 KB Output is correct
158 Correct 75 ms 14236 KB Output is correct
159 Correct 72 ms 4596 KB Output is correct
160 Correct 68 ms 4180 KB Output is correct
161 Correct 74 ms 5096 KB Output is correct
162 Correct 77 ms 5716 KB Output is correct
163 Correct 76 ms 6700 KB Output is correct
164 Correct 61 ms 4356 KB Output is correct
165 Correct 61 ms 4368 KB Output is correct
166 Correct 73 ms 4388 KB Output is correct
167 Correct 83 ms 4196 KB Output is correct
168 Correct 83 ms 4180 KB Output is correct
169 Correct 85 ms 4348 KB Output is correct
170 Correct 81 ms 4440 KB Output is correct
171 Correct 72 ms 5236 KB Output is correct
172 Correct 72 ms 4880 KB Output is correct
173 Correct 71 ms 4432 KB Output is correct
174 Correct 90 ms 5312 KB Output is correct
175 Correct 131 ms 8292 KB Output is correct
176 Correct 222 ms 17032 KB Output is correct
177 Correct 329 ms 22172 KB Output is correct
178 Correct 383 ms 28664 KB Output is correct
179 Correct 480 ms 32732 KB Output is correct
180 Correct 493 ms 32336 KB Output is correct
181 Correct 485 ms 32852 KB Output is correct
182 Correct 479 ms 33596 KB Output is correct
183 Correct 473 ms 34028 KB Output is correct
184 Correct 641 ms 63656 KB Output is correct
185 Correct 510 ms 35792 KB Output is correct
186 Correct 487 ms 153048 KB Output is correct
187 Correct 567 ms 52872 KB Output is correct
188 Correct 866 ms 268784 KB Output is correct
189 Correct 609 ms 64596 KB Output is correct
190 Correct 663 ms 63848 KB Output is correct
191 Correct 881 ms 87292 KB Output is correct
192 Correct 910 ms 92728 KB Output is correct
193 Correct 972 ms 112028 KB Output is correct
194 Correct 382 ms 70788 KB Output is correct
195 Correct 363 ms 70760 KB Output is correct
196 Correct 980 ms 63860 KB Output is correct
197 Correct 993 ms 64272 KB Output is correct
198 Correct 967 ms 63976 KB Output is correct
199 Correct 952 ms 65820 KB Output is correct
200 Correct 691 ms 69516 KB Output is correct
201 Correct 678 ms 66068 KB Output is correct
202 Correct 648 ms 64596 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 45 ms 1112 KB Output is correct
2 Correct 45 ms 1104 KB Output is correct
3 Correct 45 ms 968 KB Output is correct
4 Correct 45 ms 1164 KB Output is correct
5 Correct 46 ms 1092 KB Output is correct
6 Correct 46 ms 1104 KB Output is correct
7 Correct 45 ms 1104 KB Output is correct
8 Correct 45 ms 1124 KB Output is correct
9 Correct 45 ms 1116 KB Output is correct
10 Correct 45 ms 1132 KB Output is correct
11 Correct 45 ms 1136 KB Output is correct
12 Correct 45 ms 1112 KB Output is correct
13 Correct 45 ms 1032 KB Output is correct
14 Correct 45 ms 1108 KB Output is correct
15 Correct 45 ms 1140 KB Output is correct
16 Correct 45 ms 1108 KB Output is correct
17 Correct 45 ms 1108 KB Output is correct
18 Correct 45 ms 1108 KB Output is correct
19 Correct 54 ms 2364 KB Output is correct
20 Correct 50 ms 2120 KB Output is correct
21 Correct 57 ms 6484 KB Output is correct
22 Correct 55 ms 2384 KB Output is correct
23 Correct 54 ms 2392 KB Output is correct
24 Correct 52 ms 2244 KB Output is correct
25 Correct 54 ms 2528 KB Output is correct
26 Correct 55 ms 3152 KB Output is correct
27 Correct 59 ms 2956 KB Output is correct
28 Correct 54 ms 2356 KB Output is correct
29 Correct 78 ms 4396 KB Output is correct
30 Correct 55 ms 2488 KB Output is correct
31 Correct 90 ms 14452 KB Output is correct
32 Correct 71 ms 4440 KB Output is correct
33 Correct 69 ms 4320 KB Output is correct
34 Correct 68 ms 4360 KB Output is correct
35 Correct 61 ms 4364 KB Output is correct
36 Correct 72 ms 5468 KB Output is correct
37 Correct 71 ms 4772 KB Output is correct
38 Correct 69 ms 4580 KB Output is correct
39 Correct 333 ms 32364 KB Output is correct
40 Correct 74 ms 4696 KB Output is correct
41 Correct 65 ms 4988 KB Output is correct
42 Correct 81 ms 5564 KB Output is correct
43 Correct 81 ms 6260 KB Output is correct
44 Correct 175 ms 16752 KB Output is correct
45 Correct 174 ms 17960 KB Output is correct
46 Correct 441 ms 131248 KB Output is correct
47 Correct 333 ms 33108 KB Output is correct
48 Correct 365 ms 32340 KB Output is correct
49 Correct 209 ms 35672 KB Output is correct
50 Correct 200 ms 35672 KB Output is correct
51 Correct 352 ms 36908 KB Output is correct
52 Correct 325 ms 33972 KB Output is correct
53 Correct 332 ms 33360 KB Output is correct
54 Correct 44 ms 1104 KB Output is correct
55 Correct 45 ms 1104 KB Output is correct
56 Correct 42 ms 1104 KB Output is correct
57 Correct 45 ms 1108 KB Output is correct
58 Correct 45 ms 1056 KB Output is correct
59 Correct 44 ms 1128 KB Output is correct
60 Correct 43 ms 1168 KB Output is correct
61 Correct 44 ms 1160 KB Output is correct
62 Correct 45 ms 1108 KB Output is correct
63 Correct 46 ms 1096 KB Output is correct
64 Correct 46 ms 1384 KB Output is correct
65 Correct 41 ms 1108 KB Output is correct
66 Correct 41 ms 1116 KB Output is correct
67 Correct 41 ms 1364 KB Output is correct
68 Correct 45 ms 1120 KB Output is correct
69 Correct 45 ms 1104 KB Output is correct
70 Correct 44 ms 1176 KB Output is correct
71 Correct 45 ms 916 KB Output is correct
72 Correct 43 ms 1104 KB Output is correct
73 Correct 44 ms 1108 KB Output is correct
74 Correct 45 ms 1104 KB Output is correct
75 Correct 43 ms 1104 KB Output is correct
76 Correct 43 ms 1080 KB Output is correct
77 Correct 45 ms 1296 KB Output is correct
78 Correct 45 ms 1416 KB Output is correct
79 Correct 45 ms 964 KB Output is correct
80 Correct 45 ms 1108 KB Output is correct
81 Correct 44 ms 1108 KB Output is correct
82 Correct 45 ms 1112 KB Output is correct
83 Correct 45 ms 1220 KB Output is correct
84 Correct 45 ms 1104 KB Output is correct
85 Correct 45 ms 1108 KB Output is correct
86 Correct 44 ms 1040 KB Output is correct
87 Correct 45 ms 1108 KB Output is correct
88 Correct 42 ms 1132 KB Output is correct
89 Correct 45 ms 1104 KB Output is correct
90 Correct 44 ms 1144 KB Output is correct
91 Correct 43 ms 1168 KB Output is correct
92 Correct 46 ms 1028 KB Output is correct
93 Correct 45 ms 1160 KB Output is correct
94 Correct 41 ms 1104 KB Output is correct
95 Correct 41 ms 1160 KB Output is correct
96 Correct 41 ms 1108 KB Output is correct
97 Correct 45 ms 1108 KB Output is correct
98 Correct 45 ms 1136 KB Output is correct
99 Correct 42 ms 1104 KB Output is correct
100 Correct 45 ms 1104 KB Output is correct
101 Correct 43 ms 1360 KB Output is correct
102 Correct 43 ms 936 KB Output is correct
103 Correct 45 ms 1032 KB Output is correct
104 Correct 45 ms 1104 KB Output is correct
105 Correct 45 ms 940 KB Output is correct
106 Correct 44 ms 1108 KB Output is correct
107 Correct 45 ms 1104 KB Output is correct
108 Correct 45 ms 1116 KB Output is correct
109 Correct 42 ms 1116 KB Output is correct
110 Correct 52 ms 1872 KB Output is correct
111 Correct 54 ms 5460 KB Output is correct
112 Correct 58 ms 6516 KB Output is correct
113 Correct 55 ms 2632 KB Output is correct
114 Correct 57 ms 3164 KB Output is correct
115 Correct 53 ms 3412 KB Output is correct
116 Correct 56 ms 2444 KB Output is correct
117 Correct 56 ms 3156 KB Output is correct
118 Correct 55 ms 2772 KB Output is correct
119 Correct 72 ms 9140 KB Output is correct
120 Correct 77 ms 14396 KB Output is correct
121 Correct 73 ms 5096 KB Output is correct
122 Correct 76 ms 5672 KB Output is correct
123 Correct 77 ms 6640 KB Output is correct
124 Correct 150 ms 38496 KB Output is correct
125 Correct 408 ms 62468 KB Output is correct
126 Correct 520 ms 131252 KB Output is correct
127 Correct 460 ms 44240 KB Output is correct
128 Correct 478 ms 47064 KB Output is correct
129 Correct 476 ms 56576 KB Output is correct
130 Correct 502 ms 41428 KB Output is correct
131 Correct 478 ms 41336 KB Output is correct
132 Correct 55 ms 2388 KB Output is correct
133 Correct 42 ms 1068 KB Output is correct
134 Correct 45 ms 1108 KB Output is correct
135 Correct 52 ms 1864 KB Output is correct
136 Correct 50 ms 2204 KB Output is correct
137 Correct 54 ms 5420 KB Output is correct
138 Correct 56 ms 6448 KB Output is correct
139 Correct 55 ms 2356 KB Output is correct
140 Correct 54 ms 2384 KB Output is correct
141 Correct 53 ms 2640 KB Output is correct
142 Correct 54 ms 2968 KB Output is correct
143 Correct 53 ms 3408 KB Output is correct
144 Correct 54 ms 2404 KB Output is correct
145 Correct 52 ms 2296 KB Output is correct
146 Correct 56 ms 2384 KB Output is correct
147 Correct 58 ms 2184 KB Output is correct
148 Correct 58 ms 2388 KB Output is correct
149 Correct 57 ms 2388 KB Output is correct
150 Correct 58 ms 2384 KB Output is correct
151 Correct 57 ms 3132 KB Output is correct
152 Correct 56 ms 2628 KB Output is correct
153 Correct 54 ms 2388 KB Output is correct
154 Correct 69 ms 4180 KB Output is correct
155 Correct 54 ms 2384 KB Output is correct
156 Correct 69 ms 9256 KB Output is correct
157 Correct 77 ms 3924 KB Output is correct
158 Correct 75 ms 14236 KB Output is correct
159 Correct 72 ms 4596 KB Output is correct
160 Correct 68 ms 4180 KB Output is correct
161 Correct 74 ms 5096 KB Output is correct
162 Correct 77 ms 5716 KB Output is correct
163 Correct 76 ms 6700 KB Output is correct
164 Correct 61 ms 4356 KB Output is correct
165 Correct 61 ms 4368 KB Output is correct
166 Correct 73 ms 4388 KB Output is correct
167 Correct 83 ms 4196 KB Output is correct
168 Correct 83 ms 4180 KB Output is correct
169 Correct 85 ms 4348 KB Output is correct
170 Correct 81 ms 4440 KB Output is correct
171 Correct 72 ms 5236 KB Output is correct
172 Correct 72 ms 4880 KB Output is correct
173 Correct 71 ms 4432 KB Output is correct
174 Correct 90 ms 5312 KB Output is correct
175 Correct 131 ms 8292 KB Output is correct
176 Correct 222 ms 17032 KB Output is correct
177 Correct 329 ms 22172 KB Output is correct
178 Correct 383 ms 28664 KB Output is correct
179 Correct 480 ms 32732 KB Output is correct
180 Correct 493 ms 32336 KB Output is correct
181 Correct 485 ms 32852 KB Output is correct
182 Correct 479 ms 33596 KB Output is correct
183 Correct 473 ms 34028 KB Output is correct
184 Correct 641 ms 63656 KB Output is correct
185 Correct 510 ms 35792 KB Output is correct
186 Correct 487 ms 153048 KB Output is correct
187 Correct 567 ms 52872 KB Output is correct
188 Correct 866 ms 268784 KB Output is correct
189 Correct 609 ms 64596 KB Output is correct
190 Correct 663 ms 63848 KB Output is correct
191 Correct 881 ms 87292 KB Output is correct
192 Correct 910 ms 92728 KB Output is correct
193 Correct 972 ms 112028 KB Output is correct
194 Correct 382 ms 70788 KB Output is correct
195 Correct 363 ms 70760 KB Output is correct
196 Correct 980 ms 63860 KB Output is correct
197 Correct 993 ms 64272 KB Output is correct
198 Correct 967 ms 63976 KB Output is correct
199 Correct 952 ms 65820 KB Output is correct
200 Correct 691 ms 69516 KB Output is correct
201 Correct 678 ms 66068 KB Output is correct
202 Correct 648 ms 64596 KB Output is correct
203 Correct 1267 ms 126164 KB Output is correct
204 Correct 992 ms 77284 KB Output is correct
205 Correct 917 ms 79716 KB Output is correct
206 Correct 1098 ms 124620 KB Output is correct
207 Correct 1619 ms 522044 KB Output is correct
208 Correct 1202 ms 127684 KB Output is correct
209 Correct 1321 ms 125696 KB Output is correct
210 Correct 1746 ms 172640 KB Output is correct
211 Correct 1877 ms 184336 KB Output is correct
212 Correct 1804 ms 222536 KB Output is correct
213 Correct 692 ms 141136 KB Output is correct
214 Correct 668 ms 141332 KB Output is correct
215 Correct 1870 ms 126008 KB Output is correct
216 Correct 1847 ms 126744 KB Output is correct
217 Correct 1924 ms 128712 KB Output is correct
218 Correct 1900 ms 128104 KB Output is correct
219 Correct 1910 ms 138100 KB Output is correct
220 Correct 1916 ms 150228 KB Output is correct
221 Correct 1905 ms 162120 KB Output is correct
222 Correct 1837 ms 162048 KB Output is correct
223 Correct 1411 ms 133676 KB Output is correct
224 Correct 1430 ms 129724 KB Output is correct
225 Correct 1261 ms 126888 KB Output is correct