# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1028263 |
2024-07-19T15:40:39 Z |
Tob |
Traffic (IOI10_traffic) |
C++14 |
|
803 ms |
159060 KB |
#include <bits/stdc++.h>
#include "traffic.h"
#define F first
#define S second
#define all(x) x.begin(), x.end()
#define pb push_back
#define FIO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
using namespace std;
typedef long long ll;
typedef pair <ll, ll> pii;
const int N = 1e6 + 7;
int sum, fo;
int a[N], siz[N], res[N];
vector <int> adj[N];
int dfs(int x, bool rev, int p = -1, int d = 0) {
if (!rev) {
siz[x] = a[x];
for (auto y : adj[x]) if (y != p) siz[x] += dfs(y, 0, x);
return siz[x];
}
int mx = d, cur = x;
for (auto y : adj[x]) if (y != p) mx = max(mx, siz[y]);
res[x] = mx;
for (auto y : adj[x]) if (y != p) {
int z = dfs(y, 1, x, sum-siz[y]);
if (res[z] < res[cur]) cur = z;
}
return cur;
}
int LocateCentre(int n, int pp[], int S[], int D[]) {
for (int i = 0; i < n; i++) {
a[i] = pp[i];
sum += a[i];
}
for (int i = 0; i < n-1; i++) {
adj[S[i]].pb(D[i]);
adj[D[i]].pb(S[i]);
}
dfs(0, 0);
return dfs(0, 1);
}
//-----------------------------------------
/*
static int NN,PP[1000000],SS[1000000],DD[1000000];
int main(){
int i;
scanf("%d",&NN);
for (i=0;i<NN;i++) scanf("%d",&PP[i]);
for (i=0;i<NN-1;i++) scanf("%d%d",&SS[i],&DD[i]);
int r = LocateCentre(NN,PP,SS,DD);
printf("%d\n",r);
return 0;
}*/
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
10 ms |
23896 KB |
Output is correct |
2 |
Correct |
10 ms |
23896 KB |
Output is correct |
3 |
Correct |
10 ms |
23900 KB |
Output is correct |
4 |
Correct |
10 ms |
23900 KB |
Output is correct |
5 |
Correct |
10 ms |
23900 KB |
Output is correct |
6 |
Correct |
10 ms |
23900 KB |
Output is correct |
7 |
Correct |
10 ms |
23900 KB |
Output is correct |
8 |
Correct |
11 ms |
23900 KB |
Output is correct |
9 |
Correct |
10 ms |
23900 KB |
Output is correct |
10 |
Correct |
9 ms |
23836 KB |
Output is correct |
11 |
Correct |
10 ms |
23896 KB |
Output is correct |
12 |
Correct |
11 ms |
23900 KB |
Output is correct |
13 |
Correct |
14 ms |
23900 KB |
Output is correct |
14 |
Correct |
11 ms |
23900 KB |
Output is correct |
15 |
Correct |
10 ms |
23900 KB |
Output is correct |
16 |
Correct |
10 ms |
23900 KB |
Output is correct |
17 |
Correct |
9 ms |
23900 KB |
Output is correct |
18 |
Correct |
11 ms |
23896 KB |
Output is correct |
19 |
Correct |
9 ms |
23900 KB |
Output is correct |
20 |
Correct |
14 ms |
23856 KB |
Output is correct |
21 |
Correct |
9 ms |
23900 KB |
Output is correct |
22 |
Correct |
10 ms |
23900 KB |
Output is correct |
23 |
Correct |
9 ms |
23896 KB |
Output is correct |
24 |
Correct |
10 ms |
23972 KB |
Output is correct |
25 |
Correct |
13 ms |
23900 KB |
Output is correct |
26 |
Correct |
10 ms |
23896 KB |
Output is correct |
27 |
Correct |
12 ms |
23900 KB |
Output is correct |
28 |
Correct |
10 ms |
23900 KB |
Output is correct |
29 |
Correct |
11 ms |
23852 KB |
Output is correct |
30 |
Correct |
12 ms |
23900 KB |
Output is correct |
31 |
Correct |
11 ms |
23896 KB |
Output is correct |
32 |
Correct |
12 ms |
23788 KB |
Output is correct |
33 |
Correct |
11 ms |
23892 KB |
Output is correct |
34 |
Correct |
11 ms |
23900 KB |
Output is correct |
35 |
Correct |
11 ms |
23900 KB |
Output is correct |
36 |
Correct |
10 ms |
23984 KB |
Output is correct |
37 |
Correct |
11 ms |
23844 KB |
Output is correct |
38 |
Correct |
11 ms |
23848 KB |
Output is correct |
39 |
Correct |
10 ms |
23900 KB |
Output is correct |
40 |
Correct |
12 ms |
23900 KB |
Output is correct |
41 |
Correct |
11 ms |
23960 KB |
Output is correct |
42 |
Correct |
11 ms |
23956 KB |
Output is correct |
43 |
Correct |
11 ms |
23824 KB |
Output is correct |
44 |
Correct |
11 ms |
23896 KB |
Output is correct |
45 |
Correct |
10 ms |
23968 KB |
Output is correct |
46 |
Correct |
10 ms |
23840 KB |
Output is correct |
47 |
Correct |
11 ms |
23756 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
10 ms |
23896 KB |
Output is correct |
2 |
Correct |
10 ms |
23896 KB |
Output is correct |
3 |
Correct |
10 ms |
23900 KB |
Output is correct |
4 |
Correct |
10 ms |
23900 KB |
Output is correct |
5 |
Correct |
10 ms |
23900 KB |
Output is correct |
6 |
Correct |
10 ms |
23900 KB |
Output is correct |
7 |
Correct |
10 ms |
23900 KB |
Output is correct |
8 |
Correct |
11 ms |
23900 KB |
Output is correct |
9 |
Correct |
10 ms |
23900 KB |
Output is correct |
10 |
Correct |
9 ms |
23836 KB |
Output is correct |
11 |
Correct |
10 ms |
23896 KB |
Output is correct |
12 |
Correct |
11 ms |
23900 KB |
Output is correct |
13 |
Correct |
14 ms |
23900 KB |
Output is correct |
14 |
Correct |
11 ms |
23900 KB |
Output is correct |
15 |
Correct |
10 ms |
23900 KB |
Output is correct |
16 |
Correct |
10 ms |
23900 KB |
Output is correct |
17 |
Correct |
9 ms |
23900 KB |
Output is correct |
18 |
Correct |
11 ms |
23896 KB |
Output is correct |
19 |
Correct |
9 ms |
23900 KB |
Output is correct |
20 |
Correct |
14 ms |
23856 KB |
Output is correct |
21 |
Correct |
9 ms |
23900 KB |
Output is correct |
22 |
Correct |
10 ms |
23900 KB |
Output is correct |
23 |
Correct |
9 ms |
23896 KB |
Output is correct |
24 |
Correct |
10 ms |
23972 KB |
Output is correct |
25 |
Correct |
13 ms |
23900 KB |
Output is correct |
26 |
Correct |
10 ms |
23896 KB |
Output is correct |
27 |
Correct |
12 ms |
23900 KB |
Output is correct |
28 |
Correct |
10 ms |
23900 KB |
Output is correct |
29 |
Correct |
11 ms |
23852 KB |
Output is correct |
30 |
Correct |
12 ms |
23900 KB |
Output is correct |
31 |
Correct |
11 ms |
23896 KB |
Output is correct |
32 |
Correct |
12 ms |
23788 KB |
Output is correct |
33 |
Correct |
11 ms |
23892 KB |
Output is correct |
34 |
Correct |
11 ms |
23900 KB |
Output is correct |
35 |
Correct |
11 ms |
23900 KB |
Output is correct |
36 |
Correct |
10 ms |
23984 KB |
Output is correct |
37 |
Correct |
11 ms |
23844 KB |
Output is correct |
38 |
Correct |
11 ms |
23848 KB |
Output is correct |
39 |
Correct |
10 ms |
23900 KB |
Output is correct |
40 |
Correct |
12 ms |
23900 KB |
Output is correct |
41 |
Correct |
11 ms |
23960 KB |
Output is correct |
42 |
Correct |
11 ms |
23956 KB |
Output is correct |
43 |
Correct |
11 ms |
23824 KB |
Output is correct |
44 |
Correct |
11 ms |
23896 KB |
Output is correct |
45 |
Correct |
10 ms |
23968 KB |
Output is correct |
46 |
Correct |
10 ms |
23840 KB |
Output is correct |
47 |
Correct |
11 ms |
23756 KB |
Output is correct |
48 |
Correct |
10 ms |
23900 KB |
Output is correct |
49 |
Correct |
10 ms |
23896 KB |
Output is correct |
50 |
Correct |
10 ms |
23900 KB |
Output is correct |
51 |
Correct |
12 ms |
23976 KB |
Output is correct |
52 |
Correct |
10 ms |
23964 KB |
Output is correct |
53 |
Correct |
10 ms |
23900 KB |
Output is correct |
54 |
Correct |
10 ms |
23900 KB |
Output is correct |
55 |
Correct |
10 ms |
23900 KB |
Output is correct |
56 |
Correct |
11 ms |
23828 KB |
Output is correct |
57 |
Correct |
11 ms |
23900 KB |
Output is correct |
58 |
Correct |
13 ms |
23900 KB |
Output is correct |
59 |
Correct |
9 ms |
23912 KB |
Output is correct |
60 |
Correct |
10 ms |
23944 KB |
Output is correct |
61 |
Correct |
10 ms |
23900 KB |
Output is correct |
62 |
Correct |
10 ms |
23900 KB |
Output is correct |
63 |
Correct |
13 ms |
23932 KB |
Output is correct |
64 |
Correct |
13 ms |
23900 KB |
Output is correct |
65 |
Correct |
13 ms |
24112 KB |
Output is correct |
66 |
Correct |
10 ms |
23900 KB |
Output is correct |
67 |
Correct |
10 ms |
23904 KB |
Output is correct |
68 |
Correct |
39 ms |
30544 KB |
Output is correct |
69 |
Correct |
38 ms |
37388 KB |
Output is correct |
70 |
Correct |
10 ms |
23900 KB |
Output is correct |
71 |
Correct |
72 ms |
43932 KB |
Output is correct |
72 |
Correct |
74 ms |
50668 KB |
Output is correct |
73 |
Correct |
130 ms |
57540 KB |
Output is correct |
74 |
Correct |
111 ms |
64448 KB |
Output is correct |
75 |
Correct |
132 ms |
71076 KB |
Output is correct |
76 |
Correct |
140 ms |
77984 KB |
Output is correct |
77 |
Correct |
170 ms |
84780 KB |
Output is correct |
78 |
Correct |
202 ms |
91376 KB |
Output is correct |
79 |
Correct |
195 ms |
98132 KB |
Output is correct |
80 |
Correct |
198 ms |
105040 KB |
Output is correct |
81 |
Correct |
10 ms |
23816 KB |
Output is correct |
82 |
Correct |
216 ms |
111660 KB |
Output is correct |
83 |
Correct |
231 ms |
118552 KB |
Output is correct |
84 |
Correct |
254 ms |
125212 KB |
Output is correct |
85 |
Correct |
270 ms |
131924 KB |
Output is correct |
86 |
Correct |
265 ms |
138832 KB |
Output is correct |
87 |
Correct |
290 ms |
145540 KB |
Output is correct |
88 |
Correct |
322 ms |
152404 KB |
Output is correct |
89 |
Correct |
325 ms |
159060 KB |
Output is correct |
90 |
Correct |
11 ms |
23896 KB |
Output is correct |
91 |
Correct |
11 ms |
23900 KB |
Output is correct |
92 |
Correct |
13 ms |
24156 KB |
Output is correct |
93 |
Correct |
12 ms |
23900 KB |
Output is correct |
94 |
Correct |
11 ms |
23788 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
10 ms |
23896 KB |
Output is correct |
2 |
Correct |
10 ms |
23896 KB |
Output is correct |
3 |
Correct |
10 ms |
23900 KB |
Output is correct |
4 |
Correct |
10 ms |
23900 KB |
Output is correct |
5 |
Correct |
10 ms |
23900 KB |
Output is correct |
6 |
Correct |
10 ms |
23900 KB |
Output is correct |
7 |
Correct |
10 ms |
23900 KB |
Output is correct |
8 |
Correct |
11 ms |
23900 KB |
Output is correct |
9 |
Correct |
10 ms |
23900 KB |
Output is correct |
10 |
Correct |
9 ms |
23836 KB |
Output is correct |
11 |
Correct |
10 ms |
23896 KB |
Output is correct |
12 |
Correct |
11 ms |
23900 KB |
Output is correct |
13 |
Correct |
14 ms |
23900 KB |
Output is correct |
14 |
Correct |
11 ms |
23900 KB |
Output is correct |
15 |
Correct |
10 ms |
23900 KB |
Output is correct |
16 |
Correct |
10 ms |
23900 KB |
Output is correct |
17 |
Correct |
9 ms |
23900 KB |
Output is correct |
18 |
Correct |
11 ms |
23896 KB |
Output is correct |
19 |
Correct |
9 ms |
23900 KB |
Output is correct |
20 |
Correct |
14 ms |
23856 KB |
Output is correct |
21 |
Correct |
9 ms |
23900 KB |
Output is correct |
22 |
Correct |
10 ms |
23900 KB |
Output is correct |
23 |
Correct |
9 ms |
23896 KB |
Output is correct |
24 |
Correct |
10 ms |
23972 KB |
Output is correct |
25 |
Correct |
13 ms |
23900 KB |
Output is correct |
26 |
Correct |
10 ms |
23896 KB |
Output is correct |
27 |
Correct |
12 ms |
23900 KB |
Output is correct |
28 |
Correct |
10 ms |
23900 KB |
Output is correct |
29 |
Correct |
11 ms |
23852 KB |
Output is correct |
30 |
Correct |
12 ms |
23900 KB |
Output is correct |
31 |
Correct |
11 ms |
23896 KB |
Output is correct |
32 |
Correct |
12 ms |
23788 KB |
Output is correct |
33 |
Correct |
11 ms |
23892 KB |
Output is correct |
34 |
Correct |
11 ms |
23900 KB |
Output is correct |
35 |
Correct |
11 ms |
23900 KB |
Output is correct |
36 |
Correct |
10 ms |
23984 KB |
Output is correct |
37 |
Correct |
11 ms |
23844 KB |
Output is correct |
38 |
Correct |
11 ms |
23848 KB |
Output is correct |
39 |
Correct |
10 ms |
23900 KB |
Output is correct |
40 |
Correct |
12 ms |
23900 KB |
Output is correct |
41 |
Correct |
11 ms |
23960 KB |
Output is correct |
42 |
Correct |
11 ms |
23956 KB |
Output is correct |
43 |
Correct |
11 ms |
23824 KB |
Output is correct |
44 |
Correct |
11 ms |
23896 KB |
Output is correct |
45 |
Correct |
10 ms |
23968 KB |
Output is correct |
46 |
Correct |
10 ms |
23840 KB |
Output is correct |
47 |
Correct |
11 ms |
23756 KB |
Output is correct |
48 |
Correct |
11 ms |
23896 KB |
Output is correct |
49 |
Correct |
11 ms |
23900 KB |
Output is correct |
50 |
Correct |
10 ms |
23900 KB |
Output is correct |
51 |
Correct |
11 ms |
23900 KB |
Output is correct |
52 |
Correct |
10 ms |
23900 KB |
Output is correct |
53 |
Correct |
10 ms |
23900 KB |
Output is correct |
54 |
Correct |
15 ms |
23876 KB |
Output is correct |
55 |
Correct |
11 ms |
23900 KB |
Output is correct |
56 |
Correct |
11 ms |
23900 KB |
Output is correct |
57 |
Correct |
11 ms |
23780 KB |
Output is correct |
58 |
Correct |
10 ms |
23896 KB |
Output is correct |
59 |
Correct |
11 ms |
23896 KB |
Output is correct |
60 |
Correct |
10 ms |
23900 KB |
Output is correct |
61 |
Correct |
10 ms |
23900 KB |
Output is correct |
62 |
Correct |
11 ms |
23900 KB |
Output is correct |
63 |
Correct |
10 ms |
23900 KB |
Output is correct |
64 |
Correct |
10 ms |
23900 KB |
Output is correct |
65 |
Correct |
11 ms |
23896 KB |
Output is correct |
66 |
Correct |
15 ms |
23912 KB |
Output is correct |
67 |
Correct |
11 ms |
23932 KB |
Output is correct |
68 |
Correct |
11 ms |
23900 KB |
Output is correct |
69 |
Correct |
11 ms |
23752 KB |
Output is correct |
70 |
Correct |
11 ms |
23896 KB |
Output is correct |
71 |
Correct |
11 ms |
23896 KB |
Output is correct |
72 |
Correct |
11 ms |
23900 KB |
Output is correct |
73 |
Correct |
10 ms |
23756 KB |
Output is correct |
74 |
Correct |
10 ms |
23900 KB |
Output is correct |
75 |
Correct |
11 ms |
23900 KB |
Output is correct |
76 |
Correct |
11 ms |
23968 KB |
Output is correct |
77 |
Correct |
11 ms |
23900 KB |
Output is correct |
78 |
Correct |
10 ms |
23896 KB |
Output is correct |
79 |
Correct |
9 ms |
23932 KB |
Output is correct |
80 |
Correct |
15 ms |
24004 KB |
Output is correct |
81 |
Correct |
9 ms |
23900 KB |
Output is correct |
82 |
Correct |
11 ms |
23836 KB |
Output is correct |
83 |
Correct |
10 ms |
23900 KB |
Output is correct |
84 |
Correct |
9 ms |
23956 KB |
Output is correct |
85 |
Correct |
9 ms |
23900 KB |
Output is correct |
86 |
Correct |
15 ms |
23892 KB |
Output is correct |
87 |
Correct |
10 ms |
23900 KB |
Output is correct |
88 |
Correct |
9 ms |
23896 KB |
Output is correct |
89 |
Correct |
14 ms |
23976 KB |
Output is correct |
90 |
Correct |
9 ms |
23900 KB |
Output is correct |
91 |
Correct |
9 ms |
23896 KB |
Output is correct |
92 |
Correct |
9 ms |
23896 KB |
Output is correct |
93 |
Correct |
10 ms |
23904 KB |
Output is correct |
94 |
Correct |
9 ms |
23908 KB |
Output is correct |
95 |
Correct |
9 ms |
23900 KB |
Output is correct |
96 |
Correct |
10 ms |
23900 KB |
Output is correct |
97 |
Correct |
14 ms |
23900 KB |
Output is correct |
98 |
Correct |
13 ms |
23896 KB |
Output is correct |
99 |
Correct |
11 ms |
23900 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
10 ms |
23896 KB |
Output is correct |
2 |
Correct |
10 ms |
23896 KB |
Output is correct |
3 |
Correct |
10 ms |
23900 KB |
Output is correct |
4 |
Correct |
10 ms |
23900 KB |
Output is correct |
5 |
Correct |
10 ms |
23900 KB |
Output is correct |
6 |
Correct |
10 ms |
23900 KB |
Output is correct |
7 |
Correct |
10 ms |
23900 KB |
Output is correct |
8 |
Correct |
11 ms |
23900 KB |
Output is correct |
9 |
Correct |
10 ms |
23900 KB |
Output is correct |
10 |
Correct |
9 ms |
23836 KB |
Output is correct |
11 |
Correct |
10 ms |
23896 KB |
Output is correct |
12 |
Correct |
11 ms |
23900 KB |
Output is correct |
13 |
Correct |
14 ms |
23900 KB |
Output is correct |
14 |
Correct |
11 ms |
23900 KB |
Output is correct |
15 |
Correct |
10 ms |
23900 KB |
Output is correct |
16 |
Correct |
10 ms |
23900 KB |
Output is correct |
17 |
Correct |
9 ms |
23900 KB |
Output is correct |
18 |
Correct |
11 ms |
23896 KB |
Output is correct |
19 |
Correct |
9 ms |
23900 KB |
Output is correct |
20 |
Correct |
14 ms |
23856 KB |
Output is correct |
21 |
Correct |
9 ms |
23900 KB |
Output is correct |
22 |
Correct |
10 ms |
23900 KB |
Output is correct |
23 |
Correct |
9 ms |
23896 KB |
Output is correct |
24 |
Correct |
10 ms |
23972 KB |
Output is correct |
25 |
Correct |
13 ms |
23900 KB |
Output is correct |
26 |
Correct |
10 ms |
23896 KB |
Output is correct |
27 |
Correct |
12 ms |
23900 KB |
Output is correct |
28 |
Correct |
10 ms |
23900 KB |
Output is correct |
29 |
Correct |
11 ms |
23852 KB |
Output is correct |
30 |
Correct |
12 ms |
23900 KB |
Output is correct |
31 |
Correct |
11 ms |
23896 KB |
Output is correct |
32 |
Correct |
12 ms |
23788 KB |
Output is correct |
33 |
Correct |
11 ms |
23892 KB |
Output is correct |
34 |
Correct |
11 ms |
23900 KB |
Output is correct |
35 |
Correct |
11 ms |
23900 KB |
Output is correct |
36 |
Correct |
10 ms |
23984 KB |
Output is correct |
37 |
Correct |
11 ms |
23844 KB |
Output is correct |
38 |
Correct |
11 ms |
23848 KB |
Output is correct |
39 |
Correct |
10 ms |
23900 KB |
Output is correct |
40 |
Correct |
12 ms |
23900 KB |
Output is correct |
41 |
Correct |
11 ms |
23960 KB |
Output is correct |
42 |
Correct |
11 ms |
23956 KB |
Output is correct |
43 |
Correct |
11 ms |
23824 KB |
Output is correct |
44 |
Correct |
11 ms |
23896 KB |
Output is correct |
45 |
Correct |
10 ms |
23968 KB |
Output is correct |
46 |
Correct |
10 ms |
23840 KB |
Output is correct |
47 |
Correct |
11 ms |
23756 KB |
Output is correct |
48 |
Correct |
10 ms |
23900 KB |
Output is correct |
49 |
Correct |
10 ms |
23896 KB |
Output is correct |
50 |
Correct |
10 ms |
23900 KB |
Output is correct |
51 |
Correct |
12 ms |
23976 KB |
Output is correct |
52 |
Correct |
10 ms |
23964 KB |
Output is correct |
53 |
Correct |
10 ms |
23900 KB |
Output is correct |
54 |
Correct |
10 ms |
23900 KB |
Output is correct |
55 |
Correct |
10 ms |
23900 KB |
Output is correct |
56 |
Correct |
11 ms |
23828 KB |
Output is correct |
57 |
Correct |
11 ms |
23900 KB |
Output is correct |
58 |
Correct |
13 ms |
23900 KB |
Output is correct |
59 |
Correct |
9 ms |
23912 KB |
Output is correct |
60 |
Correct |
10 ms |
23944 KB |
Output is correct |
61 |
Correct |
10 ms |
23900 KB |
Output is correct |
62 |
Correct |
10 ms |
23900 KB |
Output is correct |
63 |
Correct |
13 ms |
23932 KB |
Output is correct |
64 |
Correct |
13 ms |
23900 KB |
Output is correct |
65 |
Correct |
13 ms |
24112 KB |
Output is correct |
66 |
Correct |
10 ms |
23900 KB |
Output is correct |
67 |
Correct |
10 ms |
23904 KB |
Output is correct |
68 |
Correct |
39 ms |
30544 KB |
Output is correct |
69 |
Correct |
38 ms |
37388 KB |
Output is correct |
70 |
Correct |
10 ms |
23900 KB |
Output is correct |
71 |
Correct |
72 ms |
43932 KB |
Output is correct |
72 |
Correct |
74 ms |
50668 KB |
Output is correct |
73 |
Correct |
130 ms |
57540 KB |
Output is correct |
74 |
Correct |
111 ms |
64448 KB |
Output is correct |
75 |
Correct |
132 ms |
71076 KB |
Output is correct |
76 |
Correct |
140 ms |
77984 KB |
Output is correct |
77 |
Correct |
170 ms |
84780 KB |
Output is correct |
78 |
Correct |
202 ms |
91376 KB |
Output is correct |
79 |
Correct |
195 ms |
98132 KB |
Output is correct |
80 |
Correct |
198 ms |
105040 KB |
Output is correct |
81 |
Correct |
10 ms |
23816 KB |
Output is correct |
82 |
Correct |
216 ms |
111660 KB |
Output is correct |
83 |
Correct |
231 ms |
118552 KB |
Output is correct |
84 |
Correct |
254 ms |
125212 KB |
Output is correct |
85 |
Correct |
270 ms |
131924 KB |
Output is correct |
86 |
Correct |
265 ms |
138832 KB |
Output is correct |
87 |
Correct |
290 ms |
145540 KB |
Output is correct |
88 |
Correct |
322 ms |
152404 KB |
Output is correct |
89 |
Correct |
325 ms |
159060 KB |
Output is correct |
90 |
Correct |
11 ms |
23896 KB |
Output is correct |
91 |
Correct |
11 ms |
23900 KB |
Output is correct |
92 |
Correct |
13 ms |
24156 KB |
Output is correct |
93 |
Correct |
12 ms |
23900 KB |
Output is correct |
94 |
Correct |
11 ms |
23788 KB |
Output is correct |
95 |
Correct |
11 ms |
23896 KB |
Output is correct |
96 |
Correct |
11 ms |
23900 KB |
Output is correct |
97 |
Correct |
10 ms |
23900 KB |
Output is correct |
98 |
Correct |
11 ms |
23900 KB |
Output is correct |
99 |
Correct |
10 ms |
23900 KB |
Output is correct |
100 |
Correct |
10 ms |
23900 KB |
Output is correct |
101 |
Correct |
15 ms |
23876 KB |
Output is correct |
102 |
Correct |
11 ms |
23900 KB |
Output is correct |
103 |
Correct |
11 ms |
23900 KB |
Output is correct |
104 |
Correct |
11 ms |
23780 KB |
Output is correct |
105 |
Correct |
10 ms |
23896 KB |
Output is correct |
106 |
Correct |
11 ms |
23896 KB |
Output is correct |
107 |
Correct |
10 ms |
23900 KB |
Output is correct |
108 |
Correct |
10 ms |
23900 KB |
Output is correct |
109 |
Correct |
11 ms |
23900 KB |
Output is correct |
110 |
Correct |
10 ms |
23900 KB |
Output is correct |
111 |
Correct |
10 ms |
23900 KB |
Output is correct |
112 |
Correct |
11 ms |
23896 KB |
Output is correct |
113 |
Correct |
15 ms |
23912 KB |
Output is correct |
114 |
Correct |
11 ms |
23932 KB |
Output is correct |
115 |
Correct |
11 ms |
23900 KB |
Output is correct |
116 |
Correct |
11 ms |
23752 KB |
Output is correct |
117 |
Correct |
11 ms |
23896 KB |
Output is correct |
118 |
Correct |
11 ms |
23896 KB |
Output is correct |
119 |
Correct |
11 ms |
23900 KB |
Output is correct |
120 |
Correct |
10 ms |
23756 KB |
Output is correct |
121 |
Correct |
10 ms |
23900 KB |
Output is correct |
122 |
Correct |
11 ms |
23900 KB |
Output is correct |
123 |
Correct |
11 ms |
23968 KB |
Output is correct |
124 |
Correct |
11 ms |
23900 KB |
Output is correct |
125 |
Correct |
10 ms |
23896 KB |
Output is correct |
126 |
Correct |
9 ms |
23932 KB |
Output is correct |
127 |
Correct |
15 ms |
24004 KB |
Output is correct |
128 |
Correct |
9 ms |
23900 KB |
Output is correct |
129 |
Correct |
11 ms |
23836 KB |
Output is correct |
130 |
Correct |
10 ms |
23900 KB |
Output is correct |
131 |
Correct |
9 ms |
23956 KB |
Output is correct |
132 |
Correct |
9 ms |
23900 KB |
Output is correct |
133 |
Correct |
15 ms |
23892 KB |
Output is correct |
134 |
Correct |
10 ms |
23900 KB |
Output is correct |
135 |
Correct |
9 ms |
23896 KB |
Output is correct |
136 |
Correct |
14 ms |
23976 KB |
Output is correct |
137 |
Correct |
9 ms |
23900 KB |
Output is correct |
138 |
Correct |
9 ms |
23896 KB |
Output is correct |
139 |
Correct |
9 ms |
23896 KB |
Output is correct |
140 |
Correct |
10 ms |
23904 KB |
Output is correct |
141 |
Correct |
9 ms |
23908 KB |
Output is correct |
142 |
Correct |
9 ms |
23900 KB |
Output is correct |
143 |
Correct |
10 ms |
23900 KB |
Output is correct |
144 |
Correct |
14 ms |
23900 KB |
Output is correct |
145 |
Correct |
13 ms |
23896 KB |
Output is correct |
146 |
Correct |
11 ms |
23900 KB |
Output is correct |
147 |
Correct |
13 ms |
23900 KB |
Output is correct |
148 |
Correct |
11 ms |
23900 KB |
Output is correct |
149 |
Correct |
10 ms |
23732 KB |
Output is correct |
150 |
Correct |
11 ms |
23732 KB |
Output is correct |
151 |
Correct |
11 ms |
23900 KB |
Output is correct |
152 |
Correct |
11 ms |
23848 KB |
Output is correct |
153 |
Correct |
11 ms |
23804 KB |
Output is correct |
154 |
Correct |
11 ms |
23972 KB |
Output is correct |
155 |
Correct |
11 ms |
23972 KB |
Output is correct |
156 |
Correct |
12 ms |
23896 KB |
Output is correct |
157 |
Correct |
11 ms |
23972 KB |
Output is correct |
158 |
Correct |
12 ms |
23772 KB |
Output is correct |
159 |
Correct |
12 ms |
23900 KB |
Output is correct |
160 |
Correct |
12 ms |
23900 KB |
Output is correct |
161 |
Correct |
11 ms |
23732 KB |
Output is correct |
162 |
Correct |
11 ms |
23876 KB |
Output is correct |
163 |
Correct |
10 ms |
23932 KB |
Output is correct |
164 |
Correct |
11 ms |
23932 KB |
Output is correct |
165 |
Correct |
10 ms |
23820 KB |
Output is correct |
166 |
Correct |
11 ms |
23900 KB |
Output is correct |
167 |
Correct |
10 ms |
23900 KB |
Output is correct |
168 |
Correct |
10 ms |
23900 KB |
Output is correct |
169 |
Correct |
10 ms |
23896 KB |
Output is correct |
170 |
Correct |
10 ms |
23968 KB |
Output is correct |
171 |
Correct |
35 ms |
27376 KB |
Output is correct |
172 |
Correct |
52 ms |
31172 KB |
Output is correct |
173 |
Correct |
73 ms |
34848 KB |
Output is correct |
174 |
Correct |
88 ms |
38484 KB |
Output is correct |
175 |
Correct |
123 ms |
41964 KB |
Output is correct |
176 |
Correct |
169 ms |
45884 KB |
Output is correct |
177 |
Correct |
220 ms |
49496 KB |
Output is correct |
178 |
Correct |
254 ms |
53144 KB |
Output is correct |
179 |
Correct |
304 ms |
56908 KB |
Output is correct |
180 |
Correct |
12 ms |
23944 KB |
Output is correct |
181 |
Correct |
333 ms |
60516 KB |
Output is correct |
182 |
Correct |
407 ms |
64080 KB |
Output is correct |
183 |
Correct |
427 ms |
67828 KB |
Output is correct |
184 |
Correct |
501 ms |
71308 KB |
Output is correct |
185 |
Correct |
522 ms |
75072 KB |
Output is correct |
186 |
Correct |
566 ms |
78608 KB |
Output is correct |
187 |
Correct |
596 ms |
82392 KB |
Output is correct |
188 |
Correct |
651 ms |
86100 KB |
Output is correct |
189 |
Correct |
653 ms |
89684 KB |
Output is correct |
190 |
Correct |
705 ms |
93196 KB |
Output is correct |
191 |
Correct |
10 ms |
23900 KB |
Output is correct |
192 |
Correct |
803 ms |
96720 KB |
Output is correct |
193 |
Correct |
153 ms |
90196 KB |
Output is correct |
194 |
Correct |
289 ms |
156500 KB |
Output is correct |
195 |
Correct |
10 ms |
23900 KB |
Output is correct |
196 |
Correct |
9 ms |
23972 KB |
Output is correct |
197 |
Correct |
9 ms |
23900 KB |
Output is correct |
198 |
Correct |
9 ms |
23900 KB |
Output is correct |