Submission #979156

# Submission time Handle Problem Language Result Execution time Memory
979156 2024-05-10T10:11:46 Z huutuan Duathlon (APIO18_duathlon) C++14
100 / 100
131 ms 71580 KB
#include<bits/stdc++.h>

using namespace std;

#define int long long

const int N=3e5+10;
int n, m;
vector<int> g[N];
int num[N], low[N], tdfs;
stack<pair<int, int>> stk;
vector<pair<int, int>> bcc[N];
int cnt=0, cc[N], sz[N];
bool joint[N];
vector<int> gg[N];

void dfs_joint(int u, int p){
   num[u]=low[u]=++tdfs;
   int child=0;
   for (int v:g[u]){
      if (v==p) continue;
      if (!num[v]){
         ++child;
         stk.emplace(u, v);
         dfs_joint(v, u);
         low[u]=min(low[u], low[v]);
         if (low[v]>=num[u]){
            joint[u]=1;
            ++cnt;
            pair<int, int> edge={-1, -1};
            do{
               edge=stk.top(); stk.pop();
               bcc[cnt].emplace_back(edge);
            }while (edge!=make_pair(u, v));
         }
      }else low[u]=min(low[u], num[v]);
   }
   if (!p) joint[u]=child>=2;
}

int ans;
int sub_sz[N], sum[N];

void dfs_sz(int u, int p){
   sub_sz[u]=sz[u];
   for (int v:gg[u]) if (v!=p) dfs_sz(v, u), sub_sz[u]+=sub_sz[v];
}

int tot;

void dfs(int u, int p){
   if (u>n){
      for (int v:gg[u]){
         int size=sub_sz[v];
         if (v==p) size=tot-sub_sz[u];
         ans-=size*(size-1)*sz[u];
         sum[u]+=size*(size-1);
      }
   }
   for (int v:gg[u]) if (v!=p) dfs(v, u);
}

void dfs2(int u, int p){
   if (u<=n){
      for (int v:gg[u]){
         ans-=sum[v];
         int size=tot-sub_sz[v];
         if (v==p) size=sub_sz[u];
         ans+=size*(size-1);
      }
   }
   for (int v:gg[u]) if (v!=p) dfs2(v, u);
}

