답안 #790655

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
790655 2023-07-23T04:45:04 Z qwerasdfzxcl Cookies (JOI23_cookies) C++17
100 / 100
232 ms 350284 KB
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
vector<bitset<15015>> dp[15015];
bitset<15015> B[15015];
int a[15015], b[15015], valid[15015], n;

void output(int x, int y, int z){
	vector<int> V;

	while(x > 0){
		// printf("%d %d %d\n", x, y, z);
		if (y+1 < (int)dp[x].size() && dp[x][y+1][z]) y++;
		else{
			assert(y < (int)dp[x-1].size());
			assert(dp[x-1][y][z-b[y]]);

			V.push_back(b[y]);
			z -= b[y];
			x--;
		}
	}

	assert(z==0);

	priority_queue<pair<int, int>> pq;
	for (int i=1;i<=n;i++) pq.emplace(a[i], i);
	vector<vector<int>> ans;

	for (auto &x:V){
		assert((int)pq.size() >= x);
		ans.emplace_back();
		vector<pair<int, int>> buf;

		for (int i=1;i<=x;i++){
			ans.back().push_back(pq.top().second);
			if (pq.top().first > 1) buf.emplace_back(pq.top().first-1, pq.top().second);
			pq.pop();
		}

		for (auto &p:buf) pq.push(p);
	}

	printf("%d\n", (int)ans.size());
	for (auto &V:ans){
		printf("%d ", (int)V.size());
		for (auto &x:V) printf("%d ", x);
		printf("\n");
	}

	exit(0);
}

int main(){
	int S = 0;
	scanf("%d", &n);

	for (int i=1;i<=n;i++){
		scanf("%d", a+i);
		S += a[i];
	}

	int m;
	scanf("%d", &m);

	for (int i=1;i<=m;i++) scanf("%d", b+i);

	for (int i=1;i<=n;i++){
		for (int j=1;j<=a[i];j++) valid[j]++;		
	}

	B[0].set(0);
	for (int i=1;i<=S;i++){
		valid[i] += valid[i-1];
		
		for (int j=1;j<=valid[i]-valid[i-1];j++) B[i].set(j+valid[i-1]);
		B[i] |= B[i-1];
	} 
	for (int i=1;i<=S;i++) dp[i].resize(min(S/i, m) + 1);
	dp[0].resize(min(S, m) + 1);
	for (int j=1;j<=m;j++) dp[0][j].set(0);

	for (int i=1;i<=S;i++){
		for (int j=(int)dp[i].size()-1;j;j--){
			if (j+1 < (int)dp[i].size() && j < (int)dp[i-1].size())
				dp[i][j] = dp[i][j+1] | (dp[i-1][j] << b[j]);
			else if (j+1 < (int)dp[i].size())
				dp[i][j] = dp[i][j+1];
			else if (j < (int)dp[i-1].size())
				dp[i][j] = dp[i-1][j] << b[j];

			dp[i][j] &= B[i];
		}
	}

	for (int i=1;i<=S;i++) if (dp[i][1][S]) output(i, 1, S);
	printf("-1\n");
}

Compilation message

cookies.cpp: In function 'int main()':
cookies.cpp:57:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   57 |  scanf("%d", &n);
      |  ~~~~~^~~~~~~~~~
cookies.cpp:60:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   60 |   scanf("%d", a+i);
      |   ~~~~~^~~~~~~~~~~
cookies.cpp:65:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   65 |  scanf("%d", &m);
      |  ~~~~~^~~~~~~~~~
cookies.cpp:67:30: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   67 |  for (int i=1;i<=m;i++) scanf("%d", b+i);
      |                         ~~~~~^~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 724 KB Output is correct
