답안 #1081283

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1081283 2024-08-29T20:58:24 Z Trent 푸드 코트 (JOI21_foodcourt) C++17
100 / 100
683 ms 48768 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 getInd(int v, int nl, int nr, int ti, ll sNeg, ll b) {
	if(nl == nr) return nl;
	int mid = (nl+nr)/2;
	if(ti <= mid && seg[2*v].ps - seg[2*v].psm + sNeg - seg[2*v].nSum >= b) {
		return getInd(2*v, nl, mid, ti, sNeg, b);
	}
	return getInd(2*v+1, mid+1, nr, ti, sNeg, b);
}

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);

			ll need = b - tot.nSum + ati.nSum;
			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 - upTo.nSum >= need) hi = mid;
				else lo = mid;
			}
			if(hi <= ti) {
				ans[ai] = c[hi];
			} else ans[ai] = 0;
		}
	}
	forR(i, ai) cout << ans[i] << '\n';
}
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 14696 KB Output is correct
2 Correct 8 ms 14680 KB Output is correct
3 Correct 7 ms 14684 KB Output is correct
4 Correct 8 ms 14840 KB Output is correct
5 Correct 7 ms 14684 KB Output is correct
6 Correct 8 ms 14580 KB Output is correct
7 Correct 9 ms 14684 KB Output is correct
8 Correct 8 ms 14684 KB Output is correct
9 Correct 7 ms 14816 KB Output is correct
10 Correct 8 ms 14680 KB Output is correct
11 Correct 8 ms 14680 KB Output is correct
12 Correct 8 ms 14684 KB Output is correct
13 Correct 9 ms 14832 KB Output is correct
14 Correct 8 ms 14748 KB Output is correct
15 Correct 7 ms 14684 KB Output is correct
16 Correct 8 ms 14656 KB Output is correct
17 Correct 7 ms 14684 KB Output is correct
18 Correct 8 ms 14684 KB Output is correct
19 Correct 7 ms 14680 KB Output is correct
20 Correct 7 ms 14836 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 14696 KB Output is correct
2 Correct 8 ms 14680 KB Output is correct
3 Correct 7 ms 14684 KB Output is correct
4 Correct 8 ms 14840 KB Output is correct
5 Correct 7 ms 14684 KB Output is correct
6 Correct 8 ms 14580 KB Output is correct
7 Correct 9 ms 14684 KB Output is correct
8 Correct 8 ms 14684 KB Output is correct
9 Correct 7 ms 14816 KB Output is correct
10 Correct 8 ms 14680 KB Output is correct
11 Correct 8 ms 14680 KB Output is correct
12 Correct 8 ms 14684 KB Output is correct
13 Correct 9 ms 14832 KB Output is correct
14 Correct 8 ms 14748 KB Output is correct
15 Correct 7 ms 14684 KB Output is correct
16 Correct 8 ms 14656 KB Output is correct
17 Correct 7 ms 14684 KB Output is correct
18 Correct 8 ms 14684 KB Output is correct
19 Correct 7 ms 14680 KB Output is correct
20 Correct 7 ms 14836 KB Output is correct
21 Correct 9 ms 14684 KB Output is correct
22 Correct 9 ms 14680 KB Output is correct
23 Correct 8 ms 14680 KB Output is correct
24 Correct 8 ms 14684 KB Output is correct
25 Correct 9 ms 14684 KB Output is correct
26 Correct 7 ms 14684 KB Output is correct
27 Correct 9 ms 14684 KB Output is correct
28 Correct 8 ms 14684 KB Output is correct
29 Correct 8 ms 14684 KB Output is correct
30 Correct 8 ms 14660 KB Output is correct
31 Correct 8 ms 14680 KB Output is correct
32 Correct 8 ms 14684 KB Output is correct
33 Correct 7 ms 14680 KB Output is correct
34 Correct 7 ms 14684 KB Output is correct
35 Correct 7 ms 14632 KB Output is correct
36 Correct 8 ms 14684 KB Output is correct
37 Correct 8 ms 14680 KB Output is correct
38 Correct 8 ms 14684 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 106 ms 22420 KB Output is correct
2 Correct 93 ms 22656 KB Output is correct
3 Correct 108 ms 22556 KB Output is correct
4 Correct 117 ms 22356 KB Output is correct
5 Correct 92 ms 22608 KB Output is correct
6 Correct 87 ms 22688 KB Output is correct
7 Correct 73 ms 20848 KB Output is correct
8 Correct 74 ms 21164 KB Output is correct
9 Correct 101 ms 22588 KB Output is correct
10 Correct 95 ms 22612 KB Output is correct
11 Correct 93 ms 22668 KB Output is correct
12 Correct 90 ms 22620 KB Output is correct
13 Correct 105 ms 21844 KB Output is correct
14 Correct 105 ms 22412 KB Output is correct
15 Correct 76 ms 22752 KB Output is correct
16 Correct 79 ms 22608 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 508 ms 45392 KB Output is correct
2 Correct 384 ms 41716 KB Output is correct
3 Correct 531 ms 47184 KB Output is correct
4 Correct 336 ms 42068 KB Output is correct
5 Correct 326 ms 42084 KB Output is correct
6 Correct 439 ms 47700 KB Output is correct
7 Correct 333 ms 42748 KB Output is correct
8 Correct 338 ms 41904 KB Output is correct
9 Correct 664 ms 46600 KB Output is correct
10 Correct 663 ms 46672 KB Output is correct
11 Correct 488 ms 47092 KB Output is correct
12 Correct 460 ms 47700 KB Output is correct
13 Correct 455 ms 47184 KB Output is correct
14 Correct 478 ms 47440 KB Output is correct
15 Correct 478 ms 47700 KB Output is correct
16 Correct 501 ms 47444 KB Output is correct
17 Correct 469 ms 47560 KB Output is correct
18 Correct 469 ms 47188 KB Output is correct
19 Correct 501 ms 47528 KB Output is correct
20 Correct 478 ms 47340 KB Output is correct
21 Correct 476 ms 47448 KB Output is correct
22 Correct 481 ms 47696 KB Output is correct
23 Correct 472 ms 47596 KB Output is correct
24 Correct 466 ms 47436 KB Output is correct
25 Correct 493 ms 46908 KB Output is correct
26 Correct 482 ms 47480 KB Output is correct
27 Correct 360 ms 47956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 14696 KB Output is correct
2 Correct 8 ms 14680 KB Output is correct
3 Correct 7 ms 14684 KB Output is correct
4 Correct 8 ms 14840 KB Output is correct
5 Correct 7 ms 14684 KB Output is correct
6 Correct 8 ms 14580 KB Output is correct
7 Correct 9 ms 14684 KB Output is correct
8 Correct 8 ms 14684 KB Output is correct
9 Correct 7 ms 14816 KB Output is correct
10 Correct 8 ms 14680 KB Output is correct
11 Correct 8 ms 14680 KB Output is correct
12 Correct 8 ms 14684 KB Output is correct
13 Correct 9 ms 14832 KB Output is correct
14 Correct 8 ms 14748 KB Output is correct
15 Correct 7 ms 14684 KB Output is correct
16 Correct 8 ms 14656 KB Output is correct
17 Correct 7 ms 14684 KB Output is correct
18 Correct 8 ms 14684 KB Output is correct
19 Correct 7 ms 14680 KB Output is correct
20 Correct 7 ms 14836 KB Output is correct
21 Correct 106 ms 22420 KB Output is correct
22 Correct 93 ms 22656 KB Output is correct
23 Correct 108 ms 22556 KB Output is correct
24 Correct 117 ms 22356 KB Output is correct
25 Correct 92 ms 22608 KB Output is correct
26 Correct 87 ms 22688 KB Output is correct
27 Correct 73 ms 20848 KB Output is correct
28 Correct 74 ms 21164 KB Output is correct
29 Correct 101 ms 22588 KB Output is correct
30 Correct 95 ms 22612 KB Output is correct
31 Correct 93 ms 22668 KB Output is correct
32 Correct 90 ms 22620 KB Output is correct
33 Correct 105 ms 21844 KB Output is correct
34 Correct 105 ms 22412 KB Output is correct
35 Correct 76 ms 22752 KB Output is correct
36 Correct 79 ms 22608 KB Output is correct
37 Correct 102 ms 22004 KB Output is correct
38 Correct 75 ms 21596 KB Output is correct
39 Correct 54 ms 20560 KB Output is correct
40 Correct 71 ms 20764 KB Output is correct
41 Correct 93 ms 22356 KB Output is correct
42 Correct 94 ms 22572 KB Output is correct
43 Correct 91 ms 22500 KB Output is correct
44 Correct 95 ms 22364 KB Output is correct
45 Correct 101 ms 22612 KB Output is correct
46 Correct 94 ms 22572 KB Output is correct
47 Correct 95 ms 21308 KB Output is correct
48 Correct 103 ms 22352 KB Output is correct
49 Correct 63 ms 21072 KB Output is correct
50 Correct 73 ms 21844 KB Output is correct
51 Correct 88 ms 22608 KB Output is correct
52 Correct 85 ms 22608 KB Output is correct
53 Correct 58 ms 21712 KB Output is correct
54 Correct 78 ms 22612 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 122 ms 22356 KB Output is correct
2 Correct 140 ms 22716 KB Output is correct
3 Correct 144 ms 22868 KB Output is correct
4 Correct 93 ms 21340 KB Output is correct
5 Correct 121 ms 22096 KB Output is correct
6 Correct 138 ms 22824 KB Output is correct
7 Correct 101 ms 21316 KB Output is correct
8 Correct 91 ms 20884 KB Output is correct
9 Correct 125 ms 22148 KB Output is correct
10 Correct 87 ms 21080 KB Output is correct
11 Correct 131 ms 22600 KB Output is correct
12 Correct 130 ms 22608 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 14696 KB Output is correct
2 Correct 8 ms 14680 KB Output is correct
3 Correct 7 ms 14684 KB Output is correct
4 Correct 8 ms 14840 KB Output is correct
5 Correct 7 ms 14684 KB Output is correct
6 Correct 8 ms 14580 KB Output is correct
7 Correct 9 ms 14684 KB Output is correct
8 Correct 8 ms 14684 KB Output is correct
9 Correct 7 ms 14816 KB Output is correct
10 Correct 8 ms 14680 KB Output is correct
11 Correct 8 ms 14680 KB Output is correct
12 Correct 8 ms 14684 KB Output is correct
13 Correct 9 ms 14832 KB Output is correct
14 Correct 8 ms 14748 KB Output is correct
15 Correct 7 ms 14684 KB Output is correct
16 Correct 8 ms 14656 KB Output is correct
17 Correct 7 ms 14684 KB Output is correct
18 Correct 8 ms 14684 KB Output is correct
19 Correct 7 ms 14680 KB Output is correct
20 Correct 7 ms 14836 KB Output is correct
21 Correct 9 ms 14684 KB Output is correct
22 Correct 9 ms 14680 KB Output is correct
23 Correct 8 ms 14680 KB Output is correct
24 Correct 8 ms 14684 KB Output is correct
25 Correct 9 ms 14684 KB Output is correct
26 Correct 7 ms 14684 KB Output is correct
27 Correct 9 ms 14684 KB Output is correct
28 Correct 8 ms 14684 KB Output is correct
29 Correct 8 ms 14684 KB Output is correct
30 Correct 8 ms 14660 KB Output is correct
31 Correct 8 ms 14680 KB Output is correct
32 Correct 8 ms 14684 KB Output is correct
33 Correct 7 ms 14680 KB Output is correct
34 Correct 7 ms 14684 KB Output is correct
35 Correct 7 ms 14632 KB Output is correct
36 Correct 8 ms 14684 KB Output is correct
37 Correct 8 ms 14680 KB Output is correct
38 Correct 8 ms 14684 KB Output is correct
39 Correct 106 ms 22420 KB Output is correct
40 Correct 93 ms 22656 KB Output is correct
41 Correct 108 ms 22556 KB Output is correct
42 Correct 117 ms 22356 KB Output is correct
43 Correct 92 ms 22608 KB Output is correct
44 Correct 87 ms 22688 KB Output is correct
45 Correct 73 ms 20848 KB Output is correct
46 Correct 74 ms 21164 KB Output is correct
47 Correct 101 ms 22588 KB Output is correct
48 Correct 95 ms 22612 KB Output is correct
49 Correct 93 ms 22668 KB Output is correct
50 Correct 90 ms 22620 KB Output is correct
51 Correct 105 ms 21844 KB Output is correct
52 Correct 105 ms 22412 KB Output is correct
53 Correct 76 ms 22752 KB Output is correct
54 Correct 79 ms 22608 KB Output is correct
55 Correct 102 ms 22004 KB Output is correct
56 Correct 75 ms 21596 KB Output is correct
57 Correct 54 ms 20560 KB Output is correct
58 Correct 71 ms 20764 KB Output is correct
59 Correct 93 ms 22356 KB Output is correct
60 Correct 94 ms 22572 KB Output is correct
61 Correct 91 ms 22500 KB Output is correct
62 Correct 95 ms 22364 KB Output is correct
63 Correct 101 ms 22612 KB Output is correct
64 Correct 94 ms 22572 KB Output is correct
65 Correct 95 ms 21308 KB Output is correct
66 Correct 103 ms 22352 KB Output is correct
67 Correct 63 ms 21072 KB Output is correct
68 Correct 73 ms 21844 KB Output is correct
69 Correct 88 ms 22608 KB Output is correct
70 Correct 85 ms 22608 KB Output is correct
71 Correct 58 ms 21712 KB Output is correct
72 Correct 78 ms 22612 KB Output is correct
73 Correct 122 ms 22356 KB Output is correct
74 Correct 140 ms 22716 KB Output is correct
75 Correct 144 ms 22868 KB Output is correct
76 Correct 93 ms 21340 KB Output is correct
77 Correct 121 ms 22096 KB Output is correct
78 Correct 138 ms 22824 KB Output is correct
79 Correct 101 ms 21316 KB Output is correct
80 Correct 91 ms 20884 KB Output is correct
81 Correct 125 ms 22148 KB Output is correct
82 Correct 87 ms 21080 KB Output is correct
83 Correct 131 ms 22600 KB Output is correct
84 Correct 130 ms 22608 KB Output is correct
85 Correct 100 ms 22380 KB Output is correct
86 Correct 111 ms 22876 KB Output is correct
87 Correct 84 ms 22376 KB Output is correct
88 Correct 104 ms 23124 KB Output is correct
89 Correct 67 ms 21236 KB Output is correct
90 Correct 97 ms 23120 KB Output is correct
91 Correct 78 ms 22044 KB Output is correct
92 Correct 78 ms 21840 KB Output is correct
93 Correct 93 ms 23048 KB Output is correct
94 Correct 96 ms 22976 KB Output is correct
95 Correct 94 ms 22864 KB Output is correct
96 Correct 104 ms 23108 KB Output is correct
97 Correct 97 ms 22868 KB Output is correct
98 Correct 80 ms 22104 KB Output is correct
99 Correct 90 ms 21920 KB Output is correct
100 Correct 90 ms 21840 KB Output is correct
101 Correct 103 ms 22996 KB Output is correct
102 Correct 76 ms 23124 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 14696 KB Output is correct
2 Correct 8 ms 14680 KB Output is correct
3 Correct 7 ms 14684 KB Output is correct
4 Correct 8 ms 14840 KB Output is correct
5 Correct 7 ms 14684 KB Output is correct
6 Correct 8 ms 14580 KB Output is correct
7 Correct 9 ms 14684 KB Output is correct
8 Correct 8 ms 14684 KB Output is correct
9 Correct 7 ms 14816 KB Output is correct
10 Correct 8 ms 14680 KB Output is correct
11 Correct 8 ms 14680 KB Output is correct
12 Correct 8 ms 14684 KB Output is correct
13 Correct 9 ms 14832 KB Output is correct
14 Correct 8 ms 14748 KB Output is correct
15 Correct 7 ms 14684 KB Output is correct
16 Correct 8 ms 14656 KB Output is correct
17 Correct 7 ms 14684 KB Output is correct
18 Correct 8 ms 14684 KB Output is correct
19 Correct 7 ms 14680 KB Output is correct
20 Correct 7 ms 14836 KB Output is correct
21 Correct 9 ms 14684 KB Output is correct
22 Correct 9 ms 14680 KB Output is correct
23 Correct 8 ms 14680 KB Output is correct
24 Correct 8 ms 14684 KB Output is correct
25 Correct 9 ms 14684 KB Output is correct
26 Correct 7 ms 14684 KB Output is correct
27 Correct 9 ms 14684 KB Output is correct
28 Correct 8 ms 14684 KB Output is correct
29 Correct 8 ms 14684 KB Output is correct
30 Correct 8 ms 14660 KB Output is correct
31 Correct 8 ms 14680 KB Output is correct
32 Correct 8 ms 14684 KB Output is correct
33 Correct 7 ms 14680 KB Output is correct
34 Correct 7 ms 14684 KB Output is correct
35 Correct 7 ms 14632 KB Output is correct
36 Correct 8 ms 14684 KB Output is correct
37 Correct 8 ms 14680 KB Output is correct
38 Correct 8 ms 14684 KB Output is correct
39 Correct 106 ms 22420 KB Output is correct
40 Correct 93 ms 22656 KB Output is correct
41 Correct 108 ms 22556 KB Output is correct
42 Correct 117 ms 22356 KB Output is correct
43 Correct 92 ms 22608 KB Output is correct
44 Correct 87 ms 22688 KB Output is correct
45 Correct 73 ms 20848 KB Output is correct
46 Correct 74 ms 21164 KB Output is correct
47 Correct 101 ms 22588 KB Output is correct
48 Correct 95 ms 22612 KB Output is correct
49 Correct 93 ms 22668 KB Output is correct
50 Correct 90 ms 22620 KB Output is correct
51 Correct 105 ms 21844 KB Output is correct
52 Correct 105 ms 22412 KB Output is correct
53 Correct 76 ms 22752 KB Output is correct
54 Correct 79 ms 22608 KB Output is correct
55 Correct 508 ms 45392 KB Output is correct
56 Correct 384 ms 41716 KB Output is correct
57 Correct 531 ms 47184 KB Output is correct
58 Correct 336 ms 42068 KB Output is correct
59 Correct 326 ms 42084 KB Output is correct
60 Correct 439 ms 47700 KB Output is correct
61 Correct 333 ms 42748 KB Output is correct
62 Correct 338 ms 41904 KB Output is correct
63 Correct 664 ms 46600 KB Output is correct
64 Correct 663 ms 46672 KB Output is correct
65 Correct 488 ms 47092 KB Output is correct
66 Correct 460 ms 47700 KB Output is correct
67 Correct 455 ms 47184 KB Output is correct
68 Correct 478 ms 47440 KB Output is correct
69 Correct 478 ms 47700 KB Output is correct
70 Correct 501 ms 47444 KB Output is correct
71 Correct 469 ms 47560 KB Output is correct
72 Correct 469 ms 47188 KB Output is correct
73 Correct 501 ms 47528 KB Output is correct
74 Correct 478 ms 47340 KB Output is correct
75 Correct 476 ms 47448 KB Output is correct
76 Correct 481 ms 47696 KB Output is correct
77 Correct 472 ms 47596 KB Output is correct
78 Correct 466 ms 47436 KB Output is correct
79 Correct 493 ms 46908 KB Output is correct
80 Correct 482 ms 47480 KB Output is correct
81 Correct 360 ms 47956 KB Output is correct
82 Correct 102 ms 22004 KB Output is correct
83 Correct 75 ms 21596 KB Output is correct
84 Correct 54 ms 20560 KB Output is correct
85 Correct 71 ms 20764 KB Output is correct
86 Correct 93 ms 22356 KB Output is correct
87 Correct 94 ms 22572 KB Output is correct
88 Correct 91 ms 22500 KB Output is correct
89 Correct 95 ms 22364 KB Output is correct
90 Correct 101 ms 22612 KB Output is correct
91 Correct 94 ms 22572 KB Output is correct
92 Correct 95 ms 21308 KB Output is correct
93 Correct 103 ms 22352 KB Output is correct
94 Correct 63 ms 21072 KB Output is correct
95 Correct 73 ms 21844 KB Output is correct
96 Correct 88 ms 22608 KB Output is correct
97 Correct 85 ms 22608 KB Output is correct
98 Correct 58 ms 21712 KB Output is correct
99 Correct 78 ms 22612 KB Output is correct
100 Correct 122 ms 22356 KB Output is correct
101 Correct 140 ms 22716 KB Output is correct
102 Correct 144 ms 22868 KB Output is correct
103 Correct 93 ms 21340 KB Output is correct
104 Correct 121 ms 22096 KB Output is correct
105 Correct 138 ms 22824 KB Output is correct
106 Correct 101 ms 21316 KB Output is correct
107 Correct 91 ms 20884 KB Output is correct
108 Correct 125 ms 22148 KB Output is correct
109 Correct 87 ms 21080 KB Output is correct
110 Correct 131 ms 22600 KB Output is correct
111 Correct 130 ms 22608 KB Output is correct
112 Correct 100 ms 22380 KB Output is correct
113 Correct 111 ms 22876 KB Output is correct
114 Correct 84 ms 22376 KB Output is correct
115 Correct 104 ms 23124 KB Output is correct
116 Correct 67 ms 21236 KB Output is correct
117 Correct 97 ms 23120 KB Output is correct
118 Correct 78 ms 22044 KB Output is correct
119 Correct 78 ms 21840 KB Output is correct
120 Correct 93 ms 23048 KB Output is correct
121 Correct 96 ms 22976 KB Output is correct
122 Correct 94 ms 22864 KB Output is correct
123 Correct 104 ms 23108 KB Output is correct
124 Correct 97 ms 22868 KB Output is correct
125 Correct 80 ms 22104 KB Output is correct
126 Correct 90 ms 21920 KB Output is correct
127 Correct 90 ms 21840 KB Output is correct
128 Correct 103 ms 22996 KB Output is correct
129 Correct 76 ms 23124 KB Output is correct
130 Correct 575 ms 47804 KB Output is correct
131 Correct 404 ms 42092 KB Output is correct
132 Correct 540 ms 47696 KB Output is correct
133 Correct 460 ms 47508 KB Output is correct
134 Correct 395 ms 45136 KB Output is correct
135 Correct 456 ms 48464 KB Output is correct
136 Correct 677 ms 47576 KB Output is correct
137 Correct 683 ms 47644 KB Output is correct
138 Correct 444 ms 47676 KB Output is correct
139 Correct 488 ms 48208 KB Output is correct
140 Correct 470 ms 47700 KB Output is correct
141 Correct 457 ms 48212 KB Output is correct
142 Correct 455 ms 48208 KB Output is correct
143 Correct 475 ms 47948 KB Output is correct
144 Correct 453 ms 47868 KB Output is correct
145 Correct 538 ms 48216 KB Output is correct
146 Correct 499 ms 47952 KB Output is correct
147 Correct 477 ms 48152 KB Output is correct
148 Correct 455 ms 47956 KB Output is correct
149 Correct 494 ms 48140 KB Output is correct
150 Correct 422 ms 43744 KB Output is correct
151 Correct 485 ms 48160 KB Output is correct
152 Correct 517 ms 47996 KB Output is correct
153 Correct 344 ms 48768 KB Output is correct