Submission #785378

# Submission time Handle Problem Language Result Execution time Memory
785378 2023-07-17T08:46:45 Z KLPP Maze (JOI23_ho_t3) C++14
27 / 100
2000 ms 17760 KB
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
 
using namespace std;
using namespace __gnu_pbds;
typedef long long int lld;
typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;
#define rep(i,a,b) for(int i=a;i<b;i++)
#define trav(a,v) for(auto a:v)

int r,c,n;
int valid(int x, int y){
	if(x>=0 && x<r && y>=0 && y<c)return true;
	return false;
}

void solve(){
	cin>>r>>c>>n;
	
	int sx,sy;
	cin>>sx>>sy;
	sx--;sy--;
	int gx,gy;
	cin>>gx>>gy;
	gx--;gy--;
	vector<string> V(r);
	rep(i,0,r)cin>>V[i];
	deque<tuple<int,int,int> >q;
	vector<vector<int> >dist(r);
	rep(i,0,r)dist[i].resize(c,1000000000);
	dist[sx][sy]=0;
	q.push_back({sx,sy,0});
	while(!q.empty()){
		auto [x,y,d]=q.front();
		q.pop_front();
		if(d>dist[x][y])continue;
		if(V[x][y]=='.'){
			rep(dx,x-1,x+2){
				rep(dy,y-1,y+2){
					if(abs(dx-x)+abs(dy-y)==1){
						if(valid(dx,dy)){
							if(dist[dx][dy]>d){
								dist[dx][dy]=d;
								q.push_front({dx,dy,d});
							}
						}
					}
				}
			}
		}
		rep(dx,x-n,x+n+1){
			rep(dy,y-n,y+n+1){
				if(abs(dx-x)+abs(dy-y)<=2*n-1){
					if(valid(dx,dy)){
						if(dist[dx][dy]>d+1){
							dist[dx][dy]=d+1;
							q.push_back({dx,dy,d+1});
						}
					}
				}
			}
		}
	}
	cout<<dist[gx][gy]<<"\n";
}

int main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	int tt=1;
	//cin>>tt;
	while(tt--){
		solve();
	}
}

Compilation message

Main.cpp: In function 'void solve()':
Main.cpp:35:8: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
   35 |   auto [x,y,d]=q.front();
      |        ^
