답안 #1093793

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1093793 2024-09-27T13:34:07 Z Abito Maze (JOI23_ho_t3) C++17
59 / 100
1847 ms 2097152 KB
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define F first
#define S second
#define pb push_back
#define ppb pop_back
#define ep insert
#define endl '\n'
#define elif else if
#define pow pwr
#define sqrt sqrtt
#define int long long
#define ll long long
typedef unsigned long long ull;
using namespace std;
const int N=1300;
int n,m,k,sx,sy,ex,ey,mvx[]={1,0,-1,0},mvy[]={0,1,0,-1};
vector<vector<int>> dis,p;
vector<vector<bool>> vis;
vector<vector<char>> a;
bool ok(int x,int y){
	return x>=1 && x<=n && y>=1 && y<=m && a[x][y]=='.'; 
}
void bfs1(){
	deque<pair<int,int>> dq;
	dq.push_front({sx,sy});
	dis[sx][sy]=0;
	while (!dq.empty()){
		int x=dq.front().F,y=dq.front().S;
		dq.pop_front();
		if (vis[x][y]) continue;
		//cout<<x<<' '<<y<<' '<<dis[x][y]<<endl;
		vis[x][y]=1;
		for (int i=0;i<4;i++){
			int nx=mvx[i]+x,ny=mvy[i]+y;
			if (!ok(nx,ny)) continue;
			if (dis[nx][ny]>dis[x][y]){
				dis[nx][ny]=dis[x][y];
				dq.push_front({nx,ny});
			}
		}
		for (int i=max(1LL,x-k);i<=min(n,x+k);i++){
			for (int j=max(1LL,y-k);j<=min(m,y+k);j++){
				if (i==x-k && j==y-k) continue;
				if (i==x-k && j==y+k) continue;
				if (i==x+k && j==y-k) continue;
				if (i==x+k && j==y+k) continue;
				if (dis[i][j]>dis[x][y]+1){
					dis[i][j]=dis[x][y]+1;
					dq.push_back({i,j});
				}
			}
		}
	}
	return;
}
void bfs2(){
	vector<pair<int,int>> q;
	dis[sx][sy]=0;
	vis[sx][sy]=1;
	q.pb({sx,sy});
	for (int t=0;t<INT_MAX;t++){
		for (int i=0;i<q.size();i++){
			int x=q[i].F,y=q[i].S;
			dis[x][y]=t;
			for (int j=0;j<4;j++){
				int nx=x+mvx[j],ny=y+mvy[j];
				if (vis[nx][ny] || !ok(nx,ny)) continue;
				dis[nx][ny]=t;
				vis[nx][ny]=1;
				q.pb({nx,ny});
			}
		}
		//for (auto u:q) cout<<u.F<<' '<<u.S<<"	";
		//cout<<endl;
		if (vis[ex][ey]) break;
		for (int i=0;i<=n+100;i++) for (int j=0;j<=m+100;j++) p[i][j]=0;
		for (int i=0;i<q.size();i++){
			int x=q[i].F,y=q[i].S;
			p[max(1LL,x-k)][max(1LL,y-k)]++;
			p[max(1LL,x-k)][min(m,y+k)+1]--;
			p[min(n,x+k)+1][max(1LL,y-k)]--;
			p[min(n,x+k)+1][min(m,y+k)+1]--;
			if (x-k>=1 && y-k>=1){
				p[x-k][y-k]--;
				p[x-k+1][y-k]++;
				p[x-k][y-k+1]++;
				p[x-k+1][y-k+1]--;
			}
			if (x-k>=1 && y+k<=m){
				p[x-k][y+k]--;
				p[x-k+1][y+k]++;
				p[x-k][y+k+1]++;
				p[x-k+1][y+k+1]--;
			}
			if (x+k<=n && y-k>=1){
				p[x+k][y-k]--;
				p[x+k+1][y-k]++;
				p[x+k][y-k+1]++;
				p[x+k+1][y-k+1]--;
			}
			if (x+k<=n && y+k<=m){
				p[x+k][y+k]--;
				p[x+k+1][y+k]++;
				p[x+k][y+k+1]++;
				p[x+k+1][y+k+1]--;
			}
		}
		for (int i=1;i<=n;i++){
			for (int j=1;j<=m;j++){
				p[i][j]+=p[i-1][j]+p[i][j-1]-p[i-1][j-1];
				if (p[i][j]>0 && !vis[i][j]) q.pb({i,j}),vis[i][j]=1;
				//cout<<p[i][j]<<' ';
			}//cout<<endl;
		}//cout<<endl;
	}
}
int32_t main(){
	ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
	cin>>n>>m>>k>>sx>>sy>>ex>>ey;
	for (int i=0;i<=n+100;i++){
		p.pb({});dis.pb({});vis.pb({});a.pb({});
		for (int j=0;j<=m+100;j++){
			p[i].pb(0);dis[i].pb(INT_MAX);vis[i].pb(0);a[i].pb('#');
		}
	}
	for (int i=1;i<=n;i++) for (int j=1;j<=m;j++) cin>>a[i][j];
	if ((2*k+1)*(2*k+1)<=N) bfs1();
	else bfs2();
	cout<<dis[ex][ey]<<endl;
	return 0;
}

