답안 #448362

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
448362 2021-07-29T20:19:48 Z dutch 푸드 코트 (JOI21_foodcourt) C++17
100 / 100
454 ms 59196 KB
#include <bits/stdc++.h>
#define int long long
using namespace std;

template<class T> struct SegmentTree{
	T comb(T &x, T &y){
		if(x[0] + y[1] > y[0]){
			return {x[0] + y[1], x[1] + y[1], x[2]};
		}else{
			return {y[0], x[1] + y[1], y[2]};
		}
	}
	int n = 1, i; vector<T> a;
	SegmentTree(int N){ while((n+=n)<N); a.resize(2*n); }
	SegmentTree& operator[](int j){ i=j+n; return *this; }
	void operator=(int v){
		a[i] = {max(v, 0LL), v, i-n};
		while(i/=2) a[i] = comb(a[2*i], a[2*i+1]);
	}
	T operator()(int l, int r){
		T lx = {0, 0, 0}, rx = lx;
		for(l+=n, r+=n+1; l<r; l/=2, r/=2){
			if(l & 1) lx = comb(lx, a[l++]);
			if(r & 1) rx = comb(a[--r], rx);
		}
		return comb(lx, rx);
	}
};

struct FenwickTree{
	vector<int> a; int n;
	FenwickTree(int N) : a((n=N)+1) {}
	void add(int i, int v){
		for(++i; i<=n; i+=i&-i) a[i] += v;
	}
	int get(int i){
		int v = 0;
		for(++i; i>=1; i-=i&-i) v += a[i];
		return v;
	}
	int lower_bound(int v){
		int i = 0, j = 1<<19;
		while(j/=2)
			if(i+j<=n && a[i+j]<v) v -= a[i+=j];
		return i;
	}
};

const int LIM = 2.5e5+1;

int n, m, q, groupAt[LIM], ans[LIM];
array<int, 3> a[LIM];
vector<int> qL[LIM], qR[LIM], b[LIM];