# Verdict Execution time Memory Grader output
1 Correct 1 ms 324 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 320 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 1 ms 316 KB Output is correct
13 Correct 0 ms 320 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 5 ms 656 KB Output is correct
20 Correct 2 ms 596 KB Output is correct
21 Correct 3 ms 1036 KB Output is correct
22 Correct 3 ms 596 KB Output is correct
23 Correct 2 ms 596 KB Output is correct
24 Correct 5 ms 716 KB Output is correct
25 Correct 2 ms 724 KB Output is correct
26 Correct 5 ms 724 KB Output is correct
27 Correct 5 ms 732 KB Output is correct
28 Correct 2 ms 596 KB Output is correct
29 Correct 9 ms 1160 KB Output is correct
30 Correct 3 ms 724 KB Output is correct
31 Correct 7 ms 2004 KB Output is correct
32 Correct 12 ms 1256 KB Output is correct
33 Correct 5 ms 1236 KB Output is correct
34 Correct 6 ms 1240 KB Output is correct
35 Correct 4 ms 1248 KB Output is correct
36 Correct 8 ms 1336 KB Output is correct
37 Correct 8 ms 1296 KB Output is correct
38 Correct 5 ms 1228 KB Output is correct
39 Correct 52 ms 9344 KB Output is correct
40 Correct 9 ms 1364 KB Output is correct
41 Correct 8 ms 1504 KB Output is correct
42 Correct 9 ms 1620 KB Output is correct
43 Correct 10 ms 1960 KB Output is correct
44 Correct 37 ms 4936 KB Output is correct
45 Correct 31 ms 5104 KB Output is correct
46 Correct 76 ms 17760 KB Output is correct
47 Correct 74 ms 9300 KB Output is correct
48 Correct 52 ms 9344 KB Output is correct
49 Correct 78 ms 9192 KB Output is correct
50 Correct 38 ms 9256 KB Output is correct
51 Correct 81 ms 9672 KB Output is correct
52 Correct 80 ms 9464 KB Output is correct
53 Correct 61 ms 9364 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 324 KB Output is correct
3 Correct 1 ms 324 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 316 KB Output is correct
8 Correct 1 ms 224 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 324 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 7 ms 340 KB Output is correct
13 Correct 8 ms 320 KB Output is correct
14 Correct 8 ms 340 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 0 ms 320 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 0 ms 212 KB Output is correct
32 Correct 1 ms 320 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 324 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 316 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 316 KB Output is correct
9 Correct 7 ms 348 KB Output is correct
10 Correct 8 ms 320 KB Output is correct
11 Correct 8 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 316 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 320 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 7 ms 340 KB Output is correct
25 Correct 5 ms 568 KB Output is correct
26 Correct 16 ms 1356 KB Output is correct
27 Correct 3 ms 972 KB Output is correct
28 Execution timed out 2082 ms 1452 KB Time limit exceeded
29 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 324 KB Output is correct
3 Correct 1 ms 324 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 316 KB Output is correct
8 Correct 1 ms 224 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 324 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 7 ms 340 KB Output is correct
13 Correct 8 ms 320 KB Output is correct
14 Correct 8 ms 340 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 0 ms 320 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 0 ms 212 KB Output is correct
32 Correct 1 ms 320 KB Output is correct
33 Correct 3 ms 596 KB Output is correct
34 Correct 7 ms 320 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 5 ms 468 KB Output is correct
37 Correct 2 ms 596 KB Output is correct
38 Correct 16 ms 1364 KB Output is correct
39 Correct 3 ms 972 KB Output is correct
40 Correct 4 ms 588 KB Output is correct
41 Correct 2 ms 692 KB Output is correct
42 Execution timed out 2093 ms 1496 KB Time limit exceeded
43 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 324 KB Output is correct
3 Correct 1 ms 324 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 316 KB Output is correct
8 Correct 1 ms 224 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 324 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 7 ms 340 KB Output is correct
13 Correct 8 ms 320 KB Output is correct
14 Correct 8 ms 340 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 0 ms 320 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 0 ms 212 KB Output is correct
32 Correct 1 ms 320 KB Output is correct
33 Correct 3 ms 596 KB Output is correct
34 Correct 7 ms 320 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 5 ms 468 KB Output is correct
37 Correct 2 ms 596 KB Output is correct
38 Correct 16 ms 1364 KB Output is correct
39 Correct 3 ms 972 KB Output is correct
40 Correct 4 ms 588 KB Output is correct
41 Correct 2 ms 692 KB Output is correct
42 Execution timed out 2093 ms 1496 KB Time limit exceeded
43 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 324 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 320 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 1 ms 316 KB Output is correct
13 Correct 0 ms 320 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 5 ms 656 KB Output is correct
20 Correct 2 ms 596 KB Output is correct
21 Correct 3 ms 1036 KB Output is correct
22 Correct 3 ms 596 KB Output is correct
23 Correct 2 ms 596 KB Output is correct
24 Correct 5 ms 716 KB Output is correct
25 Correct 2 ms 724 KB Output is correct
26 Correct 5 ms 724 KB Output is correct
27 Correct 5 ms 732 KB Output is correct
28 Correct 2 ms 596 KB Output is correct
29 Correct 9 ms 1160 KB Output is correct
30 Correct 3 ms 724 KB Output is correct
31 Correct 7 ms 2004 KB Output is correct
32 Correct 12 ms 1256 KB Output is correct
33 Correct 5 ms 1236 KB Output is correct
34 Correct 6 ms 1240 KB Output is correct
35 Correct 4 ms 1248 KB Output is correct
36 Correct 8 ms 1336 KB Output is correct
37 Correct 8 ms 1296 KB Output is correct
38 Correct 5 ms 1228 KB Output is correct
39 Correct 52 ms 9344 KB Output is correct
40 Correct 9 ms 1364 KB Output is correct
41 Correct 8 ms 1504 KB Output is correct
42 Correct 9 ms 1620 KB Output is correct
43 Correct 10 ms 1960 KB Output is correct
44 Correct 37 ms 4936 KB Output is correct
45 Correct 31 ms 5104 KB Output is correct
46 Correct 76 ms 17760 KB Output is correct
47 Correct 74 ms 9300 KB Output is correct
48 Correct 52 ms 9344 KB Output is correct
49 Correct 78 ms 9192 KB Output is correct
50 Correct 38 ms 9256 KB Output is correct
51 Correct 81 ms 9672 KB Output is correct
52 Correct 80 ms 9464 KB Output is correct
53 Correct 61 ms 9364 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 0 ms 324 KB Output is correct
56 Correct 1 ms 324 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 1 ms 212 KB Output is correct
59 Correct 1 ms 212 KB Output is correct
60 Correct 1 ms 316 KB Output is correct
61 Correct 1 ms 224 KB Output is correct
62 Correct 1 ms 212 KB Output is correct
63 Correct 1 ms 324 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 7 ms 340 KB Output is correct
66 Correct 8 ms 320 KB Output is correct
67 Correct 8 ms 340 KB Output is correct
68 Correct 1 ms 212 KB Output is correct
69 Correct 1 ms 212 KB Output is correct
70 Correct 1 ms 212 KB Output is correct
71 Correct 0 ms 212 KB Output is correct
72 Correct 1 ms 212 KB Output is correct
73 Correct 1 ms 212 KB Output is correct
74 Correct 0 ms 212 KB Output is correct
75 Correct 1 ms 212 KB Output is correct
76 Correct 1 ms 212 KB Output is correct
77 Correct 0 ms 212 KB Output is correct
78 Correct 0 ms 320 KB Output is correct
79 Correct 1 ms 212 KB Output is correct
80 Correct 1 ms 212 KB Output is correct
81 Correct 1 ms 212 KB Output is correct
82 Correct 1 ms 212 KB Output is correct
83 Correct 1 ms 212 KB Output is correct
84 Correct 0 ms 212 KB Output is correct
85 Correct 1 ms 320 KB Output is correct
86 Correct 1 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 1 ms 324 KB Output is correct
89 Correct 1 ms 212 KB Output is correct
90 Correct 1 ms 316 KB Output is correct
91 Correct 1 ms 212 KB Output is correct
92 Correct 1 ms 212 KB Output is correct
93 Correct 1 ms 316 KB Output is correct
94 Correct 7 ms 348 KB Output is correct
95 Correct 8 ms 320 KB Output is correct
96 Correct 8 ms 212 KB Output is correct
97 Correct 1 ms 212 KB Output is correct
98 Correct 1 ms 316 KB Output is correct
99 Correct 1 ms 212 KB Output is correct
100 Correct 1 ms 212 KB Output is correct
101 Correct 1 ms 212 KB Output is correct
102 Correct 1 ms 212 KB Output is correct
103 Correct 1 ms 212 KB Output is correct
104 Correct 1 ms 320 KB Output is correct
105 Correct 0 ms 212 KB Output is correct
106 Correct 1 ms 212 KB Output is correct
107 Correct 1 ms 212 KB Output is correct
108 Correct 1 ms 212 KB Output is correct
109 Correct 7 ms 340 KB Output is correct
110 Correct 5 ms 568 KB Output is correct
111 Correct 16 ms 1356 KB Output is correct
112 Correct 3 ms 972 KB Output is correct
113 Execution timed out 2082 ms 1452 KB Time limit exceeded
114 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 324 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 320 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 1 ms 316 KB Output is correct
13 Correct 0 ms 320 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 5 ms 656 KB Output is correct
20 Correct 2 ms 596 KB Output is correct
21 Correct 3 ms 1036 KB Output is correct
22 Correct 3 ms 596 KB Output is correct
23 Correct 2 ms 596 KB Output is correct
24 Correct 5 ms 716 KB Output is correct
25 Correct 2 ms 724 KB Output is correct
26 Correct 5 ms 724 KB Output is correct
27 Correct 5 ms 732 KB Output is correct
28 Correct 2 ms 596 KB Output is correct
29 Correct 9 ms 1160 KB Output is correct
30 Correct 3 ms 724 KB Output is correct
31 Correct 7 ms 2004 KB Output is correct
32 Correct 12 ms 1256 KB Output is correct
33 Correct 5 ms 1236 KB Output is correct
34 Correct 6 ms 1240 KB Output is correct
35 Correct 4 ms 1248 KB Output is correct
36 Correct 8 ms 1336 KB Output is correct
37 Correct 8 ms 1296 KB Output is correct
38 Correct 5 ms 1228 KB Output is correct
39 Correct 52 ms 9344 KB Output is correct
40 Correct 9 ms 1364 KB Output is correct
41 Correct 8 ms 1504 KB Output is correct
42 Correct 9 ms 1620 KB Output is correct
43 Correct 10 ms 1960 KB Output is correct
44 Correct 37 ms 4936 KB Output is correct
45 Correct 31 ms 5104 KB Output is correct
46 Correct 76 ms 17760 KB Output is correct
47 Correct 74 ms 9300 KB Output is correct
48 Correct 52 ms 9344 KB Output is correct
49 Correct 78 ms 9192 KB Output is correct
50 Correct 38 ms 9256 KB Output is correct
51 Correct 81 ms 9672 KB Output is correct
52 Correct 80 ms 9464 KB Output is correct
53 Correct 61 ms 9364 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 0 ms 324 KB Output is correct
56 Correct 1 ms 324 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 1 ms 212 KB Output is correct
59 Correct 1 ms 212 KB Output is correct
60 Correct 1 ms 316 KB Output is correct
61 Correct 1 ms 224 KB Output is correct
62 Correct 1 ms 212 KB Output is correct
63 Correct 1 ms 324 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 7 ms 340 KB Output is correct
66 Correct 8 ms 320 KB Output is correct
67 Correct 8 ms 340 KB Output is correct
68 Correct 1 ms 212 KB Output is correct
69 Correct 1 ms 212 KB Output is correct
70 Correct 1 ms 212 KB Output is correct
71 Correct 0 ms 212 KB Output is correct
72 Correct 1 ms 212 KB Output is correct
73 Correct 1 ms 212 KB Output is correct
74 Correct 0 ms 212 KB Output is correct
75 Correct 1 ms 212 KB Output is correct
76 Correct 1 ms 212 KB Output is correct
77 Correct 0 ms 212 KB Output is correct
78 Correct 0 ms 320 KB Output is correct
79 Correct 1 ms 212 KB Output is correct
80 Correct 1 ms 212 KB Output is correct
81 Correct 1 ms 212 KB Output is correct
82 Correct 1 ms 212 KB Output is correct
83 Correct 1 ms 212 KB Output is correct
84 Correct 0 ms 212 KB Output is correct
85 Correct 1 ms 320 KB Output is correct
86 Correct 1 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 1 ms 324 KB Output is correct
89 Correct 1 ms 212 KB Output is correct
90 Correct 1 ms 316 KB Output is correct
91 Correct 1 ms 212 KB Output is correct
92 Correct 1 ms 212 KB Output is correct
93 Correct 1 ms 316 KB Output is correct
94 Correct 7 ms 348 KB Output is correct
95 Correct 8 ms 320 KB Output is correct
96 Correct 8 ms 212 KB Output is correct
97 Correct 1 ms 212 KB Output is correct
98 Correct 1 ms 316 KB Output is correct
99 Correct 1 ms 212 KB Output is correct
100 Correct 1 ms 212 KB Output is correct
101 Correct 1 ms 212 KB Output is correct
102 Correct 1 ms 212 KB Output is correct
103 Correct 1 ms 212 KB Output is correct
104 Correct 1 ms 320 KB Output is correct
105 Correct 0 ms 212 KB Output is correct
106 Correct 1 ms 212 KB Output is correct
107 Correct 1 ms 212 KB Output is correct
108 Correct 1 ms 212 KB Output is correct
109 Correct 7 ms 340 KB Output is correct
110 Correct 5 ms 568 KB Output is correct
111 Correct 16 ms 1356 KB Output is correct
112 Correct 3 ms 972 KB Output is correct
113 Execution timed out 2082 ms 1452 KB Time limit exceeded
114 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 324 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 320 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 1 ms 316 KB Output is correct
13 Correct 0 ms 320 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 5 ms 656 KB Output is correct
20 Correct 2 ms 596 KB Output is correct
21 Correct 3 ms 1036 KB Output is correct
22 Correct 3 ms 596 KB Output is correct
23 Correct 2 ms 596 KB Output is correct
24 Correct 5 ms 716 KB Output is correct
25 Correct 2 ms 724 KB Output is correct
26 Correct 5 ms 724 KB Output is correct
27 Correct 5 ms 732 KB Output is correct
28 Correct 2 ms 596 KB Output is correct
29 Correct 9 ms 1160 KB Output is correct
30 Correct 3 ms 724 KB Output is correct
31 Correct 7 ms 2004 KB Output is correct
32 Correct 12 ms 1256 KB Output is correct
33 Correct 5 ms 1236 KB Output is correct
34 Correct 6 ms 1240 KB Output is correct
35 Correct 4 ms 1248 KB Output is correct
36 Correct 8 ms 1336 KB Output is correct
37 Correct 8 ms 1296 KB Output is correct
38 Correct 5 ms 1228 KB Output is correct
39 Correct 52 ms 9344 KB Output is correct
40 Correct 9 ms 1364 KB Output is correct
41 Correct 8 ms 1504 KB Output is correct
42 Correct 9 ms 1620 KB Output is correct
43 Correct 10 ms 1960 KB Output is correct
44 Correct 37 ms 4936 KB Output is correct
45 Correct 31 ms 5104 KB Output is correct
46 Correct 76 ms 17760 KB Output is correct
47 Correct 74 ms 9300 KB Output is correct
48 Correct 52 ms 9344 KB Output is correct
49 Correct 78 ms 9192 KB Output is correct
50 Correct 38 ms 9256 KB Output is correct
51 Correct 81 ms 9672 KB Output is correct
52 Correct 80 ms 9464 KB Output is correct
53 Correct 61 ms 9364 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 0 ms 324 KB Output is correct
56 Correct 1 ms 324 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 1 ms 212 KB Output is correct
59 Correct 1 ms 212 KB Output is correct
60 Correct 1 ms 316 KB Output is correct
61 Correct 1 ms 224 KB Output is correct
62 Correct 1 ms 212 KB Output is correct
63 Correct 1 ms 324 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 7 ms 340 KB Output is correct
66 Correct 8 ms 320 KB Output is correct
67 Correct 8 ms 340 KB Output is correct
68 Correct 1 ms 212 KB Output is correct
69 Correct 1 ms 212 KB Output is correct
70 Correct 1 ms 212 KB Output is correct
71 Correct 0 ms 212 KB Output is correct
72 Correct 1 ms 212 KB Output is correct
73 Correct 1 ms 212 KB Output is correct
74 Correct 0 ms 212 KB Output is correct
75 Correct 1 ms 212 KB Output is correct
76 Correct 1 ms 212 KB Output is correct
77 Correct 0 ms 212 KB Output is correct
78 Correct 0 ms 320 KB Output is correct
79 Correct 1 ms 212 KB Output is correct
80 Correct 1 ms 212 KB Output is correct
81 Correct 1 ms 212 KB Output is correct
82 Correct 1 ms 212 KB Output is correct
83 Correct 1 ms 212 KB Output is correct
84 Correct 0 ms 212 KB Output is correct
85 Correct 1 ms 320 KB Output is correct
86 Correct 1 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 1 ms 324 KB Output is correct
89 Correct 1 ms 212 KB Output is correct
90 Correct 1 ms 316 KB Output is correct
91 Correct 1 ms 212 KB Output is correct
92 Correct 1 ms 212 KB Output is correct
93 Correct 1 ms 316 KB Output is correct
94 Correct 7 ms 348 KB Output is correct
95 Correct 8 ms 320 KB Output is correct
96 Correct 8 ms 212 KB Output is correct
97 Correct 1 ms 212 KB Output is correct
98 Correct 1 ms 316 KB Output is correct
99 Correct 1 ms 212 KB Output is correct
100 Correct 1 ms 212 KB Output is correct
101 Correct 1 ms 212 KB Output is correct
102 Correct 1 ms 212 KB Output is correct
103 Correct 1 ms 212 KB Output is correct
104 Correct 1 ms 320 KB Output is correct
105 Correct 0 ms 212 KB Output is correct
106 Correct 1 ms 212 KB Output is correct
107 Correct 1 ms 212 KB Output is correct
108 Correct 1 ms 212 KB Output is correct
109 Correct 7 ms 340 KB Output is correct
110 Correct 5 ms 568 KB Output is correct
111 Correct 16 ms 1356 KB Output is correct
112 Correct 3 ms 972 KB Output is correct
113 Execution timed out 2082 ms 1452 KB Time limit exceeded
114 Halted 0 ms 0 KB -