Compilation message

Main.cpp: In function 'void bfs2()':
Main.cpp:63:17: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   63 |   for (int i=0;i<q.size();i++){
      |                ~^~~~~~~~~
Main.cpp:78:17: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   78 |   for (int i=0;i<q.size();i++){
      |                ~^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 604 KB Output is correct
2 Correct 1 ms 608 KB Output is correct
3 Correct 1 ms 860 KB Output is correct
4 Correct 1 ms 860 KB Output is correct
5 Correct 1 ms 860 KB Output is correct
6 Correct 1 ms 860 KB Output is correct
7 Correct 2 ms 3164 KB Output is correct
8 Correct 2 ms 3164 KB Output is correct
9 Correct 0 ms 604 KB Output is correct
10 Correct 1 ms 864 KB Output is correct
11 Correct 1 ms 604 KB Output is correct
12 Correct 1 ms 608 KB Output is correct
13 Correct 1 ms 968 KB Output is correct
14 Correct 1 ms 856 KB Output is correct
15 Correct 1 ms 860 KB Output is correct
16 Correct 1 ms 860 KB Output is correct
17 Correct 1 ms 860 KB Output is correct
18 Correct 1 ms 860 KB Output is correct
19 Correct 6 ms 3596 KB Output is correct
20 Correct 74 ms 94308 KB Output is correct
21 Correct 5 ms 3932 KB Output is correct
22 Correct 6 ms 3600 KB Output is correct
23 Correct 5 ms 3420 KB Output is correct
24 Correct 81 ms 108524 KB Output is correct
25 Correct 84 ms 108580 KB Output is correct
26 Correct 7 ms 3672 KB Output is correct
27 Correct 6 ms 3424 KB Output is correct
28 Correct 6 ms 3420 KB Output is correct
29 Correct 11 ms 4700 KB Output is correct
30 Correct 60 ms 54944 KB Output is correct
31 Correct 11 ms 5980 KB Output is correct
32 Correct 12 ms 4952 KB Output is correct
33 Correct 9 ms 4700 KB Output is correct
34 Correct 277 ms 296664 KB Output is correct
35 Correct 257 ms 296608 KB Output is correct
36 Correct 13 ms 4952 KB Output is correct
37 Correct 17 ms 4956 KB Output is correct
38 Correct 10 ms 4696 KB Output is correct
39 Correct 124 ms 43860 KB Output is correct
40 Correct 31 ms 23376 KB Output is correct
41 Correct 310 ms 343924 KB Output is correct
42 Correct 18 ms 9560 KB Output is correct
43 Correct 191 ms 214528 KB Output is correct
44 Correct 231 ms 226740 KB Output is correct
45 Correct 322 ms 323160 KB Output is correct
46 Correct 97 ms 56032 KB Output is correct
47 Correct 127 ms 43908 KB Output is correct
48 Correct 123 ms 43956 KB Output is correct
49 Runtime error 1847 ms 2097152 KB Execution killed with signal 9
50 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 600 KB Output is correct
2 Correct 1 ms 600 KB Output is correct
3 Correct 1 ms 604 KB Output is correct
4 Correct 0 ms 604 KB Output is correct
5 Correct 1 ms 860 KB Output is correct
6 Correct 0 ms 604 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 1 ms 860 KB Output is correct
9 Correct 1 ms 856 KB Output is correct
10 Correct 1 ms 856 KB Output is correct
11 Correct 1 ms 856 KB Output is correct
12 Correct 1 ms 860 KB Output is correct
13 Correct 1 ms 860 KB Output is correct
14 Correct 1 ms 860 KB Output is correct
15 Correct 2 ms 3164 KB Output is correct
16 Correct 2 ms 3164 KB Output is correct
17 Correct 1 ms 2140 KB Output is correct
18 Correct 0 ms 452 KB Output is correct
19 Correct 1 ms 860 KB Output is correct
20 Correct 1 ms 860 KB Output is correct
21 Correct 1 ms 860 KB Output is correct
22 Correct 1 ms 860 KB Output is correct
23 Correct 1 ms 860 KB Output is correct
24 Correct 0 ms 604 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 0 ms 860 KB Output is correct
27 Correct 1 ms 856 KB Output is correct
28 Correct 1 ms 860 KB Output is correct
29 Correct 1 ms 896 KB Output is correct
30 Correct 1 ms 856 KB Output is correct
31 Correct 1 ms 856 KB Output is correct
32 Correct 1 ms 860 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 600 KB Output is correct
2 Correct 1 ms 604 KB Output is correct
3 Correct 0 ms 600 KB Output is correct
4 Correct 0 ms 604 KB Output is correct
5 Correct 1 ms 708 KB Output is correct
6 Correct 1 ms 600 KB Output is correct
7 Correct 1 ms 860 KB Output is correct
8 Correct 1 ms 860 KB Output is correct
9 Correct 1 ms 860 KB Output is correct
10 Correct 1 ms 860 KB Output is correct
11 Correct 1 ms 860 KB Output is correct
12 Correct 2 ms 3164 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 1 ms 860 KB Output is correct
15 Correct 1 ms 860 KB Output is correct
16 Correct 1 ms 860 KB Output is correct
17 Correct 1 ms 860 KB Output is correct
18 Correct 1 ms 604 KB Output is correct
19 Correct 1 ms 604 KB Output is correct
20 Correct 1 ms 860 KB Output is correct
21 Correct 1 ms 860 KB Output is correct
22 Correct 1 ms 860 KB Output is correct
23 Correct 1 ms 856 KB Output is correct
24 Correct 1 ms 1116 KB Output is correct
25 Correct 8 ms 3236 KB Output is correct
26 Correct 16 ms 6236 KB Output is correct
27 Correct 5 ms 3932 KB Output is correct
28 Correct 4 ms 4740 KB Output is correct
29 Correct 5 ms 4732 KB Output is correct
30 Correct 4 ms 4564 KB Output is correct
31 Correct 6 ms 5612 KB Output is correct
32 Correct 6 ms 3680 KB Output is correct
33 Correct 6 ms 3560 KB Output is correct
34 Correct 11 ms 8036 KB Output is correct
35 Correct 10 ms 5980 KB Output is correct
36 Correct 8 ms 9164 KB Output is correct
37 Correct 9 ms 9164 KB Output is correct
38 Correct 9 ms 9164 KB Output is correct
39 Correct 30 ms 21536 KB Output is correct
40 Correct 94 ms 63672 KB Output is correct
41 Correct 90 ms 56032 KB Output is correct
42 Correct 91 ms 76876 KB Output is correct
43 Correct 80 ms 76812 KB Output is correct
44 Correct 79 ms 76728 KB Output is correct
45 Correct 106 ms 85136 KB Output is correct
46 Correct 91 ms 68284 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 600 KB Output is correct
2 Correct 1 ms 600 KB Output is correct
3 Correct 1 ms 604 KB Output is correct
4 Correct 0 ms 604 KB Output is correct
5 Correct 1 ms 860 KB Output is correct
6 Correct 0 ms 604 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 1 ms 860 KB Output is correct
9 Correct 1 ms 856 KB Output is correct
10 Correct 1 ms 856 KB Output is correct
11 Correct 1 ms 856 KB Output is correct
12 Correct 1 ms 860 KB Output is correct
13 Correct 1 ms 860 KB Output is correct
14 Correct 1 ms 860 KB Output is correct
15 Correct 2 ms 3164 KB Output is correct
16 Correct 2 ms 3164 KB Output is correct
17 Correct 1 ms 2140 KB Output is correct
18 Correct 0 ms 452 KB Output is correct
19 Correct 1 ms 860 KB Output is correct
20 Correct 1 ms 860 KB Output is correct
21 Correct 1 ms 860 KB Output is correct
22 Correct 1 ms 860 KB Output is correct
23 Correct 1 ms 860 KB Output is correct
24 Correct 0 ms 604 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 0 ms 860 KB Output is correct
27 Correct 1 ms 856 KB Output is correct
28 Correct 1 ms 860 KB Output is correct
29 Correct 1 ms 896 KB Output is correct
30 Correct 1 ms 856 KB Output is correct
31 Correct 1 ms 856 KB Output is correct
32 Correct 1 ms 860 KB Output is correct
33 Correct 5 ms 3420 KB Output is correct
34 Correct 1 ms 1116 KB Output is correct
35 Correct 4 ms 5468 KB Output is correct
36 Correct 7 ms 3164 KB Output is correct
37 Correct 65 ms 94436 KB Output is correct
38 Correct 15 ms 6236 KB Output is correct
39 Correct 4 ms 3932 KB Output is correct
40 Correct 7 ms 3420 KB Output is correct
41 Correct 4 ms 3416 KB Output is correct
42 Correct 4 ms 4564 KB Output is correct
43 Correct 7 ms 4564 KB Output is correct
44 Correct 4 ms 4564 KB Output is correct
45 Correct 76 ms 108556 KB Output is correct
46 Correct 86 ms 108516 KB Output is correct
47 Correct 43 ms 53444 KB Output is correct
48 Correct 48 ms 10256 KB Output is correct
49 Correct 19 ms 8400 KB Output is correct
50 Correct 24 ms 6356 KB Output is correct
51 Correct 6 ms 5612 KB Output is correct
52 Correct 6 ms 3648 KB Output is correct
53 Correct 6 ms 3420 KB Output is correct
54 Correct 5 ms 3392 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 600 KB Output is correct
2 Correct 1 ms 600 KB Output is correct
3 Correct 1 ms 604 KB Output is correct
4 Correct 0 ms 604 KB Output is correct
5 Correct 1 ms 860 KB Output is correct
6 Correct 0 ms 604 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 1 ms 860 KB Output is correct
9 Correct 1 ms 856 KB Output is correct
10 Correct 1 ms 856 KB Output is correct
11 Correct 1 ms 856 KB Output is correct
12 Correct 1 ms 860 KB Output is correct
13 Correct 1 ms 860 KB Output is correct
14 Correct 1 ms 860 KB Output is correct
15 Correct 2 ms 3164 KB Output is correct
16 Correct 2 ms 3164 KB Output is correct
17 Correct 1 ms 2140 KB Output is correct
18 Correct 0 ms 452 KB Output is correct
19 Correct 1 ms 860 KB Output is correct
20 Correct 1 ms 860 KB Output is correct
21 Correct 1 ms 860 KB Output is correct
22 Correct 1 ms 860 KB Output is correct
23 Correct 1 ms 860 KB Output is correct
24 Correct 0 ms 604 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 0 ms 860 KB Output is correct
27 Correct 1 ms 856 KB Output is correct
28 Correct 1 ms 860 KB Output is correct
29 Correct 1 ms 896 KB Output is correct
30 Correct 1 ms 856 KB Output is correct
31 Correct 1 ms 856 KB Output is correct
32 Correct 1 ms 860 KB Output is correct
33 Correct 5 ms 3420 KB Output is correct
34 Correct 1 ms 1116 KB Output is correct
35 Correct 4 ms 5468 KB Output is correct
36 Correct 7 ms 3164 KB Output is correct
37 Correct 65 ms 94436 KB Output is correct
38 Correct 15 ms 6236 KB Output is correct
39 Correct 4 ms 3932 KB Output is correct
40 Correct 7 ms 3420 KB Output is correct
41 Correct 4 ms 3416 KB Output is correct
42 Correct 4 ms 4564 KB Output is correct
43 Correct 7 ms 4564 KB Output is correct
44 Correct 4 ms 4564 KB Output is correct
45 Correct 76 ms 108556 KB Output is correct
46 Correct 86 ms 108516 KB Output is correct
47 Correct 43 ms 53444 KB Output is correct
48 Correct 48 ms 10256 KB Output is correct
49 Correct 19 ms 8400 KB Output is correct
50 Correct 24 ms 6356 KB Output is correct
51 Correct 6 ms 5612 KB Output is correct
52 Correct 6 ms 3648 KB Output is correct
53 Correct 6 ms 3420 KB Output is correct
54 Correct 5 ms 3392 KB Output is correct
55 Correct 10 ms 4700 KB Output is correct
56 Correct 45 ms 54896 KB Output is correct
57 Correct 9 ms 7896 KB Output is correct
58 Correct 35 ms 22872 KB Output is correct
59 Correct 10 ms 5976 KB Output is correct
60 Correct 16 ms 4700 KB Output is correct
61 Correct 10 ms 4700 KB Output is correct
62 Correct 10 ms 9036 KB Output is correct
63 Correct 13 ms 9164 KB Output is correct
64 Correct 10 ms 9164 KB Output is correct
65 Correct 253 ms 296464 KB Output is correct
66 Correct 270 ms 296560 KB Output is correct
67 Correct 139 ms 153368 KB Output is correct
68 Correct 385 ms 20996 KB Output is correct
69 Correct 168 ms 17220 KB Output is correct
70 Correct 83 ms 13892 KB Output is correct
71 Correct 26 ms 9164 KB Output is correct
72 Correct 13 ms 4956 KB Output is correct
73 Correct 13 ms 4956 KB Output is correct
74 Correct 9 ms 4956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 604 KB Output is correct
2 Correct 1 ms 608 KB Output is correct
3 Correct 1 ms 860 KB Output is correct
4 Correct 1 ms 860 KB Output is correct
5 Correct 1 ms 860 KB Output is correct
6 Correct 1 ms 860 KB Output is correct
7 Correct 2 ms 3164 KB Output is correct
8 Correct 2 ms 3164 KB Output is correct
9 Correct 0 ms 604 KB Output is correct
10 Correct 1 ms 864 KB Output is correct
11 Correct 1 ms 604 KB Output is correct
12 Correct 1 ms 608 KB Output is correct
13 Correct 1 ms 968 KB Output is correct
14 Correct 1 ms 856 KB Output is correct
15 Correct 1 ms 860 KB Output is correct
16 Correct 1 ms 860 KB Output is correct
17 Correct 1 ms 860 KB Output is correct
18 Correct 1 ms 860 KB Output is correct
19 Correct 6 ms 3596 KB Output is correct
20 Correct 74 ms 94308 KB Output is correct
21 Correct 5 ms 3932 KB Output is correct
22 Correct 6 ms 3600 KB Output is correct
23 Correct 5 ms 3420 KB Output is correct
24 Correct 81 ms 108524 KB Output is correct
25 Correct 84 ms 108580 KB Output is correct
26 Correct 7 ms 3672 KB Output is correct
27 Correct 6 ms 3424 KB Output is correct
28 Correct 6 ms 3420 KB Output is correct
29 Correct 11 ms 4700 KB Output is correct
30 Correct 60 ms 54944 KB Output is correct
31 Correct 11 ms 5980 KB Output is correct
32 Correct 12 ms 4952 KB Output is correct
33 Correct 9 ms 4700 KB Output is correct
34 Correct 277 ms 296664 KB Output is correct
35 Correct 257 ms 296608 KB Output is correct
36 Correct 13 ms 4952 KB Output is correct
37 Correct 17 ms 4956 KB Output is correct
38 Correct 10 ms 4696 KB Output is correct
39 Correct 124 ms 43860 KB Output is correct
40 Correct 31 ms 23376 KB Output is correct
41 Correct 310 ms 343924 KB Output is correct
42 Correct 18 ms 9560 KB Output is correct
43 Correct 191 ms 214528 KB Output is correct
44 Correct 231 ms 226740 KB Output is correct
45 Correct 322 ms 323160 KB Output is correct
46 Correct 97 ms 56032 KB Output is correct
47 Correct 127 ms 43908 KB Output is correct
48 Correct 123 ms 43956 KB Output is correct
49 Runtime error 1847 ms 2097152 KB Execution killed with signal 9
50 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 604 KB Output is correct
2 Correct 1 ms 608 KB Output is correct
3 Correct 1 ms 860 KB Output is correct
4 Correct 1 ms 860 KB Output is correct
5 Correct 1 ms 860 KB Output is correct
6 Correct 1 ms 860 KB Output is correct
7 Correct 2 ms 3164 KB Output is correct
8 Correct 2 ms 3164 KB Output is correct
9 Correct 0 ms 604 KB Output is correct
10 Correct 1 ms 864 KB Output is correct
11 Correct 1 ms 604 KB Output is correct
12 Correct 1 ms 608 KB Output is correct
13 Correct 1 ms 968 KB Output is correct
14 Correct 1 ms 856 KB Output is correct
15 Correct 1 ms 860 KB Output is correct
16 Correct 1 ms 860 KB Output is correct
17 Correct 1 ms 860 KB Output is correct
18 Correct 1 ms 860 KB Output is correct
19 Correct 6 ms 3596 KB Output is correct
20 Correct 74 ms 94308 KB Output is correct
21 Correct 5 ms 3932 KB Output is correct
22 Correct 6 ms 3600 KB Output is correct
23 Correct 5 ms 3420 KB Output is correct
24 Correct 81 ms 108524 KB Output is correct
25 Correct 84 ms 108580 KB Output is correct
26 Correct 7 ms 3672 KB Output is correct
27 Correct 6 ms 3424 KB Output is correct
28 Correct 6 ms 3420 KB Output is correct
29 Correct 11 ms 4700 KB Output is correct
30 Correct 60 ms 54944 KB Output is correct
31 Correct 11 ms 5980 KB Output is correct
32 Correct 12 ms 4952 KB Output is correct
33 Correct 9 ms 4700 KB Output is correct
34 Correct 277 ms 296664 KB Output is correct
35 Correct 257 ms 296608 KB Output is correct
36 Correct 13 ms 4952 KB Output is correct
37 Correct 17 ms 4956 KB Output is correct
38 Correct 10 ms 4696 KB Output is correct
39 Correct 124 ms 43860 KB Output is correct
40 Correct 31 ms 23376 KB Output is correct
41 Correct 310 ms 343924 KB Output is correct
42 Correct 18 ms 9560 KB Output is correct
43 Correct 191 ms 214528 KB Output is correct
44 Correct 231 ms 226740 KB Output is correct
45 Correct 322 ms 323160 KB Output is correct
46 Correct 97 ms 56032 KB Output is correct
47 Correct 127 ms 43908 KB Output is correct
48 Correct 123 ms 43956 KB Output is correct
49 Runtime error 1847 ms 2097152 KB Execution killed with signal 9
50 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 604 KB Output is correct
2 Correct 1 ms 608 KB Output is correct
3 Correct 1 ms 860 KB Output is correct
4 Correct 1 ms 860 KB Output is correct
5 Correct 1 ms 860 KB Output is correct
6 Correct 1 ms 860 KB Output is correct
7 Correct 2 ms 3164 KB Output is correct
8 Correct 2 ms 3164 KB Output is correct
9 Correct 0 ms 604 KB Output is correct
10 Correct 1 ms 864 KB Output is correct
11 Correct 1 ms 604 KB Output is correct
12 Correct 1 ms 608 KB Output is correct
13 Correct 1 ms 968 KB Output is correct
14 Correct 1 ms 856 KB Output is correct
15 Correct 1 ms 860 KB Output is correct
16 Correct 1 ms 860 KB Output is correct
17 Correct 1 ms 860 KB Output is correct
18 Correct 1 ms 860 KB Output is correct
19 Correct 6 ms 3596 KB Output is correct
20 Correct 74 ms 94308 KB Output is correct
21 Correct 5 ms 3932 KB Output is correct
22 Correct 6 ms 3600 KB Output is correct
23 Correct 5 ms 3420 KB Output is correct
24 Correct 81 ms 108524 KB Output is correct
25 Correct 84 ms 108580 KB Output is correct
26 Correct 7 ms 3672 KB Output is correct
27 Correct 6 ms 3424 KB Output is correct
28 Correct 6 ms 3420 KB Output is correct
29 Correct 11 ms 4700 KB Output is correct
30 Correct 60 ms 54944 KB Output is correct
31 Correct 11 ms 5980 KB Output is correct
32 Correct 12 ms 4952 KB Output is correct
33 Correct 9 ms 4700 KB Output is correct
34 Correct 277 ms 296664 KB Output is correct
35 Correct 257 ms 296608 KB Output is correct
36 Correct 13 ms 4952 KB Output is correct
37 Correct 17 ms 4956 KB Output is correct
38 Correct 10 ms 4696 KB Output is correct
39 Correct 124 ms 43860 KB Output is correct
40 Correct 31 ms 23376 KB Output is correct
41 Correct 310 ms 343924 KB Output is correct
42 Correct 18 ms 9560 KB Output is correct
43 Correct 191 ms 214528 KB Output is correct
44 Correct 231 ms 226740 KB Output is correct
45 Correct 322 ms 323160 KB Output is correct
46 Correct 97 ms 56032 KB Output is correct
47 Correct 127 ms 43908 KB Output is correct
48 Correct 123 ms 43956 KB Output is correct
49 Runtime error 1847 ms 2097152 KB Execution killed with signal 9
50 Halted 0 ms 0 KB -