Submission #98717

# Submission time Handle Problem Language Result Execution time Memory
98717 2019-02-25T08:58:29 Z youngyojun Alternating Current (BOI18_alternating) C++11
100 / 100
610 ms 27224 KB
#include <bits/stdc++.h>
#define eb emplace_back
#define sz(V) ((int)(V).size())
#define allv(V) ((V).begin()),((V).end())
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
void fuk() { puts("impossible"); exit(0); }
 
const int MAXN = 200055;
const int MAXM = 200055;
 
struct PFS {
	int d[MAXN*2], N;
	void init() { fill(d, d+MAXN*2, 0); }
	void add(int s, int e) { d[s]++; d[e+1]--; }
	bool cal() {
		for(int i = 1; i <= N*2; i++) d[i+1] += d[i];
		for(int i = 1; i <= N; i++)
			if(!(d[i] + d[i+N])) return false;
		return true;
	}
} preA, preB;
 
vector<int> T[MAXN*2];
vector<int> G[MAXM], CH;
bitset<MAXM> isChild;
int prt[MAXM];
 
bitset<MAXM> CA, CB;
 
int A[MAXM], B[MAXM];
 
int Ans[MAXM];
int N, M;
 
bool isValid() {
	preA.init(); preB.init();
	for(int i = 1; i <= M; i++)
		(Ans[i] ? preA : preB).add(A[i], B[i]);
	return preA.cal() && preB.cal();
}
 
void dfs(int i, int c) {
	prt[i] = c;
	for(int v : G[i]) if(!prt[v])
		dfs(v, c);
}
 
