Submission #100902

# Submission time Handle Problem Language Result Execution time Memory
100902 2019-03-15T04:24:53 Z autumn_eel Telegraph (JOI16_telegraph) C++14
100 / 100
211 ms 23032 KB
#include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<(n);i++)
using namespace std;
typedef long long ll;
typedef pair<int,int>P;
 
vector<int>E[200000],G[200000];
int deg[200000];
int a[200000],c[200000];
bool loop[200000];
int id[200000];
int loopMax[200000],loopcnt[200000],loopsz[200000];
 
void dfs(int v,int k){
	id[v]=k;
	for(int u:E[v]){
		if(id[u]==-1){
			dfs(u,k);
		}
	}
}
ll ans=0;
 
void dfs2(int v){
	int Max=0;
	int Max2=0;
	for(int u:E[v]){
		if(loop[u]){
			Max2=c[u];
		}
		else{
			dfs2(u);
			Max=max(Max,c[u]);
		}
	}
	if(Max2>Max){
		loopMax[id[v]]=max(loopMax[id[v]],Max-Max2);
		loopcnt[id[v]]++;
	}
	ans+=max(Max,Max2);
}
 
 
int main(){
	int n;cin>>n;
	rep(i,n){
		scanf("%d%d",&a[i],&c[i]);a[i]--;
		deg[a[i]]++;deg[i]++;
		E[a[i]].push_back(i);
		G[a[i]].push_back(i);
		G[i].push_back(a[i]);
	}
	queue<int>que;
	rep(i,n){
		if(deg[i]==1){
			que.push(i);
		}
	}
	memset(loop,1,sizeof(loop));
	while(!que.empty()){
		int p=que.front();que.pop();
		loop[p]=false;
		for(int u:G[p]){
			if(deg[u]>1){
				deg[u]--;
				if(deg[u]==1){
					que.push(u);
				}
			}
		}
	}
	memset(id,-1,sizeof(id));
	int cnt=0;
	rep(i,n){
		if(loop[i]&&id[i]==-1){
			dfs(i,cnt++);
		}
	}
	bool ok=true;
	rep(i,n){
		if(!loop[i])ok=false;
	}
	if(ok&&cnt==1){
		puts("0");
		return 0;
	}
	rep(i,cnt)loopMax[i]=INT_MIN;
	rep(i,n){
		if(loop[i]){
			dfs2(i);
			loopsz[id[i]]++;
		}
	}
	rep(i,cnt){
		if(loopsz[i]&&loopsz[i]==loopcnt[i]){
			ans+=loopMax[i];
		}
	}
	ll ans2=0;
	rep(i,n)ans2+=c[i];
	cout<<ans2-ans<<endl;
}

Compilation message

telegraph.cpp: In function 'int main()':
telegraph.cpp:47:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d",&a[i],&c[i]);a[i]--;
   ~~~~~^~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 12 ms 10880 KB Output is correct
