답안 #410090

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
410090 2021-05-22T00:58:15 Z errorgorn 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
110 ms 24028 KB
//雪花飄飄北風嘯嘯
//天地一片蒼茫

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/rope>
using namespace std;
using namespace __gnu_pbds;
using namespace __gnu_cxx;
#define ll long long
#define ii pair<ll,ll>
#define iii pair<ii,ll>
#define fi first
#define se second
#define endl '\n'
#define debug(x) cout << #x << " is " << x << endl

#define pub push_back
#define pob pop_back
#define puf push_front
#define pof pop_front
#define lb lower_bound
#define ub upper_bound

#define rep(x,start,end) for(auto x=(start)-((start)>(end));x!=(end)-((start)>(end));((start)<(end)?x++:x--))
#define all(x) (x).begin(),(x).end()
#define sz(x) (int)(x).size()

#define indexed_set tree<ll,null_type,less<ll>,rb_tree_tag,tree_order_statistics_node_update>
//change less to less_equal for non distinct pbds, but erase will bug

mt19937 rng(chrono::system_clock::now().time_since_epoch().count());

int n,m;
vector<int> al[100005];
vector<int> cjk[200005];
int IDX;
int _TIME=1;
int SZ;

int in[100005];
int low[100005];
vector<int> stk;

void dfs_cjk(int i,int p){
	in[i]=low[i]=_TIME++;
	SZ++;
	stk.pub(i);
	
	for (auto &it:al[i]){
		if (it==p) continue;
		
		if (in[it]==0){
			dfs_cjk(it,i);
			low[i]=min(low[i],low[it]);
			
			if (low[it]>=in[i]){
				while (true){
					int curr=stk.back();
					stk.pob();
					
					cjk[IDX].pub(curr);
					if (curr==it) break;
				}
				cjk[i].pub(IDX);
				IDX++;
			}
		}
		else{
			low[i]=min(low[i],in[it]);
		}
	}
}

ll ans=0;

ll dfs_calc(int i){
	ll curr=SZ;
	
	for (auto &it:cjk[i]){
		ll temp=dfs_calc(it);
		curr-=temp;
		
		if (i<=n) ans+=2*temp*(curr-1);
		else ans+=2*temp*(sz(cjk[i])-1)*curr;
	}
	
	int ss=SZ-curr;
	if (i<=n) ss++;
	
	return ss;
}

int main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	cin.exceptions(ios::badbit | ios::failbit);
	
	cin>>n>>m;
	
	int a,b;
	rep(x,0,m){
		cin>>a>>b;
		al[a].pub(b);
		al[b].pub(a);
	}
	
	IDX=n+1;
	rep(x,1,n+1) if (in[x]==0){
		SZ=0;
		dfs_cjk(x,-1);
		dfs_calc(x);
	}
	
	cout<<ans<<endl;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 7372 KB Output is correct