int main() {
	ios::sync_with_stdio(false);
 
	cin >> N >> M;
	preA.N = preB.N = N;
	for(int i = 1; i <= M; i++) {
		cin >> A[i] >> B[i];
		if(A[i] > B[i]) B[i] += N;
		if(B[i]-A[i] == N-1) { A[i] = 1; B[i] = N; }
		T[A[i]].eb(i);
		T[A[i]+N].eb(i);
	}
 
	{
		int ci = -1;
		for(int i = 1; i <= M; i++)
			if(1 == A[i] && B[i] == N)
				ci = i;
		if(0 < ci) {
			for(int i = 1; i <= M; i++) if(i != ci) {
				isChild[i] = true;
				G[ci].eb(i);
			}
		} else {
			for(int i = 1; i <= N*2; i++)
				sort(allv(T[i]), [&](int a, int b) {
					if(B[a] != B[b]) return B[a] > B[b];
					return a < b;
				});
			for(int i = 1, et = 0, ei = -1; i <= N*2; i++) {
				for(int v : T[i]) {
					int e = i + (B[v]-A[v]);
					if(e <= et) {
						isChild[v] = true;
						G[ei].eb(v);
					}
					else {
						et = e; ei = v;
					}
				}
			}
		}
	}
	for(int i = 1; i <= M; i++) if(!isChild[i]) CH.eb(i);
	for(int i : CH) dfs(i, i);
	for(int i = 1; i <= M; i++) G[i].clear();
	for(int i = 1; i <= M; i++) if(isChild[i]) G[prt[i]].eb(i);
	sort(allv(CH), [&](int a, int b) { return A[a] < A[b]; });
 
	for(int v : CH) preA.add(A[v], B[v]);
	if(!preA.cal()) fuk();
	preA.init();
 
	if(sz(CH) & 1) {
		if(sz(CH) < 10) {
			for(int i = 0, n = sz(CH); i < n; i++) {
				for(int j = 0; j < i; j++) Ans[CH[j]] = (i-j-1) & 1;
				for(int j = i; j < n; j++) Ans[CH[j]] = (j-i) & 1;
				for(int j = 1; j <= M; j++) if(isChild[j])
					Ans[j] = !Ans[prt[j]];
				if(isValid()) break;
			}
		} else {
			int ret = 0;
			for(int i = 0; i < 10000; i++) for(int j = 0; j < 10000; j++)
				ret = (ret + i + j) % 998353288;
			if(!ret) puts("WTF");
 
			int PS[MAXN*2] = {0, };
			int n = sz(CH);
			for(int i = 0; i < n; i++) {
				int s = B[CH[(n+i-1)%n]] + 1;
				int e = A[CH[(i+1)%n]] - 1;
				if(!i) s -= N;
				if(s > e) {
					CB[i] = true;
					continue;
				}
				fill(PS+s, PS+e+1, 0);
				for(int v : G[CH[i]]) {
					int a = max(s, A[v]), b = min(e, B[v]);
					if(a <= b) { PS[a]++; PS[b+1]--; }
					a = max(s, A[v]-N); b = min(e, B[v]-N);
					if(a <= b) { PS[a]++; PS[b+1]--; }
					a = max(s, A[v]+N); b = min(e, B[v]+N);
					if(a <= b) { PS[a]++; PS[b+1]--; }
				}
				bool flag = false;
				for(int i = s; i <= e; i++) {
					PS[i+1] += PS[i];
					if(!PS[i]) flag = true;
				}
				CB[i] = !flag;
			}
 
			for(int i = 0; i < n; i++) {
				int s = B[CH[(n+i-2)%n]] + 1;
				int e = A[CH[(i+1)%n]] - 1;
				if(i-2 < 0) s -= N; if(n <= i+1) e += N;
				if(s > e) {
					CA[i] = true;
					continue;
				}
				fill(PS+s, PS+e+1, 0);
				vector<int> V = G[CH[(n+i-1)%n]];
				for(int v : G[CH[i]]) V.eb(v);
				for(int v : V) {
					int a = max(s, A[v]), b = min(e, B[v]);
					if(a <= b) { PS[a]++; PS[b+1]--; }
					a = max(s, A[v]-N); b = min(e, B[v]-N);
					if(a <= b) { PS[a]++; PS[b+1]--; }
					a = max(s, A[v]+N); b = min(e, B[v]+N);
					if(a <= b) { PS[a]++; PS[b+1]--; }
				}
				bool flag = false;
				for(int i = s; i <= e; i++) {
					PS[i+1] += PS[i];
					if(!PS[i]) flag = true;
				}
				CA[i] = !flag;
			}
 
			int cnt = 0;
			for(int i = 0; i < n; i++) if(CB[i]) cnt++;
 
			for(int i = 0; i < n; i++) {
				if(!CA[i]) continue;
				int ncnt = cnt;
				if(CB[i]) ncnt--;
				if(CB[(n+i-1)%n]) ncnt--;
 
				if(ncnt < n-2) continue;
 
				for(int j = 0; j < i; j++) Ans[CH[j]] = (i-j-1) & 1;
				for(int j = i; j < n; j++) Ans[CH[j]] = (j-i) & 1;
				for(int j = 1; j <= M; j++) if(isChild[j])
					Ans[j] = !Ans[prt[j]];
				break;
			}
		}
	} else {
		for(int i = 0, n = sz(CH); i < n; i++)
			Ans[CH[i]] = i & 1;
		for(int i = 1; i <= M; i++) if(isChild[i])
			Ans[i] = !Ans[prt[i]];
	}
 
	if(!isValid()) fuk();
	for(int i = 1; i <= M; i++) printf("%d", !!Ans[i]);
	puts("");
	return 0;
}

Compilation message

alternating.cpp: In function 'int main()':
alternating.cpp:150:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(i-2 < 0) s -= N; if(n <= i+1) e += N;
     ^~
alternating.cpp:150:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if(i-2 < 0) s -= N; if(n <= i+1) e += N;
                         ^~
