답안 #430103

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
430103 2021-06-16T11:30:03 Z ngrace Jelly Flavours (IOI20_jelly) C++14
35 / 100
2000 ms 152368 KB
#include "jelly.h"
#include <vector>
#include <iostream>
#include <limits.h>
using namespace std;
#define v vector

int N;
v<int> A;
v<int> B;

v<v<int>> memo2;
int dp2(int cur, int left){
	if(cur==N) return 0;
	if(left==0) return 0;
	if(memo2[cur][left]!=-1) return memo2[cur][left];
	int out=dp2(cur+1,left);
	if(A[cur]<=left) out=max(out, 1+dp2(cur+1,left-A[cur]));
	return memo2[cur][left]=out;
}

v<v<v<int>>> memo3;
int dp3(int cur, int x, int y){
	if(cur==N) return 0;
	if(memo3[cur][x][y]!=-1) return memo3[cur][x][y];
	int out=dp3(cur+1,x,y);
	if(A[cur]<=x) out=max(out, 1+dp3(cur+1,x-A[cur],y));
	if(B[cur]<=y) out=max(out, 1+dp3(cur+1,x,y-B[cur]));
	return memo3[cur][x][y]=out;
}

int find_maximum_unique(int x, int y, std::vector<int> a, std::vector<int> b) {
	N = a.size();
	bool sub4=true;
	bool sub5=true;
	for(int i=0;i<N;i++){
		A.push_back(a[i]);
		B.push_back(b[i]);
		if(a[i]!=b[i]) sub5=false;
		if(i!=0 && b[i]!=b[i-1]) sub4=false;
	}

	if(y==0){
		memo2=v<v<int>>(N,v<int>(x+1,-1));
		return dp2(0,x);
	}
	else if(sub4){
		memo2=v<v<int>>(N,v<int>(x+1,-1));
		int out=dp2(0,x);
		out+=y/b[0];
		if(out>N) out=N;
		return out;
	}
	else if(sub5){
		memo2=v<v<int>>(N,v<int>(x+y+1,-1));
		return dp2(0,x+y);
	}
	else if(N<=200 && x<=500 && y<=500){
		memo3=v<v<v<int>>>(N,v<v<int>>(x+1,v<int>(y+1,-1)));
		return dp3(0,x,y);
	}
}

Compilation message

