Submission #1081254

# Submission time Handle Problem Language Result Execution time Memory
1081254 2024-08-29T20:37:55 Z Trent Food Court (JOI21_foodcourt) C++17
100 / 100
863 ms 48760 KB
#include <iostream>
#include "bits/stdc++.h"
#define forR(i, x) for(int i=0; i < (x); ++i)
#define REP(i, a, b) for(int i=(a); i<(b); ++i)
#define all(x) x.begin(), x.end()
#define boost() cin.sync_with_stdio(0); cin.tie(0)
#define asst(x) if(!(x)) exit(1)
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;

const int MN = 3e5 + 10;
int len[MN];
struct ev{
	int ti;
	ll to;
};
ll ch[MN];
int c[MN];
bool us[MN];
vector<ev> evs[MN];
struct query{
	int ai, i; ll b;
};
vector<query> qus[MN];
int ans[MN];
struct node {
	ll ps, psm;
	ll nSum;
};
node seg[4 * MN];
node comb(node a, node b) {
	return {a.ps + b.ps, min(a.psm, a.ps + b.psm), a.nSum + b.nSum};
}
void upd(int v, int nl, int nr, int i, ll to) {
	if(nl == i && nr == i) seg[v] = {to, min(0LL, to), to < 0 ? to : 0};
	else {
		int mid = (nl+nr)/2;
		if(i <= mid) upd(2*v, nl, mid, i, to);
		else upd(2*v+1, mid+1, nr, i, to);
		seg[v] = comb(seg[2*v], seg[2*v+1]);
	}
}
node qu(int v, int nl, int nr, int l, int r) {
	if(l > r) return {0, 0, 0};
	if(nl == l && nr == r) return seg[v];
	int mid = (nl+nr)/2;
	return comb(qu(2*v, nl, mid, l, min(mid, r)),
			qu(2*v+1, mid+1, nr, max(mid+1, l), r));
}

