# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
172217 | 2019-12-31T16:37:12 Z | dndhk | Duathlon (APIO18_duathlon) | C++14 | 327 ms | 36644 KB |
#include <bits/stdc++.h> #define all(v) (v).begin(), (v).end() #define sortv(v) sort(all(v)) #define uniqv(v) (v).erase(unique(all(v)), (v).end()) #define pb push_back #define FI first #define SE second #define lb lower_bound #define ub upper_bound #define mp make_pair #define test 1 #define TEST if(test) using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<int> vi; const int MOD = 1000000007; // 998244353 const int INF = 2e9; const ll INFLL = 1e18; const int MAX_N = 100000; int N, M, NN; vector<int> gp[MAX_N+1]; int dfsn[MAX_N+1], up[MAX_N+1], p[MAX_N+1], cnt, pcnt=1; int sz2[MAX_N+1]; int vstt[MAX_N+1]; vector<int> v; void dfs(int x){ v.pb(x); vstt[x] = 1; sz2[x] = 1; dfsn[x] = up[x] = ++cnt; for(int i : gp[x]){ if(i==p[x]) continue; if(dfsn[i]==0){ p[i] = x; dfs(i); sz2[x]+=sz2[i]; up[x] = min(up[x], up[i]); }else{ up[x] = min(up[x], dfsn[i]); } } } vector<int> BCC[MAX_N+1]; vector<int> cl[MAX_N+1]; vector<pii> sz[MAX_N+1]; bool vst[MAX_N+1]; int sz3[MAX_N+1]; vector<pii> sz4[MAX_N+1]; void color(int x, int y){ if(y>0){ BCC[y].pb(x); cl[x].pb(y); } vst[x] = true; bool tf = false; int sum = 0; for(int i : gp[x]){ if(vst[i]) continue; if(dfsn[x]<=up[i]){ tf = true; BCC[++cnt].pb(x); if(N-sz2[i]-1!=0) { sz[cnt].pb({x, N - sz2[i] - 1}); sz4[x].pb({cnt, sz2[i]}); } sum += sz2[i]; cl[x].pb(cnt); color(i, cnt); }else{ color(i, y); } } if(tf && y>0){ sz[y].pb({x, sum}); sz4[x].pb({y, N - 1 - sum}); } } ll ans; int main(){ scanf("%d%d", &NN, &M); for(int i=1; i<=M; i++){ int a, b; scanf("%d%d", &a, &b); gp[a].pb(b); gp[b].pb(a); } for(int i=1; i<=NN; i++){ if(vstt[i]) continue; while(!v.empty()) v.pop_back(); dfs(i); N = v.size(); cnt = pcnt-1; color(i, 0); ans += (ll)N * (ll)(N-1) * (ll)(N-2); for(int i:v){ for(int j : cl[i]){ sz3[i] += (BCC[j].size() - 1); } } for(int i=pcnt; i<=cnt; i++){ ll sum1 = 0, sum2 = 0; ll num = 0; for(int j : BCC[i]){ //TEST cout<<j<<" "; if(cl[j].size()==1) num++; } // TEST cout<<i<<endl; for(pii j : sz[i]){ ans -= (ll)(BCC[i].size()-1) * (ll)(j.second+1) * (ll)(j.second); //TEST cout<<j.first<<" "<<(ll)(BCC[i].size()-1) * (ll)(j.second+1) * (ll)(j.second)<<endl; }/* // type 2 TEST cout<<endl; TEST cout<<num<<endl; ans += num * (num-1LL) * (ll)(N - BCC[i].size()) * 2LL; for(pii j : sz[i]){ sum2 += sum1 * (ll)j.second; sum1 += (ll)j.second; ans += 2LL * (ll)(BCC[i].size() - num - 1) * (ll)(N - j.second - sz3[j.first] - 1); ans += 2LL * num * (ll)(N - BCC[i].size() - j.second); // TEST cout<<j.first<<" "<<j.second<<endl; // TEST cout<<"*"<<(N-BCC[i].size() -j.second)<<endl; ans += 2LL * num * (ll)(N - sz3[j.first] - 1); // TEST cout<<"&"<<(j.second - sz3[j.first] + BCC[i].size() - 1)<<endl; } TEST cout<<num<<" "<<sum2<<endl; ans += num * 2LL * sum2; */ } /*TEST cout<<ans<<endl; for(int i : v){ if(cl[i].size()>1){ ll sum1 = 0, sum2 = 0; TEST cout<<i<<endl; for(pii j : sz4[i]){ TEST cout<<j.first<<" "<<j.second<<endl; sum2 += (ll)(j.second - BCC[j.first].size() + 1) * sum1; sum1 += (ll)(j.second - BCC[j.first].size() + 1); } ans += 2LL * sum2; } }*/ pcnt = cnt+1; cnt = 0; } cout<<ans<<endl; return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 12152 KB | Output is correct |
2 | Correct | 13 ms | 12152 KB | Output is correct |
3 | Correct | 13 ms | 12152 KB | Output is correct |
4 | Correct | 12 ms | 12152 KB | Output is correct |
5 | Correct | 13 ms | 12156 KB | Output is correct |
6 | Correct | 13 ms | 12152 KB | Output is correct |
7 | Correct | 13 ms | 12152 KB | Output is correct |
8 | Correct | 13 ms | 12280 KB | Output is correct |
9 | Correct | 13 ms | 12152 KB | Output is correct |
10 | Correct | 13 ms | 12156 KB | Output is correct |
11 | Correct | 12 ms | 12152 KB | Output is correct |
12 | Correct | 13 ms | 12024 KB | Output is correct |
13 | Correct | 12 ms | 12024 KB | Output is correct |
14 | Correct | 13 ms | 12024 KB | Output is correct |
15 | Correct | 13 ms | 12152 KB | Output is correct |
16 | Correct | 13 ms | 12096 KB | Output is correct |
17 | Correct | 13 ms | 12024 KB | Output is correct |
18 | Correct | 13 ms | 12152 KB | Output is correct |
19 | Correct | 13 ms | 12024 KB | Output is correct |
20 | Correct | 15 ms | 12152 KB | Output is correct |
21 | Correct | 13 ms | 12152 KB | Output is correct |
22 | Correct | 13 ms | 12152 KB | Output is correct |
23 | Correct | 13 ms | 12024 KB | Output is correct |
24 | Correct | 13 ms | 12024 KB | Output is correct |
25 | Correct | 13 ms | 12024 KB | Output is correct |
26 | Correct | 12 ms | 12024 KB | Output is correct |
27 | Correct | 12 ms | 12156 KB | Output is correct |
28 | Correct | 12 ms | 12024 KB | Output is correct |
29 | Correct | 13 ms | 12024 KB | Output is correct |
30 | Correct | 7 ms | 12152 KB | Output is correct |
31 | Correct | 13 ms | 12024 KB | Output is correct |
32 | Correct | 13 ms | 12024 KB | Output is correct |
33 | Correct | 13 ms | 12152 KB | Output is correct |
34 | Correct | 13 ms | 12152 KB | Output is correct |
35 | Correct | 14 ms | 12024 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 12152 KB | Output is correct |
2 | Correct | 13 ms | 12152 KB | Output is correct |
3 | Correct | 13 ms | 12152 KB | Output is correct |
4 | Correct | 12 ms | 12152 KB | Output is correct |
5 | Correct | 13 ms | 12156 KB | Output is correct |
6 | Correct | 13 ms | 12152 KB | Output is correct |
7 | Correct | 13 ms | 12152 KB | Output is correct |
8 | Correct | 13 ms | 12280 KB | Output is correct |
9 | Correct | 13 ms | 12152 KB | Output is correct |
10 | Correct | 13 ms | 12156 KB | Output is correct |
11 | Correct | 12 ms | 12152 KB | Output is correct |
12 | Correct | 13 ms | 12024 KB | Output is correct |
13 | Correct | 12 ms | 12024 KB | Output is correct |
14 | Correct | 13 ms | 12024 KB | Output is correct |
15 | Correct | 13 ms | 12152 KB | Output is correct |
16 | Correct | 13 ms | 12096 KB | Output is correct |
17 | Correct | 13 ms | 12024 KB | Output is correct |
18 | Correct | 13 ms | 12152 KB | Output is correct |
19 | Correct | 13 ms | 12024 KB | Output is correct |
20 | Correct | 15 ms | 12152 KB | Output is correct |
21 | Correct | 13 ms | 12152 KB | Output is correct |
22 | Correct | 13 ms | 12152 KB | Output is correct |
23 | Correct | 13 ms | 12024 KB | Output is correct |
24 | Correct | 13 ms | 12024 KB | Output is correct |
25 | Correct | 13 ms | 12024 KB | Output is correct |
26 | Correct | 12 ms | 12024 KB | Output is correct |
27 | Correct | 12 ms | 12156 KB | Output is correct |
28 | Correct | 12 ms | 12024 KB | Output is correct |
29 | Correct | 13 ms | 12024 KB | Output is correct |
30 | Correct | 7 ms | 12152 KB | Output is correct |
31 | Correct | 13 ms | 12024 KB | Output is correct |
32 | Correct | 13 ms | 12024 KB | Output is correct |
33 | Correct | 13 ms | 12152 KB | Output is correct |
34 | Correct | 13 ms | 12152 KB | Output is correct |
35 | Correct | 14 ms | 12024 KB | Output is correct |
36 | Correct | 13 ms | 12152 KB | Output is correct |
37 | Correct | 13 ms | 12152 KB | Output is correct |
38 | Correct | 13 ms | 12152 KB | Output is correct |
39 | Correct | 13 ms | 12280 KB | Output is correct |
40 | Correct | 13 ms | 12156 KB | Output is correct |
41 | Correct | 12 ms | 12024 KB | Output is correct |
42 | Correct | 13 ms | 12024 KB | Output is correct |
43 | Correct | 13 ms | 12152 KB | Output is correct |
44 | Correct | 13 ms | 12152 KB | Output is correct |
45 | Correct | 13 ms | 12024 KB | Output is correct |
46 | Correct | 13 ms | 12028 KB | Output is correct |
47 | Correct | 13 ms | 12024 KB | Output is correct |
48 | Correct | 12 ms | 12152 KB | Output is correct |
49 | Correct | 13 ms | 12152 KB | Output is correct |
50 | Correct | 13 ms | 12152 KB | Output is correct |
51 | Correct | 13 ms | 12152 KB | Output is correct |
52 | Correct | 13 ms | 12152 KB | Output is correct |
53 | Correct | 13 ms | 12152 KB | Output is correct |
54 | Correct | 13 ms | 12024 KB | Output is correct |
55 | Correct | 13 ms | 12020 KB | Output is correct |
56 | Correct | 13 ms | 12124 KB | Output is correct |
57 | Correct | 13 ms | 12152 KB | Output is correct |
58 | Correct | 13 ms | 12028 KB | Output is correct |
59 | Correct | 13 ms | 12152 KB | Output is correct |
60 | Correct | 13 ms | 12152 KB | Output is correct |
61 | Correct | 13 ms | 12152 KB | Output is correct |
62 | Correct | 13 ms | 12152 KB | Output is correct |
63 | Correct | 12 ms | 12024 KB | Output is correct |
64 | Correct | 13 ms | 12024 KB | Output is correct |
65 | Correct | 13 ms | 12152 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 157 ms | 31752 KB | Output is correct |
2 | Correct | 153 ms | 31656 KB | Output is correct |
3 | Correct | 186 ms | 31608 KB | Output is correct |
4 | Correct | 172 ms | 31904 KB | Output is correct |
5 | Correct | 178 ms | 28544 KB | Output is correct |
6 | Correct | 205 ms | 30528 KB | Output is correct |
7 | Correct | 203 ms | 29536 KB | Output is correct |
8 | Correct | 260 ms | 30408 KB | Output is correct |
9 | Correct | 212 ms | 28656 KB | Output is correct |
10 | Correct | 261 ms | 28664 KB | Output is correct |
11 | Correct | 146 ms | 25336 KB | Output is correct |
12 | Correct | 139 ms | 25164 KB | Output is correct |
13 | Correct | 121 ms | 24440 KB | Output is correct |
14 | Correct | 121 ms | 24312 KB | Output is correct |
15 | Correct | 95 ms | 22392 KB | Output is correct |
16 | Correct | 98 ms | 22260 KB | Output is correct |
17 | Correct | 18 ms | 14456 KB | Output is correct |
18 | Correct | 17 ms | 14456 KB | Output is correct |
19 | Correct | 18 ms | 14456 KB | Output is correct |
20 | Correct | 18 ms | 14328 KB | Output is correct |
21 | Correct | 18 ms | 14328 KB | Output is correct |
22 | Correct | 18 ms | 14332 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 12280 KB | Output is correct |
2 | Correct | 14 ms | 12280 KB | Output is correct |
3 | Correct | 14 ms | 12280 KB | Output is correct |
4 | Correct | 14 ms | 12280 KB | Output is correct |
5 | Correct | 14 ms | 12280 KB | Output is correct |
6 | Correct | 14 ms | 12280 KB | Output is correct |
7 | Correct | 13 ms | 12408 KB | Output is correct |
8 | Correct | 15 ms | 12280 KB | Output is correct |
9 | Correct | 14 ms | 12280 KB | Output is correct |
10 | Correct | 17 ms | 12280 KB | Output is correct |
11 | Correct | 17 ms | 12284 KB | Output is correct |
12 | Correct | 16 ms | 12408 KB | Output is correct |
13 | Correct | 14 ms | 12280 KB | Output is correct |
14 | Correct | 14 ms | 12280 KB | Output is correct |
15 | Correct | 13 ms | 12280 KB | Output is correct |
16 | Correct | 13 ms | 12156 KB | Output is correct |
17 | Correct | 13 ms | 12280 KB | Output is correct |
18 | Correct | 14 ms | 12280 KB | Output is correct |
19 | Correct | 14 ms | 12280 KB | Output is correct |
20 | Correct | 13 ms | 12284 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 199 ms | 30960 KB | Output is correct |
2 | Correct | 182 ms | 30808 KB | Output is correct |
3 | Correct | 240 ms | 30900 KB | Output is correct |
4 | Correct | 246 ms | 30836 KB | Output is correct |
5 | Correct | 190 ms | 30840 KB | Output is correct |
6 | Correct | 250 ms | 36644 KB | Output is correct |
7 | Correct | 262 ms | 34676 KB | Output is correct |
8 | Correct | 327 ms | 33652 KB | Output is correct |
9 | Correct | 224 ms | 32972 KB | Output is correct |
10 | Correct | 206 ms | 30712 KB | Output is correct |
11 | Correct | 194 ms | 30836 KB | Output is correct |
12 | Correct | 229 ms | 30584 KB | Output is correct |
13 | Correct | 241 ms | 30584 KB | Output is correct |
14 | Correct | 168 ms | 29312 KB | Output is correct |
15 | Correct | 147 ms | 28024 KB | Output is correct |
16 | Correct | 94 ms | 23376 KB | Output is correct |
17 | Correct | 127 ms | 30120 KB | Output is correct |
18 | Correct | 126 ms | 30060 KB | Output is correct |
19 | Correct | 132 ms | 30548 KB | Output is correct |
20 | Correct | 125 ms | 30068 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 12252 KB | Output is correct |
2 | Correct | 14 ms | 12280 KB | Output is correct |
3 | Correct | 14 ms | 12280 KB | Output is correct |
4 | Correct | 14 ms | 12280 KB | Output is correct |
5 | Correct | 13 ms | 12152 KB | Output is correct |
6 | Correct | 14 ms | 12280 KB | Output is correct |
7 | Correct | 13 ms | 12152 KB | Output is correct |
8 | Correct | 13 ms | 12280 KB | Output is correct |
9 | Correct | 13 ms | 12152 KB | Output is correct |
10 | Correct | 14 ms | 12152 KB | Output is correct |
11 | Correct | 13 ms | 12152 KB | Output is correct |
12 | Correct | 14 ms | 12280 KB | Output is correct |
13 | Correct | 14 ms | 12280 KB | Output is correct |
14 | Correct | 14 ms | 12280 KB | Output is correct |
15 | Correct | 14 ms | 12280 KB | Output is correct |
16 | Correct | 14 ms | 12280 KB | Output is correct |
17 | Correct | 14 ms | 12280 KB | Output is correct |
18 | Correct | 14 ms | 12280 KB | Output is correct |
19 | Correct | 14 ms | 12248 KB | Output is correct |
20 | Correct | 14 ms | 12152 KB | Output is correct |
21 | Correct | 14 ms | 12280 KB | Output is correct |
22 | Correct | 14 ms | 12280 KB | Output is correct |
23 | Correct | 13 ms | 12280 KB | Output is correct |
24 | Correct | 14 ms | 12280 KB | Output is correct |
25 | Correct | 13 ms | 12152 KB | Output is correct |
26 | Correct | 12 ms | 12152 KB | Output is correct |
27 | Correct | 13 ms | 12156 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 240 ms | 30856 KB | Output is correct |
2 | Correct | 214 ms | 31112 KB | Output is correct |
3 | Correct | 210 ms | 29936 KB | Output is correct |
4 | Correct | 198 ms | 28272 KB | Output is correct |
5 | Correct | 187 ms | 26136 KB | Output is correct |
6 | Correct | 224 ms | 25176 KB | Output is correct |
7 | Correct | 204 ms | 24740 KB | Output is correct |
8 | Correct | 155 ms | 24120 KB | Output is correct |
9 | Correct | 175 ms | 24000 KB | Output is correct |
10 | Correct | 190 ms | 23792 KB | Output is correct |
11 | Correct | 148 ms | 23492 KB | Output is correct |
12 | Correct | 131 ms | 23412 KB | Output is correct |
13 | Correct | 146 ms | 23372 KB | Output is correct |
14 | Correct | 142 ms | 25460 KB | Output is correct |
15 | Correct | 231 ms | 34164 KB | Output is correct |
16 | Correct | 260 ms | 32812 KB | Output is correct |
17 | Correct | 229 ms | 32764 KB | Output is correct |
18 | Correct | 202 ms | 31372 KB | Output is correct |
19 | Correct | 209 ms | 28144 KB | Output is correct |
20 | Correct | 208 ms | 28020 KB | Output is correct |
21 | Correct | 199 ms | 28020 KB | Output is correct |
22 | Correct | 162 ms | 26488 KB | Output is correct |
23 | Correct | 137 ms | 24952 KB | Output is correct |
24 | Correct | 177 ms | 29680 KB | Output is correct |
25 | Correct | 196 ms | 29936 KB | Output is correct |
26 | Correct | 212 ms | 28644 KB | Output is correct |
27 | Correct | 250 ms | 28660 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 12152 KB | Output is correct |
2 | Correct | 13 ms | 12152 KB | Output is correct |
3 | Correct | 13 ms | 12152 KB | Output is correct |
4 | Correct | 12 ms | 12152 KB | Output is correct |
5 | Correct | 13 ms | 12156 KB | Output is correct |
6 | Correct | 13 ms | 12152 KB | Output is correct |
7 | Correct | 13 ms | 12152 KB | Output is correct |
8 | Correct | 13 ms | 12280 KB | Output is correct |
9 | Correct | 13 ms | 12152 KB | Output is correct |
10 | Correct | 13 ms | 12156 KB | Output is correct |
11 | Correct | 12 ms | 12152 KB | Output is correct |
12 | Correct | 13 ms | 12024 KB | Output is correct |
13 | Correct | 12 ms | 12024 KB | Output is correct |
14 | Correct | 13 ms | 12024 KB | Output is correct |
15 | Correct | 13 ms | 12152 KB | Output is correct |
16 | Correct | 13 ms | 12096 KB | Output is correct |
17 | Correct | 13 ms | 12024 KB | Output is correct |
18 | Correct | 13 ms | 12152 KB | Output is correct |
19 | Correct | 13 ms | 12024 KB | Output is correct |
20 | Correct | 15 ms | 12152 KB | Output is correct |
21 | Correct | 13 ms | 12152 KB | Output is correct |
22 | Correct | 13 ms | 12152 KB | Output is correct |
23 | Correct | 13 ms | 12024 KB | Output is correct |
24 | Correct | 13 ms | 12024 KB | Output is correct |
25 | Correct | 13 ms | 12024 KB | Output is correct |
26 | Correct | 12 ms | 12024 KB | Output is correct |
27 | Correct | 12 ms | 12156 KB | Output is correct |
28 | Correct | 12 ms | 12024 KB | Output is correct |
29 | Correct | 13 ms | 12024 KB | Output is correct |
30 | Correct | 7 ms | 12152 KB | Output is correct |
31 | Correct | 13 ms | 12024 KB | Output is correct |
32 | Correct | 13 ms | 12024 KB | Output is correct |
33 | Correct | 13 ms | 12152 KB | Output is correct |
34 | Correct | 13 ms | 12152 KB | Output is correct |
35 | Correct | 14 ms | 12024 KB | Output is correct |
36 | Correct | 13 ms | 12152 KB | Output is correct |
37 | Correct | 13 ms | 12152 KB | Output is correct |
38 | Correct | 13 ms | 12152 KB | Output is correct |
39 | Correct | 13 ms | 12280 KB | Output is correct |
40 | Correct | 13 ms | 12156 KB | Output is correct |
41 | Correct | 12 ms | 12024 KB | Output is correct |
42 | Correct | 13 ms | 12024 KB | Output is correct |
43 | Correct | 13 ms | 12152 KB | Output is correct |
44 | Correct | 13 ms | 12152 KB | Output is correct |
45 | Correct | 13 ms | 12024 KB | Output is correct |
46 | Correct | 13 ms | 12028 KB | Output is correct |
47 | Correct | 13 ms | 12024 KB | Output is correct |
48 | Correct | 12 ms | 12152 KB | Output is correct |
49 | Correct | 13 ms | 12152 KB | Output is correct |
50 | Correct | 13 ms | 12152 KB | Output is correct |
51 | Correct | 13 ms | 12152 KB | Output is correct |
52 | Correct | 13 ms | 12152 KB | Output is correct |
53 | Correct | 13 ms | 12152 KB | Output is correct |
54 | Correct | 13 ms | 12024 KB | Output is correct |
55 | Correct | 13 ms | 12020 KB | Output is correct |
56 | Correct | 13 ms | 12124 KB | Output is correct |
57 | Correct | 13 ms | 12152 KB | Output is correct |
58 | Correct | 13 ms | 12028 KB | Output is correct |
59 | Correct | 13 ms | 12152 KB | Output is correct |
60 | Correct | 13 ms | 12152 KB | Output is correct |
61 | Correct | 13 ms | 12152 KB | Output is correct |
62 | Correct | 13 ms | 12152 KB | Output is correct |
63 | Correct | 12 ms | 12024 KB | Output is correct |
64 | Correct | 13 ms | 12024 KB | Output is correct |
65 | Correct | 13 ms | 12152 KB | Output is correct |
66 | Correct | 15 ms | 12152 KB | Output is correct |
67 | Correct | 17 ms | 12152 KB | Output is correct |
68 | Correct | 13 ms | 12280 KB | Output is correct |
69 | Correct | 14 ms | 12280 KB | Output is correct |
70 | Correct | 13 ms | 12280 KB | Output is correct |
71 | Correct | 13 ms | 12280 KB | Output is correct |
72 | Correct | 13 ms | 12280 KB | Output is correct |
73 | Correct | 13 ms | 12280 KB | Output is correct |
74 | Correct | 14 ms | 12280 KB | Output is correct |
75 | Correct | 13 ms | 12284 KB | Output is correct |
76 | Correct | 13 ms | 12024 KB | Output is correct |
77 | Correct | 14 ms | 12280 KB | Output is correct |
78 | Correct | 13 ms | 12280 KB | Output is correct |
79 | Correct | 14 ms | 12280 KB | Output is correct |
80 | Correct | 13 ms | 12224 KB | Output is correct |
81 | Correct | 13 ms | 12280 KB | Output is correct |
82 | Correct | 14 ms | 12280 KB | Output is correct |
83 | Correct | 13 ms | 12280 KB | Output is correct |
84 | Correct | 14 ms | 12280 KB | Output is correct |
85 | Correct | 14 ms | 12280 KB | Output is correct |
86 | Correct | 14 ms | 12156 KB | Output is correct |
87 | Correct | 14 ms | 12252 KB | Output is correct |
88 | Correct | 14 ms | 12280 KB | Output is correct |
89 | Correct | 14 ms | 12280 KB | Output is correct |
90 | Correct | 14 ms | 12152 KB | Output is correct |
91 | Correct | 14 ms | 12280 KB | Output is correct |
92 | Correct | 16 ms | 12152 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 12152 KB | Output is correct |
2 | Correct | 13 ms | 12152 KB | Output is correct |
3 | Correct | 13 ms | 12152 KB | Output is correct |
4 | Correct | 12 ms | 12152 KB | Output is correct |
5 | Correct | 13 ms | 12156 KB | Output is correct |
6 | Correct | 13 ms | 12152 KB | Output is correct |
7 | Correct | 13 ms | 12152 KB | Output is correct |
8 | Correct | 13 ms | 12280 KB | Output is correct |
9 | Correct | 13 ms | 12152 KB | Output is correct |
10 | Correct | 13 ms | 12156 KB | Output is correct |
11 | Correct | 12 ms | 12152 KB | Output is correct |
12 | Correct | 13 ms | 12024 KB | Output is correct |
13 | Correct | 12 ms | 12024 KB | Output is correct |
14 | Correct | 13 ms | 12024 KB | Output is correct |
15 | Correct | 13 ms | 12152 KB | Output is correct |
16 | Correct | 13 ms | 12096 KB | Output is correct |
17 | Correct | 13 ms | 12024 KB | Output is correct |
18 | Correct | 13 ms | 12152 KB | Output is correct |
19 | Correct | 13 ms | 12024 KB | Output is correct |
20 | Correct | 15 ms | 12152 KB | Output is correct |
21 | Correct | 13 ms | 12152 KB | Output is correct |
22 | Correct | 13 ms | 12152 KB | Output is correct |
23 | Correct | 13 ms | 12024 KB | Output is correct |
24 | Correct | 13 ms | 12024 KB | Output is correct |
25 | Correct | 13 ms | 12024 KB | Output is correct |
26 | Correct | 12 ms | 12024 KB | Output is correct |
27 | Correct | 12 ms | 12156 KB | Output is correct |
28 | Correct | 12 ms | 12024 KB | Output is correct |
29 | Correct | 13 ms | 12024 KB | Output is correct |
30 | Correct | 7 ms | 12152 KB | Output is correct |
31 | Correct | 13 ms | 12024 KB | Output is correct |
32 | Correct | 13 ms | 12024 KB | Output is correct |
33 | Correct | 13 ms | 12152 KB | Output is correct |
34 | Correct | 13 ms | 12152 KB | Output is correct |
35 | Correct | 14 ms | 12024 KB | Output is correct |
36 | Correct | 13 ms | 12152 KB | Output is correct |
37 | Correct | 13 ms | 12152 KB | Output is correct |
38 | Correct | 13 ms | 12152 KB | Output is correct |
39 | Correct | 13 ms | 12280 KB | Output is correct |
40 | Correct | 13 ms | 12156 KB | Output is correct |
41 | Correct | 12 ms | 12024 KB | Output is correct |
42 | Correct | 13 ms | 12024 KB | Output is correct |
43 | Correct | 13 ms | 12152 KB | Output is correct |
44 | Correct | 13 ms | 12152 KB | Output is correct |
45 | Correct | 13 ms | 12024 KB | Output is correct |
46 | Correct | 13 ms | 12028 KB | Output is correct |
47 | Correct | 13 ms | 12024 KB | Output is correct |
48 | Correct | 12 ms | 12152 KB | Output is correct |
49 | Correct | 13 ms | 12152 KB | Output is correct |
50 | Correct | 13 ms | 12152 KB | Output is correct |
51 | Correct | 13 ms | 12152 KB | Output is correct |
52 | Correct | 13 ms | 12152 KB | Output is correct |
53 | Correct | 13 ms | 12152 KB | Output is correct |
54 | Correct | 13 ms | 12024 KB | Output is correct |
55 | Correct | 13 ms | 12020 KB | Output is correct |
56 | Correct | 13 ms | 12124 KB | Output is correct |
57 | Correct | 13 ms | 12152 KB | Output is correct |
58 | Correct | 13 ms | 12028 KB | Output is correct |
59 | Correct | 13 ms | 12152 KB | Output is correct |
60 | Correct | 13 ms | 12152 KB | Output is correct |
61 | Correct | 13 ms | 12152 KB | Output is correct |
62 | Correct | 13 ms | 12152 KB | Output is correct |
63 | Correct | 12 ms | 12024 KB | Output is correct |
64 | Correct | 13 ms | 12024 KB | Output is correct |
65 | Correct | 13 ms | 12152 KB | Output is correct |
66 | Correct | 157 ms | 31752 KB | Output is correct |
67 | Correct | 153 ms | 31656 KB | Output is correct |
68 | Correct | 186 ms | 31608 KB | Output is correct |
69 | Correct | 172 ms | 31904 KB | Output is correct |
70 | Correct | 178 ms | 28544 KB | Output is correct |
71 | Correct | 205 ms | 30528 KB | Output is correct |
72 | Correct | 203 ms | 29536 KB | Output is correct |
73 | Correct | 260 ms | 30408 KB | Output is correct |
74 | Correct | 212 ms | 28656 KB | Output is correct |
75 | Correct | 261 ms | 28664 KB | Output is correct |
76 | Correct | 146 ms | 25336 KB | Output is correct |
77 | Correct | 139 ms | 25164 KB | Output is correct |
78 | Correct | 121 ms | 24440 KB | Output is correct |
79 | Correct | 121 ms | 24312 KB | Output is correct |
80 | Correct | 95 ms | 22392 KB | Output is correct |
81 | Correct | 98 ms | 22260 KB | Output is correct |
82 | Correct | 18 ms | 14456 KB | Output is correct |
83 | Correct | 17 ms | 14456 KB | Output is correct |
84 | Correct | 18 ms | 14456 KB | Output is correct |
85 | Correct | 18 ms | 14328 KB | Output is correct |
86 | Correct | 18 ms | 14328 KB | Output is correct |
87 | Correct | 18 ms | 14332 KB | Output is correct |
88 | Correct | 13 ms | 12280 KB | Output is correct |
89 | Correct | 14 ms | 12280 KB | Output is correct |
90 | Correct | 14 ms | 12280 KB | Output is correct |
91 | Correct | 14 ms | 12280 KB | Output is correct |
92 | Correct | 14 ms | 12280 KB | Output is correct |
93 | Correct | 14 ms | 12280 KB | Output is correct |
94 | Correct | 13 ms | 12408 KB | Output is correct |
95 | Correct | 15 ms | 12280 KB | Output is correct |
96 | Correct | 14 ms | 12280 KB | Output is correct |
97 | Correct | 17 ms | 12280 KB | Output is correct |
98 | Correct | 17 ms | 12284 KB | Output is correct |
99 | Correct | 16 ms | 12408 KB | Output is correct |
100 | Correct | 14 ms | 12280 KB | Output is correct |
101 | Correct | 14 ms | 12280 KB | Output is correct |
102 | Correct | 13 ms | 12280 KB | Output is correct |
103 | Correct | 13 ms | 12156 KB | Output is correct |
104 | Correct | 13 ms | 12280 KB | Output is correct |
105 | Correct | 14 ms | 12280 KB | Output is correct |
106 | Correct | 14 ms | 12280 KB | Output is correct |
107 | Correct | 13 ms | 12284 KB | Output is correct |
108 | Correct | 199 ms | 30960 KB | Output is correct |
109 | Correct | 182 ms | 30808 KB | Output is correct |
110 | Correct | 240 ms | 30900 KB | Output is correct |
111 | Correct | 246 ms | 30836 KB | Output is correct |
112 | Correct | 190 ms | 30840 KB | Output is correct |
113 | Correct | 250 ms | 36644 KB | Output is correct |
114 | Correct | 262 ms | 34676 KB | Output is correct |
115 | Correct | 327 ms | 33652 KB | Output is correct |
116 | Correct | 224 ms | 32972 KB | Output is correct |
117 | Correct | 206 ms | 30712 KB | Output is correct |
118 | Correct | 194 ms | 30836 KB | Output is correct |
119 | Correct | 229 ms | 30584 KB | Output is correct |
120 | Correct | 241 ms | 30584 KB | Output is correct |
121 | Correct | 168 ms | 29312 KB | Output is correct |
122 | Correct | 147 ms | 28024 KB | Output is correct |
123 | Correct | 94 ms | 23376 KB | Output is correct |
124 | Correct | 127 ms | 30120 KB | Output is correct |
125 | Correct | 126 ms | 30060 KB | Output is correct |
126 | Correct | 132 ms | 30548 KB | Output is correct |
127 | Correct | 125 ms | 30068 KB | Output is correct |
128 | Correct | 14 ms | 12252 KB | Output is correct |
129 | Correct | 14 ms | 12280 KB | Output is correct |
130 | Correct | 14 ms | 12280 KB | Output is correct |
131 | Correct | 14 ms | 12280 KB | Output is correct |
132 | Correct | 13 ms | 12152 KB | Output is correct |
133 | Correct | 14 ms | 12280 KB | Output is correct |
134 | Correct | 13 ms | 12152 KB | Output is correct |
135 | Correct | 13 ms | 12280 KB | Output is correct |
136 | Correct | 13 ms | 12152 KB | Output is correct |
137 | Correct | 14 ms | 12152 KB | Output is correct |
138 | Correct | 13 ms | 12152 KB | Output is correct |
139 | Correct | 14 ms | 12280 KB | Output is correct |
140 | Correct | 14 ms | 12280 KB | Output is correct |
141 | Correct | 14 ms | 12280 KB | Output is correct |
142 | Correct | 14 ms | 12280 KB | Output is correct |
143 | Correct | 14 ms | 12280 KB | Output is correct |
144 | Correct | 14 ms | 12280 KB | Output is correct |
145 | Correct | 14 ms | 12280 KB | Output is correct |
146 | Correct | 14 ms | 12248 KB | Output is correct |
147 | Correct | 14 ms | 12152 KB | Output is correct |
148 | Correct | 14 ms | 12280 KB | Output is correct |
149 | Correct | 14 ms | 12280 KB | Output is correct |
150 | Correct | 13 ms | 12280 KB | Output is correct |
151 | Correct | 14 ms | 12280 KB | Output is correct |
152 | Correct | 13 ms | 12152 KB | Output is correct |
153 | Correct | 12 ms | 12152 KB | Output is correct |
154 | Correct | 13 ms | 12156 KB | Output is correct |
155 | Correct | 240 ms | 30856 KB | Output is correct |
156 | Correct | 214 ms | 31112 KB | Output is correct |
157 | Correct | 210 ms | 29936 KB | Output is correct |
158 | Correct | 198 ms | 28272 KB | Output is correct |
159 | Correct | 187 ms | 26136 KB | Output is correct |
160 | Correct | 224 ms | 25176 KB | Output is correct |
161 | Correct | 204 ms | 24740 KB | Output is correct |
162 | Correct | 155 ms | 24120 KB | Output is correct |
163 | Correct | 175 ms | 24000 KB | Output is correct |
164 | Correct | 190 ms | 23792 KB | Output is correct |
165 | Correct | 148 ms | 23492 KB | Output is correct |
166 | Correct | 131 ms | 23412 KB | Output is correct |
167 | Correct | 146 ms | 23372 KB | Output is correct |
168 | Correct | 142 ms | 25460 KB | Output is correct |
169 | Correct | 231 ms | 34164 KB | Output is correct |
170 | Correct | 260 ms | 32812 KB | Output is correct |
171 | Correct | 229 ms | 32764 KB | Output is correct |
172 | Correct | 202 ms | 31372 KB | Output is correct |
173 | Correct | 209 ms | 28144 KB | Output is correct |
174 | Correct | 208 ms | 28020 KB | Output is correct |
175 | Correct | 199 ms | 28020 KB | Output is correct |
176 | Correct | 162 ms | 26488 KB | Output is correct |
177 | Correct | 137 ms | 24952 KB | Output is correct |
178 | Correct | 177 ms | 29680 KB | Output is correct |
179 | Correct | 196 ms | 29936 KB | Output is correct |
180 | Correct | 212 ms | 28644 KB | Output is correct |
181 | Correct | 250 ms | 28660 KB | Output is correct |
182 | Correct | 15 ms | 12152 KB | Output is correct |
183 | Correct | 17 ms | 12152 KB | Output is correct |
184 | Correct | 13 ms | 12280 KB | Output is correct |
185 | Correct | 14 ms | 12280 KB | Output is correct |
186 | Correct | 13 ms | 12280 KB | Output is correct |
187 | Correct | 13 ms | 12280 KB | Output is correct |
188 | Correct | 13 ms | 12280 KB | Output is correct |
189 | Correct | 13 ms | 12280 KB | Output is correct |
190 | Correct | 14 ms | 12280 KB | Output is correct |
191 | Correct | 13 ms | 12284 KB | Output is correct |
192 | Correct | 13 ms | 12024 KB | Output is correct |
193 | Correct | 14 ms | 12280 KB | Output is correct |
194 | Correct | 13 ms | 12280 KB | Output is correct |
195 | Correct | 14 ms | 12280 KB | Output is correct |
196 | Correct | 13 ms | 12224 KB | Output is correct |
197 | Correct | 13 ms | 12280 KB | Output is correct |
198 | Correct | 14 ms | 12280 KB | Output is correct |
199 | Correct | 13 ms | 12280 KB | Output is correct |
200 | Correct | 14 ms | 12280 KB | Output is correct |
201 | Correct | 14 ms | 12280 KB | Output is correct |
202 | Correct | 14 ms | 12156 KB | Output is correct |
203 | Correct | 14 ms | 12252 KB | Output is correct |
204 | Correct | 14 ms | 12280 KB | Output is correct |
205 | Correct | 14 ms | 12280 KB | Output is correct |
206 | Correct | 14 ms | 12152 KB | Output is correct |
207 | Correct | 14 ms | 12280 KB | Output is correct |
208 | Correct | 16 ms | 12152 KB | Output is correct |
209 | Correct | 17 ms | 13732 KB | Output is correct |
210 | Correct | 125 ms | 23012 KB | Output is correct |
211 | Correct | 174 ms | 27632 KB | Output is correct |
212 | Correct | 191 ms | 29608 KB | Output is correct |
213 | Correct | 206 ms | 31044 KB | Output is correct |
214 | Correct | 90 ms | 25020 KB | Output is correct |
215 | Correct | 92 ms | 24388 KB | Output is correct |
216 | Correct | 219 ms | 28952 KB | Output is correct |
217 | Correct | 169 ms | 26736 KB | Output is correct |
218 | Correct | 152 ms | 24300 KB | Output is correct |
219 | Correct | 142 ms | 23796 KB | Output is correct |
220 | Correct | 157 ms | 23512 KB | Output is correct |
221 | Correct | 138 ms | 23284 KB | Output is correct |
222 | Correct | 138 ms | 24312 KB | Output is correct |
223 | Correct | 252 ms | 29172 KB | Output is correct |
224 | Correct | 265 ms | 28528 KB | Output is correct |
225 | Correct | 192 ms | 26192 KB | Output is correct |
226 | Correct | 175 ms | 25944 KB | Output is correct |
227 | Correct | 233 ms | 25916 KB | Output is correct |
228 | Correct | 199 ms | 24840 KB | Output is correct |
229 | Correct | 134 ms | 23652 KB | Output is correct |
230 | Correct | 185 ms | 26384 KB | Output is correct |
231 | Correct | 173 ms | 26308 KB | Output is correct |