2 Correct 5 ms 7288 KB Output is correct
3 Correct 4 ms 7372 KB Output is correct
4 Correct 5 ms 7348 KB Output is correct
5 Correct 4 ms 7372 KB Output is correct
6 Correct 5 ms 7372 KB Output is correct
7 Correct 4 ms 7372 KB Output is correct
8 Correct 5 ms 7368 KB Output is correct
9 Correct 6 ms 7372 KB Output is correct
10 Correct 5 ms 7372 KB Output is correct
11 Correct 4 ms 7372 KB Output is correct
12 Correct 5 ms 7372 KB Output is correct
13 Correct 4 ms 7304 KB Output is correct
14 Correct 5 ms 7372 KB Output is correct
15 Correct 4 ms 7372 KB Output is correct
16 Correct 5 ms 7372 KB Output is correct
17 Correct 5 ms 7348 KB Output is correct
18 Correct 5 ms 7244 KB Output is correct
19 Correct 5 ms 7372 KB Output is correct
20 Correct 5 ms 7372 KB Output is correct
21 Correct 5 ms 7372 KB Output is correct
22 Correct 5 ms 7372 KB Output is correct
23 Correct 4 ms 7372 KB Output is correct
24 Correct 5 ms 7372 KB Output is correct
25 Correct 4 ms 7372 KB Output is correct
26 Correct 5 ms 7372 KB Output is correct
27 Correct 5 ms 7372 KB Output is correct
28 Correct 5 ms 7368 KB Output is correct
29 Correct 5 ms 7372 KB Output is correct
30 Correct 5 ms 7372 KB Output is correct
31 Correct 5 ms 7372 KB Output is correct
32 Correct 4 ms 7372 KB Output is correct
33 Correct 4 ms 7372 KB Output is correct
34 Correct 4 ms 7372 KB Output is correct
35 Correct 4 ms 7372 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 7372 KB Output is correct
2 Correct 5 ms 7288 KB Output is correct
3 Correct 4 ms 7372 KB Output is correct
4 Correct 5 ms 7348 KB Output is correct
5 Correct 4 ms 7372 KB Output is correct
6 Correct 5 ms 7372 KB Output is correct
7 Correct 4 ms 7372 KB Output is correct
8 Correct 5 ms 7368 KB Output is correct
9 Correct 6 ms 7372 KB Output is correct
10 Correct 5 ms 7372 KB Output is correct
11 Correct 4 ms 7372 KB Output is correct
12 Correct 5 ms 7372 KB Output is correct
13 Correct 4 ms 7304 KB Output is correct
14 Correct 5 ms 7372 KB Output is correct
15 Correct 4 ms 7372 KB Output is correct
16 Correct 5 ms 7372 KB Output is correct
17 Correct 5 ms 7348 KB Output is correct
18 Correct 5 ms 7244 KB Output is correct
19 Correct 5 ms 7372 KB Output is correct
20 Correct 5 ms 7372 KB Output is correct
21 Correct 5 ms 7372 KB Output is correct
22 Correct 5 ms 7372 KB Output is correct
23 Correct 4 ms 7372 KB Output is correct
24 Correct 5 ms 7372 KB Output is correct
25 Correct 4 ms 7372 KB Output is correct
26 Correct 5 ms 7372 KB Output is correct
27 Correct 5 ms 7372 KB Output is correct
28 Correct 5 ms 7368 KB Output is correct
29 Correct 5 ms 7372 KB Output is correct
30 Correct 5 ms 7372 KB Output is correct
31 Correct 5 ms 7372 KB Output is correct
32 Correct 4 ms 7372 KB Output is correct
33 Correct 4 ms 7372 KB Output is correct
34 Correct 4 ms 7372 KB Output is correct
35 Correct 4 ms 7372 KB Output is correct
36 Correct 5 ms 7372 KB Output is correct
37 Correct 5 ms 7372 KB Output is correct
38 Correct 5 ms 7372 KB Output is correct
39 Correct 5 ms 7372 KB Output is correct
40 Correct 5 ms 7372 KB Output is correct
41 Correct 5 ms 7368 KB Output is correct
42 Correct 5 ms 7328 KB Output is correct
43 Correct 5 ms 7368 KB Output is correct
44 Correct 5 ms 7372 KB Output is correct
45 Correct 5 ms 7372 KB Output is correct
46 Correct 5 ms 7380 KB Output is correct
47 Correct 5 ms 7372 KB Output is correct
48 Correct 5 ms 7372 KB Output is correct
49 Correct 5 ms 7376 KB Output is correct
50 Correct 5 ms 7372 KB Output is correct
51 Correct 4 ms 7372 KB Output is correct
52 Correct 4 ms 7372 KB Output is correct
53 Correct 5 ms 7368 KB Output is correct
54 Correct 5 ms 7372 KB Output is correct
55 Correct 4 ms 7372 KB Output is correct
56 Correct 5 ms 7372 KB Output is correct
57 Correct 5 ms 7372 KB Output is correct
58 Correct 5 ms 7348 KB Output is correct
59 Correct 6 ms 7372 KB Output is correct
60 Correct 5 ms 7372 KB Output is correct
61 Correct 4 ms 7372 KB Output is correct
62 Correct 4 ms 7372 KB Output is correct
63 Correct 4 ms 7372 KB Output is correct
64 Correct 5 ms 7372 KB Output is correct
65 Correct 5 ms 7352 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 64 ms 23060 KB Output is correct
2 Correct 76 ms 23032 KB Output is correct
3 Correct 84 ms 20748 KB Output is correct
4 Correct 80 ms 22076 KB Output is correct
5 Correct 76 ms 18020 KB Output is correct
6 Correct 79 ms 19440 KB Output is correct
7 Correct 95 ms 18500 KB Output is correct
8 Correct 84 ms 19412 KB Output is correct
9 Correct 85 ms 17488 KB Output is correct
10 Correct 77 ms 17604 KB Output is correct
11 Correct 89 ms 15280 KB Output is correct
12 Correct 62 ms 15264 KB Output is correct
13 Correct 61 ms 15236 KB Output is correct
14 Correct 55 ms 14916 KB Output is correct
15 Correct 45 ms 14036 KB Output is correct
16 Correct 48 ms 13788 KB Output is correct
17 Correct 8 ms 8788 KB Output is correct
18 Correct 7 ms 8788 KB Output is correct
19 Correct 9 ms 8660 KB Output is correct
20 Correct 7 ms 8788 KB Output is correct
21 Correct 7 ms 8784 KB Output is correct
22 Correct 7 ms 8656 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 7376 KB Output is correct
2 Correct 6 ms 7380 KB Output is correct
3 Correct 5 ms 7372 KB Output is correct
4 Correct 5 ms 7508 KB Output is correct
5 Correct 5 ms 7500 KB Output is correct
6 Correct 5 ms 7500 KB Output is correct
7 Correct 5 ms 7500 KB Output is correct
8 Correct 7 ms 7500 KB Output is correct
9 Correct 5 ms 7508 KB Output is correct
10 Correct 5 ms 7372 KB Output is correct
11 Correct 6 ms 7372 KB Output is correct
12 Correct 5 ms 7372 KB Output is correct
13 Correct 5 ms 7364 KB Output is correct
14 Correct 5 ms 7372 KB Output is correct
15 Correct 5 ms 7372 KB Output is correct
16 Correct 5 ms 7372 KB Output is correct
17 Correct 5 ms 7372 KB Output is correct
18 Correct 5 ms 7380 KB Output is correct
19 Correct 5 ms 7376 KB Output is correct
20 Correct 5 ms 7380 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 81 ms 17312 KB Output is correct
2 Correct 83 ms 17360 KB Output is correct
3 Correct 80 ms 17268 KB Output is correct
4 Correct 79 ms 17256 KB Output is correct
5 Correct 94 ms 17524 KB Output is correct
6 Correct 104 ms 24028 KB Output is correct
7 Correct 93 ms 21500 KB Output is correct
8 Correct 90 ms 20420 KB Output is correct
9 Correct 87 ms 19448 KB Output is correct
10 Correct 87 ms 17396 KB Output is correct
11 Correct 90 ms 17348 KB Output is correct
12 Correct 80 ms 17332 KB Output is correct
13 Correct 80 ms 17376 KB Output is correct
14 Correct 73 ms 16824 KB Output is correct
15 Correct 69 ms 16388 KB Output is correct
16 Correct 47 ms 14096 KB Output is correct
17 Correct 49 ms 16404 KB Output is correct
18 Correct 49 ms 16380 KB Output is correct
19 Correct 50 ms 16564 KB Output is correct
20 Correct 52 ms 16452 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 7372 KB Output is correct
2 Correct 5 ms 7380 KB Output is correct
3 Correct 6 ms 7372 KB Output is correct
4 Correct 7 ms 7372 KB Output is correct
5 Correct 5 ms 7380 KB Output is correct
6 Correct 6 ms 7372 KB Output is correct
7 Correct 6 ms 7376 KB Output is correct
8 Correct 6 ms 7400 KB Output is correct
9 Correct 5 ms 7372 KB Output is correct
10 Correct 5 ms 7372 KB Output is correct
11 Correct 5 ms 7372 KB Output is correct
12 Correct 5 ms 7500 KB Output is correct
13 Correct 5 ms 7508 KB Output is correct
14 Correct 5 ms 7408 KB Output is correct
15 Correct 5 ms 7372 KB Output is correct
16 Correct 5 ms 7372 KB Output is correct
17 Correct 5 ms 7372 KB Output is correct
18 Correct 6 ms 7380 KB Output is correct
19 Correct 6 ms 7340 KB Output is correct
20 Correct 6 ms 7372 KB Output is correct
21 Correct 6 ms 7372 KB Output is correct
22 Correct 5 ms 7372 KB Output is correct
23 Correct 6 ms 7372 KB Output is correct
24 Correct 6 ms 7500 KB Output is correct
25 Correct 5 ms 7372 KB Output is correct
26 Correct 5 ms 7372 KB Output is correct
27 Correct 5 ms 7368 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 79 ms 17348 KB Output is correct
2 Correct 85 ms 17576 KB Output is correct
3 Correct 107 ms 17116 KB Output is correct
4 Correct 98 ms 16180 KB Output is correct
5 Correct 88 ms 14788 KB Output is correct
6 Correct 77 ms 14276 KB Output is correct
7 Correct 73 ms 13972 KB Output is correct
8 Correct 73 ms 13732 KB Output is correct
9 Correct 82 ms 13684 KB Output is correct
10 Correct 60 ms 13512 KB Output is correct
11 Correct 58 ms 13352 KB Output is correct
12 Correct 57 ms 13380 KB Output is correct
13 Correct 68 ms 13416 KB Output is correct
14 Correct 67 ms 15712 KB Output is correct
15 Correct 100 ms 21436 KB Output is correct
16 Correct 99 ms 19972 KB Output is correct
17 Correct 92 ms 20544 KB Output is correct
18 Correct 100 ms 19136 KB Output is correct
19 Correct 106 ms 16044 KB Output is correct
20 Correct 90 ms 16044 KB Output is correct
21 Correct 91 ms 15968 KB Output is correct
22 Correct 88 ms 15520 KB Output is correct
23 Correct 67 ms 14812 KB Output is correct
24 Correct 74 ms 16704 KB Output is correct
25 Correct 89 ms 16816 KB Output is correct
26 Correct 94 ms 16128 KB Output is correct
27 Correct 84 ms 16196 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 7372 KB Output is correct
2 Correct 5 ms 7288 KB Output is correct
3 Correct 4 ms 7372 KB Output is correct
4 Correct 5 ms 7348 KB Output is correct
5 Correct 4 ms 7372 KB Output is correct
6 Correct 5 ms 7372 KB Output is correct
7 Correct 4 ms 7372 KB Output is correct
8 Correct 5 ms 7368 KB Output is correct
9 Correct 6 ms 7372 KB Output is correct
10 Correct 5 ms 7372 KB Output is correct
11 Correct 4 ms 7372 KB Output is correct
12 Correct 5 ms 7372 KB Output is correct
13 Correct 4 ms 7304 KB Output is correct
14 Correct 5 ms 7372 KB Output is correct
15 Correct 4 ms 7372 KB Output is correct
16 Correct 5 ms 7372 KB Output is correct
17 Correct 5 ms 7348 KB Output is correct
18 Correct 5 ms 7244 KB Output is correct
19 Correct 5 ms 7372 KB Output is correct
20 Correct 5 ms 7372 KB Output is correct
21 Correct 5 ms 7372 KB Output is correct
22 Correct 5 ms 7372 KB Output is correct
23 Correct 4 ms 7372 KB Output is correct
24 Correct 5 ms 7372 KB Output is correct
25 Correct 4 ms 7372 KB Output is correct
26 Correct 5 ms 7372 KB Output is correct
27 Correct 5 ms 7372 KB Output is correct
28 Correct 5 ms 7368 KB Output is correct
29 Correct 5 ms 7372 KB Output is correct
30 Correct 5 ms 7372 KB Output is correct
31 Correct 5 ms 7372 KB Output is correct
32 Correct 4 ms 7372 KB Output is correct
33 Correct 4 ms 7372 KB Output is correct
34 Correct 4 ms 7372 KB Output is correct
35 Correct 4 ms 7372 KB Output is correct
36 Correct 5 ms 7372 KB Output is correct
37 Correct 5 ms 7372 KB Output is correct
38 Correct 5 ms 7372 KB Output is correct
39 Correct 5 ms 7372 KB Output is correct
40 Correct 5 ms 7372 KB Output is correct
41 Correct 5 ms 7368 KB Output is correct
42 Correct 5 ms 7328 KB Output is correct
43 Correct 5 ms 7368 KB Output is correct
44 Correct 5 ms 7372 KB Output is correct
45 Correct 5 ms 7372 KB Output is correct
46 Correct 5 ms 7380 KB Output is correct
47 Correct 5 ms 7372 KB Output is correct
48 Correct 5 ms 7372 KB Output is correct
49 Correct 5 ms 7376 KB Output is correct
50 Correct 5 ms 7372 KB Output is correct
51 Correct 4 ms 7372 KB Output is correct
52 Correct 4 ms 7372 KB Output is correct
53 Correct 5 ms 7368 KB Output is correct
54 Correct 5 ms 7372 KB Output is correct
55 Correct 4 ms 7372 KB Output is correct
56 Correct 5 ms 7372 KB Output is correct
57 Correct 5 ms 7372 KB Output is correct
58 Correct 5 ms 7348 KB Output is correct
59 Correct 6 ms 7372 KB Output is correct
60 Correct 5 ms 7372 KB Output is correct
61 Correct 4 ms 7372 KB Output is correct
62 Correct 4 ms 7372 KB Output is correct
63 Correct 4 ms 7372 KB Output is correct
64 Correct 5 ms 7372 KB Output is correct
65 Correct 5 ms 7352 KB Output is correct
66 Correct 4 ms 7372 KB Output is correct
67 Correct 5 ms 7400 KB Output is correct
68 Correct 5 ms 7372 KB Output is correct
69 Correct 6 ms 7372 KB Output is correct
70 Correct 7 ms 7524 KB Output is correct
71 Correct 5 ms 7372 KB Output is correct
72 Correct 5 ms 7372 KB Output is correct
73 Correct 5 ms 7372 KB Output is correct
74 Correct 5 ms 7372 KB Output is correct
75 Correct 5 ms 7376 KB Output is correct
76 Correct 5 ms 7372 KB Output is correct
77 Correct 6 ms 7372 KB Output is correct
78 Correct 6 ms 7372 KB Output is correct
79 Correct 5 ms 7380 KB Output is correct
80 Correct 5 ms 7372 KB Output is correct
81 Correct 5 ms 7372 KB Output is correct
82 Correct 5 ms 7500 KB Output is correct
83 Correct 5 ms 7508 KB Output is correct
84 Correct 5 ms 7372 KB Output is correct
85 Correct 5 ms 7372 KB Output is correct
86 Correct 6 ms 7372 KB Output is correct
87 Correct 6 ms 7372 KB Output is correct
88 Correct 7 ms 7372 KB Output is correct
89 Correct 6 ms 7372 KB Output is correct
90 Correct 6 ms 7376 KB Output is correct
91 Correct 5 ms 7372 KB Output is correct
92 Correct 5 ms 7376 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 7372 KB Output is correct
2 Correct 5 ms 7288 KB Output is correct
3 Correct 4 ms 7372 KB Output is correct
4 Correct 5 ms 7348 KB Output is correct
5 Correct 4 ms 7372 KB Output is correct
6 Correct 5 ms 7372 KB Output is correct
7 Correct 4 ms 7372 KB Output is correct
8 Correct 5 ms 7368 KB Output is correct
9 Correct 6 ms 7372 KB Output is correct
10 Correct 5 ms 7372 KB Output is correct
11 Correct 4 ms 7372 KB Output is correct
12 Correct 5 ms 7372 KB Output is correct
13 Correct 4 ms 7304 KB Output is correct
14 Correct 5 ms 7372 KB Output is correct
15 Correct 4 ms 7372 KB Output is correct
16 Correct 5 ms 7372 KB Output is correct
17 Correct 5 ms 7348 KB Output is correct
18 Correct 5 ms 7244 KB Output is correct
19 Correct 5 ms 7372 KB Output is correct
20 Correct 5 ms 7372 KB Output is correct
21 Correct 5 ms 7372 KB Output is correct
22 Correct 5 ms 7372 KB Output is correct
23 Correct 4 ms 7372 KB Output is correct
24 Correct 5 ms 7372 KB Output is correct
25 Correct 4 ms 7372 KB Output is correct
26 Correct 5 ms 7372 KB Output is correct
27 Correct 5 ms 7372 KB Output is correct
28 Correct 5 ms 7368 KB Output is correct
29 Correct 5 ms 7372 KB Output is correct
30 Correct 5 ms 7372 KB Output is correct
31 Correct 5 ms 7372 KB Output is correct
32 Correct 4 ms 7372 KB Output is correct
33 Correct 4 ms 7372 KB Output is correct
34 Correct 4 ms 7372 KB Output is correct
35 Correct 4 ms 7372 KB Output is correct
36 Correct 5 ms 7372 KB Output is correct
37 Correct 5 ms 7372 KB Output is correct
38 Correct 5 ms 7372 KB Output is correct
39 Correct 5 ms 7372 KB Output is correct
40 Correct 5 ms 7372 KB Output is correct
41 Correct 5 ms 7368 KB Output is correct
42 Correct 5 ms 7328 KB Output is correct
43 Correct 5 ms 7368 KB Output is correct
44 Correct 5 ms 7372 KB Output is correct
45 Correct 5 ms 7372 KB Output is correct
46 Correct 5 ms 7380 KB Output is correct
47 Correct 5 ms 7372 KB Output is correct
48 Correct 5 ms 7372 KB Output is correct
49 Correct 5 ms 7376 KB Output is correct
50 Correct 5 ms 7372 KB Output is correct
51 Correct 4 ms 7372 KB Output is correct
52 Correct 4 ms 7372 KB Output is correct
53 Correct 5 ms 7368 KB Output is correct
54 Correct 5 ms 7372 KB Output is correct
55 Correct 4 ms 7372 KB Output is correct
56 Correct 5 ms 7372 KB Output is correct
57 Correct 5 ms 7372 KB Output is correct
58 Correct 5 ms 7348 KB Output is correct
59 Correct 6 ms 7372 KB Output is correct
60 Correct 5 ms 7372 KB Output is correct
61 Correct 4 ms 7372 KB Output is correct
62 Correct 4 ms 7372 KB Output is correct
63 Correct 4 ms 7372 KB Output is correct
64 Correct 5 ms 7372 KB Output is correct
65 Correct 5 ms 7352 KB Output is correct
66 Correct 64 ms 23060 KB Output is correct
67 Correct 76 ms 23032 KB Output is correct
68 Correct 84 ms 20748 KB Output is correct
69 Correct 80 ms 22076 KB Output is correct
70 Correct 76 ms 18020 KB Output is correct
71 Correct 79 ms 19440 KB Output is correct
72 Correct 95 ms 18500 KB Output is correct
73 Correct 84 ms 19412 KB Output is correct
74 Correct 85 ms 17488 KB Output is correct
75 Correct 77 ms 17604 KB Output is correct
76 Correct 89 ms 15280 KB Output is correct
77 Correct 62 ms 15264 KB Output is correct
78 Correct 61 ms 15236 KB Output is correct
79 Correct 55 ms 14916 KB Output is correct
80 Correct 45 ms 14036 KB Output is correct
81 Correct 48 ms 13788 KB Output is correct
82 Correct 8 ms 8788 KB Output is correct
83 Correct 7 ms 8788 KB Output is correct
84 Correct 9 ms 8660 KB Output is correct
85 Correct 7 ms 8788 KB Output is correct
86 Correct 7 ms 8784 KB Output is correct
87 Correct 7 ms 8656 KB Output is correct
88 Correct 5 ms 7376 KB Output is correct
89 Correct 6 ms 7380 KB Output is correct
90 Correct 5 ms 7372 KB Output is correct
91 Correct 5 ms 7508 KB Output is correct
92 Correct 5 ms 7500 KB Output is correct
93 Correct 5 ms 7500 KB Output is correct
94 Correct 5 ms 7500 KB Output is correct
95 Correct 7 ms 7500 KB Output is correct
96 Correct 5 ms 7508 KB Output is correct
97 Correct 5 ms 7372 KB Output is correct
98 Correct 6 ms 7372 KB Output is correct
99 Correct 5 ms 7372 KB Output is correct
100 Correct 5 ms 7364 KB Output is correct
101 Correct 5 ms 7372 KB Output is correct
102 Correct 5 ms 7372 KB Output is correct
103 Correct 5 ms 7372 KB Output is correct
104 Correct 5 ms 7372 KB Output is correct
105 Correct 5 ms 7380 KB Output is correct
106 Correct 5 ms 7376 KB Output is correct
107 Correct 5 ms 7380 KB Output is correct
108 Correct 81 ms 17312 KB Output is correct
109 Correct 83 ms 17360 KB Output is correct
110 Correct 80 ms 17268 KB Output is correct
111 Correct 79 ms 17256 KB Output is correct
112 Correct 94 ms 17524 KB Output is correct
113 Correct 104 ms 24028 KB Output is correct
114 Correct 93 ms 21500 KB Output is correct
115 Correct 90 ms 20420 KB Output is correct
116 Correct 87 ms 19448 KB Output is correct
117 Correct 87 ms 17396 KB Output is correct
118 Correct 90 ms 17348 KB Output is correct
119 Correct 80 ms 17332 KB Output is correct
120 Correct 80 ms 17376 KB Output is correct
121 Correct 73 ms 16824 KB Output is correct
122 Correct 69 ms 16388 KB Output is correct
123 Correct 47 ms 14096 KB Output is correct
124 Correct 49 ms 16404 KB Output is correct
125 Correct 49 ms 16380 KB Output is correct
126 Correct 50 ms 16564 KB Output is correct
127 Correct 52 ms 16452 KB Output is correct
128 Correct 6 ms 7372 KB Output is correct
129 Correct 5 ms 7380 KB Output is correct
130 Correct 6 ms 7372 KB Output is correct
131 Correct 7 ms 7372 KB Output is correct
132 Correct 5 ms 7380 KB Output is correct
133 Correct 6 ms 7372 KB Output is correct
134 Correct 6 ms 7376 KB Output is correct
135 Correct 6 ms 7400 KB Output is correct
136 Correct 5 ms 7372 KB Output is correct
137 Correct 5 ms 7372 KB Output is correct
138 Correct 5 ms 7372 KB Output is correct
139 Correct 5 ms 7500 KB Output is correct
140 Correct 5 ms 7508 KB Output is correct
141 Correct 5 ms 7408 KB Output is correct
142 Correct 5 ms 7372 KB Output is correct
143 Correct 5 ms 7372 KB Output is correct
144 Correct 5 ms 7372 KB Output is correct
145 Correct 6 ms 7380 KB Output is correct
146 Correct 6 ms 7340 KB Output is correct
147 Correct 6 ms 7372 KB Output is correct
148 Correct 6 ms 7372 KB Output is correct
149 Correct 5 ms 7372 KB Output is correct
150 Correct 6 ms 7372 KB Output is correct
151 Correct 6 ms 7500 KB Output is correct
152 Correct 5 ms 7372 KB Output is correct
153 Correct 5 ms 7372 KB Output is correct
154 Correct 5 ms 7368 KB Output is correct
155 Correct 79 ms 17348 KB Output is correct
156 Correct 85 ms 17576 KB Output is correct
157 Correct 107 ms 17116 KB Output is correct
158 Correct 98 ms 16180 KB Output is correct
159 Correct 88 ms 14788 KB Output is correct
160 Correct 77 ms 14276 KB Output is correct
161 Correct 73 ms 13972 KB Output is correct
162 Correct 73 ms 13732 KB Output is correct
163 Correct 82 ms 13684 KB Output is correct
164 Correct 60 ms 13512 KB Output is correct
165 Correct 58 ms 13352 KB Output is correct
166 Correct 57 ms 13380 KB Output is correct
167 Correct 68 ms 13416 KB Output is correct
168 Correct 67 ms 15712 KB Output is correct
169 Correct 100 ms 21436 KB Output is correct
170 Correct 99 ms 19972 KB Output is correct
171 Correct 92 ms 20544 KB Output is correct
172 Correct 100 ms 19136 KB Output is correct
173 Correct 106 ms 16044 KB Output is correct
174 Correct 90 ms 16044 KB Output is correct
175 Correct 91 ms 15968 KB Output is correct
176 Correct 88 ms 15520 KB Output is correct
177 Correct 67 ms 14812 KB Output is correct
178 Correct 74 ms 16704 KB Output is correct
179 Correct 89 ms 16816 KB Output is correct
180 Correct 94 ms 16128 KB Output is correct
181 Correct 84 ms 16196 KB Output is correct
182 Correct 4 ms 7372 KB Output is correct
183 Correct 5 ms 7400 KB Output is correct
184 Correct 5 ms 7372 KB Output is correct
185 Correct 6 ms 7372 KB Output is correct
186 Correct 7 ms 7524 KB Output is correct
187 Correct 5 ms 7372 KB Output is correct
188 Correct 5 ms 7372 KB Output is correct
189 Correct 5 ms 7372 KB Output is correct
190 Correct 5 ms 7372 KB Output is correct
191 Correct 5 ms 7376 KB Output is correct
192 Correct 5 ms 7372 KB Output is correct
193 Correct 6 ms 7372 KB Output is correct
194 Correct 6 ms 7372 KB Output is correct
195 Correct 5 ms 7380 KB Output is correct
196 Correct 5 ms 7372 KB Output is correct
197 Correct 5 ms 7372 KB Output is correct
198 Correct 5 ms 7500 KB Output is correct
199 Correct 5 ms 7508 KB Output is correct
200 Correct 5 ms 7372 KB Output is correct
201 Correct 5 ms 7372 KB Output is correct
202 Correct 6 ms 7372 KB Output is correct
203 Correct 6 ms 7372 KB Output is correct
204 Correct 7 ms 7372 KB Output is correct
205 Correct 6 ms 7372 KB Output is correct
206 Correct 6 ms 7376 KB Output is correct
207 Correct 5 ms 7372 KB Output is correct
208 Correct 5 ms 7376 KB Output is correct
209 Correct 8 ms 8652 KB Output is correct
210 Correct 45 ms 13636 KB Output is correct
211 Correct 76 ms 17088 KB Output is correct
212 Correct 100 ms 19792 KB Output is correct
213 Correct 110 ms 21560 KB Output is correct
214 Correct 49 ms 14916 KB Output is correct
215 Correct 52 ms 14716 KB Output is correct
216 Correct 95 ms 16192 KB Output is correct
217 Correct 87 ms 14984 KB Output is correct
218 Correct 67 ms 13772 KB Output is correct
219 Correct 71 ms 13344 KB Output is correct
220 Correct 66 ms 13464 KB Output is correct
221 Correct 56 ms 13276 KB Output is correct
222 Correct 58 ms 14580 KB Output is correct
223 Correct 94 ms 17948 KB Output is correct
224 Correct 97 ms 16964 KB Output is correct
225 Correct 84 ms 14656 KB Output is correct
226 Correct 82 ms 14736 KB Output is correct
227 Correct 80 ms 14684 KB Output is correct
228 Correct 85 ms 14548 KB Output is correct
229 Correct 72 ms 14288 KB Output is correct
230 Correct 71 ms 14660 KB Output is correct
231 Correct 72 ms 14708 KB Output is correct