답안 #1032812

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1032812 2024-07-24T09:08:40 Z vjudge1 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
94 ms 30116 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 1 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 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 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 344 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 344 KB Output is correct
16 Correct 0 ms 344 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 0 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 348 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
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 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 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 344 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 344 KB Output is correct
16 Correct 0 ms 344 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 0 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 348 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
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 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 0 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 348 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 0 ms 348 KB Output is correct
48 Correct 0 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 0 ms 348 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 0 ms 344 KB Output is correct
57 Correct 1 ms 344 KB Output is correct
58 Correct 0 ms 344 KB Output is correct
59 Correct 0 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 0 ms 348 KB Output is correct
63 Correct 0 ms 348 KB Output is correct
64 Correct 0 ms 344 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 45 ms 27852 KB Output is correct
2 Correct 49 ms 28104 KB Output is correct
3 Correct 51 ms 26064 KB Output is correct
4 Correct 45 ms 26056 KB Output is correct
5 Correct 47 ms 22988 KB Output is correct
6 Correct 47 ms 24700 KB Output is correct
7 Correct 48 ms 22100 KB Output is correct
8 Correct 55 ms 22724 KB Output is correct
9 Correct 48 ms 20360 KB Output is correct
10 Correct 53 ms 20868 KB Output is correct
11 Correct 38 ms 17492 KB Output is correct
12 Correct 39 ms 17232 KB Output is correct
13 Correct 33 ms 16848 KB Output is correct
14 Correct 36 ms 16716 KB Output is correct
15 Correct 27 ms 15056 KB Output is correct
16 Correct 32 ms 14940 KB Output is correct
17 Correct 5 ms 6884 KB Output is correct
18 Correct 5 ms 6884 KB Output is correct
19 Correct 4 ms 6884 KB Output is correct
20 Correct 7 ms 6684 KB Output is correct
21 Correct 4 ms 6708 KB Output is correct
22 Correct 4 ms 6876 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 604 KB Output is correct
2 Correct 1 ms 468 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 472 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 2 ms 608 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
# 결과 실행 시간 메모리 Grader output
1 Correct 55 ms 19280 KB Output is correct
2 Correct 59 ms 19796 KB Output is correct
3 Correct 48 ms 19792 KB Output is correct
4 Correct 54 ms 19972 KB Output is correct
5 Correct 49 ms 19840 KB Output is correct
6 Correct 59 ms 30116 KB Output is correct
7 Correct 59 ms 26468 KB Output is correct
8 Correct 55 ms 24912 KB Output is correct
9 Correct 53 ms 23124 KB Output is correct
10 Correct 58 ms 19720 KB Output is correct
11 Correct 48 ms 19796 KB Output is correct
12 Correct 51 ms 19796 KB Output is correct
13 Correct 51 ms 19792 KB Output is correct
14 Correct 49 ms 19028 KB Output is correct
15 Correct 42 ms 18104 KB Output is correct
16 Correct 28 ms 14672 KB Output is correct
17 Correct 36 ms 20428 KB Output is correct
18 Correct 38 ms 20324 KB Output is correct
19 Correct 45 ms 20544 KB Output is correct
20 Correct 39 ms 20360 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 600 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 0 ms 604 KB Output is correct
11 Correct 0 ms 604 KB Output is correct
12 Correct 1 ms 856 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 472 KB Output is correct
19 Correct 1 ms 604 KB Output is correct
20 Correct 1 ms 600 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 600 KB Output is correct
24 Correct 1 ms 604 KB Output is correct
25 Correct 0 ms 564 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 66 ms 19420 KB Output is correct
2 Correct 51 ms 19800 KB Output is correct
3 Correct 55 ms 19768 KB Output is correct
4 Correct 53 ms 19280 KB Output is correct
5 Correct 45 ms 18512 KB Output is correct
6 Correct 55 ms 18004 KB Output is correct
7 Correct 46 ms 17748 KB Output is correct
8 Correct 64 ms 17492 KB Output is correct
9 Correct 56 ms 17608 KB Output is correct
10 Correct 41 ms 17400 KB Output is correct
11 Correct 67 ms 17376 KB Output is correct
12 Correct 37 ms 17492 KB Output is correct
13 Correct 37 ms 17484 KB Output is correct
14 Correct 49 ms 19964 KB Output is correct
15 Correct 70 ms 27152 KB Output is correct
16 Correct 59 ms 24660 KB Output is correct
17 Correct 76 ms 25804 KB Output is correct
18 Correct 63 ms 23668 KB Output is correct
19 Correct 82 ms 19284 KB Output is correct
20 Correct 54 ms 19392 KB Output is correct
21 Correct 52 ms 19440 KB Output is correct
22 Correct 47 ms 18684 KB Output is correct
23 Correct 38 ms 17748 KB Output is correct
24 Correct 53 ms 20280 KB Output is correct
25 Correct 61 ms 20180 KB Output is correct
26 Correct 59 ms 19920 KB Output is correct
27 Correct 53 ms 19792 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 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 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 344 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 344 KB Output is correct
16 Correct 0 ms 344 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 0 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 348 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
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 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 0 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 348 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 0 ms 348 KB Output is correct
48 Correct 0 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 0 ms 348 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 0 ms 344 KB Output is correct
57 Correct 1 ms 344 KB Output is correct
58 Correct 0 ms 344 KB Output is correct
59 Correct 0 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 0 ms 348 KB Output is correct
63 Correct 0 ms 348 KB Output is correct
64 Correct 0 ms 344 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 0 ms 600 KB Output is correct
67 Correct 1 ms 604 KB Output is correct
68 Correct 1 ms 468 KB Output is correct
69 Correct 1 ms 604 KB Output is correct
70 Correct 1 ms 604 KB Output is correct
71 Correct 1 ms 604 KB Output is correct
72 Correct 1 ms 604 KB Output is correct
73 Correct 1 ms 604 KB Output is correct
74 Correct 1 ms 600 KB Output is correct
75 Correct 1 ms 600 KB Output is correct
76 Correct 1 ms 348 KB Output is correct
77 Correct 1 ms 604 KB Output is correct
78 Correct 2 ms 604 KB Output is correct
79 Correct 1 ms 604 KB Output is correct
80 Correct 1 ms 604 KB Output is correct
81 Correct 1 ms 604 KB Output is correct
82 Correct 1 ms 604 KB Output is correct
83 Correct 1 ms 604 KB Output is correct
84 Correct 1 ms 468 KB Output is correct
85 Correct 1 ms 604 KB Output is correct
86 Correct 1 ms 600 KB Output is correct
87 Correct 1 ms 604 KB Output is correct
88 Correct 1 ms 604 KB Output is correct
89 Correct 2 ms 604 KB Output is correct
90 Correct 1 ms 600 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 1 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 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 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 344 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 344 KB Output is correct
16 Correct 0 ms 344 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 0 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 348 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
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 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 0 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 348 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 0 ms 348 KB Output is correct
48 Correct 0 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 0 ms 348 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 0 ms 344 KB Output is correct
57 Correct 1 ms 344 KB Output is correct
58 Correct 0 ms 344 KB Output is correct
59 Correct 0 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 0 ms 348 KB Output is correct
63 Correct 0 ms 348 KB Output is correct
64 Correct 0 ms 344 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 45 ms 27852 KB Output is correct
67 Correct 49 ms 28104 KB Output is correct
68 Correct 51 ms 26064 KB Output is correct
69 Correct 45 ms 26056 KB Output is correct
70 Correct 47 ms 22988 KB Output is correct
71 Correct 47 ms 24700 KB Output is correct
72 Correct 48 ms 22100 KB Output is correct
73 Correct 55 ms 22724 KB Output is correct
74 Correct 48 ms 20360 KB Output is correct
75 Correct 53 ms 20868 KB Output is correct
76 Correct 38 ms 17492 KB Output is correct
77 Correct 39 ms 17232 KB Output is correct
78 Correct 33 ms 16848 KB Output is correct
79 Correct 36 ms 16716 KB Output is correct
80 Correct 27 ms 15056 KB Output is correct
81 Correct 32 ms 14940 KB Output is correct
82 Correct 5 ms 6884 KB Output is correct
83 Correct 5 ms 6884 KB Output is correct
84 Correct 4 ms 6884 KB Output is correct
85 Correct 7 ms 6684 KB Output is correct
86 Correct 4 ms 6708 KB Output is correct
87 Correct 4 ms 6876 KB Output is correct
88 Correct 1 ms 604 KB Output is correct
89 Correct 1 ms 468 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 472 KB Output is correct
97 Correct 1 ms 604 KB Output is correct
98 Correct 2 ms 608 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 1 ms 604 KB Output is correct
103 Correct 1 ms 604 KB Output is correct
104 Correct 1 ms 604 KB Output is correct
105 Correct 1 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 55 ms 19280 KB Output is correct
109 Correct 59 ms 19796 KB Output is correct
110 Correct 48 ms 19792 KB Output is correct
111 Correct 54 ms 19972 KB Output is correct
112 Correct 49 ms 19840 KB Output is correct
113 Correct 59 ms 30116 KB Output is correct
114 Correct 59 ms 26468 KB Output is correct
115 Correct 55 ms 24912 KB Output is correct
116 Correct 53 ms 23124 KB Output is correct
117 Correct 58 ms 19720 KB Output is correct
118 Correct 48 ms 19796 KB Output is correct
119 Correct 51 ms 19796 KB Output is correct
120 Correct 51 ms 19792 KB Output is correct
121 Correct 49 ms 19028 KB Output is correct
122 Correct 42 ms 18104 KB Output is correct
123 Correct 28 ms 14672 KB Output is correct
124 Correct 36 ms 20428 KB Output is correct
125 Correct 38 ms 20324 KB Output is correct
126 Correct 45 ms 20544 KB Output is correct
127 Correct 39 ms 20360 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 600 KB Output is correct
132 Correct 1 ms 604 KB Output is correct
133 Correct 1 ms 604 KB Output is correct
134 Correct 1 ms 604 KB Output is correct
135 Correct 1 ms 604 KB Output is correct
136 Correct 1 ms 604 KB Output is correct
137 Correct 0 ms 604 KB Output is correct
138 Correct 0 ms 604 KB Output is correct
139 Correct 1 ms 856 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 472 KB Output is correct
146 Correct 1 ms 604 KB Output is correct
147 Correct 1 ms 600 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 600 KB Output is correct
151 Correct 1 ms 604 KB Output is correct
152 Correct 0 ms 564 KB Output is correct
153 Correct 0 ms 348 KB Output is correct
154 Correct 0 ms 344 KB Output is correct
155 Correct 66 ms 19420 KB Output is correct
156 Correct 51 ms 19800 KB Output is correct
157 Correct 55 ms 19768 KB Output is correct
158 Correct 53 ms 19280 KB Output is correct
159 Correct 45 ms 18512 KB Output is correct
160 Correct 55 ms 18004 KB Output is correct
161 Correct 46 ms 17748 KB Output is correct
162 Correct 64 ms 17492 KB Output is correct
163 Correct 56 ms 17608 KB Output is correct
164 Correct 41 ms 17400 KB Output is correct
165 Correct 67 ms 17376 KB Output is correct
166 Correct 37 ms 17492 KB Output is correct
167 Correct 37 ms 17484 KB Output is correct
168 Correct 49 ms 19964 KB Output is correct
169 Correct 70 ms 27152 KB Output is correct
170 Correct 59 ms 24660 KB Output is correct
171 Correct 76 ms 25804 KB Output is correct
172 Correct 63 ms 23668 KB Output is correct
173 Correct 82 ms 19284 KB Output is correct
174 Correct 54 ms 19392 KB Output is correct
175 Correct 52 ms 19440 KB Output is correct
176 Correct 47 ms 18684 KB Output is correct
177 Correct 38 ms 17748 KB Output is correct
178 Correct 53 ms 20280 KB Output is correct
179 Correct 61 ms 20180 KB Output is correct
180 Correct 59 ms 19920 KB Output is correct
181 Correct 53 ms 19792 KB Output is correct
182 Correct 0 ms 600 KB Output is correct
183 Correct 1 ms 604 KB Output is correct
184 Correct 1 ms 468 KB Output is correct
185 Correct 1 ms 604 KB Output is correct
186 Correct 1 ms 604 KB Output is correct
187 Correct 1 ms 604 KB Output is correct
188 Correct 1 ms 604 KB Output is correct
189 Correct 1 ms 604 KB Output is correct
190 Correct 1 ms 600 KB Output is correct
191 Correct 1 ms 600 KB Output is correct
192 Correct 1 ms 348 KB Output is correct
193 Correct 1 ms 604 KB Output is correct
194 Correct 2 ms 604 KB Output is correct
195 Correct 1 ms 604 KB Output is correct
196 Correct 1 ms 604 KB Output is correct
197 Correct 1 ms 604 KB Output is correct
198 Correct 1 ms 604 KB Output is correct
199 Correct 1 ms 604 KB Output is correct
200 Correct 1 ms 468 KB Output is correct
201 Correct 1 ms 604 KB Output is correct
202 Correct 1 ms 600 KB Output is correct
203 Correct 1 ms 604 KB Output is correct
204 Correct 1 ms 604 KB Output is correct
205 Correct 2 ms 604 KB Output is correct
206 Correct 1 ms 600 KB Output is correct
207 Correct 1 ms 604 KB Output is correct
208 Correct 1 ms 604 KB Output is correct
209 Correct 6 ms 6872 KB Output is correct
210 Correct 37 ms 14032 KB Output is correct
211 Correct 61 ms 20148 KB Output is correct
212 Correct 75 ms 24808 KB Output is correct
213 Correct 91 ms 28592 KB Output is correct
214 Correct 36 ms 18268 KB Output is correct
215 Correct 37 ms 18516 KB Output is correct
216 Correct 94 ms 20304 KB Output is correct
217 Correct 54 ms 19284 KB Output is correct
218 Correct 61 ms 17876 KB Output is correct
219 Correct 60 ms 17392 KB Output is correct
220 Correct 48 ms 17236 KB Output is correct
221 Correct 43 ms 17232 KB Output is correct
222 Correct 46 ms 18768 KB Output is correct
223 Correct 90 ms 22612 KB Output is correct
224 Correct 69 ms 21588 KB Output is correct
225 Correct 63 ms 19284 KB Output is correct
226 Correct 83 ms 19280 KB Output is correct
227 Correct 73 ms 19312 KB Output is correct
228 Correct 53 ms 18516 KB Output is correct
229 Correct 55 ms 17744 KB Output is correct
230 Correct 63 ms 19792 KB Output is correct
231 Correct 90 ms 19792 KB Output is correct