Submission #521522

# Submission time Handle Problem Language Result Execution time Memory
521522 2022-02-02T10:33:11 Z amunduzbaev Food Court (JOI21_foodcourt) C++14
100 / 100
978 ms 63560 KB
#include "bits/stdc++.h"
using namespace std;

#define ar array
#define int long long

const int N = 25e4 + 5;

struct node{
	int t, l, r, c, k, a, b;
};
struct BIT{
	int tree[N<<2], p[2][N<<2];
	void push(int x, int lx, int rx){
		if(lx == rx) return;
		tree[x<<1] += p[0][x], tree[x<<1|1] += p[0][x];
		p[0][x<<1] += p[0][x], p[0][x<<1|1] += p[0][x];
		p[1][x<<1] += p[0][x], p[1][x<<1|1] += p[0][x];
		
		tree[x<<1] = max(tree[x<<1], p[1][x]);
		p[1][x<<1] = max(p[1][x<<1], p[1][x]);
		//~ p[0][x<<1] = max(p[0][x<<1], p[1][x]);
		tree[x<<1|1] = max(tree[x<<1|1], p[1][x]);
		p[1][x<<1|1] = max(p[1][x<<1|1], p[1][x]);
		//~ p[0][x<<1|1] = max(p[0][x<<1|1], p[1][x]);
		p[0][x] = 0, p[1][x] = -1e18;
	}
	
	void add(int l, int r, int v, int lx = 0, int rx = N, int x = 1){
		if(lx > r || rx < l) return;
		push(x, lx, rx);
		if(lx >= l && rx <= r){
			tree[x] += v, p[0][x] += v, p[1][x] += v;
			return;
		} int m = (lx + rx) >> 1;
		add(l, r, v, lx, m, x<<1), 
		add(l, r, v, m+1, rx, x<<1|1);
		tree[x] = max(tree[x<<1], tree[x<<1|1]);
	}
	
	void umax(int l, int r, int v, int lx = 0, int rx = N, int x = 1){
		if(lx > r || rx < l) return;
		if(lx >= l && rx <= r){
			tree[x] = max(tree[x], v);
			p[1][x] = max(p[1][x], v);
			//~ p[0][x] = max(p[0][x], v);
			return;
		} int m = (lx + rx) >> 1;
		push(x, lx, rx);
		umax(l, r, v, lx, m, x<<1), 
		umax(l, r, v, m+1, rx, x<<1|1);
		tree[x] = max(tree[x<<1], tree[x<<1|1]);
	}
	
	int get(int i, int lx = 0, int rx = N, int x = 1){
		if(lx == rx) return tree[x];
		push(x, lx, rx);
		int m = (lx + rx) >> 1;
		if(i <= m) return get(i, lx, m, x<<1);
		else return get(i, m+1, rx, x<<1|1);
	}
}cur, tot;

struct ST2{
	ar<int, 2> tree[N<<2];
	int p[N<<2];
	void push(int x, int lx, int rx){
		if(lx == rx) return;
		tree[x<<1][0] += p[x], tree[x<<1|1][0] += p[x];
		p[x<<1] += p[x], p[x<<1|1] += p[x];
		p[x] = 0;
	}
	
	void sett(int i, int v, int lx = 0, int rx = N, int x = 1){
		if(lx == rx) { tree[x] = {v, i}; return; }
		int m = (lx + rx) >> 1;
		push(x, lx, rx);
		if(i <= m) sett(i, v, lx, m, x<<1);
		else sett(i, v, m+1, rx, x<<1|1);
		tree[x] = min(tree[x<<1], tree[x<<1|1]);
	}
	
	void add(int l, int r, int v, int lx = 0, int rx = N, int x = 1){
		if(lx > r || rx < l) return;
		if(lx >= l && rx <= r){
			tree[x][0] += v;
			p[x] += v; return;
		} int m = (lx + rx) >> 1;
		push(x, lx, rx);
		add(l, r, v, lx, m, x<<1), 
		add(l, r, v, m+1, rx, x<<1|1);
		tree[x] = min(tree[x<<1], tree[x<<1|1]);
	}
	
