답안 #831381

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
831381 2023-08-20T07:51:54 Z CSQ31 Cookies (JOI23_cookies) C++17
100 / 100
141 ms 235336 KB
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define fi first
#define se second
#define sz(a) (int)(a.size())
#define all(a) a.begin(),a.end()
#define lb lower_bound
#define ub upper_bound
#define owo ios_base::sync_with_stdio(0);cin.tie(0);
#define debug(...) fprintf(stderr, __VA_ARGS__),fflush(stderr)
#define time__(d) for(long blockTime = 0; (blockTime == 0 ? (blockTime=clock()) != 0 : false);\
debug("%s time : %.4fs\n", d, (double)(clock() - blockTime) / CLOCKS_PER_SEC))
typedef long long int ll;
typedef long double ld;
typedef pair<ll,ll> PII;
typedef pair<int,int> pii;
typedef vector<vector<int>> vii;
typedef vector<vector<ll>> VII;
ll gcd(ll a,ll b){if(!b)return a;else return gcd(b,a%b);}
const int MAXN = 15001;
vector<bitset<MAXN>>dp[MAXN]; //this many items
bitset<MAXN>full[MAXN];
int a[MAXN],b[MAXN+1],c[MAXN],cnt[MAXN];
int main()
{
	owo
	int n,m,s = 0;
	cin>>n;
	for(int i=0;i<n;i++){
		cin>>a[i];
		cnt[a[i]]++;
		s+=a[i];
	}
	int cur = n,sum = 0;
	for(int i=1;i<MAXN;i++){
		sum+=cnt[i]*i;
		cur-=cnt[i];
		c[i] = sum + cur*i;
	}
	int prev = 0;
	for(int i=1;i<MAXN;i++){
		full[i] = full[i-1];
		while(prev<=c[i]){
			full[i][prev] = 1;
			prev++;
		}	
		prev--;
	}
	cin>>m;
	for(int i=0;i<m;i++)cin>>b[i];
	sort(b,b+m,greater<int>());
	
	dp[0].resize(1);
	dp[0][0][0] = 1;
	for(int i=0;i<m;i++){
		int k = s/b[i];
		dp[i+1].resize(k+1);
		for(int j=0;j<sz(dp[i]);j++)dp[i+1][j] = dp[i][j];
		for(int j=1;j<=k;j++){
			dp[i+1][j] |= dp[i+1][j-1] << b[i];
			dp[i+1][j] &= full[j];
		}
	}
	vector<int>item;
	cur = -1;
	for(int i=0;i<sz(dp[m]);i++){
		if(dp[m][i][s]){
			cur = i;
			break;
		}
	}
	
	if(cur==-1){
		cout<<-1;
		return 0;
	}
	for(int i=m;i>0;i--){
		//cout<<cur<<" "<<sz(dp[i])<<'\n';
		while(s >= b[i-1] && cur){
			if(dp[i][cur][s]){
				if(dp[i][cur-1][s-b[i-1]]){
					item.pb(b[i-1]);
					cur--;
					s-=b[i-1];
				}else{
					if(dp[i-1][cur-1][s-b[i-1]]){
						item.pb(b[i-1]);
						cur--;
						s-=b[i-1];
					}
					break;					
				}
			}
			
		}
		
	}
	multiset<pii,greater<pii>>ss;
	for(int i=0;i<n;i++)ss.insert({a[i],i});
	
	cout<<sz(item)<<'\n';
	for(int x:item){
		vector<int>sol,addback;
		for(int i=0;i<x;i++){
			int j = ss.begin()->se;
			ss.erase(ss.begin());
			sol.pb(j+1);
			a[j]--;
			if(a[j])addback.pb(j);
		}
		for(int x:addback)ss.insert({a[x],x});
		cout<<x<<" ";
		for(int x:sol)cout<<x<<" ";
		cout<<'\n';
		
	}
	
}
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 28244 KB Output is correct
2 Correct 12 ms 28244 KB Output is correct
3 Correct 11 ms 28244 KB Output is correct
4 Correct 12 ms 28236 KB Output is correct
5 Correct 12 ms 28232 KB Output is correct
6 Correct 12 ms 28340 KB Output is correct
7 Correct 15 ms 28328 KB Output is correct
8 Correct 13 ms 29244 KB Output is correct
9 Correct 16 ms 28244 KB Output is correct
10 Correct 16 ms 35080 KB Output is correct
11 Correct 12 ms 29232 KB Output is correct
12 Correct 14 ms 31524 KB Output is correct
13 Correct 13 ms 29252 KB Output is correct
14 Correct 13 ms 29396 KB Output is correct
15 Correct 14 ms 29380 KB Output is correct
16 Correct 13 ms 29400 KB Output is correct
17 Correct 12 ms 28584 KB Output is correct
18 Correct 13 ms 29208 KB Output is correct
19 Correct 13 ms 28460 KB Output is correct
20 Correct 14 ms 28296 KB Output is correct
21 Correct 13 ms 29224 KB Output is correct
22 Correct 14 ms 31296 KB Output is correct
23 Correct 14 ms 30908 KB Output is correct
24 Correct 12 ms 29484 KB Output is correct
25 Correct 13 ms 29444 KB Output is correct
26 Correct 13 ms 28628 KB Output is correct
27 Correct 13 ms 28528 KB Output is correct
28 Correct 12 ms 29088 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 28244 KB Output is correct
2 Correct 11 ms 28312 KB Output is correct
3 Correct 12 ms 28332 KB Output is correct
4 Correct 12 ms 28244 KB Output is correct
5 Correct 13 ms 29228 KB Output is correct
6 Correct 13 ms 28244 KB Output is correct
7 Correct 12 ms 28284 KB Output is correct
8 Correct 13 ms 29172 KB Output is correct
9 Correct 16 ms 33876 KB Output is correct
10 Correct 33 ms 56068 KB Output is correct
11 Correct 13 ms 28240 KB Output is correct
12 Correct 12 ms 28244 KB Output is correct
13 Correct 12 ms 28220 KB Output is correct
14 Correct 12 ms 28244 KB Output is correct
15 Correct 12 ms 28300 KB Output is correct
16 Correct 12 ms 28340 KB Output is correct
17 Correct 12 ms 28360 KB Output is correct
18 Correct 18 ms 35340 KB Output is correct
19 Correct 22 ms 37600 KB Output is correct
20 Correct 15 ms 28756 KB Output is correct
21 Correct 14 ms 28500 KB Output is correct
22 Correct 14 ms 28584 KB Output is correct
23 Correct 12 ms 28328 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 28240 KB Output is correct
2 Correct 11 ms 28252 KB Output is correct
3 Correct 12 ms 28244 KB Output is correct
4 Correct 12 ms 28328 KB Output is correct
5 Correct 12 ms 28244 KB Output is correct
6 Correct 12 ms 28300 KB Output is correct
7 Correct 11 ms 28244 KB Output is correct
8 Correct 12 ms 28352 KB Output is correct
9 Correct 14 ms 28324 KB Output is correct
10 Correct 12 ms 28244 KB Output is correct
11 Correct 12 ms 28252 KB Output is correct
12 Correct 11 ms 28244 KB Output is correct
13 Correct 12 ms 28244 KB Output is correct
14 Correct 12 ms 28272 KB Output is correct
15 Correct 12 ms 28332 KB Output is correct
16 Correct 12 ms 28244 KB Output is correct
17 Correct 12 ms 28332 KB Output is correct
18 Correct 12 ms 28244 KB Output is correct
19 Correct 12 ms 28372 KB Output is correct
20 Correct 12 ms 28280 KB Output is correct
21 Correct 12 ms 28224 KB Output is correct
22 Correct 12 ms 28244 KB Output is correct
23 Correct 12 ms 28244 KB Output is correct
24 Correct 12 ms 28372 KB Output is correct
25 Correct 11 ms 28244 KB Output is correct
26 Correct 11 ms 28344 KB Output is correct
27 Correct 11 ms 28372 KB Output is correct
28 Correct 11 ms 28336 KB Output is correct
29 Correct 11 ms 28328 KB Output is correct
30 Correct 12 ms 28372 KB Output is correct
31 Correct 12 ms 28336 KB Output is correct
32 Correct 12 ms 28304 KB Output is correct
33 Correct 12 ms 28372 KB Output is correct
34 Correct 12 ms 28244 KB Output is correct
35 Correct 12 ms 28372 KB Output is correct
36 Correct 13 ms 28372 KB Output is correct
37 Correct 12 ms 28244 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 28244 KB Output is correct
2 Correct 12 ms 28244 KB Output is correct
3 Correct 11 ms 28244 KB Output is correct
4 Correct 12 ms 28236 KB Output is correct
5 Correct 12 ms 28232 KB Output is correct
6 Correct 12 ms 28340 KB Output is correct
7 Correct 15 ms 28328 KB Output is correct
8 Correct 13 ms 29244 KB Output is correct
9 Correct 16 ms 28244 KB Output is correct
10 Correct 16 ms 35080 KB Output is correct
11 Correct 12 ms 29232 KB Output is correct
12 Correct 14 ms 31524 KB Output is correct
13 Correct 13 ms 29252 KB Output is correct
14 Correct 13 ms 29396 KB Output is correct
15 Correct 14 ms 29380 KB Output is correct
16 Correct 13 ms 29400 KB Output is correct
17 Correct 12 ms 28584 KB Output is correct
18 Correct 13 ms 29208 KB Output is correct
19 Correct 13 ms 28460 KB Output is correct
20 Correct 14 ms 28296 KB Output is correct
21 Correct 13 ms 29224 KB Output is correct
22 Correct 14 ms 31296 KB Output is correct
23 Correct 14 ms 30908 KB Output is correct
24 Correct 12 ms 29484 KB Output is correct
25 Correct 13 ms 29444 KB Output is correct
26 Correct 13 ms 28628 KB Output is correct
27 Correct 13 ms 28528 KB Output is correct
28 Correct 12 ms 29088 KB Output is correct
29 Correct 12 ms 28240 KB Output is correct
30 Correct 11 ms 28252 KB Output is correct
31 Correct 12 ms 28244 KB Output is correct
32 Correct 12 ms 28328 KB Output is correct
33 Correct 12 ms 28244 KB Output is correct
34 Correct 12 ms 28300 KB Output is correct
35 Correct 11 ms 28244 KB Output is correct
36 Correct 12 ms 28352 KB Output is correct
37 Correct 14 ms 28324 KB Output is correct
38 Correct 12 ms 28244 KB Output is correct
39 Correct 12 ms 28252 KB Output is correct
40 Correct 11 ms 28244 KB Output is correct
41 Correct 12 ms 28244 KB Output is correct
42 Correct 12 ms 28272 KB Output is correct
43 Correct 12 ms 28332 KB Output is correct
44 Correct 12 ms 28244 KB Output is correct
45 Correct 12 ms 28332 KB Output is correct
46 Correct 12 ms 28244 KB Output is correct
47 Correct 12 ms 28372 KB Output is correct
48 Correct 12 ms 28280 KB Output is correct
49 Correct 12 ms 28224 KB Output is correct
50 Correct 12 ms 28244 KB Output is correct
51 Correct 12 ms 28244 KB Output is correct
52 Correct 12 ms 28372 KB Output is correct
53 Correct 11 ms 28244 KB Output is correct
54 Correct 11 ms 28344 KB Output is correct
55 Correct 11 ms 28372 KB Output is correct
56 Correct 11 ms 28336 KB Output is correct
57 Correct 11 ms 28328 KB Output is correct
58 Correct 12 ms 28372 KB Output is correct
59 Correct 12 ms 28336 KB Output is correct
60 Correct 12 ms 28304 KB Output is correct
61 Correct 12 ms 28372 KB Output is correct
62 Correct 12 ms 28244 KB Output is correct
63 Correct 12 ms 28372 KB Output is correct
64 Correct 13 ms 28372 KB Output is correct
65 Correct 12 ms 28244 KB Output is correct
66 Correct 12 ms 28328 KB Output is correct
67 Correct 13 ms 29228 KB Output is correct
68 Correct 12 ms 28392 KB Output is correct
69 Correct 12 ms 28372 KB Output is correct
70 Correct 12 ms 28584 KB Output is correct
71 Correct 15 ms 29908 KB Output is correct
72 Correct 13 ms 29420 KB Output is correct
73 Correct 12 ms 28492 KB Output is correct
74 Correct 12 ms 28604 KB Output is correct
75 Correct 13 ms 29776 KB Output is correct
76 Correct 16 ms 29780 KB Output is correct
77 Correct 13 ms 29860 KB Output is correct
78 Correct 13 ms 29592 KB Output is correct
79 Correct 15 ms 29908 KB Output is correct
80 Correct 15 ms 29820 KB Output is correct
81 Correct 12 ms 28600 KB Output is correct
82 Correct 13 ms 30164 KB Output is correct
83 Correct 13 ms 28372 KB Output is correct
84 Correct 14 ms 30500 KB Output is correct
85 Correct 13 ms 29880 KB Output is correct
86 Correct 14 ms 31188 KB Output is correct
87 Correct 13 ms 30888 KB Output is correct
88 Correct 14 ms 31060 KB Output is correct
89 Correct 14 ms 31316 KB Output is correct
90 Correct 14 ms 30808 KB Output is correct
91 Correct 13 ms 30884 KB Output is correct
92 Correct 14 ms 32148 KB Output is correct
93 Correct 14 ms 32340 KB Output is correct
94 Correct 15 ms 31948 KB Output is correct
95 Correct 14 ms 31008 KB Output is correct
96 Correct 13 ms 30164 KB Output is correct
97 Correct 13 ms 30164 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 28244 KB Output is correct
2 Correct 12 ms 28244 KB Output is correct
3 Correct 11 ms 28244 KB Output is correct
4 Correct 12 ms 28236 KB Output is correct
5 Correct 12 ms 28232 KB Output is correct
6 Correct 12 ms 28340 KB Output is correct
7 Correct 15 ms 28328 KB Output is correct
8 Correct 13 ms 29244 KB Output is correct
9 Correct 16 ms 28244 KB Output is correct
10 Correct 16 ms 35080 KB Output is correct
11 Correct 12 ms 29232 KB Output is correct
12 Correct 14 ms 31524 KB Output is correct
13 Correct 13 ms 29252 KB Output is correct
14 Correct 13 ms 29396 KB Output is correct
15 Correct 14 ms 29380 KB Output is correct
16 Correct 13 ms 29400 KB Output is correct
17 Correct 12 ms 28584 KB Output is correct
18 Correct 13 ms 29208 KB Output is correct
19 Correct 13 ms 28460 KB Output is correct
20 Correct 14 ms 28296 KB Output is correct
21 Correct 13 ms 29224 KB Output is correct
22 Correct 14 ms 31296 KB Output is correct
23 Correct 14 ms 30908 KB Output is correct
24 Correct 12 ms 29484 KB Output is correct
25 Correct 13 ms 29444 KB Output is correct
26 Correct 13 ms 28628 KB Output is correct
27 Correct 13 ms 28528 KB Output is correct
28 Correct 12 ms 29088 KB Output is correct
29 Correct 12 ms 28240 KB Output is correct
30 Correct 11 ms 28252 KB Output is correct
31 Correct 12 ms 28244 KB Output is correct
32 Correct 12 ms 28328 KB Output is correct
33 Correct 12 ms 28244 KB Output is correct
34 Correct 12 ms 28300 KB Output is correct
35 Correct 11 ms 28244 KB Output is correct
36 Correct 12 ms 28352 KB Output is correct
37 Correct 14 ms 28324 KB Output is correct
38 Correct 12 ms 28244 KB Output is correct
39 Correct 12 ms 28252 KB Output is correct
40 Correct 11 ms 28244 KB Output is correct
41 Correct 12 ms 28244 KB Output is correct
42 Correct 12 ms 28272 KB Output is correct
43 Correct 12 ms 28332 KB Output is correct
44 Correct 12 ms 28244 KB Output is correct
45 Correct 12 ms 28332 KB Output is correct
46 Correct 12 ms 28244 KB Output is correct
47 Correct 12 ms 28372 KB Output is correct
48 Correct 12 ms 28280 KB Output is correct
49 Correct 12 ms 28224 KB Output is correct
50 Correct 12 ms 28244 KB Output is correct
51 Correct 12 ms 28244 KB Output is correct
52 Correct 12 ms 28372 KB Output is correct
53 Correct 11 ms 28244 KB Output is correct
54 Correct 11 ms 28344 KB Output is correct
55 Correct 11 ms 28372 KB Output is correct
56 Correct 11 ms 28336 KB Output is correct
57 Correct 11 ms 28328 KB Output is correct
58 Correct 12 ms 28372 KB Output is correct
59 Correct 12 ms 28336 KB Output is correct
60 Correct 12 ms 28304 KB Output is correct
61 Correct 12 ms 28372 KB Output is correct
62 Correct 12 ms 28244 KB Output is correct
63 Correct 12 ms 28372 KB Output is correct
64 Correct 13 ms 28372 KB Output is correct
65 Correct 12 ms 28244 KB Output is correct
66 Correct 12 ms 28328 KB Output is correct
67 Correct 13 ms 29228 KB Output is correct
68 Correct 12 ms 28392 KB Output is correct
69 Correct 12 ms 28372 KB Output is correct
70 Correct 12 ms 28584 KB Output is correct
71 Correct 15 ms 29908 KB Output is correct
72 Correct 13 ms 29420 KB Output is correct
73 Correct 12 ms 28492 KB Output is correct
74 Correct 12 ms 28604 KB Output is correct
75 Correct 13 ms 29776 KB Output is correct
76 Correct 16 ms 29780 KB Output is correct
77 Correct 13 ms 29860 KB Output is correct
78 Correct 13 ms 29592 KB Output is correct
79 Correct 15 ms 29908 KB Output is correct
80 Correct 15 ms 29820 KB Output is correct
81 Correct 12 ms 28600 KB Output is correct
82 Correct 13 ms 30164 KB Output is correct
83 Correct 13 ms 28372 KB Output is correct
84 Correct 14 ms 30500 KB Output is correct
85 Correct 13 ms 29880 KB Output is correct
86 Correct 14 ms 31188 KB Output is correct
87 Correct 13 ms 30888 KB Output is correct
88 Correct 14 ms 31060 KB Output is correct
89 Correct 14 ms 31316 KB Output is correct
90 Correct 14 ms 30808 KB Output is correct
91 Correct 13 ms 30884 KB Output is correct
92 Correct 14 ms 32148 KB Output is correct
93 Correct 14 ms 32340 KB Output is correct
94 Correct 15 ms 31948 KB Output is correct
95 Correct 14 ms 31008 KB Output is correct
96 Correct 13 ms 30164 KB Output is correct
97 Correct 13 ms 30164 KB Output is correct
98 Correct 15 ms 33876 KB Output is correct
99 Correct 12 ms 28372 KB Output is correct
100 Correct 18 ms 36740 KB Output is correct
101 Correct 14 ms 30676 KB Output is correct
102 Correct 14 ms 30852 KB Output is correct
103 Correct 24 ms 45176 KB Output is correct
104 Correct 22 ms 43724 KB Output is correct
105 Correct 30 ms 59528 KB Output is correct
106 Correct 33 ms 61528 KB Output is correct
107 Correct 28 ms 55564 KB Output is correct
108 Correct 25 ms 49124 KB Output is correct
109 Correct 20 ms 39508 KB Output is correct
110 Correct 19 ms 39508 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 28244 KB Output is correct
2 Correct 12 ms 28244 KB Output is correct
3 Correct 11 ms 28244 KB Output is correct
4 Correct 12 ms 28236 KB Output is correct
5 Correct 12 ms 28232 KB Output is correct
6 Correct 12 ms 28340 KB Output is correct
7 Correct 15 ms 28328 KB Output is correct
8 Correct 13 ms 29244 KB Output is correct
9 Correct 16 ms 28244 KB Output is correct
10 Correct 16 ms 35080 KB Output is correct
11 Correct 12 ms 29232 KB Output is correct
12 Correct 14 ms 31524 KB Output is correct
13 Correct 13 ms 29252 KB Output is correct
14 Correct 13 ms 29396 KB Output is correct
15 Correct 14 ms 29380 KB Output is correct
16 Correct 13 ms 29400 KB Output is correct
17 Correct 12 ms 28584 KB Output is correct
18 Correct 13 ms 29208 KB Output is correct
19 Correct 13 ms 28460 KB Output is correct
20 Correct 14 ms 28296 KB Output is correct
21 Correct 13 ms 29224 KB Output is correct
22 Correct 14 ms 31296 KB Output is correct
23 Correct 14 ms 30908 KB Output is correct
24 Correct 12 ms 29484 KB Output is correct
25 Correct 13 ms 29444 KB Output is correct
26 Correct 13 ms 28628 KB Output is correct
27 Correct 13 ms 28528 KB Output is correct
28 Correct 12 ms 29088 KB Output is correct
29 Correct 11 ms 28244 KB Output is correct
30 Correct 11 ms 28312 KB Output is correct
31 Correct 12 ms 28332 KB Output is correct
32 Correct 12 ms 28244 KB Output is correct
33 Correct 13 ms 29228 KB Output is correct
34 Correct 13 ms 28244 KB Output is correct
35 Correct 12 ms 28284 KB Output is correct
36 Correct 13 ms 29172 KB Output is correct
37 Correct 16 ms 33876 KB Output is correct
38 Correct 33 ms 56068 KB Output is correct
39 Correct 13 ms 28240 KB Output is correct
40 Correct 12 ms 28244 KB Output is correct
41 Correct 12 ms 28220 KB Output is correct
42 Correct 12 ms 28244 KB Output is correct
43 Correct 12 ms 28300 KB Output is correct
44 Correct 12 ms 28340 KB Output is correct
45 Correct 12 ms 28360 KB Output is correct
46 Correct 18 ms 35340 KB Output is correct
47 Correct 22 ms 37600 KB Output is correct
48 Correct 15 ms 28756 KB Output is correct
49 Correct 14 ms 28500 KB Output is correct
50 Correct 14 ms 28584 KB Output is correct
51 Correct 12 ms 28328 KB Output is correct
52 Correct 12 ms 28240 KB Output is correct
53 Correct 11 ms 28252 KB Output is correct
54 Correct 12 ms 28244 KB Output is correct
55 Correct 12 ms 28328 KB Output is correct
56 Correct 12 ms 28244 KB Output is correct
57 Correct 12 ms 28300 KB Output is correct
58 Correct 11 ms 28244 KB Output is correct
59 Correct 12 ms 28352 KB Output is correct
60 Correct 14 ms 28324 KB Output is correct
61 Correct 12 ms 28244 KB Output is correct
62 Correct 12 ms 28252 KB Output is correct
63 Correct 11 ms 28244 KB Output is correct
64 Correct 12 ms 28244 KB Output is correct
65 Correct 12 ms 28272 KB Output is correct
66 Correct 12 ms 28332 KB Output is correct
67 Correct 12 ms 28244 KB Output is correct
68 Correct 12 ms 28332 KB Output is correct
69 Correct 12 ms 28244 KB Output is correct
70 Correct 12 ms 28372 KB Output is correct
71 Correct 12 ms 28280 KB Output is correct
72 Correct 12 ms 28224 KB Output is correct
73 Correct 12 ms 28244 KB Output is correct
74 Correct 12 ms 28244 KB Output is correct
75 Correct 12 ms 28372 KB Output is correct
76 Correct 11 ms 28244 KB Output is correct
77 Correct 11 ms 28344 KB Output is correct
78 Correct 11 ms 28372 KB Output is correct
79 Correct 11 ms 28336 KB Output is correct
80 Correct 11 ms 28328 KB Output is correct
81 Correct 12 ms 28372 KB Output is correct
82 Correct 12 ms 28336 KB Output is correct
83 Correct 12 ms 28304 KB Output is correct
84 Correct 12 ms 28372 KB Output is correct
85 Correct 12 ms 28244 KB Output is correct
86 Correct 12 ms 28372 KB Output is correct
87 Correct 13 ms 28372 KB Output is correct
88 Correct 12 ms 28244 KB Output is correct
89 Correct 12 ms 28328 KB Output is correct
90 Correct 13 ms 29228 KB Output is correct
91 Correct 12 ms 28392 KB Output is correct
92 Correct 12 ms 28372 KB Output is correct
93 Correct 12 ms 28584 KB Output is correct
94 Correct 15 ms 29908 KB Output is correct
95 Correct 13 ms 29420 KB Output is correct
96 Correct 12 ms 28492 KB Output is correct
97 Correct 12 ms 28604 KB Output is correct
98 Correct 13 ms 29776 KB Output is correct
99 Correct 16 ms 29780 KB Output is correct
100 Correct 13 ms 29860 KB Output is correct
101 Correct 13 ms 29592 KB Output is correct
102 Correct 15 ms 29908 KB Output is correct
103 Correct 15 ms 29820 KB Output is correct
104 Correct 12 ms 28600 KB Output is correct
105 Correct 13 ms 30164 KB Output is correct
106 Correct 13 ms 28372 KB Output is correct
107 Correct 14 ms 30500 KB Output is correct
108 Correct 13 ms 29880 KB Output is correct
109 Correct 14 ms 31188 KB Output is correct
110 Correct 13 ms 30888 KB Output is correct
111 Correct 14 ms 31060 KB Output is correct
112 Correct 14 ms 31316 KB Output is correct
113 Correct 14 ms 30808 KB Output is correct
114 Correct 13 ms 30884 KB Output is correct
115 Correct 14 ms 32148 KB Output is correct
116 Correct 14 ms 32340 KB Output is correct
117 Correct 15 ms 31948 KB Output is correct
118 Correct 14 ms 31008 KB Output is correct
119 Correct 13 ms 30164 KB Output is correct
120 Correct 13 ms 30164 KB Output is correct
121 Correct 15 ms 33876 KB Output is correct
122 Correct 12 ms 28372 KB Output is correct
123 Correct 18 ms 36740 KB Output is correct
124 Correct 14 ms 30676 KB Output is correct
125 Correct 14 ms 30852 KB Output is correct
126 Correct 24 ms 45176 KB Output is correct
127 Correct 22 ms 43724 KB Output is correct
128 Correct 30 ms 59528 KB Output is correct
129 Correct 33 ms 61528 KB Output is correct
130 Correct 28 ms 55564 KB Output is correct
131 Correct 25 ms 49124 KB Output is correct
132 Correct 20 ms 39508 KB Output is correct
133 Correct 19 ms 39508 KB Output is correct
134 Correct 40 ms 68052 KB Output is correct
135 Correct 17 ms 33544 KB Output is correct
136 Correct 14 ms 29148 KB Output is correct
137 Correct 58 ms 95288 KB Output is correct
138 Correct 58 ms 97428 KB Output is correct
139 Correct 141 ms 225112 KB Output is correct
140 Correct 132 ms 235336 KB Output is correct
141 Correct 108 ms 187328 KB Output is correct
142 Correct 93 ms 155648 KB Output is correct
143 Correct 49 ms 83820 KB Output is correct
144 Correct 49 ms 84172 KB Output is correct