2 Correct 0 ms 680 KB Output is correct
3 Correct 1 ms 596 KB Output is correct
4 Correct 1 ms 596 KB Output is correct
5 Correct 0 ms 596 KB Output is correct
6 Correct 1 ms 596 KB Output is correct
7 Correct 1 ms 724 KB Output is correct
8 Correct 2 ms 3412 KB Output is correct
9 Correct 2 ms 3412 KB Output is correct
10 Correct 6 ms 9300 KB Output is correct
11 Correct 5 ms 8404 KB Output is correct
12 Correct 4 ms 6612 KB Output is correct
13 Correct 5 ms 7636 KB Output is correct
14 Correct 5 ms 8020 KB Output is correct
15 Correct 5 ms 8148 KB Output is correct
16 Correct 5 ms 8404 KB Output is correct
17 Correct 2 ms 4180 KB Output is correct
18 Correct 3 ms 4820 KB Output is correct
19 Correct 3 ms 4820 KB Output is correct
20 Correct 3 ms 5204 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 5 ms 8276 KB Output is correct
23 Correct 5 ms 8276 KB Output is correct
24 Correct 4 ms 6100 KB Output is correct
25 Correct 3 ms 6100 KB Output is correct
26 Correct 4 ms 6100 KB Output is correct
27 Correct 4 ms 6100 KB Output is correct
28 Correct 4 ms 7636 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 724 KB Output is correct
2 Correct 0 ms 596 KB Output is correct
3 Correct 1 ms 596 KB Output is correct
4 Correct 0 ms 596 KB Output is correct
5 Correct 2 ms 3412 KB Output is correct
6 Correct 2 ms 3412 KB Output is correct
7 Correct 1 ms 724 KB Output is correct
8 Correct 2 ms 3412 KB Output is correct
9 Correct 10 ms 17464 KB Output is correct
10 Correct 47 ms 84680 KB Output is correct
11 Correct 1 ms 596 KB Output is correct
12 Correct 0 ms 596 KB Output is correct
13 Correct 1 ms 724 KB Output is correct
14 Correct 1 ms 596 KB Output is correct
15 Correct 1 ms 724 KB Output is correct
16 Correct 2 ms 3412 KB Output is correct
17 Correct 2 ms 3412 KB Output is correct
18 Correct 46 ms 83884 KB Output is correct
19 Correct 47 ms 84180 KB Output is correct
20 Correct 44 ms 83848 KB Output is correct
21 Correct 46 ms 83852 KB Output is correct
22 Correct 44 ms 82508 KB Output is correct
23 Correct 3 ms 6100 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 724 KB Output is correct
2 Correct 1 ms 728 KB Output is correct
3 Correct 0 ms 596 KB Output is correct
4 Correct 0 ms 596 KB Output is correct
5 Correct 0 ms 596 KB Output is correct
6 Correct 1 ms 596 KB Output is correct
7 Correct 1 ms 596 KB Output is correct
8 Correct 1 ms 664 KB Output is correct
9 Correct 1 ms 724 KB Output is correct
10 Correct 1 ms 596 KB Output is correct
11 Correct 1 ms 596 KB Output is correct
12 Correct 1 ms 724 KB Output is correct
13 Correct 1 ms 596 KB Output is correct
14 Correct 1 ms 724 KB Output is correct
15 Correct 1 ms 724 KB Output is correct
16 Correct 1 ms 724 KB Output is correct
17 Correct 1 ms 796 KB Output is correct
18 Correct 1 ms 724 KB Output is correct
19 Correct 1 ms 728 KB Output is correct
20 Correct 1 ms 732 KB Output is correct
21 Correct 1 ms 724 KB Output is correct
22 Correct 1 ms 724 KB Output is correct
23 Correct 1 ms 728 KB Output is correct
24 Correct 1 ms 728 KB Output is correct
25 Correct 1 ms 724 KB Output is correct
26 Correct 1 ms 724 KB Output is correct
27 Correct 1 ms 724 KB Output is correct
28 Correct 1 ms 804 KB Output is correct
29 Correct 1 ms 732 KB Output is correct
30 Correct 1 ms 724 KB Output is correct
31 Correct 1 ms 724 KB Output is correct
32 Correct 1 ms 796 KB Output is correct
33 Correct 1 ms 736 KB Output is correct
34 Correct 1 ms 736 KB Output is correct
35 Correct 1 ms 724 KB Output is correct
36 Correct 1 ms 856 KB Output is correct
37 Correct 1 ms 672 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 724 KB Output is correct
2 Correct 0 ms 680 KB Output is correct
3 Correct 1 ms 596 KB Output is correct
4 Correct 1 ms 596 KB Output is correct
5 Correct 0 ms 596 KB Output is correct
6 Correct 1 ms 596 KB Output is correct
7 Correct 1 ms 724 KB Output is correct
8 Correct 2 ms 3412 KB Output is correct
9 Correct 2 ms 3412 KB Output is correct
10 Correct 6 ms 9300 KB Output is correct
11 Correct 5 ms 8404 KB Output is correct
12 Correct 4 ms 6612 KB Output is correct
13 Correct 5 ms 7636 KB Output is correct
14 Correct 5 ms 8020 KB Output is correct
15 Correct 5 ms 8148 KB Output is correct
16 Correct 5 ms 8404 KB Output is correct
17 Correct 2 ms 4180 KB Output is correct
18 Correct 3 ms 4820 KB Output is correct
19 Correct 3 ms 4820 KB Output is correct
20 Correct 3 ms 5204 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 5 ms 8276 KB Output is correct
23 Correct 5 ms 8276 KB Output is correct
24 Correct 4 ms 6100 KB Output is correct
25 Correct 3 ms 6100 KB Output is correct
26 Correct 4 ms 6100 KB Output is correct
27 Correct 4 ms 6100 KB Output is correct
28 Correct 4 ms 7636 KB Output is correct
29 Correct 0 ms 724 KB Output is correct
30 Correct 1 ms 728 KB Output is correct
31 Correct 0 ms 596 KB Output is correct
32 Correct 0 ms 596 KB Output is correct
33 Correct 0 ms 596 KB Output is correct
34 Correct 1 ms 596 KB Output is correct
35 Correct 1 ms 596 KB Output is correct
36 Correct 1 ms 664 KB Output is correct
37 Correct 1 ms 724 KB Output is correct
38 Correct 1 ms 596 KB Output is correct
39 Correct 1 ms 596 KB Output is correct
40 Correct 1 ms 724 KB Output is correct
41 Correct 1 ms 596 KB Output is correct
42 Correct 1 ms 724 KB Output is correct
43 Correct 1 ms 724 KB Output is correct
44 Correct 1 ms 724 KB Output is correct
45 Correct 1 ms 796 KB Output is correct
46 Correct 1 ms 724 KB Output is correct
47 Correct 1 ms 728 KB Output is correct
48 Correct 1 ms 732 KB Output is correct
49 Correct 1 ms 724 KB Output is correct
50 Correct 1 ms 724 KB Output is correct
51 Correct 1 ms 728 KB Output is correct
52 Correct 1 ms 728 KB Output is correct
53 Correct 1 ms 724 KB Output is correct
54 Correct 1 ms 724 KB Output is correct
55 Correct 1 ms 724 KB Output is correct
56 Correct 1 ms 804 KB Output is correct
57 Correct 1 ms 732 KB Output is correct
58 Correct 1 ms 724 KB Output is correct
59 Correct 1 ms 724 KB Output is correct
60 Correct 1 ms 796 KB Output is correct
61 Correct 1 ms 736 KB Output is correct
62 Correct 1 ms 736 KB Output is correct
63 Correct 1 ms 724 KB Output is correct
64 Correct 1 ms 856 KB Output is correct
65 Correct 1 ms 672 KB Output is correct
66 Correct 1 ms 732 KB Output is correct
67 Correct 2 ms 3480 KB Output is correct
68 Correct 2 ms 3356 KB Output is correct
69 Correct 2 ms 3356 KB Output is correct
70 Correct 4 ms 5844 KB Output is correct
71 Correct 3 ms 5592 KB Output is correct
72 Correct 4 ms 5744 KB Output is correct
73 Correct 3 ms 5204 KB Output is correct
74 Correct 3 ms 5152 KB Output is correct
75 Correct 3 ms 5460 KB Output is correct
76 Correct 3 ms 5460 KB Output is correct
77 Correct 3 ms 5076 KB Output is correct
78 Correct 4 ms 5076 KB Output is correct
79 Correct 3 ms 4436 KB Output is correct
80 Correct 2 ms 4444 KB Output is correct
81 Correct 3 ms 4576 KB Output is correct
82 Correct 3 ms 5472 KB Output is correct
83 Correct 3 ms 4820 KB Output is correct
84 Correct 4 ms 6640 KB Output is correct
85 Correct 3 ms 5076 KB Output is correct
86 Correct 3 ms 5844 KB Output is correct
87 Correct 3 ms 5844 KB Output is correct
88 Correct 3 ms 5844 KB Output is correct
89 Correct 5 ms 5844 KB Output is correct
90 Correct 5 ms 5844 KB Output is correct
91 Correct 3 ms 5844 KB Output is correct
92 Correct 4 ms 6612 KB Output is correct
93 Correct 5 ms 9044 KB Output is correct
94 Correct 5 ms 8276 KB Output is correct
95 Correct 3 ms 5460 KB Output is correct
96 Correct 3 ms 4820 KB Output is correct
97 Correct 3 ms 5076 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 724 KB Output is correct
2 Correct 0 ms 680 KB Output is correct
3 Correct 1 ms 596 KB Output is correct
4 Correct 1 ms 596 KB Output is correct
5 Correct 0 ms 596 KB Output is correct
6 Correct 1 ms 596 KB Output is correct
7 Correct 1 ms 724 KB Output is correct
8 Correct 2 ms 3412 KB Output is correct
9 Correct 2 ms 3412 KB Output is correct
10 Correct 6 ms 9300 KB Output is correct
11 Correct 5 ms 8404 KB Output is correct
12 Correct 4 ms 6612 KB Output is correct
13 Correct 5 ms 7636 KB Output is correct
14 Correct 5 ms 8020 KB Output is correct
15 Correct 5 ms 8148 KB Output is correct
16 Correct 5 ms 8404 KB Output is correct
17 Correct 2 ms 4180 KB Output is correct
18 Correct 3 ms 4820 KB Output is correct
19 Correct 3 ms 4820 KB Output is correct
20 Correct 3 ms 5204 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 5 ms 8276 KB Output is correct
23 Correct 5 ms 8276 KB Output is correct
24 Correct 4 ms 6100 KB Output is correct
25 Correct 3 ms 6100 KB Output is correct
26 Correct 4 ms 6100 KB Output is correct
27 Correct 4 ms 6100 KB Output is correct
28 Correct 4 ms 7636 KB Output is correct
29 Correct 0 ms 724 KB Output is correct
30 Correct 1 ms 728 KB Output is correct
31 Correct 0 ms 596 KB Output is correct
32 Correct 0 ms 596 KB Output is correct
33 Correct 0 ms 596 KB Output is correct
34 Correct 1 ms 596 KB Output is correct
35 Correct 1 ms 596 KB Output is correct
36 Correct 1 ms 664 KB Output is correct
37 Correct 1 ms 724 KB Output is correct
38 Correct 1 ms 596 KB Output is correct
39 Correct 1 ms 596 KB Output is correct
40 Correct 1 ms 724 KB Output is correct
41 Correct 1 ms 596 KB Output is correct
42 Correct 1 ms 724 KB Output is correct
43 Correct 1 ms 724 KB Output is correct
44 Correct 1 ms 724 KB Output is correct
45 Correct 1 ms 796 KB Output is correct
46 Correct 1 ms 724 KB Output is correct
47 Correct 1 ms 728 KB Output is correct
48 Correct 1 ms 732 KB Output is correct
49 Correct 1 ms 724 KB Output is correct
50 Correct 1 ms 724 KB Output is correct
51 Correct 1 ms 728 KB Output is correct
52 Correct 1 ms 728 KB Output is correct
53 Correct 1 ms 724 KB Output is correct
54 Correct 1 ms 724 KB Output is correct
55 Correct 1 ms 724 KB Output is correct
56 Correct 1 ms 804 KB Output is correct
57 Correct 1 ms 732 KB Output is correct
58 Correct 1 ms 724 KB Output is correct
59 Correct 1 ms 724 KB Output is correct
60 Correct 1 ms 796 KB Output is correct
61 Correct 1 ms 736 KB Output is correct
62 Correct 1 ms 736 KB Output is correct
63 Correct 1 ms 724 KB Output is correct
64 Correct 1 ms 856 KB Output is correct
65 Correct 1 ms 672 KB Output is correct
66 Correct 1 ms 732 KB Output is correct
67 Correct 2 ms 3480 KB Output is correct
68 Correct 2 ms 3356 KB Output is correct
69 Correct 2 ms 3356 KB Output is correct
70 Correct 4 ms 5844 KB Output is correct
71 Correct 3 ms 5592 KB Output is correct
72 Correct 4 ms 5744 KB Output is correct
73 Correct 3 ms 5204 KB Output is correct
74 Correct 3 ms 5152 KB Output is correct
75 Correct 3 ms 5460 KB Output is correct
76 Correct 3 ms 5460 KB Output is correct
77 Correct 3 ms 5076 KB Output is correct
78 Correct 4 ms 5076 KB Output is correct
79 Correct 3 ms 4436 KB Output is correct
80 Correct 2 ms 4444 KB Output is correct
81 Correct 3 ms 4576 KB Output is correct
82 Correct 3 ms 5472 KB Output is correct
83 Correct 3 ms 4820 KB Output is correct
84 Correct 4 ms 6640 KB Output is correct
85 Correct 3 ms 5076 KB Output is correct
86 Correct 3 ms 5844 KB Output is correct
87 Correct 3 ms 5844 KB Output is correct
88 Correct 3 ms 5844 KB Output is correct
89 Correct 5 ms 5844 KB Output is correct
90 Correct 5 ms 5844 KB Output is correct
91 Correct 3 ms 5844 KB Output is correct
92 Correct 4 ms 6612 KB Output is correct
93 Correct 5 ms 9044 KB Output is correct
94 Correct 5 ms 8276 KB Output is correct
95 Correct 3 ms 5460 KB Output is correct
96 Correct 3 ms 4820 KB Output is correct
97 Correct 3 ms 5076 KB Output is correct
98 Correct 10 ms 17424 KB Output is correct
99 Correct 3 ms 6168 KB Output is correct
100 Correct 16 ms 25292 KB Output is correct
101 Correct 18 ms 28372 KB Output is correct
102 Correct 19 ms 28508 KB Output is correct
103 Correct 22 ms 33236 KB Output is correct
104 Correct 23 ms 33264 KB Output is correct
105 Correct 32 ms 45284 KB Output is correct
106 Correct 42 ms 61508 KB Output is correct
107 Correct 41 ms 56936 KB Output is correct
108 Correct 24 ms 34444 KB Output is correct
109 Correct 18 ms 28440 KB Output is correct
110 Correct 19 ms 28976 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 724 KB Output is correct
2 Correct 0 ms 680 KB Output is correct
3 Correct 1 ms 596 KB Output is correct
4 Correct 1 ms 596 KB Output is correct
5 Correct 0 ms 596 KB Output is correct
6 Correct 1 ms 596 KB Output is correct
7 Correct 1 ms 724 KB Output is correct
8 Correct 2 ms 3412 KB Output is correct
9 Correct 2 ms 3412 KB Output is correct
10 Correct 6 ms 9300 KB Output is correct
11 Correct 5 ms 8404 KB Output is correct
12 Correct 4 ms 6612 KB Output is correct
13 Correct 5 ms 7636 KB Output is correct
14 Correct 5 ms 8020 KB Output is correct
15 Correct 5 ms 8148 KB Output is correct
16 Correct 5 ms 8404 KB Output is correct
17 Correct 2 ms 4180 KB Output is correct
18 Correct 3 ms 4820 KB Output is correct
19 Correct 3 ms 4820 KB Output is correct
20 Correct 3 ms 5204 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 5 ms 8276 KB Output is correct
23 Correct 5 ms 8276 KB Output is correct
24 Correct 4 ms 6100 KB Output is correct
25 Correct 3 ms 6100 KB Output is correct
26 Correct 4 ms 6100 KB Output is correct
27 Correct 4 ms 6100 KB Output is correct
28 Correct 4 ms 7636 KB Output is correct
29 Correct 1 ms 724 KB Output is correct
30 Correct 0 ms 596 KB Output is correct
31 Correct 1 ms 596 KB Output is correct
32 Correct 0 ms 596 KB Output is correct
33 Correct 2 ms 3412 KB Output is correct
34 Correct 2 ms 3412 KB Output is correct
35 Correct 1 ms 724 KB Output is correct
36 Correct 2 ms 3412 KB Output is correct
37 Correct 10 ms 17464 KB Output is correct
38 Correct 47 ms 84680 KB Output is correct
39 Correct 1 ms 596 KB Output is correct
40 Correct 0 ms 596 KB Output is correct
41 Correct 1 ms 724 KB Output is correct
42 Correct 1 ms 596 KB Output is correct
43 Correct 1 ms 724 KB Output is correct
44 Correct 2 ms 3412 KB Output is correct
45 Correct 2 ms 3412 KB Output is correct
46 Correct 46 ms 83884 KB Output is correct
47 Correct 47 ms 84180 KB Output is correct
48 Correct 44 ms 83848 KB Output is correct
49 Correct 46 ms 83852 KB Output is correct
50 Correct 44 ms 82508 KB Output is correct
51 Correct 3 ms 6100 KB Output is correct
52 Correct 0 ms 724 KB Output is correct
53 Correct 1 ms 728 KB Output is correct
54 Correct 0 ms 596 KB Output is correct
55 Correct 0 ms 596 KB Output is correct
56 Correct 0 ms 596 KB Output is correct
57 Correct 1 ms 596 KB Output is correct
58 Correct 1 ms 596 KB Output is correct
59 Correct 1 ms 664 KB Output is correct
60 Correct 1 ms 724 KB Output is correct
61 Correct 1 ms 596 KB Output is correct
62 Correct 1 ms 596 KB Output is correct
63 Correct 1 ms 724 KB Output is correct
64 Correct 1 ms 596 KB Output is correct
65 Correct 1 ms 724 KB Output is correct
66 Correct 1 ms 724 KB Output is correct
67 Correct 1 ms 724 KB Output is correct
68 Correct 1 ms 796 KB Output is correct
69 Correct 1 ms 724 KB Output is correct
70 Correct 1 ms 728 KB Output is correct
71 Correct 1 ms 732 KB Output is correct
72 Correct 1 ms 724 KB Output is correct
73 Correct 1 ms 724 KB Output is correct
74 Correct 1 ms 728 KB Output is correct
75 Correct 1 ms 728 KB Output is correct
76 Correct 1 ms 724 KB Output is correct
77 Correct 1 ms 724 KB Output is correct
78 Correct 1 ms 724 KB Output is correct
79 Correct 1 ms 804 KB Output is correct
80 Correct 1 ms 732 KB Output is correct
81 Correct 1 ms 724 KB Output is correct
82 Correct 1 ms 724 KB Output is correct
83 Correct 1 ms 796 KB Output is correct
84 Correct 1 ms 736 KB Output is correct
85 Correct 1 ms 736 KB Output is correct
86 Correct 1 ms 724 KB Output is correct
87 Correct 1 ms 856 KB Output is correct
88 Correct 1 ms 672 KB Output is correct
89 Correct 1 ms 732 KB Output is correct
90 Correct 2 ms 3480 KB Output is correct
91 Correct 2 ms 3356 KB Output is correct
92 Correct 2 ms 3356 KB Output is correct
93 Correct 4 ms 5844 KB Output is correct
94 Correct 3 ms 5592 KB Output is correct
95 Correct 4 ms 5744 KB Output is correct
96 Correct 3 ms 5204 KB Output is correct
97 Correct 3 ms 5152 KB Output is correct
98 Correct 3 ms 5460 KB Output is correct
99 Correct 3 ms 5460 KB Output is correct
100 Correct 3 ms 5076 KB Output is correct
101 Correct 4 ms 5076 KB Output is correct
102 Correct 3 ms 4436 KB Output is correct
103 Correct 2 ms 4444 KB Output is correct
104 Correct 3 ms 4576 KB Output is correct
105 Correct 3 ms 5472 KB Output is correct
106 Correct 3 ms 4820 KB Output is correct
107 Correct 4 ms 6640 KB Output is correct
108 Correct 3 ms 5076 KB Output is correct
109 Correct 3 ms 5844 KB Output is correct
110 Correct 3 ms 5844 KB Output is correct
111 Correct 3 ms 5844 KB Output is correct
112 Correct 5 ms 5844 KB Output is correct
113 Correct 5 ms 5844 KB Output is correct
114 Correct 3 ms 5844 KB Output is correct
115 Correct 4 ms 6612 KB Output is correct
116 Correct 5 ms 9044 KB Output is correct
117 Correct 5 ms 8276 KB Output is correct
118 Correct 3 ms 5460 KB Output is correct
119 Correct 3 ms 4820 KB Output is correct
120 Correct 3 ms 5076 KB Output is correct
121 Correct 10 ms 17424 KB Output is correct
122 Correct 3 ms 6168 KB Output is correct
123 Correct 16 ms 25292 KB Output is correct
124 Correct 18 ms 28372 KB Output is correct
125 Correct 19 ms 28508 KB Output is correct
126 Correct 22 ms 33236 KB Output is correct
127 Correct 23 ms 33264 KB Output is correct
128 Correct 32 ms 45284 KB Output is correct
129 Correct 42 ms 61508 KB Output is correct
130 Correct 41 ms 56936 KB Output is correct
131 Correct 24 ms 34444 KB Output is correct
132 Correct 18 ms 28440 KB Output is correct
133 Correct 19 ms 28976 KB Output is correct
134 Correct 81 ms 127812 KB Output is correct
135 Correct 94 ms 145968 KB Output is correct
136 Correct 90 ms 145940 KB Output is correct
137 Correct 92 ms 144000 KB Output is correct
138 Correct 125 ms 164688 KB Output is correct
139 Correct 203 ms 264156 KB Output is correct
140 Correct 232 ms 350284 KB Output is correct
141 Correct 213 ms 326112 KB Output is correct
142 Correct 201 ms 194564 KB Output is correct
143 Correct 88 ms 144012 KB Output is correct
144 Correct 91 ms 146124 KB Output is correct