Submission #426035

# Submission time Handle Problem Language Result Execution time Memory
426035 2021-06-13T13:09:03 Z Kevin_Zhang_TW Food Court (JOI21_foodcourt) C++17
100 / 100
775 ms 50868 KB
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define pb emplace_back
#define AI(i) begin(i), end(i)
template<class T> bool chmin(T &a, T b) { return b < a && (a = b, true); }
template<class T> bool chmax(T &a, T b) { return a < b && (a = b, true); }
#ifdef KEV
#define DE(args...) kout("[ " + string(#args) + " ] = ", args)
void kout() { cerr << endl; }
template<class T, class ...U> void kout(T a, U ...b) { cerr << a << ' ', kout(b...); }
template<class T> void debug(T l, T r) { while (l != r) cerr << *l << " \n"[next(l)==r], ++l; }
#else
#define DE(...) 0
#define debug(...) 0
#endif

const int MAX_N = 300010;
const ll inf = 1ll << 60;

int n, m, q;
int res[MAX_N], cid[MAX_N];

bool is_leave[MAX_N];

//          position, delta
vector<pair<int,ll>> rec[MAX_N];
//         time, k
vector<pair<int,ll>> allq[MAX_N];

struct sgt {
	struct node {
		ll mn, pos, tg;
		void operator += (ll v) {
			mn += v, tg += v;
		}
		node (node a, node b) {
			tg = 0;
			mn = min(a.mn, b.mn);
			pos = a.mn == mn ? a.pos : b.pos;
		}
		node () : mn(0), pos(0), tg(0) {}
		pair<ll,ll> get() { return make_pair(mn, pos); }
	};
	int n;
	vector<node> val;
	sgt(int _n) {
		n = _n;
		val.resize(n<<1);
		for (int i = 0;i < n;++i)
			val[i+n].pos = i;
		for (int i = n-1;i > 0;--i)
			upd(i);
	}
	void pa(int j) { for (int i = 20;i >= 0;--i) push(j>>i); }
	void add(int l, int r, ll v) {
		assert(r == q);
		int sl = l+=n, sr = r+=n;
		pa(l), pa(r-1);
		for (;l < r;l>>=1, r>>=1) {
			if (l&1) val[l++] += v;
			if (r&1) val[--r] += v;
		}
		for (--sr;sl>>=1, sr>>=1;) 
			upd(sl), upd(sr);
	}
	void push(int i) {
		if (i >= n) return;
		ll &t = val[i].tg;
		val[i<<1] += t, val[i<<1|1] += t;
		t = 0;
	}
	void upd(int i) {
		if (i >= n) return;
		push(i);
		val[i] = node(val[i<<1], val[i<<1|1]);
	}
	pair<ll,ll> qmn(int l, int r) {
		l += n, r += n;
		pa(l), pa(r-1);
		pair<ll,ll> res {inf, n};
		for (;l < r;l>>=1, r>>=1) {
			if (l&1) chmin(res, val[l++].get());
			if (r&1) chmin(res, val[--r].get());
		}
		assert(res.first < inf);
		return res;
	} 
};

// t1 for +
// t2 for -
struct bit { 
	int n;
	vector<ll> val;
	bit (int n) : n(n) {
		val.resize(n);
	}
	void add(int i, ll v) {
		for (;i < n;i += i&-i)
			val[i] += v;
	}
	ll qry(int i) {
		ll res = 0;
		for (;i;i^=i&-i) res += val[i];
		return res;
	}
	ll qry(int l, int r) { return qry(r) - qry(l-1); }
	int kth(ll k) {
		int res = 0;
		for (int i = 1<<19;i > 0;i>>=1) {
			if ((i|res) >= n || k <= val[res|i]) continue;
			assert(k > val[res|i]);
			k -= val[res|=i];
		}
		assert(k > 0);
		return res + 1; 
	} 
};