int main(){
	boost();
	int n, m, q; cin >> n >> m >> q;
	int ai=0;
	forR(i, q){
		int ty; cin >> ty;
		if(ty == 1){
			int l, r, k; cin >> l >> r >> c[i] >> k;
			evs[l].push_back({i, k});
			evs[r+1].push_back({i, 0});
		} else if(ty == 2){
			int l, r, k; cin >> l >> r >> k;
			evs[l].push_back({i, -k});
			evs[r+1].push_back({i, 0});
		} else {
			int a; ll b; cin >> a >> b;
			qus[a].push_back({ai++, i, b});
		}
	}
	REP(i, 1, n+1){
		for(auto [ti, to] : evs[i]) {
			ch[ti] = to;
			upd(1, 0, q-1, ti, to);
		}
		for(auto [ai, ti, b] : qus[i]) {
			node ati = qu(1, 0, q-1, ti+1, q-1);
			node tot = qu(1, 0, q-1, 0, q-1);
			int lo=-1, hi=ti+1;
			while(hi-lo > 1) {
				int mid = (lo+hi)/2;
				node upTo = qu(1, 0, q-1, 0, mid);
				if(upTo.ps - upTo.psm + tot.nSum - ati.nSum - upTo.nSum >= b) hi = mid;
				else lo = mid;
			}
			if(hi <= ti) {
				ans[ai] = c[hi];
			} else ans[ai] = 0;
		}
	}
	forR(i, ai) cout << ans[i] << '\n';
}
# Verdict Execution time Memory Grader output
1 Correct 7 ms 14684 KB Output is correct
2 Correct 7 ms 14656 KB Output is correct
3 Correct 7 ms 14684 KB Output is correct
4 Correct 6 ms 14692 KB Output is correct
5 Correct 7 ms 14684 KB Output is correct
6 Correct 6 ms 14684 KB Output is correct
7 Correct 9 ms 14824 KB Output is correct
8 Correct 9 ms 14684 KB Output is correct
9 Correct 7 ms 14684 KB Output is correct
10 Correct 8 ms 14836 KB Output is correct
11 Correct 7 ms 14684 KB Output is correct
12 Correct 7 ms 14684 KB Output is correct
13 Correct 7 ms 14836 KB Output is correct
14 Correct 6 ms 14680 KB Output is correct
15 Correct 6 ms 14684 KB Output is correct
16 Correct 7 ms 14684 KB Output is correct
17 Correct 7 ms 14684 KB Output is correct
18 Correct 7 ms 14836 KB Output is correct
19 Correct 6 ms 14680 KB Output is correct
20 Correct 7 ms 14684 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 14684 KB Output is correct
2 Correct 7 ms 14656 KB Output is correct
3 Correct 7 ms 14684 KB Output is correct
4 Correct 6 ms 14692 KB Output is correct
5 Correct 7 ms 14684 KB Output is correct
6 Correct 6 ms 14684 KB Output is correct
7 Correct 9 ms 14824 KB Output is correct
8 Correct 9 ms 14684 KB Output is correct
9 Correct 7 ms 14684 KB Output is correct
10 Correct 8 ms 14836 KB Output is correct
11 Correct 7 ms 14684 KB Output is correct
12 Correct 7 ms 14684 KB Output is correct
13 Correct 7 ms 14836 KB Output is correct
14 Correct 6 ms 14680 KB Output is correct
15 Correct 6 ms 14684 KB Output is correct
16 Correct 7 ms 14684 KB Output is correct
17 Correct 7 ms 14684 KB Output is correct
18 Correct 7 ms 14836 KB Output is correct
19 Correct 6 ms 14680 KB Output is correct
20 Correct 7 ms 14684 KB Output is correct
21 Correct 6 ms 14684 KB Output is correct
22 Correct 7 ms 14836 KB Output is correct
23 Correct 6 ms 14652 KB Output is correct
24 Correct 7 ms 14684 KB Output is correct
25 Correct 5 ms 14684 KB Output is correct
26 Correct 6 ms 14684 KB Output is correct
27 Correct 8 ms 14680 KB Output is correct
28 Correct 7 ms 14712 KB Output is correct
29 Correct 6 ms 14684 KB Output is correct
30 Correct 7 ms 14684 KB Output is correct
31 Correct 7 ms 14684 KB Output is correct
32 Correct 6 ms 14684 KB Output is correct
33 Correct 6 ms 14668 KB Output is correct
34 Correct 6 ms 14680 KB Output is correct
35 Correct 7 ms 14680 KB Output is correct
36 Correct 9 ms 14680 KB Output is correct
37 Correct 7 ms 14684 KB Output is correct
38 Correct 6 ms 14684 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 115 ms 22100 KB Output is correct
2 Correct 93 ms 22096 KB Output is correct
3 Correct 117 ms 22100 KB Output is correct
4 Correct 117 ms 22100 KB Output is correct
5 Correct 98 ms 22244 KB Output is correct
6 Correct 105 ms 22220 KB Output is correct
7 Correct 72 ms 20628 KB Output is correct
8 Correct 73 ms 20916 KB Output is correct
9 Correct 94 ms 22096 KB Output is correct
10 Correct 98 ms 22236 KB Output is correct
11 Correct 92 ms 22108 KB Output is correct
12 Correct 91 ms 22116 KB Output is correct
13 Correct 88 ms 21704 KB Output is correct
14 Correct 112 ms 22096 KB Output is correct
15 Correct 75 ms 22100 KB Output is correct
16 Correct 72 ms 22560 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 493 ms 43216 KB Output is correct
2 Correct 381 ms 39816 KB Output is correct
3 Correct 549 ms 44572 KB Output is correct
4 Correct 316 ms 40272 KB Output is correct
5 Correct 345 ms 40364 KB Output is correct
6 Correct 461 ms 44880 KB Output is correct
7 Correct 347 ms 41368 KB Output is correct
8 Correct 352 ms 40096 KB Output is correct
9 Correct 663 ms 43880 KB Output is correct
10 Correct 677 ms 46612 KB Output is correct
11 Correct 498 ms 47184 KB Output is correct
12 Correct 479 ms 47700 KB Output is correct
13 Correct 484 ms 47184 KB Output is correct
14 Correct 487 ms 47696 KB Output is correct
15 Correct 447 ms 47356 KB Output is correct
16 Correct 491 ms 47440 KB Output is correct
17 Correct 483 ms 47336 KB Output is correct
18 Correct 468 ms 47312 KB Output is correct
19 Correct 461 ms 47540 KB Output is correct
20 Correct 478 ms 47180 KB Output is correct
21 Correct 477 ms 47536 KB Output is correct
22 Correct 461 ms 47464 KB Output is correct
23 Correct 507 ms 47364 KB Output is correct
24 Correct 484 ms 47456 KB Output is correct
25 Correct 499 ms 46932 KB Output is correct
26 Correct 499 ms 47404 KB Output is correct
27 Correct 392 ms 47976 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 14684 KB Output is correct
2 Correct 7 ms 14656 KB Output is correct
3 Correct 7 ms 14684 KB Output is correct
4 Correct 6 ms 14692 KB Output is correct
5 Correct 7 ms 14684 KB Output is correct
6 Correct 6 ms 14684 KB Output is correct
7 Correct 9 ms 14824 KB Output is correct
8 Correct 9 ms 14684 KB Output is correct
9 Correct 7 ms 14684 KB Output is correct
10 Correct 8 ms 14836 KB Output is correct
11 Correct 7 ms 14684 KB Output is correct
12 Correct 7 ms 14684 KB Output is correct
13 Correct 7 ms 14836 KB Output is correct
14 Correct 6 ms 14680 KB Output is correct
15 Correct 6 ms 14684 KB Output is correct
16 Correct 7 ms 14684 KB Output is correct
17 Correct 7 ms 14684 KB Output is correct
18 Correct 7 ms 14836 KB Output is correct
19 Correct 6 ms 14680 KB Output is correct
20 Correct 7 ms 14684 KB Output is correct
21 Correct 115 ms 22100 KB Output is correct
22 Correct 93 ms 22096 KB Output is correct
23 Correct 117 ms 22100 KB Output is correct
24 Correct 117 ms 22100 KB Output is correct
25 Correct 98 ms 22244 KB Output is correct
26 Correct 105 ms 22220 KB Output is correct
27 Correct 72 ms 20628 KB Output is correct
28 Correct 73 ms 20916 KB Output is correct
29 Correct 94 ms 22096 KB Output is correct
30 Correct 98 ms 22236 KB Output is correct
31 Correct 92 ms 22108 KB Output is correct
32 Correct 91 ms 22116 KB Output is correct
33 Correct 88 ms 21704 KB Output is correct
34 Correct 112 ms 22096 KB Output is correct
35 Correct 75 ms 22100 KB Output is correct
36 Correct 72 ms 22560 KB Output is correct
37 Correct 100 ms 21744 KB Output is correct
38 Correct 74 ms 21276 KB Output is correct
39 Correct 64 ms 20476 KB Output is correct
40 Correct 68 ms 20536 KB Output is correct
41 Correct 109 ms 22084 KB Output is correct
42 Correct 104 ms 22212 KB Output is correct
43 Correct 100 ms 22204 KB Output is correct
44 Correct 97 ms 22096 KB Output is correct
45 Correct 106 ms 22240 KB Output is correct
46 Correct 117 ms 22208 KB Output is correct
47 Correct 106 ms 21384 KB Output is correct
48 Correct 113 ms 22276 KB Output is correct
49 Correct 77 ms 20744 KB Output is correct
50 Correct 79 ms 21696 KB Output is correct
51 Correct 99 ms 22236 KB Output is correct
52 Correct 102 ms 22260 KB Output is correct
53 Correct 67 ms 21296 KB Output is correct
54 Correct 88 ms 22404 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 130 ms 21828 KB Output is correct
2 Correct 144 ms 22244 KB Output is correct
3 Correct 167 ms 22280 KB Output is correct
4 Correct 96 ms 20828 KB Output is correct
5 Correct 134 ms 21844 KB Output is correct
6 Correct 147 ms 22352 KB Output is correct
7 Correct 98 ms 20668 KB Output is correct
8 Correct 111 ms 20508 KB Output is correct
9 Correct 126 ms 21516 KB Output is correct
10 Correct 93 ms 20876 KB Output is correct
11 Correct 154 ms 21864 KB Output is correct
12 Correct 139 ms 21808 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 14684 KB Output is correct
2 Correct 7 ms 14656 KB Output is correct
3 Correct 7 ms 14684 KB Output is correct
4 Correct 6 ms 14692 KB Output is correct
5 Correct 7 ms 14684 KB Output is correct
6 Correct 6 ms 14684 KB Output is correct
7 Correct 9 ms 14824 KB Output is correct
8 Correct 9 ms 14684 KB Output is correct
9 Correct 7 ms 14684 KB Output is correct
10 Correct 8 ms 14836 KB Output is correct
11 Correct 7 ms 14684 KB Output is correct
12 Correct 7 ms 14684 KB Output is correct
13 Correct 7 ms 14836 KB Output is correct
14 Correct 6 ms 14680 KB Output is correct
15 Correct 6 ms 14684 KB Output is correct
16 Correct 7 ms 14684 KB Output is correct
17 Correct 7 ms 14684 KB Output is correct
18 Correct 7 ms 14836 KB Output is correct
19 Correct 6 ms 14680 KB Output is correct
20 Correct 7 ms 14684 KB Output is correct
21 Correct 6 ms 14684 KB Output is correct
22 Correct 7 ms 14836 KB Output is correct
23 Correct 6 ms 14652 KB Output is correct
24 Correct 7 ms 14684 KB Output is correct
25 Correct 5 ms 14684 KB Output is correct
26 Correct 6 ms 14684 KB Output is correct
27 Correct 8 ms 14680 KB Output is correct
28 Correct 7 ms 14712 KB Output is correct
29 Correct 6 ms 14684 KB Output is correct
30 Correct 7 ms 14684 KB Output is correct
31 Correct 7 ms 14684 KB Output is correct
32 Correct 6 ms 14684 KB Output is correct
33 Correct 6 ms 14668 KB Output is correct
34 Correct 6 ms 14680 KB Output is correct
35 Correct 7 ms 14680 KB Output is correct
36 Correct 9 ms 14680 KB Output is correct
37 Correct 7 ms 14684 KB Output is correct
38 Correct 6 ms 14684 KB Output is correct
39 Correct 115 ms 22100 KB Output is correct
40 Correct 93 ms 22096 KB Output is correct
41 Correct 117 ms 22100 KB Output is correct
42 Correct 117 ms 22100 KB Output is correct
43 Correct 98 ms 22244 KB Output is correct
44 Correct 105 ms 22220 KB Output is correct
45 Correct 72 ms 20628 KB Output is correct
46 Correct 73 ms 20916 KB Output is correct
47 Correct 94 ms 22096 KB Output is correct
48 Correct 98 ms 22236 KB Output is correct
49 Correct 92 ms 22108 KB Output is correct
50 Correct 91 ms 22116 KB Output is correct
51 Correct 88 ms 21704 KB Output is correct
52 Correct 112 ms 22096 KB Output is correct
53 Correct 75 ms 22100 KB Output is correct
54 Correct 72 ms 22560 KB Output is correct
55 Correct 100 ms 21744 KB Output is correct
56 Correct 74 ms 21276 KB Output is correct
57 Correct 64 ms 20476 KB Output is correct
58 Correct 68 ms 20536 KB Output is correct
59 Correct 109 ms 22084 KB Output is correct
60 Correct 104 ms 22212 KB Output is correct
61 Correct 100 ms 22204 KB Output is correct
62 Correct 97 ms 22096 KB Output is correct
63 Correct 106 ms 22240 KB Output is correct
64 Correct 117 ms 22208 KB Output is correct
65 Correct 106 ms 21384 KB Output is correct
66 Correct 113 ms 22276 KB Output is correct
67 Correct 77 ms 20744 KB Output is correct
68 Correct 79 ms 21696 KB Output is correct
69 Correct 99 ms 22236 KB Output is correct
70 Correct 102 ms 22260 KB Output is correct
71 Correct 67 ms 21296 KB Output is correct
72 Correct 88 ms 22404 KB Output is correct
73 Correct 130 ms 21828 KB Output is correct
74 Correct 144 ms 22244 KB Output is correct
75 Correct 167 ms 22280 KB Output is correct
76 Correct 96 ms 20828 KB Output is correct
77 Correct 134 ms 21844 KB Output is correct
78 Correct 147 ms 22352 KB Output is correct
79 Correct 98 ms 20668 KB Output is correct
80 Correct 111 ms 20508 KB Output is correct
81 Correct 126 ms 21516 KB Output is correct
82 Correct 93 ms 20876 KB Output is correct
83 Correct 154 ms 21864 KB Output is correct
84 Correct 139 ms 21808 KB Output is correct
85 Correct 116 ms 22032 KB Output is correct
86 Correct 135 ms 22356 KB Output is correct
87 Correct 91 ms 22004 KB Output is correct
88 Correct 123 ms 22308 KB Output is correct
89 Correct 66 ms 20728 KB Output is correct
90 Correct 91 ms 22328 KB Output is correct
91 Correct 98 ms 21764 KB Output is correct
92 Correct 72 ms 21332 KB Output is correct
93 Correct 101 ms 22356 KB Output is correct
94 Correct 100 ms 22280 KB Output is correct
95 Correct 120 ms 22356 KB Output is correct
96 Correct 139 ms 22440 KB Output is correct
97 Correct 110 ms 22352 KB Output is correct
98 Correct 84 ms 21900 KB Output is correct
99 Correct 97 ms 21560 KB Output is correct
100 Correct 91 ms 21380 KB Output is correct
101 Correct 109 ms 22608 KB Output is correct
102 Correct 81 ms 22580 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 14684 KB Output is correct
2 Correct 7 ms 14656 KB Output is correct
3 Correct 7 ms 14684 KB Output is correct
4 Correct 6 ms 14692 KB Output is correct
5 Correct 7 ms 14684 KB Output is correct
6 Correct 6 ms 14684 KB Output is correct
7 Correct 9 ms 14824 KB Output is correct
8 Correct 9 ms 14684 KB Output is correct
9 Correct 7 ms 14684 KB Output is correct
10 Correct 8 ms 14836 KB Output is correct
11 Correct 7 ms 14684 KB Output is correct
12 Correct 7 ms 14684 KB Output is correct
13 Correct 7 ms 14836 KB Output is correct
14 Correct 6 ms 14680 KB Output is correct
15 Correct 6 ms 14684 KB Output is correct
16 Correct 7 ms 14684 KB Output is correct
17 Correct 7 ms 14684 KB Output is correct
18 Correct 7 ms 14836 KB Output is correct
19 Correct 6 ms 14680 KB Output is correct
20 Correct 7 ms 14684 KB Output is correct
21 Correct 6 ms 14684 KB Output is correct
22 Correct 7 ms 14836 KB Output is correct
23 Correct 6 ms 14652 KB Output is correct
24 Correct 7 ms 14684 KB Output is correct
25 Correct 5 ms 14684 KB Output is correct
26 Correct 6 ms 14684 KB Output is correct
27 Correct 8 ms 14680 KB Output is correct
28 Correct 7 ms 14712 KB Output is correct
29 Correct 6 ms 14684 KB Output is correct
30 Correct 7 ms 14684 KB Output is correct
31 Correct 7 ms 14684 KB Output is correct
32 Correct 6 ms 14684 KB Output is correct
33 Correct 6 ms 14668 KB Output is correct
34 Correct 6 ms 14680 KB Output is correct
35 Correct 7 ms 14680 KB Output is correct
36 Correct 9 ms 14680 KB Output is correct
37 Correct 7 ms 14684 KB Output is correct
38 Correct 6 ms 14684 KB Output is correct
39 Correct 115 ms 22100 KB Output is correct
40 Correct 93 ms 22096 KB Output is correct
41 Correct 117 ms 22100 KB Output is correct
42 Correct 117 ms 22100 KB Output is correct
43 Correct 98 ms 22244 KB Output is correct
44 Correct 105 ms 22220 KB Output is correct
45 Correct 72 ms 20628 KB Output is correct
46 Correct 73 ms 20916 KB Output is correct
47 Correct 94 ms 22096 KB Output is correct
48 Correct 98 ms 22236 KB Output is correct
49 Correct 92 ms 22108 KB Output is correct
50 Correct 91 ms 22116 KB Output is correct
51 Correct 88 ms 21704 KB Output is correct
52 Correct 112 ms 22096 KB Output is correct
53 Correct 75 ms 22100 KB Output is correct
54 Correct 72 ms 22560 KB Output is correct
55 Correct 493 ms 43216 KB Output is correct
56 Correct 381 ms 39816 KB Output is correct
57 Correct 549 ms 44572 KB Output is correct
58 Correct 316 ms 40272 KB Output is correct
59 Correct 345 ms 40364 KB Output is correct
60 Correct 461 ms 44880 KB Output is correct
61 Correct 347 ms 41368 KB Output is correct
62 Correct 352 ms 40096 KB Output is correct
63 Correct 663 ms 43880 KB Output is correct
64 Correct 677 ms 46612 KB Output is correct
65 Correct 498 ms 47184 KB Output is correct
66 Correct 479 ms 47700 KB Output is correct
67 Correct 484 ms 47184 KB Output is correct
68 Correct 487 ms 47696 KB Output is correct
69 Correct 447 ms 47356 KB Output is correct
70 Correct 491 ms 47440 KB Output is correct
71 Correct 483 ms 47336 KB Output is correct
72 Correct 468 ms 47312 KB Output is correct
73 Correct 461 ms 47540 KB Output is correct
74 Correct 478 ms 47180 KB Output is correct
75 Correct 477 ms 47536 KB Output is correct
76 Correct 461 ms 47464 KB Output is correct
77 Correct 507 ms 47364 KB Output is correct
78 Correct 484 ms 47456 KB Output is correct
79 Correct 499 ms 46932 KB Output is correct
80 Correct 499 ms 47404 KB Output is correct
81 Correct 392 ms 47976 KB Output is correct
82 Correct 100 ms 21744 KB Output is correct
83 Correct 74 ms 21276 KB Output is correct
84 Correct 64 ms 20476 KB Output is correct
85 Correct 68 ms 20536 KB Output is correct
86 Correct 109 ms 22084 KB Output is correct
87 Correct 104 ms 22212 KB Output is correct
88 Correct 100 ms 22204 KB Output is correct
89 Correct 97 ms 22096 KB Output is correct
90 Correct 106 ms 22240 KB Output is correct
91 Correct 117 ms 22208 KB Output is correct
92 Correct 106 ms 21384 KB Output is correct
93 Correct 113 ms 22276 KB Output is correct
94 Correct 77 ms 20744 KB Output is correct
95 Correct 79 ms 21696 KB Output is correct
96 Correct 99 ms 22236 KB Output is correct
97 Correct 102 ms 22260 KB Output is correct
98 Correct 67 ms 21296 KB Output is correct
99 Correct 88 ms 22404 KB Output is correct
100 Correct 130 ms 21828 KB Output is correct
101 Correct 144 ms 22244 KB Output is correct
102 Correct 167 ms 22280 KB Output is correct
103 Correct 96 ms 20828 KB Output is correct
104 Correct 134 ms 21844 KB Output is correct
105 Correct 147 ms 22352 KB Output is correct
106 Correct 98 ms 20668 KB Output is correct
107 Correct 111 ms 20508 KB Output is correct
108 Correct 126 ms 21516 KB Output is correct
109 Correct 93 ms 20876 KB Output is correct
110 Correct 154 ms 21864 KB Output is correct
111 Correct 139 ms 21808 KB Output is correct
112 Correct 116 ms 22032 KB Output is correct
113 Correct 135 ms 22356 KB Output is correct
114 Correct 91 ms 22004 KB Output is correct
115 Correct 123 ms 22308 KB Output is correct
116 Correct 66 ms 20728 KB Output is correct
117 Correct 91 ms 22328 KB Output is correct
118 Correct 98 ms 21764 KB Output is correct
119 Correct 72 ms 21332 KB Output is correct
120 Correct 101 ms 22356 KB Output is correct
121 Correct 100 ms 22280 KB Output is correct
122 Correct 120 ms 22356 KB Output is correct
123 Correct 139 ms 22440 KB Output is correct
124 Correct 110 ms 22352 KB Output is correct
125 Correct 84 ms 21900 KB Output is correct
126 Correct 97 ms 21560 KB Output is correct
127 Correct 91 ms 21380 KB Output is correct
128 Correct 109 ms 22608 KB Output is correct
129 Correct 81 ms 22580 KB Output is correct
130 Correct 610 ms 47768 KB Output is correct
131 Correct 410 ms 42068 KB Output is correct
132 Correct 572 ms 47696 KB Output is correct
133 Correct 461 ms 47380 KB Output is correct
134 Correct 452 ms 45140 KB Output is correct
135 Correct 519 ms 48468 KB Output is correct
136 Correct 863 ms 47660 KB Output is correct
137 Correct 758 ms 47696 KB Output is correct
138 Correct 474 ms 47700 KB Output is correct
139 Correct 488 ms 48208 KB Output is correct
140 Correct 550 ms 47816 KB Output is correct
141 Correct 485 ms 48020 KB Output is correct
142 Correct 505 ms 48148 KB Output is correct
143 Correct 512 ms 48196 KB Output is correct
144 Correct 476 ms 47832 KB Output is correct
145 Correct 480 ms 48032 KB Output is correct
146 Correct 544 ms 48032 KB Output is correct
147 Correct 538 ms 48208 KB Output is correct
148 Correct 503 ms 48140 KB Output is correct
149 Correct 534 ms 47956 KB Output is correct
150 Correct 464 ms 43732 KB Output is correct
151 Correct 538 ms 47992 KB Output is correct
152 Correct 599 ms 47976 KB Output is correct
153 Correct 425 ms 48760 KB Output is correct