int32_t main(){
   // freopen("duathlon.inp", "r", stdin);
   ios_base::sync_with_stdio(false);
   cin.tie(nullptr);
   cin >> n >> m;
   for (int i=1; i<=m; ++i){
      int u, v; cin >> u >> v;
      g[u].push_back(v);
      g[v].push_back(u);
   }
   for (int i=1; i<=n; ++i) if (!num[i]){
      dfs_joint(i, 0);
   }
   set<pair<int, int>> edge;
   for (int i=1; i<=n; ++i) if (joint[i]) cc[i]=i;
   for (int i=1; i<=cnt; ++i){
      for (auto &j:bcc[i]){
         if (!joint[j.first]) cc[j.first]=n+i;
         else edge.emplace(n+i, j.first);
         if (!joint[j.second]) cc[j.second]=n+i;
         else edge.emplace(n+i, j.second);
      }
   }
   for (int i=1; i<=n; ++i) ++sz[cc[i]];
   for (auto &i:edge){
      gg[i.first].push_back(i.second);
      gg[i.second].push_back(i.first);
   }
   for (int i=1; i<=cnt; ++i){
      if (!sub_sz[n+i]){
         dfs_sz(n+i, 0);
         tot=sub_sz[n+i];
         ans+=tot*(tot-1)*(tot-2);
         dfs(n+i, 0);
         dfs2(n+i, 0);
      }
   }
   cout << ans << '\n';
   return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 7 ms 27480 KB Output is correct
2 Correct 7 ms 27536 KB Output is correct
3 Correct 6 ms 27484 KB Output is correct
4 Correct 6 ms 27620 KB Output is correct
5 Correct 6 ms 27484 KB Output is correct
6 Correct 5 ms 27484 KB Output is correct
7 Correct 5 ms 27480 KB Output is correct
8 Correct 6 ms 27484 KB Output is correct
9 Correct 6 ms 27484 KB Output is correct
10 Correct 6 ms 27484 KB Output is correct
11 Correct 7 ms 27484 KB Output is correct
12 Correct 6 ms 27480 KB Output is correct
13 Correct 6 ms 27740 KB Output is correct
14 Correct 6 ms 27480 KB Output is correct
15 Correct 6 ms 27480 KB Output is correct
16 Correct 6 ms 27484 KB Output is correct
17 Correct 6 ms 27616 KB Output is correct
18 Correct 6 ms 27484 KB Output is correct
19 Correct 6 ms 27484 KB Output is correct
20 Correct 7 ms 27484 KB Output is correct
21 Correct 6 ms 27484 KB Output is correct
22 Correct 6 ms 27484 KB Output is correct
23 Correct 6 ms 27484 KB Output is correct
24 Correct 6 ms 27616 KB Output is correct
25 Correct 6 ms 27484 KB Output is correct
26 Correct 7 ms 27620 KB Output is correct
27 Correct 6 ms 27484 KB Output is correct
28 Correct 6 ms 27484 KB Output is correct
29 Correct 6 ms 27596 KB Output is correct
30 Correct 6 ms 27484 KB Output is correct
31 Correct 6 ms 27484 KB Output is correct
32 Correct 5 ms 27484 KB Output is correct
33 Correct 6 ms 27484 KB Output is correct
34 Correct 6 ms 27484 KB Output is correct
35 Correct 6 ms 27484 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 27480 KB Output is correct
2 Correct 7 ms 27536 KB Output is correct
3 Correct 6 ms 27484 KB Output is correct
4 Correct 6 ms 27620 KB Output is correct
5 Correct 6 ms 27484 KB Output is correct
6 Correct 5 ms 27484 KB Output is correct
7 Correct 5 ms 27480 KB Output is correct
8 Correct 6 ms 27484 KB Output is correct
9 Correct 6 ms 27484 KB Output is correct
10 Correct 6 ms 27484 KB Output is correct
11 Correct 7 ms 27484 KB Output is correct
12 Correct 6 ms 27480 KB Output is correct
13 Correct 6 ms 27740 KB Output is correct
14 Correct 6 ms 27480 KB Output is correct
15 Correct 6 ms 27480 KB Output is correct
16 Correct 6 ms 27484 KB Output is correct
17 Correct 6 ms 27616 KB Output is correct
18 Correct 6 ms 27484 KB Output is correct
19 Correct 6 ms 27484 KB Output is correct
20 Correct 7 ms 27484 KB Output is correct
21 Correct 6 ms 27484 KB Output is correct
22 Correct 6 ms 27484 KB Output is correct
23 Correct 6 ms 27484 KB Output is correct
24 Correct 6 ms 27616 KB Output is correct
25 Correct 6 ms 27484 KB Output is correct
26 Correct 7 ms 27620 KB Output is correct
27 Correct 6 ms 27484 KB Output is correct
28 Correct 6 ms 27484 KB Output is correct
29 Correct 6 ms 27596 KB Output is correct
30 Correct 6 ms 27484 KB Output is correct
31 Correct 6 ms 27484 KB Output is correct
32 Correct 5 ms 27484 KB Output is correct
33 Correct 6 ms 27484 KB Output is correct
34 Correct 6 ms 27484 KB Output is correct
35 Correct 6 ms 27484 KB Output is correct
36 Correct 6 ms 27680 KB Output is correct
37 Correct 6 ms 27484 KB Output is correct
38 Correct 6 ms 27484 KB Output is correct
39 Correct 6 ms 27736 KB Output is correct
40 Correct 6 ms 27484 KB Output is correct
41 Correct 8 ms 27836 KB Output is correct
42 Correct 7 ms 27484 KB Output is correct
43 Correct 6 ms 27484 KB Output is correct
44 Correct 6 ms 27484 KB Output is correct
45 Correct 6 ms 27576 KB Output is correct
46 Correct 6 ms 27484 KB Output is correct
47 Correct 6 ms 27620 KB Output is correct
48 Correct 6 ms 27556 KB Output is correct
49 Correct 6 ms 27484 KB Output is correct
50 Correct 6 ms 27484 KB Output is correct
51 Correct 6 ms 27544 KB Output is correct
52 Correct 6 ms 27484 KB Output is correct
53 Correct 6 ms 27484 KB Output is correct
54 Correct 6 ms 27480 KB Output is correct
55 Correct 7 ms 27480 KB Output is correct
56 Correct 7 ms 27548 KB Output is correct
57 Correct 6 ms 27484 KB Output is correct
58 Correct 6 ms 27484 KB Output is correct
59 Correct 5 ms 27484 KB Output is correct
60 Correct 6 ms 27484 KB Output is correct
61 Correct 6 ms 27576 KB Output is correct
62 Correct 6 ms 27484 KB Output is correct
63 Correct 6 ms 27484 KB Output is correct
64 Correct 6 ms 27480 KB Output is correct
65 Correct 6 ms 27480 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 47 ms 52028 KB Output is correct
2 Correct 62 ms 52120 KB Output is correct
3 Correct 78 ms 54992 KB Output is correct
4 Correct 64 ms 53964 KB Output is correct
5 Correct 68 ms 48972 KB Output is correct
6 Correct 87 ms 56184 KB Output is correct
7 Correct 80 ms 52984 KB Output is correct
8 Correct 85 ms 54780 KB Output is correct
9 Correct 96 ms 51592 KB Output is correct
10 Correct 76 ms 50720 KB Output is correct
11 Correct 52 ms 43024 KB Output is correct
12 Correct 52 ms 43344 KB Output is correct
13 Correct 46 ms 41556 KB Output is correct
14 Correct 45 ms 41552 KB Output is correct
15 Correct 33 ms 38224 KB Output is correct
16 Correct 35 ms 38480 KB Output is correct
17 Correct 7 ms 30300 KB Output is correct
18 Correct 7 ms 30300 KB Output is correct
19 Correct 7 ms 30300 KB Output is correct
20 Correct 7 ms 30380 KB Output is correct
21 Correct 8 ms 30300 KB Output is correct
22 Correct 8 ms 30296 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 27736 KB Output is correct
2 Correct 6 ms 27740 KB Output is correct
3 Correct 6 ms 27740 KB Output is correct
4 Correct 6 ms 27996 KB Output is correct
5 Correct 6 ms 27736 KB Output is correct
6 Correct 6 ms 27740 KB Output is correct
7 Correct 6 ms 27992 KB Output is correct
8 Correct 7 ms 27736 KB Output is correct
9 Correct 6 ms 27740 KB Output is correct
10 Correct 6 ms 27740 KB Output is correct
11 Correct 7 ms 27824 KB Output is correct
12 Correct 6 ms 27736 KB Output is correct
13 Correct 7 ms 27736 KB Output is correct
14 Correct 6 ms 27796 KB Output is correct
15 Correct 6 ms 27736 KB Output is correct
16 Correct 6 ms 27736 KB Output is correct
17 Correct 7 ms 27740 KB Output is correct
18 Correct 6 ms 27740 KB Output is correct
19 Correct 6 ms 27640 KB Output is correct
20 Correct 7 ms 27740 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 91 ms 55532 KB Output is correct
2 Correct 96 ms 55380 KB Output is correct
3 Correct 97 ms 55380 KB Output is correct
4 Correct 93 ms 55656 KB Output is correct
5 Correct 97 ms 55380 KB Output is correct
6 Correct 131 ms 71580 KB Output is correct
7 Correct 113 ms 62548 KB Output is correct
8 Correct 114 ms 60708 KB Output is correct
9 Correct 105 ms 59128 KB Output is correct
10 Correct 101 ms 55296 KB Output is correct
11 Correct 97 ms 55376 KB Output is correct
12 Correct 92 ms 55380 KB Output is correct
13 Correct 93 ms 55420 KB Output is correct
14 Correct 80 ms 52560 KB Output is correct
15 Correct 72 ms 49744 KB Output is correct
16 Correct 40 ms 41052 KB Output is correct
17 Correct 65 ms 50364 KB Output is correct
18 Correct 57 ms 50400 KB Output is correct
19 Correct 62 ms 50620 KB Output is correct
20 Correct 64 ms 50244 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 27740 KB Output is correct
2 Correct 6 ms 27740 KB Output is correct
3 Correct 6 ms 27740 KB Output is correct
4 Correct 6 ms 27740 KB Output is correct
5 Correct 6 ms 27740 KB Output is correct
6 Correct 6 ms 27740 KB Output is correct
7 Correct 6 ms 27736 KB Output is correct
8 Correct 6 ms 27572 KB Output is correct
9 Correct 6 ms 27740 KB Output is correct
10 Correct 6 ms 27560 KB Output is correct
11 Correct 6 ms 27740 KB Output is correct
12 Correct 7 ms 27736 KB Output is correct
13 Correct 7 ms 27740 KB Output is correct
14 Correct 7 ms 27740 KB Output is correct
15 Correct 7 ms 27740 KB Output is correct
16 Correct 7 ms 27736 KB Output is correct
17 Correct 8 ms 27740 KB Output is correct
18 Correct 6 ms 27740 KB Output is correct
19 Correct 6 ms 27740 KB Output is correct
20 Correct 6 ms 27740 KB Output is correct
21 Correct 7 ms 27740 KB Output is correct
22 Correct 6 ms 27796 KB Output is correct
23 Correct 7 ms 27740 KB Output is correct
24 Correct 6 ms 27740 KB Output is correct
25 Correct 6 ms 27484 KB Output is correct
26 Correct 6 ms 27484 KB Output is correct
27 Correct 6 ms 27484 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 99 ms 55640 KB Output is correct
2 Correct 112 ms 56260 KB Output is correct
3 Correct 116 ms 54036 KB Output is correct
4 Correct 81 ms 49780 KB Output is correct
5 Correct 73 ms 45000 KB Output is correct
6 Correct 58 ms 43088 KB Output is correct
7 Correct 52 ms 41808 KB Output is correct
8 Correct 49 ms 40528 KB Output is correct
9 Correct 47 ms 40028 KB Output is correct
10 Correct 46 ms 39376 KB Output is correct
11 Correct 50 ms 38736 KB Output is correct
12 Correct 47 ms 38172 KB Output is correct
13 Correct 41 ms 37972 KB Output is correct
14 Correct 43 ms 40916 KB Output is correct
15 Correct 113 ms 60692 KB Output is correct
16 Correct 103 ms 58448 KB Output is correct
17 Correct 106 ms 58028 KB Output is correct
18 Correct 97 ms 55960 KB Output is correct
19 Correct 126 ms 50296 KB Output is correct
20 Correct 83 ms 50004 KB Output is correct
21 Correct 84 ms 49940 KB Output is correct
22 Correct 68 ms 46324 KB Output is correct
23 Correct 54 ms 42576 KB Output is correct
24 Correct 85 ms 51788 KB Output is correct
25 Correct 83 ms 51912 KB Output is correct
26 Correct 74 ms 49856 KB Output is correct
27 Correct 78 ms 49844 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 27480 KB Output is correct
2 Correct 7 ms 27536 KB Output is correct
3 Correct 6 ms 27484 KB Output is correct
4 Correct 6 ms 27620 KB Output is correct
5 Correct 6 ms 27484 KB Output is correct
6 Correct 5 ms 27484 KB Output is correct
7 Correct 5 ms 27480 KB Output is correct
8 Correct 6 ms 27484 KB Output is correct
9 Correct 6 ms 27484 KB Output is correct
10 Correct 6 ms 27484 KB Output is correct
11 Correct 7 ms 27484 KB Output is correct
12 Correct 6 ms 27480 KB Output is correct
13 Correct 6 ms 27740 KB Output is correct
14 Correct 6 ms 27480 KB Output is correct
15 Correct 6 ms 27480 KB Output is correct
16 Correct 6 ms 27484 KB Output is correct
17 Correct 6 ms 27616 KB Output is correct
18 Correct 6 ms 27484 KB Output is correct
19 Correct 6 ms 27484 KB Output is correct
20 Correct 7 ms 27484 KB Output is correct
21 Correct 6 ms 27484 KB Output is correct
22 Correct 6 ms 27484 KB Output is correct
23 Correct 6 ms 27484 KB Output is correct
24 Correct 6 ms 27616 KB Output is correct
25 Correct 6 ms 27484 KB Output is correct
26 Correct 7 ms 27620 KB Output is correct
27 Correct 6 ms 27484 KB Output is correct
28 Correct 6 ms 27484 KB Output is correct
29 Correct 6 ms 27596 KB Output is correct
30 Correct 6 ms 27484 KB Output is correct
31 Correct 6 ms 27484 KB Output is correct
32 Correct 5 ms 27484 KB Output is correct
33 Correct 6 ms 27484 KB Output is correct
34 Correct 6 ms 27484 KB Output is correct
35 Correct 6 ms 27484 KB Output is correct
36 Correct 6 ms 27680 KB Output is correct
37 Correct 6 ms 27484 KB Output is correct
38 Correct 6 ms 27484 KB Output is correct
39 Correct 6 ms 27736 KB Output is correct
40 Correct 6 ms 27484 KB Output is correct
41 Correct 8 ms 27836 KB Output is correct
42 Correct 7 ms 27484 KB Output is correct
43 Correct 6 ms 27484 KB Output is correct
44 Correct 6 ms 27484 KB Output is correct
45 Correct 6 ms 27576 KB Output is correct
46 Correct 6 ms 27484 KB Output is correct
47 Correct 6 ms 27620 KB Output is correct
48 Correct 6 ms 27556 KB Output is correct
49 Correct 6 ms 27484 KB Output is correct
50 Correct 6 ms 27484 KB Output is correct
51 Correct 6 ms 27544 KB Output is correct
52 Correct 6 ms 27484 KB Output is correct
53 Correct 6 ms 27484 KB Output is correct
54 Correct 6 ms 27480 KB Output is correct
55 Correct 7 ms 27480 KB Output is correct
56 Correct 7 ms 27548 KB Output is correct
57 Correct 6 ms 27484 KB Output is correct
58 Correct 6 ms 27484 KB Output is correct
59 Correct 5 ms 27484 KB Output is correct
60 Correct 6 ms 27484 KB Output is correct
61 Correct 6 ms 27576 KB Output is correct
62 Correct 6 ms 27484 KB Output is correct
63 Correct 6 ms 27484 KB Output is correct
64 Correct 6 ms 27480 KB Output is correct
65 Correct 6 ms 27480 KB Output is correct
66 Correct 7 ms 27480 KB Output is correct
67 Correct 7 ms 27736 KB Output is correct
68 Correct 6 ms 27740 KB Output is correct
69 Correct 7 ms 27740 KB Output is correct
70 Correct 8 ms 27740 KB Output is correct
71 Correct 7 ms 27740 KB Output is correct
72 Correct 6 ms 27740 KB Output is correct
73 Correct 6 ms 27740 KB Output is correct
74 Correct 6 ms 27740 KB Output is correct
75 Correct 6 ms 27740 KB Output is correct
76 Correct 6 ms 27484 KB Output is correct
77 Correct 7 ms 27740 KB Output is correct
78 Correct 6 ms 27612 KB Output is correct
79 Correct 6 ms 27740 KB Output is correct
80 Correct 6 ms 27484 KB Output is correct
81 Correct 6 ms 27484 KB Output is correct
82 Correct 6 ms 27740 KB Output is correct
83 Correct 7 ms 27740 KB Output is correct
84 Correct 6 ms 27740 KB Output is correct
85 Correct 7 ms 27740 KB Output is correct
86 Correct 6 ms 27548 KB Output is correct
87 Correct 7 ms 27740 KB Output is correct
88 Correct 6 ms 27764 KB Output is correct
89 Correct 6 ms 27740 KB Output is correct
90 Correct 6 ms 27484 KB Output is correct
91 Correct 6 ms 27764 KB Output is correct
92 Correct 6 ms 27560 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 27480 KB Output is correct
2 Correct 7 ms 27536 KB Output is correct
3 Correct 6 ms 27484 KB Output is correct
4 Correct 6 ms 27620 KB Output is correct
5 Correct 6 ms 27484 KB Output is correct
6 Correct 5 ms 27484 KB Output is correct
7 Correct 5 ms 27480 KB Output is correct
8 Correct 6 ms 27484 KB Output is correct
9 Correct 6 ms 27484 KB Output is correct
10 Correct 6 ms 27484 KB Output is correct
11 Correct 7 ms 27484 KB Output is correct
12 Correct 6 ms 27480 KB Output is correct
13 Correct 6 ms 27740 KB Output is correct
14 Correct 6 ms 27480 KB Output is correct
15 Correct 6 ms 27480 KB Output is correct
16 Correct 6 ms 27484 KB Output is correct
17 Correct 6 ms 27616 KB Output is correct
18 Correct 6 ms 27484 KB Output is correct
19 Correct 6 ms 27484 KB Output is correct
20 Correct 7 ms 27484 KB Output is correct
21 Correct 6 ms 27484 KB Output is correct
22 Correct 6 ms 27484 KB Output is correct
23 Correct 6 ms 27484 KB Output is correct
24 Correct 6 ms 27616 KB Output is correct
25 Correct 6 ms 27484 KB Output is correct
26 Correct 7 ms 27620 KB Output is correct
27 Correct 6 ms 27484 KB Output is correct
28 Correct 6 ms 27484 KB Output is correct
29 Correct 6 ms 27596 KB Output is correct
30 Correct 6 ms 27484 KB Output is correct
31 Correct 6 ms 27484 KB Output is correct
32 Correct 5 ms 27484 KB Output is correct
33 Correct 6 ms 27484 KB Output is correct
34 Correct 6 ms 27484 KB Output is correct
35 Correct 6 ms 27484 KB Output is correct
36 Correct 6 ms 27680 KB Output is correct
37 Correct 6 ms 27484 KB Output is correct
38 Correct 6 ms 27484 KB Output is correct
39 Correct 6 ms 27736 KB Output is correct
40 Correct 6 ms 27484 KB Output is correct
41 Correct 8 ms 27836 KB Output is correct
42 Correct 7 ms 27484 KB Output is correct
43 Correct 6 ms 27484 KB Output is correct
44 Correct 6 ms 27484 KB Output is correct
45 Correct 6 ms 27576 KB Output is correct
46 Correct 6 ms 27484 KB Output is correct
47 Correct 6 ms 27620 KB Output is correct
48 Correct 6 ms 27556 KB Output is correct
49 Correct 6 ms 27484 KB Output is correct
50 Correct 6 ms 27484 KB Output is correct
51 Correct 6 ms 27544 KB Output is correct
52 Correct 6 ms 27484 KB Output is correct
53 Correct 6 ms 27484 KB Output is correct
54 Correct 6 ms 27480 KB Output is correct
55 Correct 7 ms 27480 KB Output is correct
56 Correct 7 ms 27548 KB Output is correct
57 Correct 6 ms 27484 KB Output is correct
58 Correct 6 ms 27484 KB Output is correct
59 Correct 5 ms 27484 KB Output is correct
60 Correct 6 ms 27484 KB Output is correct
61 Correct 6 ms 27576 KB Output is correct
62 Correct 6 ms 27484 KB Output is correct
63 Correct 6 ms 27484 KB Output is correct
64 Correct 6 ms 27480 KB Output is correct
65 Correct 6 ms 27480 KB Output is correct
66 Correct 47 ms 52028 KB Output is correct
67 Correct 62 ms 52120 KB Output is correct
68 Correct 78 ms 54992 KB Output is correct
69 Correct 64 ms 53964 KB Output is correct
70 Correct 68 ms 48972 KB Output is correct
71 Correct 87 ms 56184 KB Output is correct
72 Correct 80 ms 52984 KB Output is correct
73 Correct 85 ms 54780 KB Output is correct
74 Correct 96 ms 51592 KB Output is correct
75 Correct 76 ms 50720 KB Output is correct
76 Correct 52 ms 43024 KB Output is correct
77 Correct 52 ms 43344 KB Output is correct
78 Correct 46 ms 41556 KB Output is correct
79 Correct 45 ms 41552 KB Output is correct
80 Correct 33 ms 38224 KB Output is correct
81 Correct 35 ms 38480 KB Output is correct
82 Correct 7 ms 30300 KB Output is correct
83 Correct 7 ms 30300 KB Output is correct
84 Correct 7 ms 30300 KB Output is correct
85 Correct 7 ms 30380 KB Output is correct
86 Correct 8 ms 30300 KB Output is correct
87 Correct 8 ms 30296 KB Output is correct
88 Correct 6 ms 27736 KB Output is correct
89 Correct 6 ms 27740 KB Output is correct
90 Correct 6 ms 27740 KB Output is correct
91 Correct 6 ms 27996 KB Output is correct
92 Correct 6 ms 27736 KB Output is correct
93 Correct 6 ms 27740 KB Output is correct
94 Correct 6 ms 27992 KB Output is correct
95 Correct 7 ms 27736 KB Output is correct
96 Correct 6 ms 27740 KB Output is correct
97 Correct 6 ms 27740 KB Output is correct
98 Correct 7 ms 27824 KB Output is correct
99 Correct 6 ms 27736 KB Output is correct
100 Correct 7 ms 27736 KB Output is correct
101 Correct 6 ms 27796 KB Output is correct
102 Correct 6 ms 27736 KB Output is correct
103 Correct 6 ms 27736 KB Output is correct
104 Correct 7 ms 27740 KB Output is correct
105 Correct 6 ms 27740 KB Output is correct
106 Correct 6 ms 27640 KB Output is correct
107 Correct 7 ms 27740 KB Output is correct
108 Correct 91 ms 55532 KB Output is correct
109 Correct 96 ms 55380 KB Output is correct
110 Correct 97 ms 55380 KB Output is correct
111 Correct 93 ms 55656 KB Output is correct
112 Correct 97 ms 55380 KB Output is correct
113 Correct 131 ms 71580 KB Output is correct
114 Correct 113 ms 62548 KB Output is correct
115 Correct 114 ms 60708 KB Output is correct
116 Correct 105 ms 59128 KB Output is correct
117 Correct 101 ms 55296 KB Output is correct
118 Correct 97 ms 55376 KB Output is correct
119 Correct 92 ms 55380 KB Output is correct
120 Correct 93 ms 55420 KB Output is correct
121 Correct 80 ms 52560 KB Output is correct
122 Correct 72 ms 49744 KB Output is correct
123 Correct 40 ms 41052 KB Output is correct
124 Correct 65 ms 50364 KB Output is correct
125 Correct 57 ms 50400 KB Output is correct
126 Correct 62 ms 50620 KB Output is correct
127 Correct 64 ms 50244 KB Output is correct
128 Correct 6 ms 27740 KB Output is correct
129 Correct 6 ms 27740 KB Output is correct
130 Correct 6 ms 27740 KB Output is correct
131 Correct 6 ms 27740 KB Output is correct
132 Correct 6 ms 27740 KB Output is correct
133 Correct 6 ms 27740 KB Output is correct
134 Correct 6 ms 27736 KB Output is correct
135 Correct 6 ms 27572 KB Output is correct
136 Correct 6 ms 27740 KB Output is correct
137 Correct 6 ms 27560 KB Output is correct
138 Correct 6 ms 27740 KB Output is correct
139 Correct 7 ms 27736 KB Output is correct
140 Correct 7 ms 27740 KB Output is correct
141 Correct 7 ms 27740 KB Output is correct
142 Correct 7 ms 27740 KB Output is correct
143 Correct 7 ms 27736 KB Output is correct
144 Correct 8 ms 27740 KB Output is correct
145 Correct 6 ms 27740 KB Output is correct
146 Correct 6 ms 27740 KB Output is correct
147 Correct 6 ms 27740 KB Output is correct
148 Correct 7 ms 27740 KB Output is correct
149 Correct 6 ms 27796 KB Output is correct
150 Correct 7 ms 27740 KB Output is correct
151 Correct 6 ms 27740 KB Output is correct
152 Correct 6 ms 27484 KB Output is correct
153 Correct 6 ms 27484 KB Output is correct
154 Correct 6 ms 27484 KB Output is correct
155 Correct 99 ms 55640 KB Output is correct
156 Correct 112 ms 56260 KB Output is correct
157 Correct 116 ms 54036 KB Output is correct
158 Correct 81 ms 49780 KB Output is correct
159 Correct 73 ms 45000 KB Output is correct
160 Correct 58 ms 43088 KB Output is correct
161 Correct 52 ms 41808 KB Output is correct
162 Correct 49 ms 40528 KB Output is correct
163 Correct 47 ms 40028 KB Output is correct
164 Correct 46 ms 39376 KB Output is correct
165 Correct 50 ms 38736 KB Output is correct
166 Correct 47 ms 38172 KB Output is correct
167 Correct 41 ms 37972 KB Output is correct
168 Correct 43 ms 40916 KB Output is correct
169 Correct 113 ms 60692 KB Output is correct
170 Correct 103 ms 58448 KB Output is correct
171 Correct 106 ms 58028 KB Output is correct
172 Correct 97 ms 55960 KB Output is correct
173 Correct 126 ms 50296 KB Output is correct
174 Correct 83 ms 50004 KB Output is correct
175 Correct 84 ms 49940 KB Output is correct
176 Correct 68 ms 46324 KB Output is correct
177 Correct 54 ms 42576 KB Output is correct
178 Correct 85 ms 51788 KB Output is correct
179 Correct 83 ms 51912 KB Output is correct
180 Correct 74 ms 49856 KB Output is correct
181 Correct 78 ms 49844 KB Output is correct
182 Correct 7 ms 27480 KB Output is correct
183 Correct 7 ms 27736 KB Output is correct
184 Correct 6 ms 27740 KB Output is correct
185 Correct 7 ms 27740 KB Output is correct
186 Correct 8 ms 27740 KB Output is correct
187 Correct 7 ms 27740 KB Output is correct
188 Correct 6 ms 27740 KB Output is correct
189 Correct 6 ms 27740 KB Output is correct
190 Correct 6 ms 27740 KB Output is correct
191 Correct 6 ms 27740 KB Output is correct
192 Correct 6 ms 27484 KB Output is correct
193 Correct 7 ms 27740 KB Output is correct
194 Correct 6 ms 27612 KB Output is correct
195 Correct 6 ms 27740 KB Output is correct
196 Correct 6 ms 27484 KB Output is correct
197 Correct 6 ms 27484 KB Output is correct
198 Correct 6 ms 27740 KB Output is correct
199 Correct 7 ms 27740 KB Output is correct
200 Correct 6 ms 27740 KB Output is correct
201 Correct 7 ms 27740 KB Output is correct
202 Correct 6 ms 27548 KB Output is correct
203 Correct 7 ms 27740 KB Output is correct
204 Correct 6 ms 27764 KB Output is correct
205 Correct 6 ms 27740 KB Output is correct
206 Correct 6 ms 27484 KB Output is correct
207 Correct 6 ms 27764 KB Output is correct
208 Correct 6 ms 27560 KB Output is correct
209 Correct 8 ms 30556 KB Output is correct
210 Correct 46 ms 42320 KB Output is correct
211 Correct 76 ms 47984 KB Output is correct
212 Correct 82 ms 49352 KB Output is correct
213 Correct 92 ms 51392 KB Output is correct
214 Correct 46 ms 43088 KB Output is correct
215 Correct 45 ms 41808 KB Output is correct
216 Correct 81 ms 49928 KB Output is correct
217 Correct 71 ms 45460 KB Output is correct
218 Correct 51 ms 40580 KB Output is correct
219 Correct 45 ms 39260 KB Output is correct
220 Correct 45 ms 38676 KB Output is correct
221 Correct 40 ms 37968 KB Output is correct
222 Correct 40 ms 39056 KB Output is correct
223 Correct 80 ms 50244 KB Output is correct
224 Correct 96 ms 48952 KB Output is correct
225 Correct 64 ms 44568 KB Output is correct
226 Correct 66 ms 44596 KB Output is correct
227 Correct 70 ms 44372 KB Output is correct
228 Correct 60 ms 42168 KB Output is correct
229 Correct 46 ms 39256 KB Output is correct
230 Correct 56 ms 42952 KB Output is correct
231 Correct 63 ms 43244 KB Output is correct