# Verdict Execution time Memory Grader output
1 Correct 19 ms 17664 KB Output is correct
2 Correct 18 ms 17536 KB Output is correct
3 Correct 20 ms 17664 KB Output is correct
4 Correct 21 ms 17536 KB Output is correct
5 Correct 17 ms 17664 KB Output is correct
6 Correct 18 ms 17664 KB Output is correct
7 Correct 18 ms 17664 KB Output is correct
8 Correct 18 ms 17636 KB Output is correct
9 Correct 20 ms 17664 KB Output is correct
10 Correct 21 ms 17540 KB Output is correct
11 Correct 20 ms 17536 KB Output is correct
12 Correct 18 ms 17664 KB Output is correct
13 Correct 20 ms 17664 KB Output is correct
14 Correct 18 ms 17664 KB Output is correct
15 Correct 22 ms 17664 KB Output is correct
16 Correct 20 ms 17536 KB Output is correct
17 Correct 17 ms 17536 KB Output is correct
18 Correct 18 ms 17536 KB Output is correct
19 Correct 21 ms 17664 KB Output is correct
20 Correct 21 ms 17664 KB Output is correct
21 Correct 22 ms 17664 KB Output is correct
22 Correct 22 ms 17664 KB Output is correct
23 Correct 20 ms 17664 KB Output is correct
24 Correct 20 ms 17664 KB Output is correct
25 Correct 19 ms 17664 KB Output is correct
26 Correct 18 ms 17664 KB Output is correct
27 Correct 12 ms 14464 KB Output is correct
28 Correct 20 ms 17536 KB Output is correct
29 Correct 18 ms 17536 KB Output is correct
30 Correct 19 ms 17664 KB Output is correct
31 Correct 19 ms 17664 KB Output is correct
32 Correct 18 ms 17664 KB Output is correct
33 Correct 17 ms 17664 KB Output is correct
34 Correct 15 ms 14464 KB Output is correct
35 Correct 19 ms 17664 KB Output is correct
36 Correct 17 ms 17664 KB Output is correct
37 Correct 18 ms 17636 KB Output is correct
38 Correct 19 ms 17664 KB Output is correct
39 Correct 20 ms 17636 KB Output is correct
40 Correct 19 ms 17536 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 17664 KB Output is correct
2 Correct 18 ms 17536 KB Output is correct
3 Correct 20 ms 17664 KB Output is correct
4 Correct 21 ms 17536 KB Output is correct
5 Correct 17 ms 17664 KB Output is correct
6 Correct 18 ms 17664 KB Output is correct
7 Correct 18 ms 17664 KB Output is correct
8 Correct 18 ms 17636 KB Output is correct
9 Correct 20 ms 17664 KB Output is correct
10 Correct 21 ms 17540 KB Output is correct
11 Correct 20 ms 17536 KB Output is correct
12 Correct 18 ms 17664 KB Output is correct
13 Correct 20 ms 17664 KB Output is correct
14 Correct 18 ms 17664 KB Output is correct
15 Correct 22 ms 17664 KB Output is correct
16 Correct 20 ms 17536 KB Output is correct
17 Correct 17 ms 17536 KB Output is correct
18 Correct 18 ms 17536 KB Output is correct
19 Correct 21 ms 17664 KB Output is correct
20 Correct 21 ms 17664 KB Output is correct
21 Correct 22 ms 17664 KB Output is correct
22 Correct 22 ms 17664 KB Output is correct
23 Correct 20 ms 17664 KB Output is correct
24 Correct 20 ms 17664 KB Output is correct
25 Correct 19 ms 17664 KB Output is correct
26 Correct 18 ms 17664 KB Output is correct
27 Correct 12 ms 14464 KB Output is correct
28 Correct 20 ms 17536 KB Output is correct
29 Correct 18 ms 17536 KB Output is correct
30 Correct 19 ms 17664 KB Output is correct
31 Correct 19 ms 17664 KB Output is correct
32 Correct 18 ms 17664 KB Output is correct
33 Correct 17 ms 17664 KB Output is correct
34 Correct 15 ms 14464 KB Output is correct
35 Correct 19 ms 17664 KB Output is correct
36 Correct 17 ms 17664 KB Output is correct
37 Correct 18 ms 17636 KB Output is correct
38 Correct 19 ms 17664 KB Output is correct
39 Correct 20 ms 17636 KB Output is correct
40 Correct 19 ms 17536 KB Output is correct
41 Correct 17 ms 17664 KB Output is correct
42 Correct 430 ms 19192 KB Output is correct
43 Correct 446 ms 19320 KB Output is correct
44 Correct 20 ms 17664 KB Output is correct
45 Correct 437 ms 19192 KB Output is correct
46 Correct 21 ms 17656 KB Output is correct
47 Correct 23 ms 17792 KB Output is correct
48 Correct 19 ms 17536 KB Output is correct
49 Correct 22 ms 17664 KB Output is correct
50 Correct 20 ms 17536 KB Output is correct
51 Correct 438 ms 19192 KB Output is correct
52 Correct 20 ms 17664 KB Output is correct
53 Correct 436 ms 19320 KB Output is correct
54 Correct 18 ms 17664 KB Output is correct
55 Correct 19 ms 17536 KB Output is correct
56 Correct 20 ms 17664 KB Output is correct
57 Correct 19 ms 17664 KB Output is correct
58 Correct 18 ms 17664 KB Output is correct
59 Correct 18 ms 17664 KB Output is correct
60 Correct 20 ms 17664 KB Output is correct
61 Correct 17 ms 17536 KB Output is correct
62 Correct 16 ms 14464 KB Output is correct
63 Correct 15 ms 14464 KB Output is correct
64 Correct 14 ms 17536 KB Output is correct
65 Correct 21 ms 17528 KB Output is correct
66 Correct 18 ms 17664 KB Output is correct
67 Correct 430 ms 19192 KB Output is correct
68 Correct 431 ms 19192 KB Output is correct
69 Correct 17 ms 17536 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 17664 KB Output is correct
2 Correct 18 ms 17536 KB Output is correct
3 Correct 20 ms 17664 KB Output is correct
4 Correct 21 ms 17536 KB Output is correct
5 Correct 17 ms 17664 KB Output is correct
6 Correct 18 ms 17664 KB Output is correct
7 Correct 18 ms 17664 KB Output is correct
8 Correct 18 ms 17636 KB Output is correct
9 Correct 20 ms 17664 KB Output is correct
10 Correct 21 ms 17540 KB Output is correct
11 Correct 20 ms 17536 KB Output is correct
12 Correct 18 ms 17664 KB Output is correct
13 Correct 20 ms 17664 KB Output is correct
14 Correct 18 ms 17664 KB Output is correct
15 Correct 22 ms 17664 KB Output is correct
16 Correct 20 ms 17536 KB Output is correct
17 Correct 17 ms 17536 KB Output is correct
18 Correct 18 ms 17536 KB Output is correct
19 Correct 21 ms 17664 KB Output is correct
20 Correct 21 ms 17664 KB Output is correct
21 Correct 22 ms 17664 KB Output is correct
22 Correct 22 ms 17664 KB Output is correct
23 Correct 20 ms 17664 KB Output is correct
24 Correct 20 ms 17664 KB Output is correct
25 Correct 19 ms 17664 KB Output is correct
26 Correct 18 ms 17664 KB Output is correct
27 Correct 12 ms 14464 KB Output is correct
28 Correct 20 ms 17536 KB Output is correct
29 Correct 18 ms 17536 KB Output is correct
30 Correct 19 ms 17664 KB Output is correct
31 Correct 19 ms 17664 KB Output is correct
32 Correct 18 ms 17664 KB Output is correct
33 Correct 17 ms 17664 KB Output is correct
34 Correct 15 ms 14464 KB Output is correct
35 Correct 19 ms 17664 KB Output is correct
36 Correct 17 ms 17664 KB Output is correct
37 Correct 18 ms 17636 KB Output is correct
38 Correct 19 ms 17664 KB Output is correct
39 Correct 20 ms 17636 KB Output is correct
40 Correct 19 ms 17536 KB Output is correct
41 Correct 17 ms 17664 KB Output is correct
42 Correct 430 ms 19192 KB Output is correct
43 Correct 446 ms 19320 KB Output is correct
44 Correct 20 ms 17664 KB Output is correct
45 Correct 437 ms 19192 KB Output is correct
46 Correct 21 ms 17656 KB Output is correct
47 Correct 23 ms 17792 KB Output is correct
48 Correct 19 ms 17536 KB Output is correct
49 Correct 22 ms 17664 KB Output is correct
50 Correct 20 ms 17536 KB Output is correct
51 Correct 438 ms 19192 KB Output is correct
52 Correct 20 ms 17664 KB Output is correct
53 Correct 436 ms 19320 KB Output is correct
54 Correct 18 ms 17664 KB Output is correct
55 Correct 19 ms 17536 KB Output is correct
56 Correct 20 ms 17664 KB Output is correct
57 Correct 19 ms 17664 KB Output is correct
58 Correct 18 ms 17664 KB Output is correct
59 Correct 18 ms 17664 KB Output is correct
60 Correct 20 ms 17664 KB Output is correct
61 Correct 17 ms 17536 KB Output is correct
62 Correct 16 ms 14464 KB Output is correct
63 Correct 15 ms 14464 KB Output is correct
64 Correct 14 ms 17536 KB Output is correct
65 Correct 21 ms 17528 KB Output is correct
66 Correct 18 ms 17664 KB Output is correct
67 Correct 430 ms 19192 KB Output is correct
68 Correct 431 ms 19192 KB Output is correct
69 Correct 17 ms 17536 KB Output is correct
70 Correct 17 ms 17664 KB Output is correct
71 Correct 431 ms 19292 KB Output is correct
72 Correct 437 ms 19216 KB Output is correct
73 Correct 20 ms 17664 KB Output is correct
74 Correct 443 ms 19192 KB Output is correct
75 Correct 17 ms 17664 KB Output is correct
76 Correct 17 ms 17664 KB Output is correct
77 Correct 18 ms 17664 KB Output is correct
78 Correct 430 ms 19192 KB Output is correct
79 Correct 19 ms 17664 KB Output is correct
80 Correct 19 ms 17656 KB Output is correct
81 Correct 432 ms 19192 KB Output is correct
82 Correct 17 ms 17536 KB Output is correct
83 Correct 18 ms 17664 KB Output is correct
84 Correct 435 ms 19320 KB Output is correct
85 Correct 17 ms 17536 KB Output is correct
86 Correct 18 ms 17536 KB Output is correct
87 Correct 18 ms 17664 KB Output is correct
88 Correct 19 ms 17664 KB Output is correct
89 Correct 435 ms 19192 KB Output is correct
90 Correct 19 ms 17664 KB Output is correct
91 Correct 437 ms 19320 KB Output is correct
92 Correct 18 ms 17664 KB Output is correct
93 Correct 19 ms 17536 KB Output is correct
94 Correct 19 ms 14592 KB Output is correct
95 Correct 18 ms 17584 KB Output is correct
96 Correct 18 ms 17664 KB Output is correct
97 Correct 434 ms 19320 KB Output is correct
98 Correct 17 ms 17664 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 49 ms 20592 KB Output is correct
2 Correct 21 ms 17664 KB Output is correct
3 Correct 51 ms 21812 KB Output is correct
4 Correct 42 ms 21872 KB Output is correct
5 Correct 201 ms 25336 KB Output is correct
6 Correct 610 ms 26240 KB Output is correct
7 Correct 585 ms 27000 KB Output is correct
8 Correct 22 ms 17920 KB Output is correct
9 Correct 23 ms 17664 KB Output is correct
10 Correct 583 ms 27224 KB Output is correct
11 Correct 129 ms 23920 KB Output is correct
12 Correct 101 ms 25200 KB Output is correct
13 Correct 17 ms 15232 KB Output is correct
14 Correct 16 ms 15232 KB Output is correct
15 Correct 155 ms 23836 KB Output is correct
16 Correct 457 ms 23384 KB Output is correct
17 Correct 149 ms 23788 KB Output is correct
18 Correct 86 ms 21612 KB Output is correct
19 Correct 23 ms 15872 KB Output is correct
20 Correct 78 ms 24308 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 17664 KB Output is correct
2 Correct 18 ms 17536 KB Output is correct
3 Correct 20 ms 17664 KB Output is correct
4 Correct 21 ms 17536 KB Output is correct
5 Correct 17 ms 17664 KB Output is correct
6 Correct 18 ms 17664 KB Output is correct
7 Correct 18 ms 17664 KB Output is correct
8 Correct 18 ms 17636 KB Output is correct
9 Correct 20 ms 17664 KB Output is correct
10 Correct 21 ms 17540 KB Output is correct
11 Correct 20 ms 17536 KB Output is correct
12 Correct 18 ms 17664 KB Output is correct
13 Correct 20 ms 17664 KB Output is correct
14 Correct 18 ms 17664 KB Output is correct
15 Correct 22 ms 17664 KB Output is correct
16 Correct 20 ms 17536 KB Output is correct
17 Correct 17 ms 17536 KB Output is correct
18 Correct 18 ms 17536 KB Output is correct
19 Correct 21 ms 17664 KB Output is correct
20 Correct 21 ms 17664 KB Output is correct
21 Correct 22 ms 17664 KB Output is correct
22 Correct 22 ms 17664 KB Output is correct
23 Correct 20 ms 17664 KB Output is correct
24 Correct 20 ms 17664 KB Output is correct
25 Correct 19 ms 17664 KB Output is correct
26 Correct 18 ms 17664 KB Output is correct
27 Correct 12 ms 14464 KB Output is correct
28 Correct 20 ms 17536 KB Output is correct
29 Correct 18 ms 17536 KB Output is correct
30 Correct 19 ms 17664 KB Output is correct
31 Correct 19 ms 17664 KB Output is correct
32 Correct 18 ms 17664 KB Output is correct
33 Correct 17 ms 17664 KB Output is correct
34 Correct 15 ms 14464 KB Output is correct
35 Correct 19 ms 17664 KB Output is correct
36 Correct 17 ms 17664 KB Output is correct
37 Correct 18 ms 17636 KB Output is correct
38 Correct 19 ms 17664 KB Output is correct
39 Correct 20 ms 17636 KB Output is correct
40 Correct 19 ms 17536 KB Output is correct
41 Correct 17 ms 17664 KB Output is correct
42 Correct 430 ms 19192 KB Output is correct
43 Correct 446 ms 19320 KB Output is correct
44 Correct 20 ms 17664 KB Output is correct
45 Correct 437 ms 19192 KB Output is correct
46 Correct 21 ms 17656 KB Output is correct
47 Correct 23 ms 17792 KB Output is correct
48 Correct 19 ms 17536 KB Output is correct
49 Correct 22 ms 17664 KB Output is correct
50 Correct 20 ms 17536 KB Output is correct
51 Correct 438 ms 19192 KB Output is correct
52 Correct 20 ms 17664 KB Output is correct
53 Correct 436 ms 19320 KB Output is correct
54 Correct 18 ms 17664 KB Output is correct
55 Correct 19 ms 17536 KB Output is correct
56 Correct 20 ms 17664 KB Output is correct
57 Correct 19 ms 17664 KB Output is correct
58 Correct 18 ms 17664 KB Output is correct
59 Correct 18 ms 17664 KB Output is correct
60 Correct 20 ms 17664 KB Output is correct
61 Correct 17 ms 17536 KB Output is correct
62 Correct 16 ms 14464 KB Output is correct
63 Correct 15 ms 14464 KB Output is correct
64 Correct 14 ms 17536 KB Output is correct
65 Correct 21 ms 17528 KB Output is correct
66 Correct 18 ms 17664 KB Output is correct
67 Correct 430 ms 19192 KB Output is correct
68 Correct 431 ms 19192 KB Output is correct
69 Correct 17 ms 17536 KB Output is correct
70 Correct 17 ms 17664 KB Output is correct
71 Correct 431 ms 19292 KB Output is correct
72 Correct 437 ms 19216 KB Output is correct
73 Correct 20 ms 17664 KB Output is correct
74 Correct 443 ms 19192 KB Output is correct
75 Correct 17 ms 17664 KB Output is correct
76 Correct 17 ms 17664 KB Output is correct
77 Correct 18 ms 17664 KB Output is correct
78 Correct 430 ms 19192 KB Output is correct
79 Correct 19 ms 17664 KB Output is correct
80 Correct 19 ms 17656 KB Output is correct
81 Correct 432 ms 19192 KB Output is correct
82 Correct 17 ms 17536 KB Output is correct
83 Correct 18 ms 17664 KB Output is correct
84 Correct 435 ms 19320 KB Output is correct
85 Correct 17 ms 17536 KB Output is correct
86 Correct 18 ms 17536 KB Output is correct
87 Correct 18 ms 17664 KB Output is correct
88 Correct 19 ms 17664 KB Output is correct
89 Correct 435 ms 19192 KB Output is correct
90 Correct 19 ms 17664 KB Output is correct
91 Correct 437 ms 19320 KB Output is correct
92 Correct 18 ms 17664 KB Output is correct
93 Correct 19 ms 17536 KB Output is correct
94 Correct 19 ms 14592 KB Output is correct
95 Correct 18 ms 17584 KB Output is correct
96 Correct 18 ms 17664 KB Output is correct
97 Correct 434 ms 19320 KB Output is correct
98 Correct 17 ms 17664 KB Output is correct
99 Correct 49 ms 20592 KB Output is correct
100 Correct 21 ms 17664 KB Output is correct
101 Correct 51 ms 21812 KB Output is correct
102 Correct 42 ms 21872 KB Output is correct
103 Correct 201 ms 25336 KB Output is correct
104 Correct 610 ms 26240 KB Output is correct
105 Correct 585 ms 27000 KB Output is correct
106 Correct 22 ms 17920 KB Output is correct
107 Correct 23 ms 17664 KB Output is correct
108 Correct 583 ms 27224 KB Output is correct
109 Correct 129 ms 23920 KB Output is correct
110 Correct 101 ms 25200 KB Output is correct
111 Correct 17 ms 15232 KB Output is correct
112 Correct 16 ms 15232 KB Output is correct
113 Correct 155 ms 23836 KB Output is correct
114 Correct 457 ms 23384 KB Output is correct
115 Correct 149 ms 23788 KB Output is correct
116 Correct 86 ms 21612 KB Output is correct
117 Correct 23 ms 15872 KB Output is correct
118 Correct 78 ms 24308 KB Output is correct
119 Correct 441 ms 19292 KB Output is correct
120 Correct 518 ms 25332 KB Output is correct
121 Correct 506 ms 23032 KB Output is correct
122 Correct 18 ms 17528 KB Output is correct
123 Correct 443 ms 19676 KB Output is correct
124 Correct 83 ms 20728 KB Output is correct
125 Correct 62 ms 20092 KB Output is correct
126 Correct 21 ms 17664 KB Output is correct
127 Correct 443 ms 19960 KB Output is correct
128 Correct 178 ms 24180 KB Output is correct
129 Correct 516 ms 23428 KB Output is correct
130 Correct 89 ms 22648 KB Output is correct
131 Correct 21 ms 17536 KB Output is correct
132 Correct 19 ms 17664 KB Output is correct
133 Correct 106 ms 23792 KB Output is correct
134 Correct 48 ms 19836 KB Output is correct
135 Correct 20 ms 17664 KB Output is correct
136 Correct 72 ms 22008 KB Output is correct
137 Correct 503 ms 24700 KB Output is correct
138 Correct 425 ms 19244 KB Output is correct