답안 #1032814

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1032814 2024-07-24T09:09:21 Z s_tree 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
91 ms 28692 KB
#include <bits/stdc++.h>
using namespace std;

#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
 
template <typename T> using oset = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;

#define vt vector
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
#define pb push_back

typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef vector<int> vi;

template<class T> bool chmin(T& a, const T& b) {
	return b<a?a=b, 1:0;
}
template<class T> bool chmax(T& a, const T& b) { 
	return a<b?a=b, 1:0;
} 
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
mt19937_64 rng_64(chrono::steady_clock::now().time_since_epoch().count());

int main() {
	cin.tie(0)->sync_with_stdio(0);
	cin.exceptions(cin.failbit);
	int n, m;
	cin >> n >> m;
	vt<vt<int>> g(n+1);
	rep(i, 0, m) {
		int u, v;
		cin >> u >> v;
		g[u].pb(v);
		g[v].pb(u);
	}
	int nc=n;
	vt<int> stk;
	vt<int> low(n+1), id(n+1);
	vt<vt<int>> adj(n+m+1);
	int tim=0;
	auto dfs = [&](int at, int par, auto &&dfs) -> void {
		id[at]=low[at]=++tim;
		stk.pb(at);
		for(int to:g[at]) {
			if(to == par)continue;
			if(!id[to]) {
				dfs(to, at, dfs);
				chmin(low[at], low[to]);
				if(low[to] >= id[at]) {
					nc++;
					adj[nc].pb(at);
					adj[at].pb(nc);
//					cout << at << " ";
					while(1) {
						int tmp = stk.back();
						adj[tmp].pb(nc);
						adj[nc].pb(tmp);
//						cout << tmp << " ";
						stk.pop_back();
						if(tmp==to)break;
					}
//					cout << endl;
				}
			}
			else low[at] = min(low[at], id[to]);
		}
	};
	for(int i = 1;i<=n;i++) {
		if(!id[i])
			dfs(i, i, dfs);
	}
	vt<int> dp(n+m+1);
	ll ans=0;
	vt<bool> vis(n+m+1);
	auto dfs2  = [&](int at, int par, auto &&dfs2) -> void {
		if(at <= n)dp[at]=1;
		vis[at]=1;
		for(int to:adj[at]) {
			if(to==par)continue;
			dfs2(to, at, dfs2);
			dp[at]+=dp[to];
		}
	};
	int sss;
	auto dfs3  = [&](int at, int par, auto &&dfs3) -> void {
		if(at <= n) {
			ll sum=sss-dp[at];
			for(int to:adj[at]) {
				if(to==par)continue;
				dfs3(to, at, dfs3);
				ans+=2ll*dp[to]*sum;
				sum+=dp[to];
			}
		}
		else {
			ll sum=sss-dp[at];
			ll cnt2=0;
			for(int to:adj[at]) {
				if(to==par)continue;
				dfs3(to, at, dfs3);
				cnt2+=2ll*dp[to]*sum;
				sum+=dp[to];
			}
			ans+=cnt2*(sz(adj[at])-2);
		}
	};
	rep(i, 1, n+1) {
		if(!vis[i]) {
			dfs2(i, i, dfs2);
			sss=dp[i];
			dfs3(i, i, dfs3);
		}
	}
	cout << ans << "\n";	

}


# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 344 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 1 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 344 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 344 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 344 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 1 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 344 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 344 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 344 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 348 KB Output is correct
45 Correct 0 ms 344 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 1 ms 344 KB Output is correct
48 Correct 1 ms 348 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 1 ms 348 KB Output is correct
53 Correct 1 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 0 ms 344 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 0 ms 348 KB Output is correct
59 Correct 1 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 1 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 1 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 62 ms 27084 KB Output is correct
2 Correct 48 ms 27076 KB Output is correct
3 Correct 61 ms 25040 KB Output is correct
4 Correct 71 ms 24780 KB Output is correct
5 Correct 72 ms 21784 KB Output is correct
6 Correct 62 ms 23596 KB Output is correct
7 Correct 68 ms 21000 KB Output is correct
8 Correct 67 ms 21584 KB Output is correct
9 Correct 59 ms 19280 KB Output is correct
10 Correct 59 ms 19796 KB Output is correct
11 Correct 66 ms 16376 KB Output is correct
12 Correct 37 ms 16304 KB Output is correct
13 Correct 46 ms 15900 KB Output is correct
14 Correct 39 ms 15564 KB Output is correct
15 Correct 35 ms 14484 KB Output is correct
16 Correct 32 ms 14172 KB Output is correct
17 Correct 5 ms 6884 KB Output is correct
18 Correct 5 ms 6884 KB Output is correct
19 Correct 6 ms 6768 KB Output is correct
20 Correct 4 ms 6884 KB Output is correct
21 Correct 4 ms 6876 KB Output is correct
22 Correct 5 ms 6876 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 600 KB Output is correct
2 Correct 1 ms 604 KB Output is correct
3 Correct 1 ms 604 KB Output is correct
4 Correct 1 ms 604 KB Output is correct
5 Correct 1 ms 604 KB Output is correct
6 Correct 1 ms 604 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 1 ms 604 KB Output is correct
9 Correct 1 ms 604 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 1 ms 600 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 0 ms 604 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 0 ms 604 KB Output is correct
19 Correct 1 ms 604 KB Output is correct
20 Correct 1 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 65 ms 18588 KB Output is correct
2 Correct 71 ms 18580 KB Output is correct
3 Correct 56 ms 18616 KB Output is correct
4 Correct 52 ms 18556 KB Output is correct
5 Correct 52 ms 18516 KB Output is correct
6 Correct 91 ms 28692 KB Output is correct
7 Correct 66 ms 25292 KB Output is correct
8 Correct 57 ms 23636 KB Output is correct
9 Correct 91 ms 21840 KB Output is correct
10 Correct 48 ms 18512 KB Output is correct
11 Correct 54 ms 18512 KB Output is correct
12 Correct 65 ms 18512 KB Output is correct
13 Correct 65 ms 18512 KB Output is correct
14 Correct 50 ms 17744 KB Output is correct
15 Correct 40 ms 16988 KB Output is correct
16 Correct 29 ms 14160 KB Output is correct
17 Correct 44 ms 19136 KB Output is correct
18 Correct 39 ms 19272 KB Output is correct
19 Correct 44 ms 19148 KB Output is correct
20 Correct 37 ms 19292 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 600 KB Output is correct
2 Correct 1 ms 604 KB Output is correct
3 Correct 1 ms 604 KB Output is correct
4 Correct 1 ms 604 KB Output is correct
5 Correct 1 ms 408 KB Output is correct
6 Correct 0 ms 604 KB Output is correct
7 Correct 0 ms 604 KB Output is correct
8 Correct 1 ms 600 KB Output is correct
9 Correct 1 ms 604 KB Output is correct
10 Correct 1 ms 600 KB Output is correct
11 Correct 1 ms 604 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 604 KB Output is correct
16 Correct 1 ms 604 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 1 ms 604 KB Output is correct
19 Correct 1 ms 604 KB Output is correct
20 Correct 1 ms 604 KB Output is correct
21 Correct 1 ms 604 KB Output is correct
22 Correct 1 ms 604 KB Output is correct
23 Correct 1 ms 604 KB Output is correct
24 Correct 1 ms 604 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 46 ms 18516 KB Output is correct
2 Correct 58 ms 18516 KB Output is correct
3 Correct 62 ms 18348 KB Output is correct
4 Correct 50 ms 17744 KB Output is correct
5 Correct 46 ms 16980 KB Output is correct
6 Correct 41 ms 16720 KB Output is correct
7 Correct 59 ms 16484 KB Output is correct
8 Correct 44 ms 16208 KB Output is correct
9 Correct 39 ms 16212 KB Output is correct
10 Correct 39 ms 16220 KB Output is correct
11 Correct 38 ms 15960 KB Output is correct
12 Correct 36 ms 16212 KB Output is correct
13 Correct 36 ms 16184 KB Output is correct
14 Correct 39 ms 18896 KB Output is correct
15 Correct 67 ms 25548 KB Output is correct
16 Correct 56 ms 23124 KB Output is correct
17 Correct 55 ms 24268 KB Output is correct
18 Correct 54 ms 22096 KB Output is correct
19 Correct 49 ms 17748 KB Output is correct
20 Correct 50 ms 17744 KB Output is correct
21 Correct 61 ms 17744 KB Output is correct
22 Correct 45 ms 17228 KB Output is correct
23 Correct 41 ms 16464 KB Output is correct
24 Correct 46 ms 18780 KB Output is correct
25 Correct 51 ms 18768 KB Output is correct
26 Correct 64 ms 18384 KB Output is correct
27 Correct 52 ms 18244 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 344 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 1 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 344 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 344 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 344 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 348 KB Output is correct
45 Correct 0 ms 344 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 1 ms 344 KB Output is correct
48 Correct 1 ms 348 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 1 ms 348 KB Output is correct
53 Correct 1 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 0 ms 344 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 0 ms 348 KB Output is correct
59 Correct 1 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 1 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 1 ms 344 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 0 ms 348 KB Output is correct
68 Correct 0 ms 600 KB Output is correct
69 Correct 1 ms 604 KB Output is correct
70 Correct 1 ms 604 KB Output is correct
71 Correct 0 ms 604 KB Output is correct
72 Correct 0 ms 604 KB Output is correct
73 Correct 1 ms 604 KB Output is correct
74 Correct 1 ms 604 KB Output is correct
75 Correct 1 ms 604 KB Output is correct
76 Correct 0 ms 348 KB Output is correct
77 Correct 1 ms 604 KB Output is correct
78 Correct 1 ms 604 KB Output is correct
79 Correct 0 ms 604 KB Output is correct
80 Correct 1 ms 604 KB Output is correct
81 Correct 0 ms 604 KB Output is correct
82 Correct 0 ms 604 KB Output is correct
83 Correct 1 ms 600 KB Output is correct
84 Correct 1 ms 604 KB Output is correct
85 Correct 1 ms 604 KB Output is correct
86 Correct 1 ms 604 KB Output is correct
87 Correct 1 ms 604 KB Output is correct
88 Correct 1 ms 604 KB Output is correct
89 Correct 1 ms 604 KB Output is correct
90 Correct 1 ms 604 KB Output is correct
91 Correct 1 ms 604 KB Output is correct
92 Correct 1 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 344 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 1 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 344 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 344 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 344 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 348 KB Output is correct
45 Correct 0 ms 344 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 1 ms 344 KB Output is correct
48 Correct 1 ms 348 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 1 ms 348 KB Output is correct
53 Correct 1 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 0 ms 344 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 0 ms 348 KB Output is correct
59 Correct 1 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 1 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 1 ms 344 KB Output is correct
66 Correct 62 ms 27084 KB Output is correct
67 Correct 48 ms 27076 KB Output is correct
68 Correct 61 ms 25040 KB Output is correct
69 Correct 71 ms 24780 KB Output is correct
70 Correct 72 ms 21784 KB Output is correct
71 Correct 62 ms 23596 KB Output is correct
72 Correct 68 ms 21000 KB Output is correct
73 Correct 67 ms 21584 KB Output is correct
74 Correct 59 ms 19280 KB Output is correct
75 Correct 59 ms 19796 KB Output is correct
76 Correct 66 ms 16376 KB Output is correct
77 Correct 37 ms 16304 KB Output is correct
78 Correct 46 ms 15900 KB Output is correct
79 Correct 39 ms 15564 KB Output is correct
80 Correct 35 ms 14484 KB Output is correct
81 Correct 32 ms 14172 KB Output is correct
82 Correct 5 ms 6884 KB Output is correct
83 Correct 5 ms 6884 KB Output is correct
84 Correct 6 ms 6768 KB Output is correct
85 Correct 4 ms 6884 KB Output is correct
86 Correct 4 ms 6876 KB Output is correct
87 Correct 5 ms 6876 KB Output is correct
88 Correct 1 ms 600 KB Output is correct
89 Correct 1 ms 604 KB Output is correct
90 Correct 1 ms 604 KB Output is correct
91 Correct 1 ms 604 KB Output is correct
92 Correct 1 ms 604 KB Output is correct
93 Correct 1 ms 604 KB Output is correct
94 Correct 1 ms 604 KB Output is correct
95 Correct 1 ms 604 KB Output is correct
96 Correct 1 ms 604 KB Output is correct
97 Correct 1 ms 604 KB Output is correct
98 Correct 1 ms 600 KB Output is correct
99 Correct 1 ms 604 KB Output is correct
100 Correct 1 ms 604 KB Output is correct
101 Correct 1 ms 604 KB Output is correct
102 Correct 0 ms 604 KB Output is correct
103 Correct 1 ms 348 KB Output is correct
104 Correct 1 ms 604 KB Output is correct
105 Correct 0 ms 604 KB Output is correct
106 Correct 1 ms 604 KB Output is correct
107 Correct 1 ms 604 KB Output is correct
108 Correct 65 ms 18588 KB Output is correct
109 Correct 71 ms 18580 KB Output is correct
110 Correct 56 ms 18616 KB Output is correct
111 Correct 52 ms 18556 KB Output is correct
112 Correct 52 ms 18516 KB Output is correct
113 Correct 91 ms 28692 KB Output is correct
114 Correct 66 ms 25292 KB Output is correct
115 Correct 57 ms 23636 KB Output is correct
116 Correct 91 ms 21840 KB Output is correct
117 Correct 48 ms 18512 KB Output is correct
118 Correct 54 ms 18512 KB Output is correct
119 Correct 65 ms 18512 KB Output is correct
120 Correct 65 ms 18512 KB Output is correct
121 Correct 50 ms 17744 KB Output is correct
122 Correct 40 ms 16988 KB Output is correct
123 Correct 29 ms 14160 KB Output is correct
124 Correct 44 ms 19136 KB Output is correct
125 Correct 39 ms 19272 KB Output is correct
126 Correct 44 ms 19148 KB Output is correct
127 Correct 37 ms 19292 KB Output is correct
128 Correct 1 ms 600 KB Output is correct
129 Correct 1 ms 604 KB Output is correct
130 Correct 1 ms 604 KB Output is correct
131 Correct 1 ms 604 KB Output is correct
132 Correct 1 ms 408 KB Output is correct
133 Correct 0 ms 604 KB Output is correct
134 Correct 0 ms 604 KB Output is correct
135 Correct 1 ms 600 KB Output is correct
136 Correct 1 ms 604 KB Output is correct
137 Correct 1 ms 600 KB Output is correct
138 Correct 1 ms 604 KB Output is correct
139 Correct 1 ms 604 KB Output is correct
140 Correct 1 ms 604 KB Output is correct
141 Correct 1 ms 604 KB Output is correct
142 Correct 1 ms 604 KB Output is correct
143 Correct 1 ms 604 KB Output is correct
144 Correct 1 ms 604 KB Output is correct
145 Correct 1 ms 604 KB Output is correct
146 Correct 1 ms 604 KB Output is correct
147 Correct 1 ms 604 KB Output is correct
148 Correct 1 ms 604 KB Output is correct
149 Correct 1 ms 604 KB Output is correct
150 Correct 1 ms 604 KB Output is correct
151 Correct 1 ms 604 KB Output is correct
152 Correct 0 ms 348 KB Output is correct
153 Correct 0 ms 348 KB Output is correct
154 Correct 0 ms 348 KB Output is correct
155 Correct 46 ms 18516 KB Output is correct
156 Correct 58 ms 18516 KB Output is correct
157 Correct 62 ms 18348 KB Output is correct
158 Correct 50 ms 17744 KB Output is correct
159 Correct 46 ms 16980 KB Output is correct
160 Correct 41 ms 16720 KB Output is correct
161 Correct 59 ms 16484 KB Output is correct
162 Correct 44 ms 16208 KB Output is correct
163 Correct 39 ms 16212 KB Output is correct
164 Correct 39 ms 16220 KB Output is correct
165 Correct 38 ms 15960 KB Output is correct
166 Correct 36 ms 16212 KB Output is correct
167 Correct 36 ms 16184 KB Output is correct
168 Correct 39 ms 18896 KB Output is correct
169 Correct 67 ms 25548 KB Output is correct
170 Correct 56 ms 23124 KB Output is correct
171 Correct 55 ms 24268 KB Output is correct
172 Correct 54 ms 22096 KB Output is correct
173 Correct 49 ms 17748 KB Output is correct
174 Correct 50 ms 17744 KB Output is correct
175 Correct 61 ms 17744 KB Output is correct
176 Correct 45 ms 17228 KB Output is correct
177 Correct 41 ms 16464 KB Output is correct
178 Correct 46 ms 18780 KB Output is correct
179 Correct 51 ms 18768 KB Output is correct
180 Correct 64 ms 18384 KB Output is correct
181 Correct 52 ms 18244 KB Output is correct
182 Correct 0 ms 348 KB Output is correct
183 Correct 0 ms 348 KB Output is correct
184 Correct 0 ms 600 KB Output is correct
185 Correct 1 ms 604 KB Output is correct
186 Correct 1 ms 604 KB Output is correct
187 Correct 0 ms 604 KB Output is correct
188 Correct 0 ms 604 KB Output is correct
189 Correct 1 ms 604 KB Output is correct
190 Correct 1 ms 604 KB Output is correct
191 Correct 1 ms 604 KB Output is correct
192 Correct 0 ms 348 KB Output is correct
193 Correct 1 ms 604 KB Output is correct
194 Correct 1 ms 604 KB Output is correct
195 Correct 0 ms 604 KB Output is correct
196 Correct 1 ms 604 KB Output is correct
197 Correct 0 ms 604 KB Output is correct
198 Correct 0 ms 604 KB Output is correct
199 Correct 1 ms 600 KB Output is correct
200 Correct 1 ms 604 KB Output is correct
201 Correct 1 ms 604 KB Output is correct
202 Correct 1 ms 604 KB Output is correct
203 Correct 1 ms 604 KB Output is correct
204 Correct 1 ms 604 KB Output is correct
205 Correct 1 ms 604 KB Output is correct
206 Correct 1 ms 604 KB Output is correct
207 Correct 1 ms 604 KB Output is correct
208 Correct 1 ms 604 KB Output is correct
209 Correct 4 ms 6620 KB Output is correct
210 Correct 34 ms 13360 KB Output is correct
211 Correct 46 ms 18920 KB Output is correct
212 Correct 53 ms 22816 KB Output is correct
213 Correct 73 ms 26056 KB Output is correct
214 Correct 30 ms 16984 KB Output is correct
215 Correct 31 ms 16728 KB Output is correct
216 Correct 59 ms 18600 KB Output is correct
217 Correct 50 ms 17752 KB Output is correct
218 Correct 44 ms 16468 KB Output is correct
219 Correct 45 ms 16096 KB Output is correct
220 Correct 38 ms 15952 KB Output is correct
221 Correct 45 ms 15964 KB Output is correct
222 Correct 39 ms 17412 KB Output is correct
223 Correct 63 ms 20816 KB Output is correct
224 Correct 50 ms 19788 KB Output is correct
225 Correct 51 ms 17488 KB Output is correct
226 Correct 49 ms 17492 KB Output is correct
227 Correct 49 ms 17504 KB Output is correct
228 Correct 45 ms 17048 KB Output is correct
229 Correct 40 ms 16468 KB Output is correct
230 Correct 46 ms 17952 KB Output is correct
231 Correct 51 ms 18256 KB Output is correct