signed main(){
	cin.tie(0)->sync_with_stdio(0);
	cin >> n >> m >> q;
	for(int i=0, t; i<q; ++i){
		auto &[l, r, k] = a[i];
		cin >> t >> l >> r;
		if(t < 3){
			qL[l].push_back(i);
			qR[r].push_back(i);
		}
		if(t < 2){
			cin >> groupAt[i] >> k;
		}else if(t < 3){
			cin >> k; k = -k;
		}else{
			b[l].push_back(i);
			l = -1;
		}
	}

	SegmentTree<array<int, 3>> st(q);
	FenwickTree F(q);

	for(int i=1; i<=n; ++i){
		for(int &j : qR[i-1]){
			st[j] = 0;
			if(a[j][2] > 0) F.add(j,-a[j][2]);
		}
		for(int &j : qL[i]){
			st[j] = a[j][2];
			if(a[j][2] > 0) F.add(j, a[j][2]);
		}
		for(int &j : b[i]){
			auto v = st(0, j);
			if(v[0] >= a[j][1]){
				ans[j] = groupAt[F.lower_bound(F.get(j) - v[0] + a[j][1])];
			}
		}
	}
	for(int i=0; i<q; ++i){
		if(a[i][0] < 0) cout << ans[i] << '\n';
	}
}
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 18124 KB Output is correct
2 Correct 12 ms 18188 KB Output is correct
3 Correct 11 ms 18068 KB Output is correct
4 Correct 12 ms 18124 KB Output is correct
5 Correct 11 ms 18124 KB Output is correct
6 Correct 11 ms 18112 KB Output is correct
7 Correct 12 ms 18152 KB Output is correct
8 Correct 12 ms 18200 KB Output is correct
9 Correct 12 ms 18124 KB Output is correct
10 Correct 12 ms 18124 KB Output is correct
11 Correct 12 ms 18124 KB Output is correct
12 Correct 12 ms 18252 KB Output is correct
13 Correct 11 ms 18124 KB Output is correct
14 Correct 11 ms 18200 KB Output is correct
15 Correct 11 ms 18124 KB Output is correct
16 Correct 12 ms 18124 KB Output is correct
17 Correct 12 ms 18156 KB Output is correct
18 Correct 12 ms 18124 KB Output is correct
19 Correct 12 ms 18124 KB Output is correct
20 Correct 12 ms 18320 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 18124 KB Output is correct
2 Correct 12 ms 18188 KB Output is correct
3 Correct 11 ms 18068 KB Output is correct
4 Correct 12 ms 18124 KB Output is correct
5 Correct 11 ms 18124 KB Output is correct
6 Correct 11 ms 18112 KB Output is correct
7 Correct 12 ms 18152 KB Output is correct
8 Correct 12 ms 18200 KB Output is correct
9 Correct 12 ms 18124 KB Output is correct
10 Correct 12 ms 18124 KB Output is correct
11 Correct 12 ms 18124 KB Output is correct
12 Correct 12 ms 18252 KB Output is correct
13 Correct 11 ms 18124 KB Output is correct
14 Correct 11 ms 18200 KB Output is correct
15 Correct 11 ms 18124 KB Output is correct
16 Correct 12 ms 18124 KB Output is correct
17 Correct 12 ms 18156 KB Output is correct
18 Correct 12 ms 18124 KB Output is correct
19 Correct 12 ms 18124 KB Output is correct
20 Correct 12 ms 18320 KB Output is correct
21 Correct 11 ms 18124 KB Output is correct
22 Correct 13 ms 18252 KB Output is correct
23 Correct 12 ms 18200 KB Output is correct
24 Correct 13 ms 18252 KB Output is correct
25 Correct 12 ms 18124 KB Output is correct
26 Correct 11 ms 18124 KB Output is correct
27 Correct 12 ms 18188 KB Output is correct
28 Correct 12 ms 18200 KB Output is correct
29 Correct 13 ms 18328 KB Output is correct
30 Correct 14 ms 18148 KB Output is correct
31 Correct 13 ms 18204 KB Output is correct
32 Correct 12 ms 18252 KB Output is correct
33 Correct 14 ms 18116 KB Output is correct
34 Correct 11 ms 18252 KB Output is correct
35 Correct 12 ms 18312 KB Output is correct
36 Correct 12 ms 18124 KB Output is correct
37 Correct 11 ms 18124 KB Output is correct
38 Correct 12 ms 18124 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 80 ms 27328 KB Output is correct
2 Correct 79 ms 27472 KB Output is correct
3 Correct 100 ms 27332 KB Output is correct
4 Correct 77 ms 27440 KB Output is correct
5 Correct 87 ms 27592 KB Output is correct
6 Correct 77 ms 27460 KB Output is correct
7 Correct 42 ms 25692 KB Output is correct
8 Correct 43 ms 25844 KB Output is correct
9 Correct 80 ms 27476 KB Output is correct
10 Correct 83 ms 27460 KB Output is correct
11 Correct 77 ms 27460 KB Output is correct
12 Correct 81 ms 27368 KB Output is correct
13 Correct 65 ms 26948 KB Output is correct
14 Correct 77 ms 27772 KB Output is correct
15 Correct 86 ms 27612 KB Output is correct
16 Correct 88 ms 27976 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 382 ms 55492 KB Output is correct
2 Correct 327 ms 50388 KB Output is correct
3 Correct 417 ms 57872 KB Output is correct
4 Correct 294 ms 50560 KB Output is correct
5 Correct 299 ms 50616 KB Output is correct
6 Correct 404 ms 57692 KB Output is correct
7 Correct 155 ms 50332 KB Output is correct
8 Correct 166 ms 50324 KB Output is correct
9 Correct 399 ms 57032 KB Output is correct
10 Correct 396 ms 56984 KB Output is correct
11 Correct 393 ms 56644 KB Output is correct
12 Correct 430 ms 57444 KB Output is correct
13 Correct 407 ms 56468 KB Output is correct
14 Correct 406 ms 57532 KB Output is correct
15 Correct 408 ms 57420 KB Output is correct
16 Correct 414 ms 57300 KB Output is correct
17 Correct 418 ms 57308 KB Output is correct
18 Correct 401 ms 56912 KB Output is correct
19 Correct 423 ms 57452 KB Output is correct
20 Correct 415 ms 56900 KB Output is correct
21 Correct 437 ms 57404 KB Output is correct
22 Correct 425 ms 57308 KB Output is correct
23 Correct 411 ms 57352 KB Output is correct
24 Correct 452 ms 57348 KB Output is correct
25 Correct 315 ms 54100 KB Output is correct
26 Correct 335 ms 54768 KB Output is correct
27 Correct 314 ms 58204 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 18124 KB Output is correct
2 Correct 12 ms 18188 KB Output is correct
3 Correct 11 ms 18068 KB Output is correct
4 Correct 12 ms 18124 KB Output is correct
5 Correct 11 ms 18124 KB Output is correct
6 Correct 11 ms 18112 KB Output is correct
7 Correct 12 ms 18152 KB Output is correct
8 Correct 12 ms 18200 KB Output is correct
9 Correct 12 ms 18124 KB Output is correct
10 Correct 12 ms 18124 KB Output is correct
11 Correct 12 ms 18124 KB Output is correct
12 Correct 12 ms 18252 KB Output is correct
13 Correct 11 ms 18124 KB Output is correct
14 Correct 11 ms 18200 KB Output is correct
15 Correct 11 ms 18124 KB Output is correct
16 Correct 12 ms 18124 KB Output is correct
17 Correct 12 ms 18156 KB Output is correct
18 Correct 12 ms 18124 KB Output is correct
19 Correct 12 ms 18124 KB Output is correct
20 Correct 12 ms 18320 KB Output is correct
21 Correct 80 ms 27328 KB Output is correct
22 Correct 79 ms 27472 KB Output is correct
23 Correct 100 ms 27332 KB Output is correct
24 Correct 77 ms 27440 KB Output is correct
25 Correct 87 ms 27592 KB Output is correct
26 Correct 77 ms 27460 KB Output is correct
27 Correct 42 ms 25692 KB Output is correct
28 Correct 43 ms 25844 KB Output is correct
29 Correct 80 ms 27476 KB Output is correct
30 Correct 83 ms 27460 KB Output is correct
31 Correct 77 ms 27460 KB Output is correct
32 Correct 81 ms 27368 KB Output is correct
33 Correct 65 ms 26948 KB Output is correct
34 Correct 77 ms 27772 KB Output is correct
35 Correct 86 ms 27612 KB Output is correct
36 Correct 88 ms 27976 KB Output is correct
37 Correct 80 ms 26948 KB Output is correct
38 Correct 66 ms 26344 KB Output is correct
39 Correct 38 ms 24976 KB Output is correct
40 Correct 43 ms 25528 KB Output is correct
41 Correct 82 ms 27332 KB Output is correct
42 Correct 80 ms 27624 KB Output is correct
43 Correct 84 ms 27576 KB Output is correct
44 Correct 87 ms 27452 KB Output is correct
45 Correct 84 ms 27656 KB Output is correct
46 Correct 91 ms 27628 KB Output is correct
47 Correct 54 ms 26232 KB Output is correct
48 Correct 80 ms 26808 KB Output is correct
49 Correct 57 ms 25668 KB Output is correct
50 Correct 73 ms 26764 KB Output is correct
51 Correct 85 ms 27664 KB Output is correct
52 Correct 85 ms 27684 KB Output is correct
53 Correct 72 ms 26564 KB Output is correct
54 Correct 82 ms 27960 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 81 ms 27456 KB Output is correct
2 Correct 82 ms 27988 KB Output is correct
3 Correct 87 ms 28228 KB Output is correct
4 Correct 82 ms 26092 KB Output is correct
5 Correct 74 ms 27204 KB Output is correct
6 Correct 85 ms 28100 KB Output is correct
7 Correct 47 ms 25792 KB Output is correct
8 Correct 45 ms 25488 KB Output is correct
9 Correct 61 ms 27000 KB Output is correct
10 Correct 55 ms 25468 KB Output is correct
11 Correct 78 ms 27348 KB Output is correct
12 Correct 94 ms 27332 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 18124 KB Output is correct
2 Correct 12 ms 18188 KB Output is correct
3 Correct 11 ms 18068 KB Output is correct
4 Correct 12 ms 18124 KB Output is correct
5 Correct 11 ms 18124 KB Output is correct
6 Correct 11 ms 18112 KB Output is correct
7 Correct 12 ms 18152 KB Output is correct
8 Correct 12 ms 18200 KB Output is correct
9 Correct 12 ms 18124 KB Output is correct
10 Correct 12 ms 18124 KB Output is correct
11 Correct 12 ms 18124 KB Output is correct
12 Correct 12 ms 18252 KB Output is correct
13 Correct 11 ms 18124 KB Output is correct
14 Correct 11 ms 18200 KB Output is correct
15 Correct 11 ms 18124 KB Output is correct
16 Correct 12 ms 18124 KB Output is correct
17 Correct 12 ms 18156 KB Output is correct
18 Correct 12 ms 18124 KB Output is correct
19 Correct 12 ms 18124 KB Output is correct
20 Correct 12 ms 18320 KB Output is correct
21 Correct 11 ms 18124 KB Output is correct
22 Correct 13 ms 18252 KB Output is correct
23 Correct 12 ms 18200 KB Output is correct
24 Correct 13 ms 18252 KB Output is correct
25 Correct 12 ms 18124 KB Output is correct
26 Correct 11 ms 18124 KB Output is correct
27 Correct 12 ms 18188 KB Output is correct
28 Correct 12 ms 18200 KB Output is correct
29 Correct 13 ms 18328 KB Output is correct
30 Correct 14 ms 18148 KB Output is correct
31 Correct 13 ms 18204 KB Output is correct
32 Correct 12 ms 18252 KB Output is correct
33 Correct 14 ms 18116 KB Output is correct
34 Correct 11 ms 18252 KB Output is correct
35 Correct 12 ms 18312 KB Output is correct
36 Correct 12 ms 18124 KB Output is correct
37 Correct 11 ms 18124 KB Output is correct
38 Correct 12 ms 18124 KB Output is correct
39 Correct 80 ms 27328 KB Output is correct
40 Correct 79 ms 27472 KB Output is correct
41 Correct 100 ms 27332 KB Output is correct
42 Correct 77 ms 27440 KB Output is correct
43 Correct 87 ms 27592 KB Output is correct
44 Correct 77 ms 27460 KB Output is correct
45 Correct 42 ms 25692 KB Output is correct
46 Correct 43 ms 25844 KB Output is correct
47 Correct 80 ms 27476 KB Output is correct
48 Correct 83 ms 27460 KB Output is correct
49 Correct 77 ms 27460 KB Output is correct
50 Correct 81 ms 27368 KB Output is correct
51 Correct 65 ms 26948 KB Output is correct
52 Correct 77 ms 27772 KB Output is correct
53 Correct 86 ms 27612 KB Output is correct
54 Correct 88 ms 27976 KB Output is correct
55 Correct 80 ms 26948 KB Output is correct
56 Correct 66 ms 26344 KB Output is correct
57 Correct 38 ms 24976 KB Output is correct
58 Correct 43 ms 25528 KB Output is correct
59 Correct 82 ms 27332 KB Output is correct
60 Correct 80 ms 27624 KB Output is correct
61 Correct 84 ms 27576 KB Output is correct
62 Correct 87 ms 27452 KB Output is correct
63 Correct 84 ms 27656 KB Output is correct
64 Correct 91 ms 27628 KB Output is correct
65 Correct 54 ms 26232 KB Output is correct
66 Correct 80 ms 26808 KB Output is correct
67 Correct 57 ms 25668 KB Output is correct
68 Correct 73 ms 26764 KB Output is correct
69 Correct 85 ms 27664 KB Output is correct
70 Correct 85 ms 27684 KB Output is correct
71 Correct 72 ms 26564 KB Output is correct
72 Correct 82 ms 27960 KB Output is correct
73 Correct 81 ms 27456 KB Output is correct
74 Correct 82 ms 27988 KB Output is correct
75 Correct 87 ms 28228 KB Output is correct
76 Correct 82 ms 26092 KB Output is correct
77 Correct 74 ms 27204 KB Output is correct
78 Correct 85 ms 28100 KB Output is correct
79 Correct 47 ms 25792 KB Output is correct
80 Correct 45 ms 25488 KB Output is correct
81 Correct 61 ms 27000 KB Output is correct
82 Correct 55 ms 25468 KB Output is correct
83 Correct 78 ms 27348 KB Output is correct
84 Correct 94 ms 27332 KB Output is correct
85 Correct 80 ms 27412 KB Output is correct
86 Correct 92 ms 28260 KB Output is correct
87 Correct 76 ms 27332 KB Output is correct
88 Correct 87 ms 28188 KB Output is correct
89 Correct 66 ms 25668 KB Output is correct
90 Correct 82 ms 28120 KB Output is correct
91 Correct 71 ms 26784 KB Output is correct
92 Correct 74 ms 26528 KB Output is correct
93 Correct 119 ms 28100 KB Output is correct
94 Correct 86 ms 28052 KB Output is correct
95 Correct 106 ms 27972 KB Output is correct
96 Correct 88 ms 28100 KB Output is correct
97 Correct 90 ms 28092 KB Output is correct
98 Correct 81 ms 27012 KB Output is correct
99 Correct 58 ms 26748 KB Output is correct
100 Correct 62 ms 26232 KB Output is correct
101 Correct 77 ms 27408 KB Output is correct
102 Correct 80 ms 28356 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 18124 KB Output is correct
2 Correct 12 ms 18188 KB Output is correct
3 Correct 11 ms 18068 KB Output is correct
4 Correct 12 ms 18124 KB Output is correct
5 Correct 11 ms 18124 KB Output is correct
6 Correct 11 ms 18112 KB Output is correct
7 Correct 12 ms 18152 KB Output is correct
8 Correct 12 ms 18200 KB Output is correct
9 Correct 12 ms 18124 KB Output is correct
10 Correct 12 ms 18124 KB Output is correct
11 Correct 12 ms 18124 KB Output is correct
12 Correct 12 ms 18252 KB Output is correct
13 Correct 11 ms 18124 KB Output is correct
14 Correct 11 ms 18200 KB Output is correct
15 Correct 11 ms 18124 KB Output is correct
16 Correct 12 ms 18124 KB Output is correct
17 Correct 12 ms 18156 KB Output is correct
18 Correct 12 ms 18124 KB Output is correct
19 Correct 12 ms 18124 KB Output is correct
20 Correct 12 ms 18320 KB Output is correct
21 Correct 11 ms 18124 KB Output is correct
22 Correct 13 ms 18252 KB Output is correct
23 Correct 12 ms 18200 KB Output is correct
24 Correct 13 ms 18252 KB Output is correct
25 Correct 12 ms 18124 KB Output is correct
26 Correct 11 ms 18124 KB Output is correct
27 Correct 12 ms 18188 KB Output is correct
28 Correct 12 ms 18200 KB Output is correct
29 Correct 13 ms 18328 KB Output is correct
30 Correct 14 ms 18148 KB Output is correct
31 Correct 13 ms 18204 KB Output is correct
32 Correct 12 ms 18252 KB Output is correct
33 Correct 14 ms 18116 KB Output is correct
34 Correct 11 ms 18252 KB Output is correct
35 Correct 12 ms 18312 KB Output is correct
36 Correct 12 ms 18124 KB Output is correct
37 Correct 11 ms 18124 KB Output is correct
38 Correct 12 ms 18124 KB Output is correct
39 Correct 80 ms 27328 KB Output is correct
40 Correct 79 ms 27472 KB Output is correct
41 Correct 100 ms 27332 KB Output is correct
42 Correct 77 ms 27440 KB Output is correct
43 Correct 87 ms 27592 KB Output is correct
44 Correct 77 ms 27460 KB Output is correct
45 Correct 42 ms 25692 KB Output is correct
46 Correct 43 ms 25844 KB Output is correct
47 Correct 80 ms 27476 KB Output is correct
48 Correct 83 ms 27460 KB Output is correct
49 Correct 77 ms 27460 KB Output is correct
50 Correct 81 ms 27368 KB Output is correct
51 Correct 65 ms 26948 KB Output is correct
52 Correct 77 ms 27772 KB Output is correct
53 Correct 86 ms 27612 KB Output is correct
54 Correct 88 ms 27976 KB Output is correct
55 Correct 382 ms 55492 KB Output is correct
56 Correct 327 ms 50388 KB Output is correct
57 Correct 417 ms 57872 KB Output is correct
58 Correct 294 ms 50560 KB Output is correct
59 Correct 299 ms 50616 KB Output is correct
60 Correct 404 ms 57692 KB Output is correct
61 Correct 155 ms 50332 KB Output is correct
62 Correct 166 ms 50324 KB Output is correct
63 Correct 399 ms 57032 KB Output is correct
64 Correct 396 ms 56984 KB Output is correct
65 Correct 393 ms 56644 KB Output is correct
66 Correct 430 ms 57444 KB Output is correct
67 Correct 407 ms 56468 KB Output is correct
68 Correct 406 ms 57532 KB Output is correct
69 Correct 408 ms 57420 KB Output is correct
70 Correct 414 ms 57300 KB Output is correct
71 Correct 418 ms 57308 KB Output is correct
72 Correct 401 ms 56912 KB Output is correct
73 Correct 423 ms 57452 KB Output is correct
74 Correct 415 ms 56900 KB Output is correct
75 Correct 437 ms 57404 KB Output is correct
76 Correct 425 ms 57308 KB Output is correct
77 Correct 411 ms 57352 KB Output is correct
78 Correct 452 ms 57348 KB Output is correct
79 Correct 315 ms 54100 KB Output is correct
80 Correct 335 ms 54768 KB Output is correct
81 Correct 314 ms 58204 KB Output is correct
82 Correct 80 ms 26948 KB Output is correct
83 Correct 66 ms 26344 KB Output is correct
84 Correct 38 ms 24976 KB Output is correct
85 Correct 43 ms 25528 KB Output is correct
86 Correct 82 ms 27332 KB Output is correct
87 Correct 80 ms 27624 KB Output is correct
88 Correct 84 ms 27576 KB Output is correct
89 Correct 87 ms 27452 KB Output is correct
90 Correct 84 ms 27656 KB Output is correct
91 Correct 91 ms 27628 KB Output is correct
92 Correct 54 ms 26232 KB Output is correct
93 Correct 80 ms 26808 KB Output is correct
94 Correct 57 ms 25668 KB Output is correct
95 Correct 73 ms 26764 KB Output is correct
96 Correct 85 ms 27664 KB Output is correct
97 Correct 85 ms 27684 KB Output is correct
98 Correct 72 ms 26564 KB Output is correct
99 Correct 82 ms 27960 KB Output is correct
100 Correct 81 ms 27456 KB Output is correct
101 Correct 82 ms 27988 KB Output is correct
102 Correct 87 ms 28228 KB Output is correct
103 Correct 82 ms 26092 KB Output is correct
104 Correct 74 ms 27204 KB Output is correct
105 Correct 85 ms 28100 KB Output is correct
106 Correct 47 ms 25792 KB Output is correct
107 Correct 45 ms 25488 KB Output is correct
108 Correct 61 ms 27000 KB Output is correct
109 Correct 55 ms 25468 KB Output is correct
110 Correct 78 ms 27348 KB Output is correct
111 Correct 94 ms 27332 KB Output is correct
112 Correct 80 ms 27412 KB Output is correct
113 Correct 92 ms 28260 KB Output is correct
114 Correct 76 ms 27332 KB Output is correct
115 Correct 87 ms 28188 KB Output is correct
116 Correct 66 ms 25668 KB Output is correct
117 Correct 82 ms 28120 KB Output is correct
118 Correct 71 ms 26784 KB Output is correct
119 Correct 74 ms 26528 KB Output is correct
120 Correct 119 ms 28100 KB Output is correct
121 Correct 86 ms 28052 KB Output is correct
122 Correct 106 ms 27972 KB Output is correct
123 Correct 88 ms 28100 KB Output is correct
124 Correct 90 ms 28092 KB Output is correct
125 Correct 81 ms 27012 KB Output is correct
126 Correct 58 ms 26748 KB Output is correct
127 Correct 62 ms 26232 KB Output is correct
128 Correct 77 ms 27408 KB Output is correct
129 Correct 80 ms 28356 KB Output is correct
130 Correct 426 ms 58324 KB Output is correct
131 Correct 298 ms 50644 KB Output is correct
132 Correct 431 ms 58256 KB Output is correct
133 Correct 418 ms 57384 KB Output is correct
134 Correct 354 ms 54496 KB Output is correct
135 Correct 408 ms 58616 KB Output is correct
136 Correct 394 ms 57964 KB Output is correct
137 Correct 395 ms 57948 KB Output is correct
138 Correct 394 ms 57124 KB Output is correct
139 Correct 405 ms 58080 KB Output is correct
140 Correct 395 ms 57176 KB Output is correct
141 Correct 410 ms 58020 KB Output is correct
142 Correct 415 ms 58012 KB Output is correct
143 Correct 454 ms 58052 KB Output is correct
144 Correct 401 ms 57556 KB Output is correct
145 Correct 435 ms 58140 KB Output is correct
146 Correct 403 ms 57668 KB Output is correct
147 Correct 415 ms 58112 KB Output is correct
148 Correct 426 ms 57944 KB Output is correct
149 Correct 442 ms 58004 KB Output is correct
150 Correct 242 ms 52884 KB Output is correct
151 Correct 332 ms 55384 KB Output is correct
152 Correct 322 ms 55240 KB Output is correct
153 Correct 338 ms 59196 KB Output is correct