	ar<int, 2> get(int l, int r, int lx = 0, int rx = N, int x = 1){
		if(lx > r || rx < l) return {(int)1e18, (int)1e18};
		if(lx >= l && rx <= r) return tree[x];
		int m = (lx + rx) >> 1;
		push(x, lx, rx);
		return min(get(l, r, lx, m, x<<1), get(l, r, m+1, rx, x<<1|1));
	}
}tree;

int res[N], pos[N];
vector<int> qq[N];
node a[N];

signed main(){
	ios::sync_with_stdio(0); cin.tie(0);
	//~ memset(cur.p[1], 128, sizeof cur.p[1]);
	
	int n, m, q; cin>>n>>m>>q;
	for(int i=0;i<q;i++){
		cin>>a[i].t;
		if(a[i].t == 1){
			cin>>a[i].l>>a[i].r>>a[i].c>>a[i].k;
			cur.add(a[i].l, a[i].r, a[i].k);
			tot.add(a[i].l, a[i].r, a[i].k);
		} if(a[i].t == 2){
			cin>>a[i].l>>a[i].r>>a[i].k;
			cur.add(a[i].l, a[i].r, -a[i].k);
			cur.umax(a[i].l, a[i].r, 0);
		} if(a[i].t == 3){
			cin>>a[i].a>>a[i].b;
			int c = cur.get(a[i].a), t = tot.get(a[i].a) - c;
			if(a[i].b > c) res[i] = 0;
			else {
				qq[a[i].a].push_back(i);
				pos[i] = t + a[i].b;
			}
		}
	}
	
	for(int i=1;i<=n;i++){
		sort(qq[i].begin(), qq[i].end(), [&](int i, int j){
			return (pos[i] > pos[j]);
		});
		
		if(qq[i].empty()) tree.sett(i, 1e18);
		else tree.sett(i, pos[qq[i].back()]);
	}
	
	for(auto x : a){
		if(x.t != 1) continue;
		tree.add(x.l, x.r, -x.k);
		auto mn = tree.get(x.l, x.r);
		while(mn[0] <= 0){
			int i = mn[1], last = qq[i].back();
			qq[i].pop_back();
			res[last] = x.c;
			if(qq[i].empty()) tree.sett(i, 1e18);
			else tree.sett(i, pos[qq[i].back()] - pos[last] + mn[0]);
			mn = tree.get(x.l, x.r);
		}
	}
	
	for(int i=0;i<q;i++){
		if(a[i].t == 3) cout<<res[i]<<"\n";
	} cout<<"\n";
}
# Verdict Execution time Memory Grader output
1 Correct 8 ms 6876 KB Output is correct
2 Correct 8 ms 6996 KB Output is correct
3 Correct 8 ms 6988 KB Output is correct
4 Correct 9 ms 6988 KB Output is correct
5 Correct 7 ms 6732 KB Output is correct
6 Correct 7 ms 6732 KB Output is correct
7 Correct 9 ms 6988 KB Output is correct
8 Correct 9 ms 7036 KB Output is correct
9 Correct 12 ms 6988 KB Output is correct
10 Correct 9 ms 6988 KB Output is correct
11 Correct 9 ms 6988 KB Output is correct
12 Correct 9 ms 6988 KB Output is correct
13 Correct 8 ms 7000 KB Output is correct
14 Correct 8 ms 7072 KB Output is correct
15 Correct 7 ms 6988 KB Output is correct
16 Correct 8 ms 6988 KB Output is correct
17 Correct 8 ms 6856 KB Output is correct
18 Correct 8 ms 7012 KB Output is correct
19 Correct 8 ms 6988 KB Output is correct
20 Correct 9 ms 6988 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 6876 KB Output is correct
2 Correct 8 ms 6996 KB Output is correct
3 Correct 8 ms 6988 KB Output is correct
4 Correct 9 ms 6988 KB Output is correct
5 Correct 7 ms 6732 KB Output is correct
6 Correct 7 ms 6732 KB Output is correct
7 Correct 9 ms 6988 KB Output is correct
8 Correct 9 ms 7036 KB Output is correct
9 Correct 12 ms 6988 KB Output is correct
10 Correct 9 ms 6988 KB Output is correct
11 Correct 9 ms 6988 KB Output is correct
12 Correct 9 ms 6988 KB Output is correct
13 Correct 8 ms 7000 KB Output is correct
14 Correct 8 ms 7072 KB Output is correct
15 Correct 7 ms 6988 KB Output is correct
16 Correct 8 ms 6988 KB Output is correct
17 Correct 8 ms 6856 KB Output is correct
18 Correct 8 ms 7012 KB Output is correct
19 Correct 8 ms 6988 KB Output is correct
20 Correct 9 ms 6988 KB Output is correct
21 Correct 9 ms 6988 KB Output is correct
22 Correct 8 ms 6988 KB Output is correct
23 Correct 9 ms 6968 KB Output is correct
24 Correct 9 ms 7072 KB Output is correct
25 Correct 7 ms 6772 KB Output is correct
26 Correct 8 ms 6888 KB Output is correct
27 Correct 9 ms 6988 KB Output is correct
28 Correct 9 ms 6988 KB Output is correct
29 Correct 9 ms 6988 KB Output is correct
30 Correct 10 ms 7020 KB Output is correct
31 Correct 9 ms 6988 KB Output is correct
32 Correct 9 ms 6988 KB Output is correct
33 Correct 8 ms 6988 KB Output is correct
34 Correct 8 ms 6988 KB Output is correct
35 Correct 8 ms 6932 KB Output is correct
36 Correct 9 ms 6980 KB Output is correct
37 Correct 7 ms 6860 KB Output is correct
38 Correct 8 ms 6988 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 116 ms 20264 KB Output is correct
2 Correct 161 ms 20340 KB Output is correct
3 Correct 117 ms 20332 KB Output is correct
4 Correct 112 ms 20404 KB Output is correct
5 Correct 123 ms 20292 KB Output is correct
6 Correct 121 ms 20392 KB Output is correct
7 Correct 59 ms 11076 KB Output is correct
8 Correct 60 ms 11072 KB Output is correct
9 Correct 116 ms 20548 KB Output is correct
10 Correct 118 ms 20248 KB Output is correct
11 Correct 124 ms 20348 KB Output is correct
12 Correct 115 ms 20292 KB Output is correct
13 Correct 96 ms 17384 KB Output is correct
14 Correct 116 ms 20904 KB Output is correct
15 Correct 117 ms 17648 KB Output is correct
16 Correct 136 ms 20752 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 765 ms 57344 KB Output is correct
2 Correct 530 ms 49464 KB Output is correct
3 Correct 781 ms 62608 KB Output is correct
4 Correct 618 ms 56652 KB Output is correct
5 Correct 593 ms 48232 KB Output is correct
6 Correct 821 ms 62020 KB Output is correct
7 Correct 248 ms 24924 KB Output is correct
8 Correct 248 ms 25028 KB Output is correct
9 Correct 814 ms 63152 KB Output is correct
10 Correct 831 ms 63152 KB Output is correct
11 Correct 772 ms 62068 KB Output is correct
12 Correct 781 ms 62308 KB Output is correct
13 Correct 866 ms 62124 KB Output is correct
14 Correct 805 ms 62124 KB Output is correct
15 Correct 777 ms 62140 KB Output is correct
16 Correct 774 ms 62148 KB Output is correct
17 Correct 770 ms 62136 KB Output is correct
18 Correct 766 ms 62252 KB Output is correct
19 Correct 799 ms 62224 KB Output is correct
20 Correct 783 ms 62084 KB Output is correct
21 Correct 762 ms 62076 KB Output is correct
22 Correct 864 ms 62152 KB Output is correct
23 Correct 767 ms 62112 KB Output is correct
24 Correct 773 ms 62132 KB Output is correct
25 Correct 553 ms 53996 KB Output is correct
26 Correct 595 ms 62428 KB Output is correct
27 Correct 574 ms 59824 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 6876 KB Output is correct
2 Correct 8 ms 6996 KB Output is correct
3 Correct 8 ms 6988 KB Output is correct
4 Correct 9 ms 6988 KB Output is correct
5 Correct 7 ms 6732 KB Output is correct
6 Correct 7 ms 6732 KB Output is correct
7 Correct 9 ms 6988 KB Output is correct
8 Correct 9 ms 7036 KB Output is correct
9 Correct 12 ms 6988 KB Output is correct
10 Correct 9 ms 6988 KB Output is correct
11 Correct 9 ms 6988 KB Output is correct
12 Correct 9 ms 6988 KB Output is correct
13 Correct 8 ms 7000 KB Output is correct
14 Correct 8 ms 7072 KB Output is correct
15 Correct 7 ms 6988 KB Output is correct
16 Correct 8 ms 6988 KB Output is correct
17 Correct 8 ms 6856 KB Output is correct
18 Correct 8 ms 7012 KB Output is correct
19 Correct 8 ms 6988 KB Output is correct
20 Correct 9 ms 6988 KB Output is correct
21 Correct 116 ms 20264 KB Output is correct
22 Correct 161 ms 20340 KB Output is correct
23 Correct 117 ms 20332 KB Output is correct
24 Correct 112 ms 20404 KB Output is correct
25 Correct 123 ms 20292 KB Output is correct
26 Correct 121 ms 20392 KB Output is correct
27 Correct 59 ms 11076 KB Output is correct
28 Correct 60 ms 11072 KB Output is correct
29 Correct 116 ms 20548 KB Output is correct
30 Correct 118 ms 20248 KB Output is correct
31 Correct 124 ms 20348 KB Output is correct
32 Correct 115 ms 20292 KB Output is correct
33 Correct 96 ms 17384 KB Output is correct
34 Correct 116 ms 20904 KB Output is correct
35 Correct 117 ms 17648 KB Output is correct
36 Correct 136 ms 20752 KB Output is correct
37 Correct 134 ms 19800 KB Output is correct
38 Correct 144 ms 19184 KB Output is correct
39 Correct 55 ms 10564 KB Output is correct
40 Correct 70 ms 11096 KB Output is correct
41 Correct 154 ms 21104 KB Output is correct
42 Correct 156 ms 21132 KB Output is correct
43 Correct 160 ms 21224 KB Output is correct
44 Correct 172 ms 21184 KB Output is correct
45 Correct 155 ms 21176 KB Output is correct
46 Correct 154 ms 21056 KB Output is correct
47 Correct 134 ms 21188 KB Output is correct
48 Correct 142 ms 21304 KB Output is correct
49 Correct 114 ms 16672 KB Output is correct
50 Correct 144 ms 20188 KB Output is correct
51 Correct 166 ms 21048 KB Output is correct
52 Correct 173 ms 21200 KB Output is correct
53 Correct 103 ms 18540 KB Output is correct
54 Correct 128 ms 20628 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 156 ms 20588 KB Output is correct
2 Correct 162 ms 19820 KB Output is correct
3 Correct 169 ms 21444 KB Output is correct
4 Correct 122 ms 19444 KB Output is correct
5 Correct 143 ms 20384 KB Output is correct
6 Correct 171 ms 21708 KB Output is correct
7 Correct 67 ms 11040 KB Output is correct
8 Correct 65 ms 10828 KB Output is correct
9 Correct 154 ms 21520 KB Output is correct
10 Correct 119 ms 18756 KB Output is correct
11 Correct 178 ms 21488 KB Output is correct
12 Correct 158 ms 21504 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 6876 KB Output is correct
2 Correct 8 ms 6996 KB Output is correct
3 Correct 8 ms 6988 KB Output is correct
4 Correct 9 ms 6988 KB Output is correct
5 Correct 7 ms 6732 KB Output is correct
6 Correct 7 ms 6732 KB Output is correct
7 Correct 9 ms 6988 KB Output is correct
8 Correct 9 ms 7036 KB Output is correct
9 Correct 12 ms 6988 KB Output is correct
10 Correct 9 ms 6988 KB Output is correct
11 Correct 9 ms 6988 KB Output is correct
12 Correct 9 ms 6988 KB Output is correct
13 Correct 8 ms 7000 KB Output is correct
14 Correct 8 ms 7072 KB Output is correct
15 Correct 7 ms 6988 KB Output is correct
16 Correct 8 ms 6988 KB Output is correct
17 Correct 8 ms 6856 KB Output is correct
18 Correct 8 ms 7012 KB Output is correct
19 Correct 8 ms 6988 KB Output is correct
20 Correct 9 ms 6988 KB Output is correct
21 Correct 9 ms 6988 KB Output is correct
22 Correct 8 ms 6988 KB Output is correct
23 Correct 9 ms 6968 KB Output is correct
24 Correct 9 ms 7072 KB Output is correct
25 Correct 7 ms 6772 KB Output is correct
26 Correct 8 ms 6888 KB Output is correct
27 Correct 9 ms 6988 KB Output is correct
28 Correct 9 ms 6988 KB Output is correct
29 Correct 9 ms 6988 KB Output is correct
30 Correct 10 ms 7020 KB Output is correct
31 Correct 9 ms 6988 KB Output is correct
32 Correct 9 ms 6988 KB Output is correct
33 Correct 8 ms 6988 KB Output is correct
34 Correct 8 ms 6988 KB Output is correct
35 Correct 8 ms 6932 KB Output is correct
36 Correct 9 ms 6980 KB Output is correct
37 Correct 7 ms 6860 KB Output is correct
38 Correct 8 ms 6988 KB Output is correct
39 Correct 116 ms 20264 KB Output is correct
40 Correct 161 ms 20340 KB Output is correct
41 Correct 117 ms 20332 KB Output is correct
42 Correct 112 ms 20404 KB Output is correct
43 Correct 123 ms 20292 KB Output is correct
44 Correct 121 ms 20392 KB Output is correct
45 Correct 59 ms 11076 KB Output is correct
46 Correct 60 ms 11072 KB Output is correct
47 Correct 116 ms 20548 KB Output is correct
48 Correct 118 ms 20248 KB Output is correct
49 Correct 124 ms 20348 KB Output is correct
50 Correct 115 ms 20292 KB Output is correct
51 Correct 96 ms 17384 KB Output is correct
52 Correct 116 ms 20904 KB Output is correct
53 Correct 117 ms 17648 KB Output is correct
54 Correct 136 ms 20752 KB Output is correct
55 Correct 134 ms 19800 KB Output is correct
56 Correct 144 ms 19184 KB Output is correct
57 Correct 55 ms 10564 KB Output is correct
58 Correct 70 ms 11096 KB Output is correct
59 Correct 154 ms 21104 KB Output is correct
60 Correct 156 ms 21132 KB Output is correct
61 Correct 160 ms 21224 KB Output is correct
62 Correct 172 ms 21184 KB Output is correct
63 Correct 155 ms 21176 KB Output is correct
64 Correct 154 ms 21056 KB Output is correct
65 Correct 134 ms 21188 KB Output is correct
66 Correct 142 ms 21304 KB Output is correct
67 Correct 114 ms 16672 KB Output is correct
68 Correct 144 ms 20188 KB Output is correct
69 Correct 166 ms 21048 KB Output is correct
70 Correct 173 ms 21200 KB Output is correct
71 Correct 103 ms 18540 KB Output is correct
72 Correct 128 ms 20628 KB Output is correct
73 Correct 156 ms 20588 KB Output is correct
74 Correct 162 ms 19820 KB Output is correct
75 Correct 169 ms 21444 KB Output is correct
76 Correct 122 ms 19444 KB Output is correct
77 Correct 143 ms 20384 KB Output is correct
78 Correct 171 ms 21708 KB Output is correct
79 Correct 67 ms 11040 KB Output is correct
80 Correct 65 ms 10828 KB Output is correct
81 Correct 154 ms 21520 KB Output is correct
82 Correct 119 ms 18756 KB Output is correct
83 Correct 178 ms 21488 KB Output is correct
84 Correct 158 ms 21504 KB Output is correct
85 Correct 142 ms 18640 KB Output is correct
86 Correct 157 ms 21316 KB Output is correct
87 Correct 164 ms 19920 KB Output is correct
88 Correct 167 ms 21092 KB Output is correct
89 Correct 108 ms 17448 KB Output is correct
90 Correct 162 ms 21124 KB Output is correct
91 Correct 123 ms 17108 KB Output is correct
92 Correct 116 ms 16960 KB Output is correct
93 Correct 161 ms 21188 KB Output is correct
94 Correct 165 ms 21080 KB Output is correct
95 Correct 184 ms 20184 KB Output is correct
96 Correct 161 ms 21104 KB Output is correct
97 Correct 163 ms 21200 KB Output is correct
98 Correct 126 ms 17616 KB Output is correct
99 Correct 143 ms 21188 KB Output is correct
100 Correct 122 ms 18996 KB Output is correct
101 Correct 141 ms 21200 KB Output is correct
102 Correct 135 ms 20520 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 6876 KB Output is correct
2 Correct 8 ms 6996 KB Output is correct
3 Correct 8 ms 6988 KB Output is correct
4 Correct 9 ms 6988 KB Output is correct
5 Correct 7 ms 6732 KB Output is correct
6 Correct 7 ms 6732 KB Output is correct
7 Correct 9 ms 6988 KB Output is correct
8 Correct 9 ms 7036 KB Output is correct
9 Correct 12 ms 6988 KB Output is correct
10 Correct 9 ms 6988 KB Output is correct
11 Correct 9 ms 6988 KB Output is correct
12 Correct 9 ms 6988 KB Output is correct
13 Correct 8 ms 7000 KB Output is correct
14 Correct 8 ms 7072 KB Output is correct
15 Correct 7 ms 6988 KB Output is correct
16 Correct 8 ms 6988 KB Output is correct
17 Correct 8 ms 6856 KB Output is correct
18 Correct 8 ms 7012 KB Output is correct
19 Correct 8 ms 6988 KB Output is correct
20 Correct 9 ms 6988 KB Output is correct
21 Correct 9 ms 6988 KB Output is correct
22 Correct 8 ms 6988 KB Output is correct
23 Correct 9 ms 6968 KB Output is correct
24 Correct 9 ms 7072 KB Output is correct
25 Correct 7 ms 6772 KB Output is correct
26 Correct 8 ms 6888 KB Output is correct
27 Correct 9 ms 6988 KB Output is correct
28 Correct 9 ms 6988 KB Output is correct
29 Correct 9 ms 6988 KB Output is correct
30 Correct 10 ms 7020 KB Output is correct
31 Correct 9 ms 6988 KB Output is correct
32 Correct 9 ms 6988 KB Output is correct
33 Correct 8 ms 6988 KB Output is correct
34 Correct 8 ms 6988 KB Output is correct
35 Correct 8 ms 6932 KB Output is correct
36 Correct 9 ms 6980 KB Output is correct
37 Correct 7 ms 6860 KB Output is correct
38 Correct 8 ms 6988 KB Output is correct
39 Correct 116 ms 20264 KB Output is correct
40 Correct 161 ms 20340 KB Output is correct
41 Correct 117 ms 20332 KB Output is correct
42 Correct 112 ms 20404 KB Output is correct
43 Correct 123 ms 20292 KB Output is correct
44 Correct 121 ms 20392 KB Output is correct
45 Correct 59 ms 11076 KB Output is correct
46 Correct 60 ms 11072 KB Output is correct
47 Correct 116 ms 20548 KB Output is correct
48 Correct 118 ms 20248 KB Output is correct
49 Correct 124 ms 20348 KB Output is correct
50 Correct 115 ms 20292 KB Output is correct
51 Correct 96 ms 17384 KB Output is correct
52 Correct 116 ms 20904 KB Output is correct
53 Correct 117 ms 17648 KB Output is correct
54 Correct 136 ms 20752 KB Output is correct
55 Correct 765 ms 57344 KB Output is correct
56 Correct 530 ms 49464 KB Output is correct
57 Correct 781 ms 62608 KB Output is correct
58 Correct 618 ms 56652 KB Output is correct
59 Correct 593 ms 48232 KB Output is correct
60 Correct 821 ms 62020 KB Output is correct
61 Correct 248 ms 24924 KB Output is correct
62 Correct 248 ms 25028 KB Output is correct
63 Correct 814 ms 63152 KB Output is correct
64 Correct 831 ms 63152 KB Output is correct
65 Correct 772 ms 62068 KB Output is correct
66 Correct 781 ms 62308 KB Output is correct
67 Correct 866 ms 62124 KB Output is correct
68 Correct 805 ms 62124 KB Output is correct
69 Correct 777 ms 62140 KB Output is correct
70 Correct 774 ms 62148 KB Output is correct
71 Correct 770 ms 62136 KB Output is correct
72 Correct 766 ms 62252 KB Output is correct
73 Correct 799 ms 62224 KB Output is correct
74 Correct 783 ms 62084 KB Output is correct
75 Correct 762 ms 62076 KB Output is correct
76 Correct 864 ms 62152 KB Output is correct
77 Correct 767 ms 62112 KB Output is correct
78 Correct 773 ms 62132 KB Output is correct
79 Correct 553 ms 53996 KB Output is correct
80 Correct 595 ms 62428 KB Output is correct
81 Correct 574 ms 59824 KB Output is correct
82 Correct 134 ms 19800 KB Output is correct
83 Correct 144 ms 19184 KB Output is correct
84 Correct 55 ms 10564 KB Output is correct
85 Correct 70 ms 11096 KB Output is correct
86 Correct 154 ms 21104 KB Output is correct
87 Correct 156 ms 21132 KB Output is correct
88 Correct 160 ms 21224 KB Output is correct
89 Correct 172 ms 21184 KB Output is correct
90 Correct 155 ms 21176 KB Output is correct
91 Correct 154 ms 21056 KB Output is correct
92 Correct 134 ms 21188 KB Output is correct
93 Correct 142 ms 21304 KB Output is correct
94 Correct 114 ms 16672 KB Output is correct
95 Correct 144 ms 20188 KB Output is correct
96 Correct 166 ms 21048 KB Output is correct
97 Correct 173 ms 21200 KB Output is correct
98 Correct 103 ms 18540 KB Output is correct
99 Correct 128 ms 20628 KB Output is correct
100 Correct 156 ms 20588 KB Output is correct
101 Correct 162 ms 19820 KB Output is correct
102 Correct 169 ms 21444 KB Output is correct
103 Correct 122 ms 19444 KB Output is correct
104 Correct 143 ms 20384 KB Output is correct
105 Correct 171 ms 21708 KB Output is correct
106 Correct 67 ms 11040 KB Output is correct
107 Correct 65 ms 10828 KB Output is correct
108 Correct 154 ms 21520 KB Output is correct
109 Correct 119 ms 18756 KB Output is correct
110 Correct 178 ms 21488 KB Output is correct
111 Correct 158 ms 21504 KB Output is correct
112 Correct 142 ms 18640 KB Output is correct
113 Correct 157 ms 21316 KB Output is correct
114 Correct 164 ms 19920 KB Output is correct
115 Correct 167 ms 21092 KB Output is correct
116 Correct 108 ms 17448 KB Output is correct
117 Correct 162 ms 21124 KB Output is correct
118 Correct 123 ms 17108 KB Output is correct
119 Correct 116 ms 16960 KB Output is correct
120 Correct 161 ms 21188 KB Output is correct
121 Correct 165 ms 21080 KB Output is correct
122 Correct 184 ms 20184 KB Output is correct
123 Correct 161 ms 21104 KB Output is correct
124 Correct 163 ms 21200 KB Output is correct
125 Correct 126 ms 17616 KB Output is correct
126 Correct 143 ms 21188 KB Output is correct
127 Correct 122 ms 18996 KB Output is correct
128 Correct 141 ms 21200 KB Output is correct
129 Correct 135 ms 20520 KB Output is correct
130 Correct 744 ms 61952 KB Output is correct
131 Correct 521 ms 48340 KB Output is correct
132 Correct 738 ms 62696 KB Output is correct
133 Correct 815 ms 60176 KB Output is correct
134 Correct 760 ms 58224 KB Output is correct
135 Correct 879 ms 62276 KB Output is correct
136 Correct 897 ms 63532 KB Output is correct
137 Correct 978 ms 63560 KB Output is correct
138 Correct 953 ms 62280 KB Output is correct
139 Correct 925 ms 62268 KB Output is correct
140 Correct 871 ms 62236 KB Output is correct
141 Correct 893 ms 62364 KB Output is correct
142 Correct 867 ms 62212 KB Output is correct
143 Correct 858 ms 62292 KB Output is correct
144 Correct 909 ms 62272 KB Output is correct
145 Correct 871 ms 62260 KB Output is correct
146 Correct 798 ms 62260 KB Output is correct
147 Correct 802 ms 62280 KB Output is correct
148 Correct 814 ms 62280 KB Output is correct
149 Correct 862 ms 62288 KB Output is correct
150 Correct 616 ms 62752 KB Output is correct
151 Correct 636 ms 62788 KB Output is correct
152 Correct 672 ms 62760 KB Output is correct
153 Correct 622 ms 59828 KB Output is correct