jelly.cpp: In function 'int find_maximum_unique(int, int, std::vector<int>, std::vector<int>)':
jelly.cpp:62:1: warning: control reaches end of non-void function [-Wreturn-type]
   62 | }
      | ^
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 1868 KB Output is correct
2 Correct 6 ms 7756 KB Output is correct
3 Correct 5 ms 8140 KB Output is correct
4 Correct 16 ms 11248 KB Output is correct
5 Correct 8 ms 8616 KB Output is correct
6 Correct 5 ms 7080 KB Output is correct
7 Correct 7 ms 9820 KB Output is correct
8 Correct 5 ms 6860 KB Output is correct
9 Correct 6 ms 9036 KB Output is correct
10 Correct 16 ms 10816 KB Output is correct
11 Correct 2 ms 1188 KB Output is correct
12 Correct 4 ms 1960 KB Output is correct
13 Correct 5 ms 7756 KB Output is correct
14 Correct 6 ms 8140 KB Output is correct
15 Correct 14 ms 11240 KB Output is correct
16 Correct 7 ms 8700 KB Output is correct
17 Correct 5 ms 7084 KB Output is correct
18 Correct 7 ms 9768 KB Output is correct
19 Correct 4 ms 6860 KB Output is correct
20 Correct 7 ms 9036 KB Output is correct
21 Correct 2 ms 1956 KB Output is correct
22 Correct 11 ms 10864 KB Output is correct
23 Correct 2 ms 1996 KB Output is correct
24 Correct 2 ms 204 KB Output is correct
25 Correct 2 ms 1484 KB Output is correct
26 Correct 2 ms 1356 KB Output is correct
27 Correct 2 ms 936 KB Output is correct
28 Correct 3 ms 1872 KB Output is correct
29 Correct 2 ms 1616 KB Output is correct
30 Correct 2 ms 1868 KB Output is correct
31 Correct 3 ms 1488 KB Output is correct
32 Correct 1 ms 292 KB Output is correct
33 Correct 2 ms 1492 KB Output is correct
34 Correct 3 ms 1360 KB Output is correct
35 Correct 1 ms 932 KB Output is correct
36 Correct 2 ms 1952 KB Output is correct
37 Correct 2 ms 1612 KB Output is correct
38 Correct 2 ms 1868 KB Output is correct
39 Correct 3 ms 1484 KB Output is correct
40 Correct 2 ms 1228 KB Output is correct
41 Correct 2 ms 1868 KB Output is correct
42 Correct 7 ms 7752 KB Output is correct
43 Correct 6 ms 8140 KB Output is correct
44 Correct 14 ms 11228 KB Output is correct
45 Correct 7 ms 8652 KB Output is correct
46 Correct 5 ms 6988 KB Output is correct
47 Correct 7 ms 9804 KB Output is correct
48 Correct 5 ms 6948 KB Output is correct
49 Correct 6 ms 9036 KB Output is correct
50 Correct 14 ms 10780 KB Output is correct
51 Correct 2 ms 1996 KB Output is correct
52 Correct 1 ms 204 KB Output is correct
53 Correct 2 ms 1484 KB Output is correct
54 Correct 2 ms 1356 KB Output is correct
55 Correct 1 ms 876 KB Output is correct
56 Correct 2 ms 1868 KB Output is correct
57 Correct 2 ms 1612 KB Output is correct
58 Correct 2 ms 1868 KB Output is correct
59 Correct 3 ms 1424 KB Output is correct
60 Correct 2 ms 1228 KB Output is correct
61 Correct 2 ms 1868 KB Output is correct
62 Correct 5 ms 7756 KB Output is correct
63 Correct 6 ms 8096 KB Output is correct
64 Correct 15 ms 11176 KB Output is correct
65 Correct 5 ms 8652 KB Output is correct
66 Correct 5 ms 7072 KB Output is correct
67 Correct 8 ms 9748 KB Output is correct
68 Correct 5 ms 6928 KB Output is correct
69 Correct 7 ms 9036 KB Output is correct
70 Correct 11 ms 10908 KB Output is correct
71 Correct 2 ms 1972 KB Output is correct
72 Correct 1 ms 292 KB Output is correct
73 Correct 1 ms 1572 KB Output is correct
74 Correct 2 ms 1376 KB Output is correct
75 Correct 1 ms 972 KB Output is correct
76 Correct 2 ms 1984 KB Output is correct
77 Correct 2 ms 1612 KB Output is correct
78 Correct 2 ms 1828 KB Output is correct
79 Correct 3 ms 1484 KB Output is correct
80 Correct 2 ms 1228 KB Output is correct
81 Correct 2 ms 1952 KB Output is correct
82 Correct 7 ms 7756 KB Output is correct
83 Correct 7 ms 8140 KB Output is correct
84 Correct 16 ms 11212 KB Output is correct
85 Correct 6 ms 8644 KB Output is correct
86 Correct 7 ms 7036 KB Output is correct
87 Correct 8 ms 9804 KB Output is correct
88 Correct 10 ms 6952 KB Output is correct
89 Correct 7 ms 9036 KB Output is correct
90 Correct 16 ms 10788 KB Output is correct
91 Correct 2 ms 1996 KB Output is correct
92 Correct 1 ms 288 KB Output is correct
93 Correct 1 ms 1484 KB Output is correct
94 Correct 2 ms 1316 KB Output is correct
95 Correct 1 ms 972 KB Output is correct
96 Correct 2 ms 1868 KB Output is correct
97 Correct 4 ms 1612 KB Output is correct
98 Correct 2 ms 1868 KB Output is correct
99 Correct 3 ms 1448 KB Output is correct
100 Correct 2 ms 1180 KB Output is correct
101 Correct 2 ms 1868 KB Output is correct
102 Correct 7 ms 7756 KB Output is correct
103 Correct 5 ms 8100 KB Output is correct
104 Correct 14 ms 11244 KB Output is correct
105 Correct 7 ms 8728 KB Output is correct
106 Correct 7 ms 7040 KB Output is correct
107 Correct 8 ms 9804 KB Output is correct
108 Correct 6 ms 6948 KB Output is correct
109 Correct 7 ms 9036 KB Output is correct
110 Correct 12 ms 10912 KB Output is correct
111 Correct 2 ms 1996 KB Output is correct
112 Correct 1 ms 204 KB Output is correct
113 Correct 2 ms 1484 KB Output is correct
114 Correct 1 ms 1356 KB Output is correct
115 Correct 1 ms 972 KB Output is correct
116 Correct 2 ms 1868 KB Output is correct
117 Correct 2 ms 1612 KB Output is correct
118 Correct 2 ms 1868 KB Output is correct
119 Correct 3 ms 1512 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 1868 KB Output is correct
2 Correct 6 ms 7756 KB Output is correct
3 Correct 5 ms 8140 KB Output is correct
4 Correct 16 ms 11248 KB Output is correct
5 Correct 8 ms 8616 KB Output is correct
6 Correct 5 ms 7080 KB Output is correct
7 Correct 7 ms 9820 KB Output is correct
8 Correct 5 ms 6860 KB Output is correct
9 Correct 6 ms 9036 KB Output is correct
10 Correct 16 ms 10816 KB Output is correct
11 Correct 2 ms 1188 KB Output is correct
12 Correct 4 ms 1960 KB Output is correct
13 Correct 5 ms 7756 KB Output is correct
14 Correct 6 ms 8140 KB Output is correct
15 Correct 14 ms 11240 KB Output is correct
16 Correct 7 ms 8700 KB Output is correct
17 Correct 5 ms 7084 KB Output is correct
18 Correct 7 ms 9768 KB Output is correct
19 Correct 4 ms 6860 KB Output is correct
20 Correct 7 ms 9036 KB Output is correct
21 Correct 2 ms 1956 KB Output is correct
22 Correct 11 ms 10864 KB Output is correct
23 Correct 2 ms 1996 KB Output is correct
24 Correct 2 ms 204 KB Output is correct
25 Correct 2 ms 1484 KB Output is correct
26 Correct 2 ms 1356 KB Output is correct
27 Correct 2 ms 936 KB Output is correct
28 Correct 3 ms 1872 KB Output is correct
29 Correct 2 ms 1616 KB Output is correct
30 Correct 2 ms 1868 KB Output is correct
31 Correct 3 ms 1488 KB Output is correct
32 Correct 1 ms 292 KB Output is correct
33 Correct 2 ms 1492 KB Output is correct
34 Correct 3 ms 1360 KB Output is correct
35 Correct 1 ms 932 KB Output is correct
36 Correct 2 ms 1952 KB Output is correct
37 Correct 2 ms 1612 KB Output is correct
38 Correct 2 ms 1868 KB Output is correct
39 Correct 3 ms 1484 KB Output is correct
40 Correct 2 ms 1228 KB Output is correct
41 Correct 2 ms 1868 KB Output is correct
42 Correct 7 ms 7752 KB Output is correct
43 Correct 6 ms 8140 KB Output is correct
44 Correct 14 ms 11228 KB Output is correct
45 Correct 7 ms 8652 KB Output is correct
46 Correct 5 ms 6988 KB Output is correct
47 Correct 7 ms 9804 KB Output is correct
48 Correct 5 ms 6948 KB Output is correct
49 Correct 6 ms 9036 KB Output is correct
50 Correct 14 ms 10780 KB Output is correct
51 Correct 2 ms 1996 KB Output is correct
52 Correct 1 ms 204 KB Output is correct
53 Correct 2 ms 1484 KB Output is correct
54 Correct 2 ms 1356 KB Output is correct
55 Correct 1 ms 876 KB Output is correct
56 Correct 2 ms 1868 KB Output is correct
57 Correct 2 ms 1612 KB Output is correct
58 Correct 2 ms 1868 KB Output is correct
59 Correct 3 ms 1424 KB Output is correct
60 Correct 2 ms 1228 KB Output is correct
61 Correct 2 ms 1868 KB Output is correct
62 Correct 5 ms 7756 KB Output is correct
63 Correct 6 ms 8096 KB Output is correct
64 Correct 15 ms 11176 KB Output is correct
65 Correct 5 ms 8652 KB Output is correct
66 Correct 5 ms 7072 KB Output is correct
67 Correct 8 ms 9748 KB Output is correct
68 Correct 5 ms 6928 KB Output is correct
69 Correct 7 ms 9036 KB Output is correct
70 Correct 11 ms 10908 KB Output is correct
71 Correct 2 ms 1972 KB Output is correct
72 Correct 1 ms 292 KB Output is correct
73 Correct 1 ms 1572 KB Output is correct
74 Correct 2 ms 1376 KB Output is correct
75 Correct 1 ms 972 KB Output is correct
76 Correct 2 ms 1984 KB Output is correct
77 Correct 2 ms 1612 KB Output is correct
78 Correct 2 ms 1828 KB Output is correct
79 Correct 3 ms 1484 KB Output is correct
80 Correct 2 ms 1228 KB Output is correct
81 Correct 2 ms 1952 KB Output is correct
82 Correct 7 ms 7756 KB Output is correct
83 Correct 7 ms 8140 KB Output is correct
84 Correct 16 ms 11212 KB Output is correct
85 Correct 6 ms 8644 KB Output is correct
86 Correct 7 ms 7036 KB Output is correct
87 Correct 8 ms 9804 KB Output is correct
88 Correct 10 ms 6952 KB Output is correct
89 Correct 7 ms 9036 KB Output is correct
90 Correct 16 ms 10788 KB Output is correct
91 Correct 2 ms 1996 KB Output is correct
92 Correct 1 ms 288 KB Output is correct
93 Correct 1 ms 1484 KB Output is correct
94 Correct 2 ms 1316 KB Output is correct
95 Correct 1 ms 972 KB Output is correct
96 Correct 2 ms 1868 KB Output is correct
97 Correct 4 ms 1612 KB Output is correct
98 Correct 2 ms 1868 KB Output is correct
99 Correct 3 ms 1448 KB Output is correct
100 Correct 2 ms 1180 KB Output is correct
101 Correct 2 ms 1868 KB Output is correct
102 Correct 7 ms 7756 KB Output is correct
103 Correct 5 ms 8100 KB Output is correct
104 Correct 14 ms 11244 KB Output is correct
105 Correct 7 ms 8728 KB Output is correct
106 Correct 7 ms 7040 KB Output is correct
107 Correct 8 ms 9804 KB Output is correct
108 Correct 6 ms 6948 KB Output is correct
109 Correct 7 ms 9036 KB Output is correct
110 Correct 12 ms 10912 KB Output is correct
111 Correct 2 ms 1996 KB Output is correct
112 Correct 1 ms 204 KB Output is correct
113 Correct 2 ms 1484 KB Output is correct
114 Correct 1 ms 1356 KB Output is correct
115 Correct 1 ms 972 KB Output is correct
116 Correct 2 ms 1868 KB Output is correct
117 Correct 2 ms 1612 KB Output is correct
118 Correct 2 ms 1868 KB Output is correct
119 Correct 3 ms 1512 KB Output is correct
120 Correct 65 ms 9512 KB Output is correct
121 Execution timed out 2075 ms 149716 KB Time limit exceeded
122 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 71 ms 13512 KB 1st lines differ - on the 1st token, expected: '689', found: '58'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 594 ms 71400 KB Output is correct
2 Correct 558 ms 71648 KB Output is correct
3 Correct 626 ms 74788 KB Output is correct
4 Correct 331 ms 74984 KB Output is correct
5 Correct 346 ms 76208 KB Output is correct
6 Correct 591 ms 71804 KB Output is correct
7 Correct 576 ms 71572 KB Output is correct
8 Correct 610 ms 75020 KB Output is correct
9 Correct 329 ms 74564 KB Output is correct
10 Correct 374 ms 72220 KB Output is correct
11 Correct 24 ms 4556 KB Output is correct
12 Correct 1 ms 332 KB Output is correct
13 Correct 8 ms 1740 KB Output is correct
14 Correct 8 ms 1868 KB Output is correct
15 Correct 20 ms 4448 KB Output is correct
16 Correct 5 ms 1100 KB Output is correct
17 Correct 578 ms 72804 KB Output is correct
18 Correct 602 ms 71172 KB Output is correct
19 Correct 341 ms 76624 KB Output is correct
20 Correct 357 ms 69820 KB Output is correct
21 Correct 539 ms 71404 KB Output is correct
22 Correct 613 ms 71664 KB Output is correct
23 Correct 626 ms 74796 KB Output is correct
24 Correct 337 ms 74976 KB Output is correct
25 Correct 404 ms 76208 KB Output is correct
26 Correct 630 ms 71808 KB Output is correct
27 Correct 590 ms 71580 KB Output is correct
28 Correct 548 ms 75020 KB Output is correct
29 Correct 377 ms 74500 KB Output is correct
30 Correct 460 ms 72264 KB Output is correct
31 Correct 23 ms 4680 KB Output is correct
32 Correct 1 ms 332 KB Output is correct
33 Correct 8 ms 1844 KB Output is correct
34 Correct 10 ms 1960 KB Output is correct
35 Correct 20 ms 4452 KB Output is correct
36 Correct 5 ms 1064 KB Output is correct
37 Correct 645 ms 72808 KB Output is correct
38 Correct 568 ms 71104 KB Output is correct
39 Correct 407 ms 76620 KB Output is correct
40 Correct 540 ms 69820 KB Output is correct
41 Correct 664 ms 71400 KB Output is correct
42 Correct 668 ms 71668 KB Output is correct
43 Correct 586 ms 74692 KB Output is correct
44 Correct 365 ms 74980 KB Output is correct
45 Correct 373 ms 76212 KB Output is correct
46 Correct 614 ms 71812 KB Output is correct
47 Correct 733 ms 71576 KB Output is correct
48 Correct 734 ms 75024 KB Output is correct
49 Correct 507 ms 74496 KB Output is correct
50 Correct 486 ms 72340 KB Output is correct
51 Correct 23 ms 4556 KB Output is correct
52 Correct 2 ms 332 KB Output is correct
53 Correct 8 ms 1840 KB Output is correct
54 Correct 9 ms 1964 KB Output is correct
55 Correct 20 ms 4428 KB Output is correct
56 Correct 7 ms 1100 KB Output is correct
57 Correct 650 ms 72812 KB Output is correct
58 Correct 646 ms 71108 KB Output is correct
59 Correct 355 ms 76624 KB Output is correct
60 Correct 313 ms 69836 KB Output is correct
61 Correct 606 ms 71404 KB Output is correct
62 Correct 565 ms 71620 KB Output is correct
63 Correct 567 ms 74792 KB Output is correct
64 Correct 332 ms 74984 KB Output is correct
65 Correct 396 ms 76208 KB Output is correct
66 Correct 518 ms 71808 KB Output is correct
67 Correct 728 ms 71576 KB Output is correct
68 Correct 629 ms 75024 KB Output is correct
69 Correct 380 ms 74492 KB Output is correct
70 Correct 439 ms 72172 KB Output is correct
71 Correct 26 ms 4712 KB Output is correct
72 Correct 2 ms 332 KB Output is correct
73 Correct 10 ms 1848 KB Output is correct
74 Correct 7 ms 1868 KB Output is correct
75 Correct 19 ms 4428 KB Output is correct
76 Correct 5 ms 1100 KB Output is correct
77 Correct 567 ms 72808 KB Output is correct
78 Correct 575 ms 71104 KB Output is correct
79 Correct 434 ms 76620 KB Output is correct
80 Correct 417 ms 69820 KB Output is correct
81 Correct 616 ms 71336 KB Output is correct
82 Correct 602 ms 71668 KB Output is correct
83 Correct 715 ms 74792 KB Output is correct
84 Correct 369 ms 74976 KB Output is correct
85 Correct 424 ms 76216 KB Output is correct
86 Correct 636 ms 71808 KB Output is correct
87 Correct 684 ms 71576 KB Output is correct
88 Correct 664 ms 75024 KB Output is correct
89 Correct 342 ms 74480 KB Output is correct
90 Correct 391 ms 72260 KB Output is correct
91 Correct 28 ms 4556 KB Output is correct
92 Correct 1 ms 332 KB Output is correct
93 Correct 8 ms 1740 KB Output is correct
94 Correct 8 ms 1852 KB Output is correct
95 Correct 20 ms 4428 KB Output is correct
96 Correct 5 ms 1100 KB Output is correct
97 Correct 540 ms 72800 KB Output is correct
98 Correct 578 ms 71072 KB Output is correct
99 Correct 357 ms 76620 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 603 ms 79584 KB Output is correct
2 Correct 1344 ms 141380 KB Output is correct
3 Correct 1243 ms 140580 KB Output is correct
4 Correct 682 ms 148076 KB Output is correct
5 Correct 655 ms 143908 KB Output is correct
6 Correct 1205 ms 145844 KB Output is correct
7 Correct 1204 ms 147268 KB Output is correct
8 Correct 1178 ms 143672 KB Output is correct
9 Correct 650 ms 142452 KB Output is correct
10 Correct 641 ms 152332 KB Output is correct
11 Correct 475 ms 74560 KB Output is correct
12 Correct 1 ms 332 KB Output is correct
13 Correct 652 ms 88208 KB Output is correct
14 Correct 428 ms 78312 KB Output is correct
15 Correct 386 ms 84772 KB Output is correct
16 Correct 582 ms 78308 KB Output is correct
17 Correct 604 ms 85800 KB Output is correct
18 Correct 671 ms 85376 KB Output is correct
19 Correct 289 ms 76336 KB Output is correct
20 Correct 368 ms 77392 KB Output is correct
21 Correct 557 ms 79564 KB Output is correct
22 Correct 1398 ms 141496 KB Output is correct
23 Correct 1261 ms 140584 KB Output is correct
24 Correct 517 ms 148080 KB Output is correct
25 Correct 610 ms 143892 KB Output is correct
26 Correct 1491 ms 145840 KB Output is correct
27 Correct 1308 ms 147152 KB Output is correct
28 Correct 1169 ms 143672 KB Output is correct
29 Correct 613 ms 142448 KB Output is correct
30 Correct 635 ms 152224 KB Output is correct
31 Correct 477 ms 74556 KB Output is correct
32 Correct 2 ms 332 KB Output is correct
33 Correct 653 ms 88208 KB Output is correct
34 Correct 396 ms 78436 KB Output is correct
35 Correct 395 ms 84768 KB Output is correct
36 Correct 554 ms 78308 KB Output is correct
37 Correct 607 ms 85796 KB Output is correct
38 Correct 623 ms 85380 KB Output is correct
39 Correct 347 ms 76228 KB Output is correct
40 Correct 366 ms 77392 KB Output is correct
41 Correct 520 ms 79540 KB Output is correct
42 Correct 1130 ms 141500 KB Output is correct
43 Correct 1162 ms 140612 KB Output is correct
44 Correct 752 ms 148076 KB Output is correct
45 Correct 702 ms 143940 KB Output is correct
46 Correct 1397 ms 145732 KB Output is correct
47 Correct 1269 ms 147160 KB Output is correct
48 Correct 1210 ms 143592 KB Output is correct
49 Correct 584 ms 142448 KB Output is correct
50 Correct 751 ms 152328 KB Output is correct
51 Correct 479 ms 74664 KB Output is correct
52 Correct 1 ms 332 KB Output is correct
53 Correct 606 ms 88280 KB Output is correct
54 Correct 383 ms 78312 KB Output is correct
55 Correct 337 ms 84836 KB Output is correct
56 Correct 524 ms 78308 KB Output is correct
57 Correct 604 ms 85828 KB Output is correct
58 Correct 630 ms 85444 KB Output is correct
59 Correct 361 ms 76228 KB Output is correct
60 Correct 361 ms 77388 KB Output is correct
61 Correct 557 ms 79580 KB Output is correct
62 Correct 1159 ms 141424 KB Output is correct
63 Correct 1173 ms 140612 KB Output is correct
64 Correct 641 ms 148164 KB Output is correct
65 Correct 690 ms 143896 KB Output is correct
66 Correct 1310 ms 145840 KB Output is correct
67 Correct 1274 ms 147156 KB Output is correct
68 Correct 1272 ms 143684 KB Output is correct
69 Correct 614 ms 142448 KB Output is correct
70 Correct 675 ms 152324 KB Output is correct
71 Correct 453 ms 74552 KB Output is correct
72 Correct 1 ms 332 KB Output is correct
73 Correct 633 ms 88204 KB Output is correct
74 Correct 388 ms 78308 KB Output is correct
75 Correct 339 ms 84768 KB Output is correct
76 Correct 537 ms 78404 KB Output is correct
77 Correct 603 ms 85912 KB Output is correct
78 Correct 620 ms 85468 KB Output is correct
79 Correct 352 ms 76336 KB Output is correct
80 Correct 362 ms 77480 KB Output is correct
81 Correct 535 ms 79580 KB Output is correct
82 Correct 1126 ms 141508 KB Output is correct
83 Correct 1205 ms 140584 KB Output is correct
84 Correct 643 ms 147988 KB Output is correct
85 Correct 661 ms 143896 KB Output is correct
86 Correct 1378 ms 145864 KB Output is correct
87 Correct 1465 ms 147152 KB Output is correct
88 Correct 1535 ms 143668 KB Output is correct
89 Correct 628 ms 142448 KB Output is correct
90 Correct 767 ms 152368 KB Output is correct
91 Correct 484 ms 74552 KB Output is correct
92 Correct 2 ms 420 KB Output is correct
93 Correct 674 ms 88200 KB Output is correct
94 Correct 411 ms 78308 KB Output is correct
95 Correct 340 ms 84672 KB Output is correct
96 Correct 535 ms 78312 KB Output is correct
97 Correct 603 ms 85828 KB Output is correct
98 Correct 591 ms 85316 KB Output is correct
99 Correct 352 ms 76336 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 1868 KB Output is correct
2 Correct 6 ms 7756 KB Output is correct
3 Correct 5 ms 8140 KB Output is correct
4 Correct 16 ms 11248 KB Output is correct
5 Correct 8 ms 8616 KB Output is correct
6 Correct 5 ms 7080 KB Output is correct
7 Correct 7 ms 9820 KB Output is correct
8 Correct 5 ms 6860 KB Output is correct
9 Correct 6 ms 9036 KB Output is correct
10 Correct 16 ms 10816 KB Output is correct
11 Correct 2 ms 1188 KB Output is correct
12 Correct 4 ms 1960 KB Output is correct
13 Correct 5 ms 7756 KB Output is correct
14 Correct 6 ms 8140 KB Output is correct
15 Correct 14 ms 11240 KB Output is correct
16 Correct 7 ms 8700 KB Output is correct
17 Correct 5 ms 7084 KB Output is correct
18 Correct 7 ms 9768 KB Output is correct
19 Correct 4 ms 6860 KB Output is correct
20 Correct 7 ms 9036 KB Output is correct
21 Correct 2 ms 1956 KB Output is correct
22 Correct 11 ms 10864 KB Output is correct
23 Correct 2 ms 1996 KB Output is correct
24 Correct 2 ms 204 KB Output is correct
25 Correct 2 ms 1484 KB Output is correct
26 Correct 2 ms 1356 KB Output is correct
27 Correct 2 ms 936 KB Output is correct
28 Correct 3 ms 1872 KB Output is correct
29 Correct 2 ms 1616 KB Output is correct
30 Correct 2 ms 1868 KB Output is correct
31 Correct 3 ms 1488 KB Output is correct
32 Correct 1 ms 292 KB Output is correct
33 Correct 2 ms 1492 KB Output is correct
34 Correct 3 ms 1360 KB Output is correct
35 Correct 1 ms 932 KB Output is correct
36 Correct 2 ms 1952 KB Output is correct
37 Correct 2 ms 1612 KB Output is correct
38 Correct 2 ms 1868 KB Output is correct
39 Correct 3 ms 1484 KB Output is correct
40 Correct 2 ms 1228 KB Output is correct
41 Correct 2 ms 1868 KB Output is correct
42 Correct 7 ms 7752 KB Output is correct
43 Correct 6 ms 8140 KB Output is correct
44 Correct 14 ms 11228 KB Output is correct
45 Correct 7 ms 8652 KB Output is correct
46 Correct 5 ms 6988 KB Output is correct
47 Correct 7 ms 9804 KB Output is correct
48 Correct 5 ms 6948 KB Output is correct
49 Correct 6 ms 9036 KB Output is correct
50 Correct 14 ms 10780 KB Output is correct
51 Correct 2 ms 1996 KB Output is correct
52 Correct 1 ms 204 KB Output is correct
53 Correct 2 ms 1484 KB Output is correct
54 Correct 2 ms 1356 KB Output is correct
55 Correct 1 ms 876 KB Output is correct
56 Correct 2 ms 1868 KB Output is correct
57 Correct 2 ms 1612 KB Output is correct
58 Correct 2 ms 1868 KB Output is correct
59 Correct 3 ms 1424 KB Output is correct
60 Correct 2 ms 1228 KB Output is correct
61 Correct 2 ms 1868 KB Output is correct
62 Correct 5 ms 7756 KB Output is correct
63 Correct 6 ms 8096 KB Output is correct
64 Correct 15 ms 11176 KB Output is correct
65 Correct 5 ms 8652 KB Output is correct
66 Correct 5 ms 7072 KB Output is correct
67 Correct 8 ms 9748 KB Output is correct
68 Correct 5 ms 6928 KB Output is correct
69 Correct 7 ms 9036 KB Output is correct
70 Correct 11 ms 10908 KB Output is correct
71 Correct 2 ms 1972 KB Output is correct
72 Correct 1 ms 292 KB Output is correct
73 Correct 1 ms 1572 KB Output is correct
74 Correct 2 ms 1376 KB Output is correct
75 Correct 1 ms 972 KB Output is correct
76 Correct 2 ms 1984 KB Output is correct
77 Correct 2 ms 1612 KB Output is correct
78 Correct 2 ms 1828 KB Output is correct
79 Correct 3 ms 1484 KB Output is correct
80 Correct 2 ms 1228 KB Output is correct
81 Correct 2 ms 1952 KB Output is correct
82 Correct 7 ms 7756 KB Output is correct
83 Correct 7 ms 8140 KB Output is correct
84 Correct 16 ms 11212 KB Output is correct
85 Correct 6 ms 8644 KB Output is correct
86 Correct 7 ms 7036 KB Output is correct
87 Correct 8 ms 9804 KB Output is correct
88 Correct 10 ms 6952 KB Output is correct
89 Correct 7 ms 9036 KB Output is correct
90 Correct 16 ms 10788 KB Output is correct
91 Correct 2 ms 1996 KB Output is correct
92 Correct 1 ms 288 KB Output is correct
93 Correct 1 ms 1484 KB Output is correct
94 Correct 2 ms 1316 KB Output is correct
95 Correct 1 ms 972 KB Output is correct
96 Correct 2 ms 1868 KB Output is correct
97 Correct 4 ms 1612 KB Output is correct
98 Correct 2 ms 1868 KB Output is correct
99 Correct 3 ms 1448 KB Output is correct
100 Correct 2 ms 1180 KB Output is correct
101 Correct 2 ms 1868 KB Output is correct
102 Correct 7 ms 7756 KB Output is correct
103 Correct 5 ms 8100 KB Output is correct
104 Correct 14 ms 11244 KB Output is correct
105 Correct 7 ms 8728 KB Output is correct
106 Correct 7 ms 7040 KB Output is correct
107 Correct 8 ms 9804 KB Output is correct
108 Correct 6 ms 6948 KB Output is correct
109 Correct 7 ms 9036 KB Output is correct
110 Correct 12 ms 10912 KB Output is correct
111 Correct 2 ms 1996 KB Output is correct
112 Correct 1 ms 204 KB Output is correct
113 Correct 2 ms 1484 KB Output is correct
114 Correct 1 ms 1356 KB Output is correct
115 Correct 1 ms 972 KB Output is correct
116 Correct 2 ms 1868 KB Output is correct
117 Correct 2 ms 1612 KB Output is correct
118 Correct 2 ms 1868 KB Output is correct
119 Correct 3 ms 1512 KB Output is correct
120 Correct 65 ms 9512 KB Output is correct
121 Execution timed out 2075 ms 149716 KB Time limit exceeded
122 Halted 0 ms 0 KB -