2 Correct 13 ms 10752 KB Output is correct
3 Correct 13 ms 10752 KB Output is correct
4 Correct 11 ms 10752 KB Output is correct
5 Correct 12 ms 10752 KB Output is correct
6 Correct 11 ms 10752 KB Output is correct
7 Correct 12 ms 10752 KB Output is correct
8 Correct 12 ms 10752 KB Output is correct
9 Correct 12 ms 10752 KB Output is correct
10 Correct 12 ms 10752 KB Output is correct
11 Correct 11 ms 10752 KB Output is correct
12 Correct 14 ms 10752 KB Output is correct
13 Correct 11 ms 10752 KB Output is correct
14 Correct 12 ms 10752 KB Output is correct
15 Correct 13 ms 10724 KB Output is correct
16 Correct 11 ms 10752 KB Output is correct
17 Correct 14 ms 10752 KB Output is correct
18 Correct 13 ms 10752 KB Output is correct
19 Correct 11 ms 10752 KB Output is correct
20 Correct 14 ms 10752 KB Output is correct
21 Correct 10 ms 10752 KB Output is correct
22 Correct 11 ms 10752 KB Output is correct
23 Correct 12 ms 10752 KB Output is correct
24 Correct 12 ms 10752 KB Output is correct
25 Correct 11 ms 10752 KB Output is correct
26 Correct 11 ms 10752 KB Output is correct
27 Correct 12 ms 10752 KB Output is correct
28 Correct 11 ms 10752 KB Output is correct
29 Correct 12 ms 10752 KB Output is correct
30 Correct 12 ms 10752 KB Output is correct
31 Correct 12 ms 10752 KB Output is correct
32 Correct 12 ms 10752 KB Output is correct
33 Correct 13 ms 10752 KB Output is correct
34 Correct 13 ms 10752 KB Output is correct
35 Correct 13 ms 10752 KB Output is correct
36 Correct 12 ms 10728 KB Output is correct
37 Correct 12 ms 10752 KB Output is correct
38 Correct 12 ms 10752 KB Output is correct
39 Correct 12 ms 10752 KB Output is correct
40 Correct 15 ms 10752 KB Output is correct
41 Correct 13 ms 10752 KB Output is correct
42 Correct 15 ms 10752 KB Output is correct
43 Correct 14 ms 10752 KB Output is correct
44 Correct 13 ms 10752 KB Output is correct
45 Correct 14 ms 10752 KB Output is correct
46 Correct 15 ms 10752 KB Output is correct
47 Correct 12 ms 10752 KB Output is correct
48 Correct 13 ms 10752 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 10880 KB Output is correct
2 Correct 13 ms 10752 KB Output is correct
3 Correct 13 ms 10752 KB Output is correct
4 Correct 11 ms 10752 KB Output is correct
5 Correct 12 ms 10752 KB Output is correct
6 Correct 11 ms 10752 KB Output is correct
7 Correct 12 ms 10752 KB Output is correct
8 Correct 12 ms 10752 KB Output is correct
9 Correct 12 ms 10752 KB Output is correct
10 Correct 12 ms 10752 KB Output is correct
11 Correct 11 ms 10752 KB Output is correct
12 Correct 14 ms 10752 KB Output is correct
13 Correct 11 ms 10752 KB Output is correct
14 Correct 12 ms 10752 KB Output is correct
15 Correct 13 ms 10724 KB Output is correct
16 Correct 11 ms 10752 KB Output is correct
17 Correct 14 ms 10752 KB Output is correct
18 Correct 13 ms 10752 KB Output is correct
19 Correct 11 ms 10752 KB Output is correct
20 Correct 14 ms 10752 KB Output is correct
21 Correct 10 ms 10752 KB Output is correct
22 Correct 11 ms 10752 KB Output is correct
23 Correct 12 ms 10752 KB Output is correct
24 Correct 12 ms 10752 KB Output is correct
25 Correct 11 ms 10752 KB Output is correct
26 Correct 11 ms 10752 KB Output is correct
27 Correct 12 ms 10752 KB Output is correct
28 Correct 11 ms 10752 KB Output is correct
29 Correct 12 ms 10752 KB Output is correct
30 Correct 12 ms 10752 KB Output is correct
31 Correct 12 ms 10752 KB Output is correct
32 Correct 12 ms 10752 KB Output is correct
33 Correct 13 ms 10752 KB Output is correct
34 Correct 13 ms 10752 KB Output is correct
35 Correct 13 ms 10752 KB Output is correct
36 Correct 12 ms 10728 KB Output is correct
37 Correct 12 ms 10752 KB Output is correct
38 Correct 12 ms 10752 KB Output is correct
39 Correct 12 ms 10752 KB Output is correct
40 Correct 15 ms 10752 KB Output is correct
41 Correct 13 ms 10752 KB Output is correct
42 Correct 15 ms 10752 KB Output is correct
43 Correct 14 ms 10752 KB Output is correct
44 Correct 13 ms 10752 KB Output is correct
45 Correct 14 ms 10752 KB Output is correct
46 Correct 15 ms 10752 KB Output is correct
47 Correct 12 ms 10752 KB Output is correct
48 Correct 13 ms 10752 KB Output is correct
49 Correct 14 ms 10752 KB Output is correct
50 Correct 14 ms 10752 KB Output is correct
51 Correct 12 ms 10724 KB Output is correct
52 Correct 13 ms 10752 KB Output is correct
53 Correct 14 ms 10724 KB Output is correct
54 Correct 12 ms 10752 KB Output is correct
55 Correct 15 ms 10752 KB Output is correct
56 Correct 12 ms 10752 KB Output is correct
57 Correct 13 ms 10752 KB Output is correct
58 Correct 13 ms 10752 KB Output is correct
59 Correct 14 ms 10752 KB Output is correct
60 Correct 13 ms 10752 KB Output is correct
61 Correct 13 ms 10744 KB Output is correct
62 Correct 14 ms 10752 KB Output is correct
63 Correct 15 ms 10752 KB Output is correct
64 Correct 13 ms 10784 KB Output is correct
65 Correct 14 ms 10752 KB Output is correct
66 Correct 13 ms 10752 KB Output is correct
67 Correct 12 ms 10752 KB Output is correct
68 Correct 12 ms 10752 KB Output is correct
69 Correct 13 ms 10752 KB Output is correct
70 Correct 12 ms 10752 KB Output is correct
71 Correct 15 ms 10752 KB Output is correct
72 Correct 13 ms 10752 KB Output is correct
73 Correct 13 ms 10752 KB Output is correct
74 Correct 12 ms 10752 KB Output is correct
75 Correct 10 ms 10752 KB Output is correct
76 Correct 13 ms 10880 KB Output is correct
77 Correct 13 ms 10752 KB Output is correct
78 Correct 14 ms 10796 KB Output is correct
79 Correct 13 ms 10752 KB Output is correct
80 Correct 13 ms 10752 KB Output is correct
81 Correct 15 ms 10744 KB Output is correct
82 Correct 14 ms 10752 KB Output is correct
83 Correct 13 ms 10752 KB Output is correct
84 Correct 13 ms 10752 KB Output is correct
85 Correct 11 ms 10752 KB Output is correct
86 Correct 12 ms 10780 KB Output is correct
87 Correct 15 ms 10880 KB Output is correct
88 Correct 13 ms 10752 KB Output is correct
89 Correct 13 ms 10752 KB Output is correct
90 Correct 13 ms 10752 KB Output is correct
91 Correct 12 ms 10752 KB Output is correct
92 Correct 14 ms 10752 KB Output is correct
93 Correct 14 ms 10752 KB Output is correct
94 Correct 13 ms 10880 KB Output is correct
95 Correct 13 ms 10752 KB Output is correct
96 Correct 12 ms 10752 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 10880 KB Output is correct
2 Correct 13 ms 10752 KB Output is correct
3 Correct 13 ms 10752 KB Output is correct
4 Correct 11 ms 10752 KB Output is correct
5 Correct 12 ms 10752 KB Output is correct
6 Correct 11 ms 10752 KB Output is correct
7 Correct 12 ms 10752 KB Output is correct
8 Correct 12 ms 10752 KB Output is correct
9 Correct 12 ms 10752 KB Output is correct
10 Correct 12 ms 10752 KB Output is correct
11 Correct 11 ms 10752 KB Output is correct
12 Correct 14 ms 10752 KB Output is correct
13 Correct 11 ms 10752 KB Output is correct
14 Correct 12 ms 10752 KB Output is correct
15 Correct 13 ms 10724 KB Output is correct
16 Correct 11 ms 10752 KB Output is correct
17 Correct 14 ms 10752 KB Output is correct
18 Correct 13 ms 10752 KB Output is correct
19 Correct 11 ms 10752 KB Output is correct
20 Correct 14 ms 10752 KB Output is correct
21 Correct 10 ms 10752 KB Output is correct
22 Correct 11 ms 10752 KB Output is correct
23 Correct 12 ms 10752 KB Output is correct
24 Correct 12 ms 10752 KB Output is correct
25 Correct 11 ms 10752 KB Output is correct
26 Correct 11 ms 10752 KB Output is correct
27 Correct 12 ms 10752 KB Output is correct
28 Correct 11 ms 10752 KB Output is correct
29 Correct 12 ms 10752 KB Output is correct
30 Correct 12 ms 10752 KB Output is correct
31 Correct 12 ms 10752 KB Output is correct
32 Correct 12 ms 10752 KB Output is correct
33 Correct 13 ms 10752 KB Output is correct
34 Correct 13 ms 10752 KB Output is correct
35 Correct 13 ms 10752 KB Output is correct
36 Correct 12 ms 10728 KB Output is correct
37 Correct 12 ms 10752 KB Output is correct
38 Correct 12 ms 10752 KB Output is correct
39 Correct 12 ms 10752 KB Output is correct
40 Correct 15 ms 10752 KB Output is correct
41 Correct 13 ms 10752 KB Output is correct
42 Correct 15 ms 10752 KB Output is correct
43 Correct 14 ms 10752 KB Output is correct
44 Correct 13 ms 10752 KB Output is correct
45 Correct 14 ms 10752 KB Output is correct
46 Correct 15 ms 10752 KB Output is correct
47 Correct 12 ms 10752 KB Output is correct
48 Correct 13 ms 10752 KB Output is correct
49 Correct 14 ms 10752 KB Output is correct
50 Correct 14 ms 10752 KB Output is correct
51 Correct 12 ms 10724 KB Output is correct
52 Correct 13 ms 10752 KB Output is correct
53 Correct 14 ms 10724 KB Output is correct
54 Correct 12 ms 10752 KB Output is correct
55 Correct 15 ms 10752 KB Output is correct
56 Correct 12 ms 10752 KB Output is correct
57 Correct 13 ms 10752 KB Output is correct
58 Correct 13 ms 10752 KB Output is correct
59 Correct 14 ms 10752 KB Output is correct
60 Correct 13 ms 10752 KB Output is correct
61 Correct 13 ms 10744 KB Output is correct
62 Correct 14 ms 10752 KB Output is correct
63 Correct 15 ms 10752 KB Output is correct
64 Correct 13 ms 10784 KB Output is correct
65 Correct 14 ms 10752 KB Output is correct
66 Correct 13 ms 10752 KB Output is correct
67 Correct 12 ms 10752 KB Output is correct
68 Correct 12 ms 10752 KB Output is correct
69 Correct 13 ms 10752 KB Output is correct
70 Correct 12 ms 10752 KB Output is correct
71 Correct 15 ms 10752 KB Output is correct
72 Correct 13 ms 10752 KB Output is correct
73 Correct 13 ms 10752 KB Output is correct
74 Correct 12 ms 10752 KB Output is correct
75 Correct 10 ms 10752 KB Output is correct
76 Correct 13 ms 10880 KB Output is correct
77 Correct 13 ms 10752 KB Output is correct
78 Correct 14 ms 10796 KB Output is correct
79 Correct 13 ms 10752 KB Output is correct
80 Correct 13 ms 10752 KB Output is correct
81 Correct 15 ms 10744 KB Output is correct
82 Correct 14 ms 10752 KB Output is correct
83 Correct 13 ms 10752 KB Output is correct
84 Correct 13 ms 10752 KB Output is correct
85 Correct 11 ms 10752 KB Output is correct
86 Correct 12 ms 10780 KB Output is correct
87 Correct 15 ms 10880 KB Output is correct
88 Correct 13 ms 10752 KB Output is correct
89 Correct 13 ms 10752 KB Output is correct
90 Correct 13 ms 10752 KB Output is correct
91 Correct 12 ms 10752 KB Output is correct
92 Correct 14 ms 10752 KB Output is correct
93 Correct 14 ms 10752 KB Output is correct
94 Correct 13 ms 10880 KB Output is correct
95 Correct 13 ms 10752 KB Output is correct
96 Correct 12 ms 10752 KB Output is correct
97 Correct 14 ms 10880 KB Output is correct
98 Correct 13 ms 11008 KB Output is correct
99 Correct 16 ms 11008 KB Output is correct
100 Correct 15 ms 11008 KB Output is correct
101 Correct 17 ms 11008 KB Output is correct
102 Correct 15 ms 11136 KB Output is correct
103 Correct 15 ms 11136 KB Output is correct
104 Correct 14 ms 11008 KB Output is correct
105 Correct 16 ms 11136 KB Output is correct
106 Correct 18 ms 11136 KB Output is correct
107 Correct 14 ms 11008 KB Output is correct
108 Correct 15 ms 11008 KB Output is correct
109 Correct 13 ms 11008 KB Output is correct
110 Correct 17 ms 11128 KB Output is correct
111 Correct 15 ms 11008 KB Output is correct
112 Correct 15 ms 11008 KB Output is correct
113 Correct 17 ms 11008 KB Output is correct
114 Correct 15 ms 11008 KB Output is correct
115 Correct 14 ms 10912 KB Output is correct
116 Correct 16 ms 11008 KB Output is correct
117 Correct 24 ms 11136 KB Output is correct
118 Correct 16 ms 11008 KB Output is correct
119 Correct 15 ms 11008 KB Output is correct
120 Correct 19 ms 10880 KB Output is correct
121 Correct 14 ms 10880 KB Output is correct
122 Correct 14 ms 10880 KB Output is correct
123 Correct 16 ms 11008 KB Output is correct
124 Correct 13 ms 11008 KB Output is correct
125 Correct 15 ms 10880 KB Output is correct
126 Correct 16 ms 10980 KB Output is correct
127 Correct 16 ms 10880 KB Output is correct
128 Correct 16 ms 10880 KB Output is correct
129 Correct 16 ms 11108 KB Output is correct
130 Correct 15 ms 11008 KB Output is correct
131 Correct 15 ms 11008 KB Output is correct
132 Correct 15 ms 11008 KB Output is correct
133 Correct 15 ms 11008 KB Output is correct
134 Correct 14 ms 10880 KB Output is correct
135 Correct 14 ms 11008 KB Output is correct
136 Correct 16 ms 11008 KB Output is correct
137 Correct 13 ms 10880 KB Output is correct
138 Correct 14 ms 10752 KB Output is correct
139 Correct 15 ms 10880 KB Output is correct
140 Correct 12 ms 10880 KB Output is correct
141 Correct 14 ms 10820 KB Output is correct
142 Correct 13 ms 10880 KB Output is correct
143 Correct 13 ms 10880 KB Output is correct
144 Correct 13 ms 10880 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 10880 KB Output is correct
2 Correct 13 ms 10752 KB Output is correct
3 Correct 13 ms 10752 KB Output is correct
4 Correct 11 ms 10752 KB Output is correct
5 Correct 12 ms 10752 KB Output is correct
6 Correct 11 ms 10752 KB Output is correct
7 Correct 12 ms 10752 KB Output is correct
8 Correct 12 ms 10752 KB Output is correct
9 Correct 12 ms 10752 KB Output is correct
10 Correct 12 ms 10752 KB Output is correct
11 Correct 11 ms 10752 KB Output is correct
12 Correct 14 ms 10752 KB Output is correct
13 Correct 11 ms 10752 KB Output is correct
14 Correct 12 ms 10752 KB Output is correct
15 Correct 13 ms 10724 KB Output is correct
16 Correct 11 ms 10752 KB Output is correct
17 Correct 14 ms 10752 KB Output is correct
18 Correct 13 ms 10752 KB Output is correct
19 Correct 11 ms 10752 KB Output is correct
20 Correct 14 ms 10752 KB Output is correct
21 Correct 10 ms 10752 KB Output is correct
22 Correct 11 ms 10752 KB Output is correct
23 Correct 12 ms 10752 KB Output is correct
24 Correct 12 ms 10752 KB Output is correct
25 Correct 11 ms 10752 KB Output is correct
26 Correct 11 ms 10752 KB Output is correct
27 Correct 12 ms 10752 KB Output is correct
28 Correct 11 ms 10752 KB Output is correct
29 Correct 12 ms 10752 KB Output is correct
30 Correct 12 ms 10752 KB Output is correct
31 Correct 12 ms 10752 KB Output is correct
32 Correct 12 ms 10752 KB Output is correct
33 Correct 13 ms 10752 KB Output is correct
34 Correct 13 ms 10752 KB Output is correct
35 Correct 13 ms 10752 KB Output is correct
36 Correct 12 ms 10728 KB Output is correct
37 Correct 12 ms 10752 KB Output is correct
38 Correct 12 ms 10752 KB Output is correct
39 Correct 12 ms 10752 KB Output is correct
40 Correct 15 ms 10752 KB Output is correct
41 Correct 13 ms 10752 KB Output is correct
42 Correct 15 ms 10752 KB Output is correct
43 Correct 14 ms 10752 KB Output is correct
44 Correct 13 ms 10752 KB Output is correct
45 Correct 14 ms 10752 KB Output is correct
46 Correct 15 ms 10752 KB Output is correct
47 Correct 12 ms 10752 KB Output is correct
48 Correct 13 ms 10752 KB Output is correct
49 Correct 14 ms 10752 KB Output is correct
50 Correct 14 ms 10752 KB Output is correct
51 Correct 12 ms 10724 KB Output is correct
52 Correct 13 ms 10752 KB Output is correct
53 Correct 14 ms 10724 KB Output is correct
54 Correct 12 ms 10752 KB Output is correct
55 Correct 15 ms 10752 KB Output is correct
56 Correct 12 ms 10752 KB Output is correct
57 Correct 13 ms 10752 KB Output is correct
58 Correct 13 ms 10752 KB Output is correct
59 Correct 14 ms 10752 KB Output is correct
60 Correct 13 ms 10752 KB Output is correct
61 Correct 13 ms 10744 KB Output is correct
62 Correct 14 ms 10752 KB Output is correct
63 Correct 15 ms 10752 KB Output is correct
64 Correct 13 ms 10784 KB Output is correct
65 Correct 14 ms 10752 KB Output is correct
66 Correct 13 ms 10752 KB Output is correct
67 Correct 12 ms 10752 KB Output is correct
68 Correct 12 ms 10752 KB Output is correct
69 Correct 13 ms 10752 KB Output is correct
70 Correct 12 ms 10752 KB Output is correct
71 Correct 15 ms 10752 KB Output is correct
72 Correct 13 ms 10752 KB Output is correct
73 Correct 13 ms 10752 KB Output is correct
74 Correct 12 ms 10752 KB Output is correct
75 Correct 10 ms 10752 KB Output is correct
76 Correct 13 ms 10880 KB Output is correct
77 Correct 13 ms 10752 KB Output is correct
78 Correct 14 ms 10796 KB Output is correct
79 Correct 13 ms 10752 KB Output is correct
80 Correct 13 ms 10752 KB Output is correct
81 Correct 15 ms 10744 KB Output is correct
82 Correct 14 ms 10752 KB Output is correct
83 Correct 13 ms 10752 KB Output is correct
84 Correct 13 ms 10752 KB Output is correct
85 Correct 11 ms 10752 KB Output is correct
86 Correct 12 ms 10780 KB Output is correct
87 Correct 15 ms 10880 KB Output is correct
88 Correct 13 ms 10752 KB Output is correct
89 Correct 13 ms 10752 KB Output is correct
90 Correct 13 ms 10752 KB Output is correct
91 Correct 12 ms 10752 KB Output is correct
92 Correct 14 ms 10752 KB Output is correct
93 Correct 14 ms 10752 KB Output is correct
94 Correct 13 ms 10880 KB Output is correct
95 Correct 13 ms 10752 KB Output is correct
96 Correct 12 ms 10752 KB Output is correct
97 Correct 14 ms 10880 KB Output is correct
98 Correct 13 ms 11008 KB Output is correct
99 Correct 16 ms 11008 KB Output is correct
100 Correct 15 ms 11008 KB Output is correct
101 Correct 17 ms 11008 KB Output is correct
102 Correct 15 ms 11136 KB Output is correct
103 Correct 15 ms 11136 KB Output is correct
104 Correct 14 ms 11008 KB Output is correct
105 Correct 16 ms 11136 KB Output is correct
106 Correct 18 ms 11136 KB Output is correct
107 Correct 14 ms 11008 KB Output is correct
108 Correct 15 ms 11008 KB Output is correct
109 Correct 13 ms 11008 KB Output is correct
110 Correct 17 ms 11128 KB Output is correct
111 Correct 15 ms 11008 KB Output is correct
112 Correct 15 ms 11008 KB Output is correct
113 Correct 17 ms 11008 KB Output is correct
114 Correct 15 ms 11008 KB Output is correct
115 Correct 14 ms 10912 KB Output is correct
116 Correct 16 ms 11008 KB Output is correct
117 Correct 24 ms 11136 KB Output is correct
118 Correct 16 ms 11008 KB Output is correct
119 Correct 15 ms 11008 KB Output is correct
120 Correct 19 ms 10880 KB Output is correct
121 Correct 14 ms 10880 KB Output is correct
122 Correct 14 ms 10880 KB Output is correct
123 Correct 16 ms 11008 KB Output is correct
124 Correct 13 ms 11008 KB Output is correct
125 Correct 15 ms 10880 KB Output is correct
126 Correct 16 ms 10980 KB Output is correct
127 Correct 16 ms 10880 KB Output is correct
128 Correct 16 ms 10880 KB Output is correct
129 Correct 16 ms 11108 KB Output is correct
130 Correct 15 ms 11008 KB Output is correct
131 Correct 15 ms 11008 KB Output is correct
132 Correct 15 ms 11008 KB Output is correct
133 Correct 15 ms 11008 KB Output is correct
134 Correct 14 ms 10880 KB Output is correct
135 Correct 14 ms 11008 KB Output is correct
136 Correct 16 ms 11008 KB Output is correct
137 Correct 13 ms 10880 KB Output is correct
138 Correct 14 ms 10752 KB Output is correct
139 Correct 15 ms 10880 KB Output is correct
140 Correct 12 ms 10880 KB Output is correct
141 Correct 14 ms 10820 KB Output is correct
142 Correct 13 ms 10880 KB Output is correct
143 Correct 13 ms 10880 KB Output is correct
144 Correct 13 ms 10880 KB Output is correct
145 Correct 166 ms 18960 KB Output is correct
146 Correct 182 ms 18860 KB Output is correct
147 Correct 191 ms 18808 KB Output is correct
148 Correct 168 ms 18824 KB Output is correct
149 Correct 172 ms 18936 KB Output is correct
150 Correct 151 ms 22908 KB Output is correct
151 Correct 160 ms 23032 KB Output is correct
152 Correct 175 ms 22876 KB Output is correct
153 Correct 152 ms 22904 KB Output is correct
154 Correct 146 ms 22848 KB Output is correct
155 Correct 181 ms 20048 KB Output is correct
156 Correct 135 ms 19960 KB Output is correct
157 Correct 146 ms 19868 KB Output is correct
158 Correct 160 ms 19960 KB Output is correct
159 Correct 152 ms 19932 KB Output is correct
160 Correct 135 ms 20056 KB Output is correct
161 Correct 148 ms 19864 KB Output is correct
162 Correct 131 ms 19192 KB Output is correct
163 Correct 132 ms 19064 KB Output is correct
164 Correct 156 ms 20508 KB Output is correct
165 Correct 127 ms 20284 KB Output is correct
166 Correct 164 ms 21340 KB Output is correct
167 Correct 151 ms 21368 KB Output is correct
168 Correct 154 ms 17948 KB Output is correct
169 Correct 168 ms 18040 KB Output is correct
170 Correct 169 ms 18040 KB Output is correct
171 Correct 162 ms 18116 KB Output is correct
172 Correct 146 ms 17948 KB Output is correct
173 Correct 154 ms 18040 KB Output is correct
174 Correct 153 ms 18052 KB Output is correct
175 Correct 172 ms 18296 KB Output is correct
176 Correct 158 ms 18168 KB Output is correct
177 Correct 157 ms 22264 KB Output is correct
178 Correct 140 ms 22136 KB Output is correct
179 Correct 151 ms 22136 KB Output is correct
180 Correct 155 ms 22120 KB Output is correct
181 Correct 44 ms 17768 KB Output is correct
182 Correct 44 ms 17872 KB Output is correct
183 Correct 145 ms 19756 KB Output is correct
184 Correct 211 ms 19672 KB Output is correct
185 Correct 98 ms 16248 KB Output is correct
186 Correct 72 ms 14584 KB Output is correct
187 Correct 33 ms 12672 KB Output is correct
188 Correct 160 ms 18808 KB Output is correct
189 Correct 123 ms 16720 KB Output is correct
190 Correct 79 ms 17416 KB Output is correct
191 Correct 49 ms 14584 KB Output is correct
192 Correct 19 ms 11520 KB Output is correct