struct sss {
	vector<ll> val;
	int n;
	sss (int n) : n(n) {
		val.resize(n);
	}
	void add(int l, int r, ll v) {
		for (;l < r;++l)
			val[l] += v;
	}
	pair<ll,ll> qmn(int l, int r) {
		pair<ll,ll> res {inf, n};
		for (;l < r;++l)
			chmin(res, make_pair(val[l], (ll)l));
		return res;
	}
};
void solve() {

	//sss tree(q);
	sgt tree(q);
	bit t1(q + 10), t2(q + 10);

	for (int i = 1;i <= n;++i) {
		for (auto [j, d] : rec[i]) {
			tree.add(j, q, d);
			if (is_leave[j]) 
				t2.add(j, -d);
			else {
				assert(cid[j]);
				t1.add(j, d);
			} 
		}

		for (auto [t, k] : allq[i]) {
			auto [v, p] = tree.qmn(0, t); 

			assert(p == 0 || is_leave[p]);

			assert(p < t);

			ll rk = t1.qry(p) + k + t2.qry(p+1, t);

			//assert(p == 0 || t1.qry(p) == t1.qry(p-1));

			assert(t1.qry(p) - t2.qry(p) == v);

			if (t1.qry(t) < rk) {
				res[t] = 0;
				continue;
			}
			
			int ind = t1.kth(rk);
			
			assert(ind < t);
			res[t] = cid[ind]; 

			assert(cid[ind] >= 1 && cid[ind] <= m);
		}
	} 
}
int32_t main() {
	ios_base::sync_with_stdio(0), cin.tie(0);
	cin >> n >> m >> q; ++q;

	fill(res, res + q, -1);

	for (ll t, l, r, k, i = 1;i < q;++i) {
		cin >> t;
		if (t == 1) {
			cin >> l >> r >> cid[i] >> k;
			rec[l].pb(i, k);
			rec[r+1].pb(i,-k);
		}
		if (t == 2) {
			cin >> l >> r >> k;
			is_leave[i] = true;
			rec[l].pb(i, -k);
			rec[r+1].pb(i, k);
		}
		if (t == 3) {
			cin >> l >> k;
			allq[l].pb(i, k);
		}
	}

	solve();

	for (int i = 0;i < q;++i) {
		if (res[i] == -1) continue;
		cout << res[i] << '\n';
	}

} 
# Verdict Execution time Memory Grader output
1 Correct 14 ms 14580 KB Output is correct
2 Correct 15 ms 14684 KB Output is correct
3 Correct 11 ms 14532 KB Output is correct
4 Correct 12 ms 14604 KB Output is correct
5 Correct 11 ms 14540 KB Output is correct
6 Correct 12 ms 14540 KB Output is correct
7 Correct 12 ms 14680 KB Output is correct
8 Correct 12 ms 14668 KB Output is correct
9 Correct 12 ms 14668 KB Output is correct
10 Correct 11 ms 14668 KB Output is correct
11 Correct 13 ms 14692 KB Output is correct
12 Correct 12 ms 14668 KB Output is correct
13 Correct 11 ms 14540 KB Output is correct
14 Correct 11 ms 14680 KB Output is correct
15 Correct 10 ms 14552 KB Output is correct
16 Correct 13 ms 14632 KB Output is correct
17 Correct 10 ms 14540 KB Output is correct
18 Correct 12 ms 14680 KB Output is correct
19 Correct 11 ms 14552 KB Output is correct
20 Correct 12 ms 14596 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 14580 KB Output is correct
2 Correct 15 ms 14684 KB Output is correct
3 Correct 11 ms 14532 KB Output is correct
4 Correct 12 ms 14604 KB Output is correct
5 Correct 11 ms 14540 KB Output is correct
6 Correct 12 ms 14540 KB Output is correct
7 Correct 12 ms 14680 KB Output is correct
8 Correct 12 ms 14668 KB Output is correct
9 Correct 12 ms 14668 KB Output is correct
10 Correct 11 ms 14668 KB Output is correct
11 Correct 13 ms 14692 KB Output is correct
12 Correct 12 ms 14668 KB Output is correct
13 Correct 11 ms 14540 KB Output is correct
14 Correct 11 ms 14680 KB Output is correct
15 Correct 10 ms 14552 KB Output is correct
16 Correct 13 ms 14632 KB Output is correct
17 Correct 10 ms 14540 KB Output is correct
18 Correct 12 ms 14680 KB Output is correct
19 Correct 11 ms 14552 KB Output is correct
20 Correct 12 ms 14596 KB Output is correct
21 Correct 11 ms 14668 KB Output is correct
22 Correct 13 ms 14576 KB Output is correct
23 Correct 11 ms 14680 KB Output is correct
24 Correct 14 ms 14712 KB Output is correct
25 Correct 11 ms 14636 KB Output is correct
26 Correct 12 ms 14668 KB Output is correct
27 Correct 11 ms 14668 KB Output is correct
28 Correct 13 ms 14676 KB Output is correct
29 Correct 12 ms 14700 KB Output is correct
30 Correct 12 ms 14596 KB Output is correct
31 Correct 13 ms 14668 KB Output is correct
32 Correct 15 ms 14668 KB Output is correct
33 Correct 12 ms 14604 KB Output is correct
34 Correct 13 ms 14676 KB Output is correct
35 Correct 11 ms 14636 KB Output is correct
36 Correct 11 ms 14668 KB Output is correct
37 Correct 12 ms 14588 KB Output is correct
38 Correct 12 ms 14676 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 128 ms 22128 KB Output is correct
2 Correct 130 ms 23188 KB Output is correct
3 Correct 166 ms 22996 KB Output is correct
4 Correct 115 ms 23020 KB Output is correct
5 Correct 125 ms 23236 KB Output is correct
6 Correct 122 ms 23156 KB Output is correct
7 Correct 70 ms 21008 KB Output is correct
8 Correct 76 ms 21408 KB Output is correct
9 Correct 119 ms 23084 KB Output is correct
10 Correct 127 ms 23236 KB Output is correct
11 Correct 165 ms 23236 KB Output is correct
12 Correct 133 ms 23216 KB Output is correct
13 Correct 108 ms 22020 KB Output is correct
14 Correct 136 ms 22980 KB Output is correct
15 Correct 122 ms 23312 KB Output is correct
16 Correct 138 ms 23456 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 569 ms 41160 KB Output is correct
2 Correct 474 ms 39976 KB Output is correct
3 Correct 630 ms 49212 KB Output is correct
4 Correct 495 ms 40220 KB Output is correct
5 Correct 493 ms 40628 KB Output is correct
6 Correct 695 ms 49904 KB Output is correct
7 Correct 226 ms 43108 KB Output is correct
8 Correct 273 ms 44032 KB Output is correct
9 Correct 621 ms 48596 KB Output is correct
10 Correct 573 ms 48616 KB Output is correct
11 Correct 656 ms 49204 KB Output is correct
12 Correct 654 ms 49820 KB Output is correct
13 Correct 636 ms 49304 KB Output is correct
14 Correct 691 ms 49748 KB Output is correct
15 Correct 705 ms 49700 KB Output is correct
16 Correct 655 ms 49700 KB Output is correct
17 Correct 692 ms 49732 KB Output is correct
18 Correct 775 ms 49612 KB Output is correct
19 Correct 692 ms 49820 KB Output is correct
20 Correct 771 ms 49408 KB Output is correct
21 Correct 711 ms 49724 KB Output is correct
22 Correct 652 ms 49604 KB Output is correct
23 Correct 726 ms 49708 KB Output is correct
24 Correct 738 ms 49592 KB Output is correct
25 Correct 565 ms 48812 KB Output is correct
26 Correct 579 ms 49564 KB Output is correct
27 Correct 526 ms 50244 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 14580 KB Output is correct
2 Correct 15 ms 14684 KB Output is correct
3 Correct 11 ms 14532 KB Output is correct
4 Correct 12 ms 14604 KB Output is correct
5 Correct 11 ms 14540 KB Output is correct
6 Correct 12 ms 14540 KB Output is correct
7 Correct 12 ms 14680 KB Output is correct
8 Correct 12 ms 14668 KB Output is correct
9 Correct 12 ms 14668 KB Output is correct
10 Correct 11 ms 14668 KB Output is correct
11 Correct 13 ms 14692 KB Output is correct
12 Correct 12 ms 14668 KB Output is correct
13 Correct 11 ms 14540 KB Output is correct
14 Correct 11 ms 14680 KB Output is correct
15 Correct 10 ms 14552 KB Output is correct
16 Correct 13 ms 14632 KB Output is correct
17 Correct 10 ms 14540 KB Output is correct
18 Correct 12 ms 14680 KB Output is correct
19 Correct 11 ms 14552 KB Output is correct
20 Correct 12 ms 14596 KB Output is correct
21 Correct 128 ms 22128 KB Output is correct
22 Correct 130 ms 23188 KB Output is correct
23 Correct 166 ms 22996 KB Output is correct
24 Correct 115 ms 23020 KB Output is correct
25 Correct 125 ms 23236 KB Output is correct
26 Correct 122 ms 23156 KB Output is correct
27 Correct 70 ms 21008 KB Output is correct
28 Correct 76 ms 21408 KB Output is correct
29 Correct 119 ms 23084 KB Output is correct
30 Correct 127 ms 23236 KB Output is correct
31 Correct 165 ms 23236 KB Output is correct
32 Correct 133 ms 23216 KB Output is correct
33 Correct 108 ms 22020 KB Output is correct
34 Correct 136 ms 22980 KB Output is correct
35 Correct 122 ms 23312 KB Output is correct
36 Correct 138 ms 23456 KB Output is correct
37 Correct 110 ms 21956 KB Output is correct
38 Correct 96 ms 21384 KB Output is correct
39 Correct 52 ms 20440 KB Output is correct
40 Correct 65 ms 21092 KB Output is correct
41 Correct 150 ms 22924 KB Output is correct
42 Correct 128 ms 23116 KB Output is correct
43 Correct 163 ms 23076 KB Output is correct
44 Correct 130 ms 23028 KB Output is correct
45 Correct 141 ms 22980 KB Output is correct
46 Correct 132 ms 23204 KB Output is correct
47 Correct 73 ms 21872 KB Output is correct
48 Correct 115 ms 22904 KB Output is correct
49 Correct 97 ms 20560 KB Output is correct
50 Correct 131 ms 21848 KB Output is correct
51 Correct 123 ms 23064 KB Output is correct
52 Correct 129 ms 23108 KB Output is correct
53 Correct 98 ms 21500 KB Output is correct
54 Correct 131 ms 23512 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 102 ms 21052 KB Output is correct
2 Correct 111 ms 21804 KB Output is correct
3 Correct 120 ms 21848 KB Output is correct
4 Correct 78 ms 19780 KB Output is correct
5 Correct 117 ms 20824 KB Output is correct
6 Correct 117 ms 21792 KB Output is correct
7 Correct 60 ms 20144 KB Output is correct
8 Correct 59 ms 19784 KB Output is correct
9 Correct 89 ms 21052 KB Output is correct
10 Correct 82 ms 19632 KB Output is correct
11 Correct 104 ms 21508 KB Output is correct
12 Correct 105 ms 21436 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 14580 KB Output is correct
2 Correct 15 ms 14684 KB Output is correct
3 Correct 11 ms 14532 KB Output is correct
4 Correct 12 ms 14604 KB Output is correct
5 Correct 11 ms 14540 KB Output is correct
6 Correct 12 ms 14540 KB Output is correct
7 Correct 12 ms 14680 KB Output is correct
8 Correct 12 ms 14668 KB Output is correct
9 Correct 12 ms 14668 KB Output is correct
10 Correct 11 ms 14668 KB Output is correct
11 Correct 13 ms 14692 KB Output is correct
12 Correct 12 ms 14668 KB Output is correct
13 Correct 11 ms 14540 KB Output is correct
14 Correct 11 ms 14680 KB Output is correct
15 Correct 10 ms 14552 KB Output is correct
16 Correct 13 ms 14632 KB Output is correct
17 Correct 10 ms 14540 KB Output is correct
18 Correct 12 ms 14680 KB Output is correct
19 Correct 11 ms 14552 KB Output is correct
20 Correct 12 ms 14596 KB Output is correct
21 Correct 11 ms 14668 KB Output is correct
22 Correct 13 ms 14576 KB Output is correct
23 Correct 11 ms 14680 KB Output is correct
24 Correct 14 ms 14712 KB Output is correct
25 Correct 11 ms 14636 KB Output is correct
26 Correct 12 ms 14668 KB Output is correct
27 Correct 11 ms 14668 KB Output is correct
28 Correct 13 ms 14676 KB Output is correct
29 Correct 12 ms 14700 KB Output is correct
30 Correct 12 ms 14596 KB Output is correct
31 Correct 13 ms 14668 KB Output is correct
32 Correct 15 ms 14668 KB Output is correct
33 Correct 12 ms 14604 KB Output is correct
34 Correct 13 ms 14676 KB Output is correct
35 Correct 11 ms 14636 KB Output is correct
36 Correct 11 ms 14668 KB Output is correct
37 Correct 12 ms 14588 KB Output is correct
38 Correct 12 ms 14676 KB Output is correct
39 Correct 128 ms 22128 KB Output is correct
40 Correct 130 ms 23188 KB Output is correct
41 Correct 166 ms 22996 KB Output is correct
42 Correct 115 ms 23020 KB Output is correct
43 Correct 125 ms 23236 KB Output is correct
44 Correct 122 ms 23156 KB Output is correct
45 Correct 70 ms 21008 KB Output is correct
46 Correct 76 ms 21408 KB Output is correct
47 Correct 119 ms 23084 KB Output is correct
48 Correct 127 ms 23236 KB Output is correct
49 Correct 165 ms 23236 KB Output is correct
50 Correct 133 ms 23216 KB Output is correct
51 Correct 108 ms 22020 KB Output is correct
52 Correct 136 ms 22980 KB Output is correct
53 Correct 122 ms 23312 KB Output is correct
54 Correct 138 ms 23456 KB Output is correct
55 Correct 110 ms 21956 KB Output is correct
56 Correct 96 ms 21384 KB Output is correct
57 Correct 52 ms 20440 KB Output is correct
58 Correct 65 ms 21092 KB Output is correct
59 Correct 150 ms 22924 KB Output is correct
60 Correct 128 ms 23116 KB Output is correct
61 Correct 163 ms 23076 KB Output is correct
62 Correct 130 ms 23028 KB Output is correct
63 Correct 141 ms 22980 KB Output is correct
64 Correct 132 ms 23204 KB Output is correct
65 Correct 73 ms 21872 KB Output is correct
66 Correct 115 ms 22904 KB Output is correct
67 Correct 97 ms 20560 KB Output is correct
68 Correct 131 ms 21848 KB Output is correct
69 Correct 123 ms 23064 KB Output is correct
70 Correct 129 ms 23108 KB Output is correct
71 Correct 98 ms 21500 KB Output is correct
72 Correct 131 ms 23512 KB Output is correct
73 Correct 102 ms 21052 KB Output is correct
74 Correct 111 ms 21804 KB Output is correct
75 Correct 120 ms 21848 KB Output is correct
76 Correct 78 ms 19780 KB Output is correct
77 Correct 117 ms 20824 KB Output is correct
78 Correct 117 ms 21792 KB Output is correct
79 Correct 60 ms 20144 KB Output is correct
80 Correct 59 ms 19784 KB Output is correct
81 Correct 89 ms 21052 KB Output is correct
82 Correct 82 ms 19632 KB Output is correct
83 Correct 104 ms 21508 KB Output is correct
84 Correct 105 ms 21436 KB Output is correct
85 Correct 143 ms 22564 KB Output is correct
86 Correct 132 ms 23496 KB Output is correct
87 Correct 107 ms 22408 KB Output is correct
88 Correct 166 ms 23724 KB Output is correct
89 Correct 86 ms 20464 KB Output is correct
90 Correct 121 ms 23628 KB Output is correct
91 Correct 128 ms 21968 KB Output is correct
92 Correct 106 ms 21584 KB Output is correct
93 Correct 134 ms 23488 KB Output is correct
94 Correct 125 ms 23476 KB Output is correct
95 Correct 128 ms 23324 KB Output is correct
96 Correct 128 ms 23604 KB Output is correct
97 Correct 127 ms 23600 KB Output is correct
98 Correct 119 ms 22212 KB Output is correct
99 Correct 95 ms 22456 KB Output is correct
100 Correct 108 ms 21800 KB Output is correct
101 Correct 115 ms 23544 KB Output is correct
102 Correct 121 ms 23744 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 14580 KB Output is correct
2 Correct 15 ms 14684 KB Output is correct
3 Correct 11 ms 14532 KB Output is correct
4 Correct 12 ms 14604 KB Output is correct
5 Correct 11 ms 14540 KB Output is correct
6 Correct 12 ms 14540 KB Output is correct
7 Correct 12 ms 14680 KB Output is correct
8 Correct 12 ms 14668 KB Output is correct
9 Correct 12 ms 14668 KB Output is correct
10 Correct 11 ms 14668 KB Output is correct
11 Correct 13 ms 14692 KB Output is correct
12 Correct 12 ms 14668 KB Output is correct
13 Correct 11 ms 14540 KB Output is correct
14 Correct 11 ms 14680 KB Output is correct
15 Correct 10 ms 14552 KB Output is correct
16 Correct 13 ms 14632 KB Output is correct
17 Correct 10 ms 14540 KB Output is correct
18 Correct 12 ms 14680 KB Output is correct
19 Correct 11 ms 14552 KB Output is correct
20 Correct 12 ms 14596 KB Output is correct
21 Correct 11 ms 14668 KB Output is correct
22 Correct 13 ms 14576 KB Output is correct
23 Correct 11 ms 14680 KB Output is correct
24 Correct 14 ms 14712 KB Output is correct
25 Correct 11 ms 14636 KB Output is correct
26 Correct 12 ms 14668 KB Output is correct
27 Correct 11 ms 14668 KB Output is correct
28 Correct 13 ms 14676 KB Output is correct
29 Correct 12 ms 14700 KB Output is correct
30 Correct 12 ms 14596 KB Output is correct
31 Correct 13 ms 14668 KB Output is correct
32 Correct 15 ms 14668 KB Output is correct
33 Correct 12 ms 14604 KB Output is correct
34 Correct 13 ms 14676 KB Output is correct
35 Correct 11 ms 14636 KB Output is correct
36 Correct 11 ms 14668 KB Output is correct
37 Correct 12 ms 14588 KB Output is correct
38 Correct 12 ms 14676 KB Output is correct
39 Correct 128 ms 22128 KB Output is correct
40 Correct 130 ms 23188 KB Output is correct
41 Correct 166 ms 22996 KB Output is correct
42 Correct 115 ms 23020 KB Output is correct
43 Correct 125 ms 23236 KB Output is correct
44 Correct 122 ms 23156 KB Output is correct
45 Correct 70 ms 21008 KB Output is correct
46 Correct 76 ms 21408 KB Output is correct
47 Correct 119 ms 23084 KB Output is correct
48 Correct 127 ms 23236 KB Output is correct
49 Correct 165 ms 23236 KB Output is correct
50 Correct 133 ms 23216 KB Output is correct
51 Correct 108 ms 22020 KB Output is correct
52 Correct 136 ms 22980 KB Output is correct
53 Correct 122 ms 23312 KB Output is correct
54 Correct 138 ms 23456 KB Output is correct
55 Correct 569 ms 41160 KB Output is correct
56 Correct 474 ms 39976 KB Output is correct
57 Correct 630 ms 49212 KB Output is correct
58 Correct 495 ms 40220 KB Output is correct
59 Correct 493 ms 40628 KB Output is correct
60 Correct 695 ms 49904 KB Output is correct
61 Correct 226 ms 43108 KB Output is correct
62 Correct 273 ms 44032 KB Output is correct
63 Correct 621 ms 48596 KB Output is correct
64 Correct 573 ms 48616 KB Output is correct
65 Correct 656 ms 49204 KB Output is correct
66 Correct 654 ms 49820 KB Output is correct
67 Correct 636 ms 49304 KB Output is correct
68 Correct 691 ms 49748 KB Output is correct
69 Correct 705 ms 49700 KB Output is correct
70 Correct 655 ms 49700 KB Output is correct
71 Correct 692 ms 49732 KB Output is correct
72 Correct 775 ms 49612 KB Output is correct
73 Correct 692 ms 49820 KB Output is correct
74 Correct 771 ms 49408 KB Output is correct
75 Correct 711 ms 49724 KB Output is correct
76 Correct 652 ms 49604 KB Output is correct
77 Correct 726 ms 49708 KB Output is correct
78 Correct 738 ms 49592 KB Output is correct
79 Correct 565 ms 48812 KB Output is correct
80 Correct 579 ms 49564 KB Output is correct
81 Correct 526 ms 50244 KB Output is correct
82 Correct 110 ms 21956 KB Output is correct
83 Correct 96 ms 21384 KB Output is correct
84 Correct 52 ms 20440 KB Output is correct
85 Correct 65 ms 21092 KB Output is correct
86 Correct 150 ms 22924 KB Output is correct
87 Correct 128 ms 23116 KB Output is correct
88 Correct 163 ms 23076 KB Output is correct
89 Correct 130 ms 23028 KB Output is correct
90 Correct 141 ms 22980 KB Output is correct
91 Correct 132 ms 23204 KB Output is correct
92 Correct 73 ms 21872 KB Output is correct
93 Correct 115 ms 22904 KB Output is correct
94 Correct 97 ms 20560 KB Output is correct
95 Correct 131 ms 21848 KB Output is correct
96 Correct 123 ms 23064 KB Output is correct
97 Correct 129 ms 23108 KB Output is correct
98 Correct 98 ms 21500 KB Output is correct
99 Correct 131 ms 23512 KB Output is correct
100 Correct 102 ms 21052 KB Output is correct
101 Correct 111 ms 21804 KB Output is correct
102 Correct 120 ms 21848 KB Output is correct
103 Correct 78 ms 19780 KB Output is correct
104 Correct 117 ms 20824 KB Output is correct
105 Correct 117 ms 21792 KB Output is correct
106 Correct 60 ms 20144 KB Output is correct
107 Correct 59 ms 19784 KB Output is correct
108 Correct 89 ms 21052 KB Output is correct
109 Correct 82 ms 19632 KB Output is correct
110 Correct 104 ms 21508 KB Output is correct
111 Correct 105 ms 21436 KB Output is correct
112 Correct 143 ms 22564 KB Output is correct
113 Correct 132 ms 23496 KB Output is correct
114 Correct 107 ms 22408 KB Output is correct
115 Correct 166 ms 23724 KB Output is correct
116 Correct 86 ms 20464 KB Output is correct
117 Correct 121 ms 23628 KB Output is correct
118 Correct 128 ms 21968 KB Output is correct
119 Correct 106 ms 21584 KB Output is correct
120 Correct 134 ms 23488 KB Output is correct
121 Correct 125 ms 23476 KB Output is correct
122 Correct 128 ms 23324 KB Output is correct
123 Correct 128 ms 23604 KB Output is correct
124 Correct 127 ms 23600 KB Output is correct
125 Correct 119 ms 22212 KB Output is correct
126 Correct 95 ms 22456 KB Output is correct
127 Correct 108 ms 21800 KB Output is correct
128 Correct 115 ms 23544 KB Output is correct
129 Correct 121 ms 23744 KB Output is correct
130 Correct 733 ms 49604 KB Output is correct
131 Correct 492 ms 40004 KB Output is correct
132 Correct 638 ms 49672 KB Output is correct
133 Correct 676 ms 48844 KB Output is correct
134 Correct 565 ms 45084 KB Output is correct
135 Correct 691 ms 50468 KB Output is correct
136 Correct 642 ms 49152 KB Output is correct
137 Correct 555 ms 49132 KB Output is correct
138 Correct 625 ms 49600 KB Output is correct
139 Correct 726 ms 50232 KB Output is correct
140 Correct 704 ms 49784 KB Output is correct
141 Correct 712 ms 50156 KB Output is correct
142 Correct 730 ms 50140 KB Output is correct
143 Correct 673 ms 50104 KB Output is correct
144 Correct 718 ms 49884 KB Output is correct
145 Correct 714 ms 50116 KB Output is correct
146 Correct 679 ms 50180 KB Output is correct
147 Correct 684 ms 50172 KB Output is correct
148 Correct 731 ms 50124 KB Output is correct
149 Correct 698 ms 50124 KB Output is correct
150 Correct 316 ms 45636 KB Output is correct
151 Correct 561 ms 49876 KB Output is correct
152 Correct 582 ms 49988 KB Output is correct
153 Correct 549 ms 50868 KB Output is correct