# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
232998 |
2020-05-18T22:05:42 Z |
updown1 |
Traffic (IOI10_traffic) |
C++17 |
|
2099 ms |
171640 KB |
/*
save congestion between self and parent
update congestion as travel through tree
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define For(i, a, b) for(ll i=a; i<b; i++)
#define ffi For(i, 0, N2)
#define ffj For(j, 0, M)
#define ffa ffi ffj
#define s <<" "<<
#define w cout
#define e "\n"
#define pb push_back
#define mp make_pair
#define a first
#define b second
const ll MAXN = 1000000, INF = 1000000000000000000;
ll tree[4*MAXN+1], siz[MAXN], N2, outa, outb = INF;
vector<int> adj[MAXN];
int LocateCentre(int N, int P[], int S[], int D[]);
void go(int at, int p) {
//w<< at<<e;
//for (int i: adj[at]) w<< i<< " "; w<<e;
for (int i: adj[at]) if(i != p) {go(i, at); siz[at] += siz[i];}
}
void build(int x, int L, int R) {
if (L == R) {
tree[x] = siz[L];
if (L == 0) tree[x] = 0;
return;
}
int mid = (L+R)/2; build(x*2, L, mid), build(x*2+1, mid+1, R);
tree[x] = max(tree[x*2], tree[x*2+1]);
}
ll query (int x, int L, int R, int oL, int oR) {
if (R < oL || oR < L) return -INF;
if (oL <= L && R <= oR) return tree[x];
int mid = (L+R)/2;
return max(query(x*2, L, mid, oL, oR), query(x*2+1, mid+1, R, oL, oR));
}
void update (int x, int L, int R, int loc, ll v) {
if (R < loc || loc < L) return;
if (L == R) {
tree[x] = v;
return;
}
int mid = (L+R)/2;
update(x*2, L, mid, loc, v); update(x*2+1, mid+1, R, loc, v);
tree[x] = max(tree[x*2], tree[x*2+1]);
}
void solve(ll at, ll p) {
ll have = query(1, 0, N2-1, 0, N2-1);
if (have < outb) {
outb = have;
outa = at;
}
for (ll j: adj[at]) if (j != p) {
update(1, 0, N2-1, j, siz[0] - siz[j]);
solve(j, at);
update(1, 0, N2-1, j, siz[j]); /// undo
}
}
int LocateCentre(int N, int P[], int S[], int D[]) {
N2 = N;
//w<< N s N2<<e;
ffi siz[i] = P[i];
For (i, 0, N2-1) {adj[S[i]].pb(D[i]); adj[D[i]].pb(S[i]);}
go(0, 0);
//ffi w<< siz[i]<<e;
build(1, 0, N2-1);
solve(0, 0);
return outa;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
17 ms |
23808 KB |
Output is correct |
2 |
Correct |
17 ms |
23808 KB |
Output is correct |
3 |
Correct |
17 ms |
23808 KB |
Output is correct |
4 |
Correct |
17 ms |
23808 KB |
Output is correct |
5 |
Correct |
17 ms |
23936 KB |
Output is correct |
6 |
Correct |
17 ms |
23936 KB |
Output is correct |
7 |
Correct |
17 ms |
23808 KB |
Output is correct |
8 |
Correct |
17 ms |
23808 KB |
Output is correct |
9 |
Correct |
18 ms |
23936 KB |
Output is correct |
10 |
Correct |
17 ms |
23808 KB |
Output is correct |
11 |
Correct |
17 ms |
23808 KB |
Output is correct |
12 |
Correct |
17 ms |
23808 KB |
Output is correct |
13 |
Correct |
17 ms |
23808 KB |
Output is correct |
14 |
Correct |
18 ms |
23808 KB |
Output is correct |
15 |
Correct |
18 ms |
23808 KB |
Output is correct |
16 |
Correct |
17 ms |
23808 KB |
Output is correct |
17 |
Correct |
17 ms |
23808 KB |
Output is correct |
18 |
Correct |
17 ms |
23808 KB |
Output is correct |
19 |
Correct |
17 ms |
23808 KB |
Output is correct |
20 |
Correct |
17 ms |
23808 KB |
Output is correct |
21 |
Correct |
17 ms |
23808 KB |
Output is correct |
22 |
Correct |
17 ms |
23808 KB |
Output is correct |
23 |
Correct |
18 ms |
23808 KB |
Output is correct |
24 |
Correct |
18 ms |
23936 KB |
Output is correct |
25 |
Correct |
17 ms |
23808 KB |
Output is correct |
26 |
Correct |
17 ms |
23936 KB |
Output is correct |
27 |
Correct |
17 ms |
23936 KB |
Output is correct |
28 |
Correct |
17 ms |
23936 KB |
Output is correct |
29 |
Correct |
17 ms |
23936 KB |
Output is correct |
30 |
Correct |
18 ms |
23936 KB |
Output is correct |
31 |
Correct |
18 ms |
23936 KB |
Output is correct |
32 |
Correct |
19 ms |
23936 KB |
Output is correct |
33 |
Correct |
17 ms |
23936 KB |
Output is correct |
34 |
Correct |
17 ms |
23808 KB |
Output is correct |
35 |
Correct |
17 ms |
23936 KB |
Output is correct |
36 |
Correct |
18 ms |
23936 KB |
Output is correct |
37 |
Correct |
17 ms |
23936 KB |
Output is correct |
38 |
Correct |
19 ms |
23936 KB |
Output is correct |
39 |
Correct |
18 ms |
23936 KB |
Output is correct |
40 |
Correct |
18 ms |
23936 KB |
Output is correct |
41 |
Correct |
17 ms |
23936 KB |
Output is correct |
42 |
Correct |
18 ms |
23936 KB |
Output is correct |
43 |
Correct |
19 ms |
23808 KB |
Output is correct |
44 |
Correct |
17 ms |
23808 KB |
Output is correct |
45 |
Correct |
17 ms |
23784 KB |
Output is correct |
46 |
Correct |
18 ms |
23808 KB |
Output is correct |
47 |
Correct |
17 ms |
23808 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
17 ms |
23808 KB |
Output is correct |
2 |
Correct |
17 ms |
23808 KB |
Output is correct |
3 |
Correct |
17 ms |
23808 KB |
Output is correct |
4 |
Correct |
17 ms |
23808 KB |
Output is correct |
5 |
Correct |
17 ms |
23936 KB |
Output is correct |
6 |
Correct |
17 ms |
23936 KB |
Output is correct |
7 |
Correct |
17 ms |
23808 KB |
Output is correct |
8 |
Correct |
17 ms |
23808 KB |
Output is correct |
9 |
Correct |
18 ms |
23936 KB |
Output is correct |
10 |
Correct |
17 ms |
23808 KB |
Output is correct |
11 |
Correct |
17 ms |
23808 KB |
Output is correct |
12 |
Correct |
17 ms |
23808 KB |
Output is correct |
13 |
Correct |
17 ms |
23808 KB |
Output is correct |
14 |
Correct |
18 ms |
23808 KB |
Output is correct |
15 |
Correct |
18 ms |
23808 KB |
Output is correct |
16 |
Correct |
17 ms |
23808 KB |
Output is correct |
17 |
Correct |
17 ms |
23808 KB |
Output is correct |
18 |
Correct |
17 ms |
23808 KB |
Output is correct |
19 |
Correct |
17 ms |
23808 KB |
Output is correct |
20 |
Correct |
17 ms |
23808 KB |
Output is correct |
21 |
Correct |
17 ms |
23808 KB |
Output is correct |
22 |
Correct |
17 ms |
23808 KB |
Output is correct |
23 |
Correct |
18 ms |
23808 KB |
Output is correct |
24 |
Correct |
18 ms |
23936 KB |
Output is correct |
25 |
Correct |
17 ms |
23808 KB |
Output is correct |
26 |
Correct |
17 ms |
23936 KB |
Output is correct |
27 |
Correct |
17 ms |
23936 KB |
Output is correct |
28 |
Correct |
17 ms |
23936 KB |
Output is correct |
29 |
Correct |
17 ms |
23936 KB |
Output is correct |
30 |
Correct |
18 ms |
23936 KB |
Output is correct |
31 |
Correct |
18 ms |
23936 KB |
Output is correct |
32 |
Correct |
19 ms |
23936 KB |
Output is correct |
33 |
Correct |
17 ms |
23936 KB |
Output is correct |
34 |
Correct |
17 ms |
23808 KB |
Output is correct |
35 |
Correct |
17 ms |
23936 KB |
Output is correct |
36 |
Correct |
18 ms |
23936 KB |
Output is correct |
37 |
Correct |
17 ms |
23936 KB |
Output is correct |
38 |
Correct |
19 ms |
23936 KB |
Output is correct |
39 |
Correct |
18 ms |
23936 KB |
Output is correct |
40 |
Correct |
18 ms |
23936 KB |
Output is correct |
41 |
Correct |
17 ms |
23936 KB |
Output is correct |
42 |
Correct |
18 ms |
23936 KB |
Output is correct |
43 |
Correct |
19 ms |
23808 KB |
Output is correct |
44 |
Correct |
17 ms |
23808 KB |
Output is correct |
45 |
Correct |
17 ms |
23784 KB |
Output is correct |
46 |
Correct |
18 ms |
23808 KB |
Output is correct |
47 |
Correct |
17 ms |
23808 KB |
Output is correct |
48 |
Correct |
17 ms |
23808 KB |
Output is correct |
49 |
Correct |
17 ms |
23936 KB |
Output is correct |
50 |
Correct |
17 ms |
23808 KB |
Output is correct |
51 |
Correct |
17 ms |
23808 KB |
Output is correct |
52 |
Correct |
19 ms |
23808 KB |
Output is correct |
53 |
Correct |
17 ms |
23808 KB |
Output is correct |
54 |
Correct |
17 ms |
23808 KB |
Output is correct |
55 |
Correct |
17 ms |
23808 KB |
Output is correct |
56 |
Correct |
17 ms |
23808 KB |
Output is correct |
57 |
Correct |
17 ms |
23808 KB |
Output is correct |
58 |
Correct |
17 ms |
23808 KB |
Output is correct |
59 |
Correct |
17 ms |
23808 KB |
Output is correct |
60 |
Correct |
17 ms |
23808 KB |
Output is correct |
61 |
Correct |
17 ms |
23808 KB |
Output is correct |
62 |
Correct |
17 ms |
23808 KB |
Output is correct |
63 |
Correct |
17 ms |
23808 KB |
Output is correct |
64 |
Correct |
17 ms |
23808 KB |
Output is correct |
65 |
Correct |
17 ms |
23808 KB |
Output is correct |
66 |
Correct |
17 ms |
23808 KB |
Output is correct |
67 |
Correct |
18 ms |
23808 KB |
Output is correct |
68 |
Correct |
58 ms |
31352 KB |
Output is correct |
69 |
Correct |
102 ms |
38904 KB |
Output is correct |
70 |
Correct |
17 ms |
23808 KB |
Output is correct |
71 |
Correct |
144 ms |
47608 KB |
Output is correct |
72 |
Correct |
190 ms |
54136 KB |
Output is correct |
73 |
Correct |
243 ms |
60792 KB |
Output is correct |
74 |
Correct |
288 ms |
71416 KB |
Output is correct |
75 |
Correct |
335 ms |
77924 KB |
Output is correct |
76 |
Correct |
399 ms |
84600 KB |
Output is correct |
77 |
Correct |
424 ms |
91128 KB |
Output is correct |
78 |
Correct |
487 ms |
97744 KB |
Output is correct |
79 |
Correct |
537 ms |
112612 KB |
Output is correct |
80 |
Correct |
549 ms |
119160 KB |
Output is correct |
81 |
Correct |
17 ms |
23808 KB |
Output is correct |
82 |
Correct |
598 ms |
125688 KB |
Output is correct |
83 |
Correct |
656 ms |
132344 KB |
Output is correct |
84 |
Correct |
724 ms |
138872 KB |
Output is correct |
85 |
Correct |
772 ms |
145400 KB |
Output is correct |
86 |
Correct |
799 ms |
151940 KB |
Output is correct |
87 |
Correct |
846 ms |
158624 KB |
Output is correct |
88 |
Correct |
886 ms |
162680 KB |
Output is correct |
89 |
Correct |
954 ms |
171640 KB |
Output is correct |
90 |
Correct |
18 ms |
23808 KB |
Output is correct |
91 |
Correct |
17 ms |
23808 KB |
Output is correct |
92 |
Correct |
17 ms |
23808 KB |
Output is correct |
93 |
Correct |
17 ms |
23808 KB |
Output is correct |
94 |
Correct |
17 ms |
23808 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
17 ms |
23808 KB |
Output is correct |
2 |
Correct |
17 ms |
23808 KB |
Output is correct |
3 |
Correct |
17 ms |
23808 KB |
Output is correct |
4 |
Correct |
17 ms |
23808 KB |
Output is correct |
5 |
Correct |
17 ms |
23936 KB |
Output is correct |
6 |
Correct |
17 ms |
23936 KB |
Output is correct |
7 |
Correct |
17 ms |
23808 KB |
Output is correct |
8 |
Correct |
17 ms |
23808 KB |
Output is correct |
9 |
Correct |
18 ms |
23936 KB |
Output is correct |
10 |
Correct |
17 ms |
23808 KB |
Output is correct |
11 |
Correct |
17 ms |
23808 KB |
Output is correct |
12 |
Correct |
17 ms |
23808 KB |
Output is correct |
13 |
Correct |
17 ms |
23808 KB |
Output is correct |
14 |
Correct |
18 ms |
23808 KB |
Output is correct |
15 |
Correct |
18 ms |
23808 KB |
Output is correct |
16 |
Correct |
17 ms |
23808 KB |
Output is correct |
17 |
Correct |
17 ms |
23808 KB |
Output is correct |
18 |
Correct |
17 ms |
23808 KB |
Output is correct |
19 |
Correct |
17 ms |
23808 KB |
Output is correct |
20 |
Correct |
17 ms |
23808 KB |
Output is correct |
21 |
Correct |
17 ms |
23808 KB |
Output is correct |
22 |
Correct |
17 ms |
23808 KB |
Output is correct |
23 |
Correct |
18 ms |
23808 KB |
Output is correct |
24 |
Correct |
18 ms |
23936 KB |
Output is correct |
25 |
Correct |
17 ms |
23808 KB |
Output is correct |
26 |
Correct |
17 ms |
23936 KB |
Output is correct |
27 |
Correct |
17 ms |
23936 KB |
Output is correct |
28 |
Correct |
17 ms |
23936 KB |
Output is correct |
29 |
Correct |
17 ms |
23936 KB |
Output is correct |
30 |
Correct |
18 ms |
23936 KB |
Output is correct |
31 |
Correct |
18 ms |
23936 KB |
Output is correct |
32 |
Correct |
19 ms |
23936 KB |
Output is correct |
33 |
Correct |
17 ms |
23936 KB |
Output is correct |
34 |
Correct |
17 ms |
23808 KB |
Output is correct |
35 |
Correct |
17 ms |
23936 KB |
Output is correct |
36 |
Correct |
18 ms |
23936 KB |
Output is correct |
37 |
Correct |
17 ms |
23936 KB |
Output is correct |
38 |
Correct |
19 ms |
23936 KB |
Output is correct |
39 |
Correct |
18 ms |
23936 KB |
Output is correct |
40 |
Correct |
18 ms |
23936 KB |
Output is correct |
41 |
Correct |
17 ms |
23936 KB |
Output is correct |
42 |
Correct |
18 ms |
23936 KB |
Output is correct |
43 |
Correct |
19 ms |
23808 KB |
Output is correct |
44 |
Correct |
17 ms |
23808 KB |
Output is correct |
45 |
Correct |
17 ms |
23784 KB |
Output is correct |
46 |
Correct |
18 ms |
23808 KB |
Output is correct |
47 |
Correct |
17 ms |
23808 KB |
Output is correct |
48 |
Correct |
17 ms |
23808 KB |
Output is correct |
49 |
Correct |
18 ms |
23936 KB |
Output is correct |
50 |
Correct |
17 ms |
23936 KB |
Output is correct |
51 |
Correct |
19 ms |
23808 KB |
Output is correct |
52 |
Correct |
17 ms |
23808 KB |
Output is correct |
53 |
Correct |
17 ms |
23808 KB |
Output is correct |
54 |
Correct |
17 ms |
23808 KB |
Output is correct |
55 |
Correct |
17 ms |
23808 KB |
Output is correct |
56 |
Correct |
17 ms |
23808 KB |
Output is correct |
57 |
Correct |
17 ms |
23808 KB |
Output is correct |
58 |
Correct |
17 ms |
23808 KB |
Output is correct |
59 |
Correct |
17 ms |
23808 KB |
Output is correct |
60 |
Correct |
17 ms |
23808 KB |
Output is correct |
61 |
Correct |
17 ms |
23808 KB |
Output is correct |
62 |
Correct |
17 ms |
23808 KB |
Output is correct |
63 |
Correct |
17 ms |
23808 KB |
Output is correct |
64 |
Correct |
17 ms |
23808 KB |
Output is correct |
65 |
Correct |
17 ms |
23808 KB |
Output is correct |
66 |
Correct |
17 ms |
23808 KB |
Output is correct |
67 |
Correct |
17 ms |
23808 KB |
Output is correct |
68 |
Correct |
17 ms |
23936 KB |
Output is correct |
69 |
Correct |
17 ms |
23808 KB |
Output is correct |
70 |
Correct |
17 ms |
23808 KB |
Output is correct |
71 |
Correct |
17 ms |
23808 KB |
Output is correct |
72 |
Correct |
17 ms |
23808 KB |
Output is correct |
73 |
Correct |
17 ms |
23936 KB |
Output is correct |
74 |
Correct |
18 ms |
23808 KB |
Output is correct |
75 |
Correct |
17 ms |
23936 KB |
Output is correct |
76 |
Correct |
17 ms |
23808 KB |
Output is correct |
77 |
Correct |
17 ms |
23808 KB |
Output is correct |
78 |
Correct |
17 ms |
23936 KB |
Output is correct |
79 |
Correct |
17 ms |
23808 KB |
Output is correct |
80 |
Correct |
17 ms |
23936 KB |
Output is correct |
81 |
Correct |
17 ms |
23808 KB |
Output is correct |
82 |
Correct |
17 ms |
23936 KB |
Output is correct |
83 |
Correct |
17 ms |
23936 KB |
Output is correct |
84 |
Correct |
18 ms |
23936 KB |
Output is correct |
85 |
Correct |
18 ms |
23936 KB |
Output is correct |
86 |
Correct |
18 ms |
23936 KB |
Output is correct |
87 |
Correct |
18 ms |
23936 KB |
Output is correct |
88 |
Correct |
17 ms |
23936 KB |
Output is correct |
89 |
Correct |
18 ms |
23936 KB |
Output is correct |
90 |
Correct |
17 ms |
23936 KB |
Output is correct |
91 |
Correct |
18 ms |
23936 KB |
Output is correct |
92 |
Correct |
18 ms |
23808 KB |
Output is correct |
93 |
Correct |
18 ms |
23936 KB |
Output is correct |
94 |
Correct |
17 ms |
23936 KB |
Output is correct |
95 |
Correct |
17 ms |
23936 KB |
Output is correct |
96 |
Correct |
17 ms |
23808 KB |
Output is correct |
97 |
Correct |
18 ms |
23808 KB |
Output is correct |
98 |
Correct |
16 ms |
23900 KB |
Output is correct |
99 |
Correct |
17 ms |
23808 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
17 ms |
23808 KB |
Output is correct |
2 |
Correct |
17 ms |
23808 KB |
Output is correct |
3 |
Correct |
17 ms |
23808 KB |
Output is correct |
4 |
Correct |
17 ms |
23808 KB |
Output is correct |
5 |
Correct |
17 ms |
23936 KB |
Output is correct |
6 |
Correct |
17 ms |
23936 KB |
Output is correct |
7 |
Correct |
17 ms |
23808 KB |
Output is correct |
8 |
Correct |
17 ms |
23808 KB |
Output is correct |
9 |
Correct |
18 ms |
23936 KB |
Output is correct |
10 |
Correct |
17 ms |
23808 KB |
Output is correct |
11 |
Correct |
17 ms |
23808 KB |
Output is correct |
12 |
Correct |
17 ms |
23808 KB |
Output is correct |
13 |
Correct |
17 ms |
23808 KB |
Output is correct |
14 |
Correct |
18 ms |
23808 KB |
Output is correct |
15 |
Correct |
18 ms |
23808 KB |
Output is correct |
16 |
Correct |
17 ms |
23808 KB |
Output is correct |
17 |
Correct |
17 ms |
23808 KB |
Output is correct |
18 |
Correct |
17 ms |
23808 KB |
Output is correct |
19 |
Correct |
17 ms |
23808 KB |
Output is correct |
20 |
Correct |
17 ms |
23808 KB |
Output is correct |
21 |
Correct |
17 ms |
23808 KB |
Output is correct |
22 |
Correct |
17 ms |
23808 KB |
Output is correct |
23 |
Correct |
18 ms |
23808 KB |
Output is correct |
24 |
Correct |
18 ms |
23936 KB |
Output is correct |
25 |
Correct |
17 ms |
23808 KB |
Output is correct |
26 |
Correct |
17 ms |
23936 KB |
Output is correct |
27 |
Correct |
17 ms |
23936 KB |
Output is correct |
28 |
Correct |
17 ms |
23936 KB |
Output is correct |
29 |
Correct |
17 ms |
23936 KB |
Output is correct |
30 |
Correct |
18 ms |
23936 KB |
Output is correct |
31 |
Correct |
18 ms |
23936 KB |
Output is correct |
32 |
Correct |
19 ms |
23936 KB |
Output is correct |
33 |
Correct |
17 ms |
23936 KB |
Output is correct |
34 |
Correct |
17 ms |
23808 KB |
Output is correct |
35 |
Correct |
17 ms |
23936 KB |
Output is correct |
36 |
Correct |
18 ms |
23936 KB |
Output is correct |
37 |
Correct |
17 ms |
23936 KB |
Output is correct |
38 |
Correct |
19 ms |
23936 KB |
Output is correct |
39 |
Correct |
18 ms |
23936 KB |
Output is correct |
40 |
Correct |
18 ms |
23936 KB |
Output is correct |
41 |
Correct |
17 ms |
23936 KB |
Output is correct |
42 |
Correct |
18 ms |
23936 KB |
Output is correct |
43 |
Correct |
19 ms |
23808 KB |
Output is correct |
44 |
Correct |
17 ms |
23808 KB |
Output is correct |
45 |
Correct |
17 ms |
23784 KB |
Output is correct |
46 |
Correct |
18 ms |
23808 KB |
Output is correct |
47 |
Correct |
17 ms |
23808 KB |
Output is correct |
48 |
Correct |
17 ms |
23808 KB |
Output is correct |
49 |
Correct |
17 ms |
23936 KB |
Output is correct |
50 |
Correct |
17 ms |
23808 KB |
Output is correct |
51 |
Correct |
17 ms |
23808 KB |
Output is correct |
52 |
Correct |
19 ms |
23808 KB |
Output is correct |
53 |
Correct |
17 ms |
23808 KB |
Output is correct |
54 |
Correct |
17 ms |
23808 KB |
Output is correct |
55 |
Correct |
17 ms |
23808 KB |
Output is correct |
56 |
Correct |
17 ms |
23808 KB |
Output is correct |
57 |
Correct |
17 ms |
23808 KB |
Output is correct |
58 |
Correct |
17 ms |
23808 KB |
Output is correct |
59 |
Correct |
17 ms |
23808 KB |
Output is correct |
60 |
Correct |
17 ms |
23808 KB |
Output is correct |
61 |
Correct |
17 ms |
23808 KB |
Output is correct |
62 |
Correct |
17 ms |
23808 KB |
Output is correct |
63 |
Correct |
17 ms |
23808 KB |
Output is correct |
64 |
Correct |
17 ms |
23808 KB |
Output is correct |
65 |
Correct |
17 ms |
23808 KB |
Output is correct |
66 |
Correct |
17 ms |
23808 KB |
Output is correct |
67 |
Correct |
18 ms |
23808 KB |
Output is correct |
68 |
Correct |
58 ms |
31352 KB |
Output is correct |
69 |
Correct |
102 ms |
38904 KB |
Output is correct |
70 |
Correct |
17 ms |
23808 KB |
Output is correct |
71 |
Correct |
144 ms |
47608 KB |
Output is correct |
72 |
Correct |
190 ms |
54136 KB |
Output is correct |
73 |
Correct |
243 ms |
60792 KB |
Output is correct |
74 |
Correct |
288 ms |
71416 KB |
Output is correct |
75 |
Correct |
335 ms |
77924 KB |
Output is correct |
76 |
Correct |
399 ms |
84600 KB |
Output is correct |
77 |
Correct |
424 ms |
91128 KB |
Output is correct |
78 |
Correct |
487 ms |
97744 KB |
Output is correct |
79 |
Correct |
537 ms |
112612 KB |
Output is correct |
80 |
Correct |
549 ms |
119160 KB |
Output is correct |
81 |
Correct |
17 ms |
23808 KB |
Output is correct |
82 |
Correct |
598 ms |
125688 KB |
Output is correct |
83 |
Correct |
656 ms |
132344 KB |
Output is correct |
84 |
Correct |
724 ms |
138872 KB |
Output is correct |
85 |
Correct |
772 ms |
145400 KB |
Output is correct |
86 |
Correct |
799 ms |
151940 KB |
Output is correct |
87 |
Correct |
846 ms |
158624 KB |
Output is correct |
88 |
Correct |
886 ms |
162680 KB |
Output is correct |
89 |
Correct |
954 ms |
171640 KB |
Output is correct |
90 |
Correct |
18 ms |
23808 KB |
Output is correct |
91 |
Correct |
17 ms |
23808 KB |
Output is correct |
92 |
Correct |
17 ms |
23808 KB |
Output is correct |
93 |
Correct |
17 ms |
23808 KB |
Output is correct |
94 |
Correct |
17 ms |
23808 KB |
Output is correct |
95 |
Correct |
17 ms |
23808 KB |
Output is correct |
96 |
Correct |
18 ms |
23936 KB |
Output is correct |
97 |
Correct |
17 ms |
23936 KB |
Output is correct |
98 |
Correct |
19 ms |
23808 KB |
Output is correct |
99 |
Correct |
17 ms |
23808 KB |
Output is correct |
100 |
Correct |
17 ms |
23808 KB |
Output is correct |
101 |
Correct |
17 ms |
23808 KB |
Output is correct |
102 |
Correct |
17 ms |
23808 KB |
Output is correct |
103 |
Correct |
17 ms |
23808 KB |
Output is correct |
104 |
Correct |
17 ms |
23808 KB |
Output is correct |
105 |
Correct |
17 ms |
23808 KB |
Output is correct |
106 |
Correct |
17 ms |
23808 KB |
Output is correct |
107 |
Correct |
17 ms |
23808 KB |
Output is correct |
108 |
Correct |
17 ms |
23808 KB |
Output is correct |
109 |
Correct |
17 ms |
23808 KB |
Output is correct |
110 |
Correct |
17 ms |
23808 KB |
Output is correct |
111 |
Correct |
17 ms |
23808 KB |
Output is correct |
112 |
Correct |
17 ms |
23808 KB |
Output is correct |
113 |
Correct |
17 ms |
23808 KB |
Output is correct |
114 |
Correct |
17 ms |
23808 KB |
Output is correct |
115 |
Correct |
17 ms |
23936 KB |
Output is correct |
116 |
Correct |
17 ms |
23808 KB |
Output is correct |
117 |
Correct |
17 ms |
23808 KB |
Output is correct |
118 |
Correct |
17 ms |
23808 KB |
Output is correct |
119 |
Correct |
17 ms |
23808 KB |
Output is correct |
120 |
Correct |
17 ms |
23936 KB |
Output is correct |
121 |
Correct |
18 ms |
23808 KB |
Output is correct |
122 |
Correct |
17 ms |
23936 KB |
Output is correct |
123 |
Correct |
17 ms |
23808 KB |
Output is correct |
124 |
Correct |
17 ms |
23808 KB |
Output is correct |
125 |
Correct |
17 ms |
23936 KB |
Output is correct |
126 |
Correct |
17 ms |
23808 KB |
Output is correct |
127 |
Correct |
17 ms |
23936 KB |
Output is correct |
128 |
Correct |
17 ms |
23808 KB |
Output is correct |
129 |
Correct |
17 ms |
23936 KB |
Output is correct |
130 |
Correct |
17 ms |
23936 KB |
Output is correct |
131 |
Correct |
18 ms |
23936 KB |
Output is correct |
132 |
Correct |
18 ms |
23936 KB |
Output is correct |
133 |
Correct |
18 ms |
23936 KB |
Output is correct |
134 |
Correct |
18 ms |
23936 KB |
Output is correct |
135 |
Correct |
17 ms |
23936 KB |
Output is correct |
136 |
Correct |
18 ms |
23936 KB |
Output is correct |
137 |
Correct |
17 ms |
23936 KB |
Output is correct |
138 |
Correct |
18 ms |
23936 KB |
Output is correct |
139 |
Correct |
18 ms |
23808 KB |
Output is correct |
140 |
Correct |
18 ms |
23936 KB |
Output is correct |
141 |
Correct |
17 ms |
23936 KB |
Output is correct |
142 |
Correct |
17 ms |
23936 KB |
Output is correct |
143 |
Correct |
17 ms |
23808 KB |
Output is correct |
144 |
Correct |
18 ms |
23808 KB |
Output is correct |
145 |
Correct |
16 ms |
23900 KB |
Output is correct |
146 |
Correct |
17 ms |
23808 KB |
Output is correct |
147 |
Correct |
16 ms |
23808 KB |
Output is correct |
148 |
Correct |
17 ms |
23808 KB |
Output is correct |
149 |
Correct |
18 ms |
23808 KB |
Output is correct |
150 |
Correct |
18 ms |
23808 KB |
Output is correct |
151 |
Correct |
17 ms |
23808 KB |
Output is correct |
152 |
Correct |
18 ms |
23808 KB |
Output is correct |
153 |
Correct |
17 ms |
23808 KB |
Output is correct |
154 |
Correct |
17 ms |
23808 KB |
Output is correct |
155 |
Correct |
18 ms |
23800 KB |
Output is correct |
156 |
Correct |
17 ms |
23936 KB |
Output is correct |
157 |
Correct |
18 ms |
23936 KB |
Output is correct |
158 |
Correct |
17 ms |
23808 KB |
Output is correct |
159 |
Correct |
17 ms |
23808 KB |
Output is correct |
160 |
Correct |
17 ms |
23808 KB |
Output is correct |
161 |
Correct |
18 ms |
23808 KB |
Output is correct |
162 |
Correct |
17 ms |
23808 KB |
Output is correct |
163 |
Correct |
20 ms |
23808 KB |
Output is correct |
164 |
Correct |
17 ms |
23808 KB |
Output is correct |
165 |
Correct |
17 ms |
23808 KB |
Output is correct |
166 |
Correct |
18 ms |
23808 KB |
Output is correct |
167 |
Correct |
17 ms |
23808 KB |
Output is correct |
168 |
Correct |
17 ms |
23808 KB |
Output is correct |
169 |
Correct |
18 ms |
23808 KB |
Output is correct |
170 |
Correct |
17 ms |
23936 KB |
Output is correct |
171 |
Correct |
73 ms |
28280 KB |
Output is correct |
172 |
Correct |
159 ms |
32760 KB |
Output is correct |
173 |
Correct |
254 ms |
38264 KB |
Output is correct |
174 |
Correct |
346 ms |
41756 KB |
Output is correct |
175 |
Correct |
443 ms |
45176 KB |
Output is correct |
176 |
Correct |
559 ms |
52984 KB |
Output is correct |
177 |
Correct |
671 ms |
56444 KB |
Output is correct |
178 |
Correct |
778 ms |
59768 KB |
Output is correct |
179 |
Correct |
887 ms |
63328 KB |
Output is correct |
180 |
Correct |
17 ms |
23808 KB |
Output is correct |
181 |
Correct |
989 ms |
66808 KB |
Output is correct |
182 |
Correct |
1103 ms |
78620 KB |
Output is correct |
183 |
Correct |
1228 ms |
82204 KB |
Output is correct |
184 |
Correct |
1414 ms |
85340 KB |
Output is correct |
185 |
Correct |
1441 ms |
88824 KB |
Output is correct |
186 |
Correct |
1549 ms |
92360 KB |
Output is correct |
187 |
Correct |
1652 ms |
95592 KB |
Output is correct |
188 |
Correct |
1793 ms |
99256 KB |
Output is correct |
189 |
Correct |
1891 ms |
102776 KB |
Output is correct |
190 |
Correct |
1998 ms |
103416 KB |
Output is correct |
191 |
Correct |
17 ms |
23808 KB |
Output is correct |
192 |
Correct |
2099 ms |
109432 KB |
Output is correct |
193 |
Correct |
466 ms |
96376 KB |
Output is correct |
194 |
Correct |
925 ms |
169256 KB |
Output is correct |
195 |
Correct |
18 ms |
23808 KB |
Output is correct |
196 |
Correct |
18 ms |
23808 KB |
Output is correct |
197 |
Correct |
18 ms |
23808 KB |
Output is correct |
198 |
Correct |
19 ms |
23808 KB |
Output is correct |