Submission #1061983

# Submission time Handle Problem Language Result Execution time Memory
1061983 2024-08-16T16:17:46 Z AlperenT_ Duathlon (APIO18_duathlon) C++17
100 / 100
99 ms 60104 KB
#include <bits/stdc++.h>
 
#pragma GCC optimize("unroll-loops","O3")
#define pb push_back
#define F first
#define S second 
#define all(a) a.begin(),a.end()
#define pii pair <int,int>
#define ld long double 
#define int long long 
#define sz(v) (int)v.size()
#define rep(i , a , b) for(int i=a;i <= b;i++)
#define per(i, a , b) for(int i=a;i >= b;i--)
using namespace std ;
const int maxn = 5e5 + 10 , maxq = 1e5 , lg = 22 , sq = 333   , inf = 1e9 +100 , maxk = 2022 , mod = 998244353;
int n ,m ,ans = 0 , c =0   , dis[maxn] , cnt  , mx[maxn]  , m1[maxn] , m2[maxn]   ,w[maxn], sb[maxn]  ;
vector <int >G[maxn] ;
vector <int> st , N[maxn] ; 
void d1(int v , int p =0 ){
    c+= (v<=n) ;;
    m1[v] =1  ;
    for(int u : N[v]){
        if(u == p)continue ; 
        d1(u,v) ; 
    }
}
void add(int v, int u){
    N[v].pb(u) ;
    N[u].pb(v) ; 
}

void d2(int v){
    m2[v] = 1 ;
    mx[v] = dis[v] ;
    for(int u : G[v]){
        if(m2[u] == 1){
            mx[v] = min(mx[v] , dis[u]) ; 
            continue ; 
        }
        int ls = st.back() ; 
        dis[u] = dis[v] + 1; 
        d2(u) ;
        mx[v] = min(mx[v] ,mx[u]) ;
        if(mx[u] == dis[v]){
            add(cnt ,v) ;
            while(st.back() != ls){
                add(cnt , st.back()) ;
                st.pop_back() ; 
            }
            cnt++ ;
        } 
    }
    st.pb(v) ;
}
void dfs(int v ,int p =0){
    sb[v] = (v <= n) ; 
    for(int u : N[v]){
        if(u == p)continue ;
        dfs(u ,v) ;
        sb[v] += sb[u] ; 
    }
    int sm =0 ;
    sm += c*(c-1)/2 ;
    for(int u : N[v]){
        if(u == p){
            int x = c-sb[v] ; 
            sm-= x*(x-1)/2 ;
        }else{
            sm -= sb[u]*(sb[u]-1)/2 ; 
        }
    }
    ans += sm * w[v] ;
}

signed main() {
    ios::sync_with_stdio(false); cin.tie(0); 
    cin >> n >> m ;
    cnt = n+1 ; 
    rep(i,1,m){
        int v , u ;
        cin >> v >> u ; 
        G[v].pb(u) ;
        G[u].pb(v) ;
    }
    st.pb(0) ; 
    rep(i ,1, n){
        if(m2[i] == 1)continue ;
        d2(i) ;
    }
    rep(i ,1 ,2*n){
        if(i <= n)w[i] = -1 ;
        else w[i] = sz(N[i]) ; 
    }
    rep(i ,1 ,2*n){
        if(m1[i] == 1)continue ; 
        c =0 ;
        d1(i) ; 
        if(c == 0)continue ; 
       dfs(i) ; 
    }
    cout << ans*2 << "\n" ; 
}
/*

*/
# Verdict Execution time Memory Grader output
1 Correct 4 ms 31320 KB Output is correct
2 Correct 4 ms 31404 KB Output is correct
3 Correct 4 ms 31324 KB Output is correct
4 Correct 4 ms 31324 KB Output is correct
5 Correct 4 ms 31364 KB Output is correct
6 Correct 4 ms 31360 KB Output is correct
7 Correct 4 ms 31324 KB Output is correct
8 Correct 4 ms 31416 KB Output is correct
9 Correct 4 ms 31324 KB Output is correct
10 Correct 4 ms 31324 KB Output is correct
11 Correct 4 ms 31404 KB Output is correct
12 Correct 4 ms 31324 KB Output is correct
13 Correct 4 ms 31436 KB Output is correct
14 Correct 4 ms 31324 KB Output is correct
15 Correct 4 ms 31324 KB Output is correct
16 Correct 4 ms 31324 KB Output is correct
17 Correct 4 ms 31324 KB Output is correct
18 Correct 5 ms 31324 KB Output is correct
19 Correct 4 ms 31324 KB Output is correct
20 Correct 4 ms 31324 KB Output is correct
21 Correct 4 ms 31324 KB Output is correct
22 Correct 4 ms 31324 KB Output is correct
23 Correct 5 ms 31320 KB Output is correct
24 Correct 7 ms 31324 KB Output is correct
25 Correct 5 ms 31324 KB Output is correct
26 Correct 4 ms 31324 KB Output is correct
27 Correct 5 ms 31324 KB Output is correct
28 Correct 5 ms 31320 KB Output is correct
29 Correct 4 ms 31324 KB Output is correct
30 Correct 4 ms 31324 KB Output is correct
31 Correct 4 ms 31324 KB Output is correct
32 Correct 4 ms 31324 KB Output is correct
33 Correct 4 ms 31324 KB Output is correct
34 Correct 4 ms 31320 KB Output is correct
35 Correct 5 ms 31320 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 31320 KB Output is correct
2 Correct 4 ms 31404 KB Output is correct
3 Correct 4 ms 31324 KB Output is correct
4 Correct 4 ms 31324 KB Output is correct
5 Correct 4 ms 31364 KB Output is correct
6 Correct 4 ms 31360 KB Output is correct
7 Correct 4 ms 31324 KB Output is correct
8 Correct 4 ms 31416 KB Output is correct
9 Correct 4 ms 31324 KB Output is correct
10 Correct 4 ms 31324 KB Output is correct
11 Correct 4 ms 31404 KB Output is correct
12 Correct 4 ms 31324 KB Output is correct
13 Correct 4 ms 31436 KB Output is correct
14 Correct 4 ms 31324 KB Output is correct
15 Correct 4 ms 31324 KB Output is correct
16 Correct 4 ms 31324 KB Output is correct
17 Correct 4 ms 31324 KB Output is correct
18 Correct 5 ms 31324 KB Output is correct
19 Correct 4 ms 31324 KB Output is correct
20 Correct 4 ms 31324 KB Output is correct
21 Correct 4 ms 31324 KB Output is correct
22 Correct 4 ms 31324 KB Output is correct
23 Correct 5 ms 31320 KB Output is correct
24 Correct 7 ms 31324 KB Output is correct
25 Correct 5 ms 31324 KB Output is correct
26 Correct 4 ms 31324 KB Output is correct
27 Correct 5 ms 31324 KB Output is correct
28 Correct 5 ms 31320 KB Output is correct
29 Correct 4 ms 31324 KB Output is correct
30 Correct 4 ms 31324 KB Output is correct
31 Correct 4 ms 31324 KB Output is correct
32 Correct 4 ms 31324 KB Output is correct
33 Correct 4 ms 31324 KB Output is correct
34 Correct 4 ms 31320 KB Output is correct
35 Correct 5 ms 31320 KB Output is correct
36 Correct 4 ms 31324 KB Output is correct
37 Correct 4 ms 31324 KB Output is correct
38 Correct 4 ms 31324 KB Output is correct
39 Correct 4 ms 31324 KB Output is correct
40 Correct 4 ms 31324 KB Output is correct
41 Correct 4 ms 31324 KB Output is correct
42 Correct 4 ms 31408 KB Output is correct
43 Correct 5 ms 31404 KB Output is correct
44 Correct 5 ms 31320 KB Output is correct
45 Correct 4 ms 31324 KB Output is correct
46 Correct 4 ms 31324 KB Output is correct
47 Correct 5 ms 31324 KB Output is correct
48 Correct 4 ms 31324 KB Output is correct
49 Correct 4 ms 31324 KB Output is correct
50 Correct 4 ms 31320 KB Output is correct
51 Correct 4 ms 31324 KB Output is correct
52 Correct 4 ms 31432 KB Output is correct
53 Correct 5 ms 31324 KB Output is correct
54 Correct 4 ms 31324 KB Output is correct
55 Correct 4 ms 31324 KB Output is correct
56 Correct 4 ms 31332 KB Output is correct
57 Correct 5 ms 31324 KB Output is correct
58 Correct 4 ms 31320 KB Output is correct
59 Correct 5 ms 31436 KB Output is correct
60 Correct 4 ms 31368 KB Output is correct
61 Correct 4 ms 31324 KB Output is correct
62 Correct 4 ms 31356 KB Output is correct
63 Correct 4 ms 31324 KB Output is correct
64 Correct 5 ms 31324 KB Output is correct
65 Correct 4 ms 31444 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 52 ms 60104 KB Output is correct
2 Correct 50 ms 60104 KB Output is correct
3 Correct 53 ms 54984 KB Output is correct
4 Correct 55 ms 58904 KB Output is correct
5 Correct 57 ms 53452 KB Output is correct
6 Correct 52 ms 54732 KB Output is correct
7 Correct 53 ms 52772 KB Output is correct
8 Correct 60 ms 53196 KB Output is correct
9 Correct 56 ms 51280 KB Output is correct
10 Correct 53 ms 51916 KB Output is correct
11 Correct 51 ms 49100 KB Output is correct
12 Correct 48 ms 48852 KB Output is correct
13 Correct 42 ms 48584 KB Output is correct
14 Correct 42 ms 48428 KB Output is correct
15 Correct 32 ms 47356 KB Output is correct
16 Correct 36 ms 47148 KB Output is correct
17 Correct 8 ms 40668 KB Output is correct
18 Correct 8 ms 40668 KB Output is correct
19 Correct 8 ms 40668 KB Output is correct
20 Correct 8 ms 40668 KB Output is correct
21 Correct 8 ms 40756 KB Output is correct
22 Correct 9 ms 40696 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 31356 KB Output is correct
2 Correct 6 ms 31324 KB Output is correct
3 Correct 7 ms 31324 KB Output is correct
4 Correct 5 ms 31580 KB Output is correct
5 Correct 5 ms 31580 KB Output is correct
6 Correct 5 ms 31580 KB Output is correct
7 Correct 7 ms 31580 KB Output is correct
8 Correct 5 ms 31580 KB Output is correct
9 Correct 5 ms 31360 KB Output is correct
10 Correct 8 ms 31368 KB Output is correct
11 Correct 5 ms 31320 KB Output is correct
12 Correct 5 ms 31408 KB Output is correct
13 Correct 5 ms 31324 KB Output is correct
14 Correct 6 ms 31324 KB Output is correct
15 Correct 7 ms 31324 KB Output is correct
16 Correct 5 ms 31436 KB Output is correct
17 Correct 7 ms 31576 KB Output is correct
18 Correct 6 ms 31580 KB Output is correct
19 Correct 5 ms 31428 KB Output is correct
20 Correct 5 ms 31580 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 70 ms 52424 KB Output is correct
2 Correct 57 ms 52560 KB Output is correct
3 Correct 70 ms 52560 KB Output is correct
4 Correct 62 ms 52452 KB Output is correct
5 Correct 75 ms 52464 KB Output is correct
6 Correct 60 ms 59732 KB Output is correct
7 Correct 72 ms 57684 KB Output is correct
8 Correct 72 ms 56336 KB Output is correct
9 Correct 70 ms 55016 KB Output is correct
10 Correct 61 ms 52564 KB Output is correct
11 Correct 81 ms 53592 KB Output is correct
12 Correct 66 ms 53776 KB Output is correct
13 Correct 66 ms 53720 KB Output is correct
14 Correct 68 ms 52912 KB Output is correct
15 Correct 59 ms 52172 KB Output is correct
16 Correct 47 ms 47308 KB Output is correct
17 Correct 51 ms 53988 KB Output is correct
18 Correct 41 ms 54036 KB Output is correct
19 Correct 53 ms 54468 KB Output is correct
20 Correct 59 ms 54176 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 31324 KB Output is correct
2 Correct 5 ms 31324 KB Output is correct
3 Correct 5 ms 31420 KB Output is correct
4 Correct 5 ms 31324 KB Output is correct
5 Correct 6 ms 31324 KB Output is correct
6 Correct 6 ms 31424 KB Output is correct
7 Correct 7 ms 31324 KB Output is correct
8 Correct 7 ms 31324 KB Output is correct
9 Correct 6 ms 31360 KB Output is correct
10 Correct 6 ms 31324 KB Output is correct
11 Correct 7 ms 31324 KB Output is correct
12 Correct 7 ms 31580 KB Output is correct
13 Correct 6 ms 31580 KB Output is correct
14 Correct 5 ms 31580 KB Output is correct
15 Correct 6 ms 31428 KB Output is correct
16 Correct 5 ms 31324 KB Output is correct
17 Correct 5 ms 31324 KB Output is correct
18 Correct 6 ms 31408 KB Output is correct
19 Correct 6 ms 31364 KB Output is correct
20 Correct 6 ms 31324 KB Output is correct
21 Correct 5 ms 31320 KB Output is correct
22 Correct 5 ms 31324 KB Output is correct
23 Correct 6 ms 31372 KB Output is correct
24 Correct 6 ms 31324 KB Output is correct
25 Correct 5 ms 31324 KB Output is correct
26 Correct 5 ms 31472 KB Output is correct
27 Correct 5 ms 31580 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 57 ms 52576 KB Output is correct
2 Correct 87 ms 52124 KB Output is correct
3 Correct 59 ms 52048 KB Output is correct
4 Correct 60 ms 49216 KB Output is correct
5 Correct 62 ms 48552 KB Output is correct
6 Correct 65 ms 47932 KB Output is correct
7 Correct 50 ms 47832 KB Output is correct
8 Correct 68 ms 47584 KB Output is correct
9 Correct 44 ms 47700 KB Output is correct
10 Correct 51 ms 47440 KB Output is correct
11 Correct 46 ms 47444 KB Output is correct
12 Correct 46 ms 47552 KB Output is correct
13 Correct 47 ms 47700 KB Output is correct
14 Correct 47 ms 50384 KB Output is correct
15 Correct 66 ms 57680 KB Output is correct
16 Correct 64 ms 55892 KB Output is correct
17 Correct 64 ms 56404 KB Output is correct
18 Correct 82 ms 54864 KB Output is correct
19 Correct 92 ms 49328 KB Output is correct
20 Correct 69 ms 50760 KB Output is correct
21 Correct 75 ms 50768 KB Output is correct
22 Correct 58 ms 49988 KB Output is correct
23 Correct 46 ms 49392 KB Output is correct
24 Correct 78 ms 53456 KB Output is correct
25 Correct 86 ms 53708 KB Output is correct
26 Correct 73 ms 53148 KB Output is correct
27 Correct 72 ms 53148 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 31320 KB Output is correct
2 Correct 4 ms 31404 KB Output is correct
3 Correct 4 ms 31324 KB Output is correct
4 Correct 4 ms 31324 KB Output is correct
5 Correct 4 ms 31364 KB Output is correct
6 Correct 4 ms 31360 KB Output is correct
7 Correct 4 ms 31324 KB Output is correct
8 Correct 4 ms 31416 KB Output is correct
9 Correct 4 ms 31324 KB Output is correct
10 Correct 4 ms 31324 KB Output is correct
11 Correct 4 ms 31404 KB Output is correct
12 Correct 4 ms 31324 KB Output is correct
13 Correct 4 ms 31436 KB Output is correct
14 Correct 4 ms 31324 KB Output is correct
15 Correct 4 ms 31324 KB Output is correct
16 Correct 4 ms 31324 KB Output is correct
17 Correct 4 ms 31324 KB Output is correct
18 Correct 5 ms 31324 KB Output is correct
19 Correct 4 ms 31324 KB Output is correct
20 Correct 4 ms 31324 KB Output is correct
21 Correct 4 ms 31324 KB Output is correct
22 Correct 4 ms 31324 KB Output is correct
23 Correct 5 ms 31320 KB Output is correct
24 Correct 7 ms 31324 KB Output is correct
25 Correct 5 ms 31324 KB Output is correct
26 Correct 4 ms 31324 KB Output is correct
27 Correct 5 ms 31324 KB Output is correct
28 Correct 5 ms 31320 KB Output is correct
29 Correct 4 ms 31324 KB Output is correct
30 Correct 4 ms 31324 KB Output is correct
31 Correct 4 ms 31324 KB Output is correct
32 Correct 4 ms 31324 KB Output is correct
33 Correct 4 ms 31324 KB Output is correct
34 Correct 4 ms 31320 KB Output is correct
35 Correct 5 ms 31320 KB Output is correct
36 Correct 4 ms 31324 KB Output is correct
37 Correct 4 ms 31324 KB Output is correct
38 Correct 4 ms 31324 KB Output is correct
39 Correct 4 ms 31324 KB Output is correct
40 Correct 4 ms 31324 KB Output is correct
41 Correct 4 ms 31324 KB Output is correct
42 Correct 4 ms 31408 KB Output is correct
43 Correct 5 ms 31404 KB Output is correct
44 Correct 5 ms 31320 KB Output is correct
45 Correct 4 ms 31324 KB Output is correct
46 Correct 4 ms 31324 KB Output is correct
47 Correct 5 ms 31324 KB Output is correct
48 Correct 4 ms 31324 KB Output is correct
49 Correct 4 ms 31324 KB Output is correct
50 Correct 4 ms 31320 KB Output is correct
51 Correct 4 ms 31324 KB Output is correct
52 Correct 4 ms 31432 KB Output is correct
53 Correct 5 ms 31324 KB Output is correct
54 Correct 4 ms 31324 KB Output is correct
55 Correct 4 ms 31324 KB Output is correct
56 Correct 4 ms 31332 KB Output is correct
57 Correct 5 ms 31324 KB Output is correct
58 Correct 4 ms 31320 KB Output is correct
59 Correct 5 ms 31436 KB Output is correct
60 Correct 4 ms 31368 KB Output is correct
61 Correct 4 ms 31324 KB Output is correct
62 Correct 4 ms 31356 KB Output is correct
63 Correct 4 ms 31324 KB Output is correct
64 Correct 5 ms 31324 KB Output is correct
65 Correct 4 ms 31444 KB Output is correct
66 Correct 6 ms 31324 KB Output is correct
67 Correct 5 ms 31324 KB Output is correct
68 Correct 7 ms 31324 KB Output is correct
69 Correct 5 ms 31580 KB Output is correct
70 Correct 7 ms 31580 KB Output is correct
71 Correct 4 ms 31548 KB Output is correct
72 Correct 6 ms 31324 KB Output is correct
73 Correct 5 ms 31408 KB Output is correct
74 Correct 4 ms 31324 KB Output is correct
75 Correct 4 ms 31548 KB Output is correct
76 Correct 5 ms 31320 KB Output is correct
77 Correct 5 ms 31324 KB Output is correct
78 Correct 4 ms 31324 KB Output is correct
79 Correct 6 ms 31320 KB Output is correct
80 Correct 6 ms 31360 KB Output is correct
81 Correct 4 ms 31324 KB Output is correct
82 Correct 5 ms 31580 KB Output is correct
83 Correct 6 ms 31580 KB Output is correct
84 Correct 5 ms 31580 KB Output is correct
85 Correct 5 ms 31580 KB Output is correct
86 Correct 5 ms 31324 KB Output is correct
87 Correct 4 ms 31324 KB Output is correct
88 Correct 5 ms 31320 KB Output is correct
89 Correct 5 ms 31324 KB Output is correct
90 Correct 5 ms 31412 KB Output is correct
91 Correct 6 ms 31320 KB Output is correct
92 Correct 7 ms 31576 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 31320 KB Output is correct
2 Correct 4 ms 31404 KB Output is correct
3 Correct 4 ms 31324 KB Output is correct
4 Correct 4 ms 31324 KB Output is correct
5 Correct 4 ms 31364 KB Output is correct
6 Correct 4 ms 31360 KB Output is correct
7 Correct 4 ms 31324 KB Output is correct
8 Correct 4 ms 31416 KB Output is correct
9 Correct 4 ms 31324 KB Output is correct
10 Correct 4 ms 31324 KB Output is correct
11 Correct 4 ms 31404 KB Output is correct
12 Correct 4 ms 31324 KB Output is correct
13 Correct 4 ms 31436 KB Output is correct
14 Correct 4 ms 31324 KB Output is correct
15 Correct 4 ms 31324 KB Output is correct
16 Correct 4 ms 31324 KB Output is correct
17 Correct 4 ms 31324 KB Output is correct
18 Correct 5 ms 31324 KB Output is correct
19 Correct 4 ms 31324 KB Output is correct
20 Correct 4 ms 31324 KB Output is correct
21 Correct 4 ms 31324 KB Output is correct
22 Correct 4 ms 31324 KB Output is correct
23 Correct 5 ms 31320 KB Output is correct
24 Correct 7 ms 31324 KB Output is correct
25 Correct 5 ms 31324 KB Output is correct
26 Correct 4 ms 31324 KB Output is correct
27 Correct 5 ms 31324 KB Output is correct
28 Correct 5 ms 31320 KB Output is correct
29 Correct 4 ms 31324 KB Output is correct
30 Correct 4 ms 31324 KB Output is correct
31 Correct 4 ms 31324 KB Output is correct
32 Correct 4 ms 31324 KB Output is correct
33 Correct 4 ms 31324 KB Output is correct
34 Correct 4 ms 31320 KB Output is correct
35 Correct 5 ms 31320 KB Output is correct
36 Correct 4 ms 31324 KB Output is correct
37 Correct 4 ms 31324 KB Output is correct
38 Correct 4 ms 31324 KB Output is correct
39 Correct 4 ms 31324 KB Output is correct
40 Correct 4 ms 31324 KB Output is correct
41 Correct 4 ms 31324 KB Output is correct
42 Correct 4 ms 31408 KB Output is correct
43 Correct 5 ms 31404 KB Output is correct
44 Correct 5 ms 31320 KB Output is correct
45 Correct 4 ms 31324 KB Output is correct
46 Correct 4 ms 31324 KB Output is correct
47 Correct 5 ms 31324 KB Output is correct
48 Correct 4 ms 31324 KB Output is correct
49 Correct 4 ms 31324 KB Output is correct
50 Correct 4 ms 31320 KB Output is correct
51 Correct 4 ms 31324 KB Output is correct
52 Correct 4 ms 31432 KB Output is correct
53 Correct 5 ms 31324 KB Output is correct
54 Correct 4 ms 31324 KB Output is correct
55 Correct 4 ms 31324 KB Output is correct
56 Correct 4 ms 31332 KB Output is correct
57 Correct 5 ms 31324 KB Output is correct
58 Correct 4 ms 31320 KB Output is correct
59 Correct 5 ms 31436 KB Output is correct
60 Correct 4 ms 31368 KB Output is correct
61 Correct 4 ms 31324 KB Output is correct
62 Correct 4 ms 31356 KB Output is correct
63 Correct 4 ms 31324 KB Output is correct
64 Correct 5 ms 31324 KB Output is correct
65 Correct 4 ms 31444 KB Output is correct
66 Correct 52 ms 60104 KB Output is correct
67 Correct 50 ms 60104 KB Output is correct
68 Correct 53 ms 54984 KB Output is correct
69 Correct 55 ms 58904 KB Output is correct
70 Correct 57 ms 53452 KB Output is correct
71 Correct 52 ms 54732 KB Output is correct
72 Correct 53 ms 52772 KB Output is correct
73 Correct 60 ms 53196 KB Output is correct
74 Correct 56 ms 51280 KB Output is correct
75 Correct 53 ms 51916 KB Output is correct
76 Correct 51 ms 49100 KB Output is correct
77 Correct 48 ms 48852 KB Output is correct
78 Correct 42 ms 48584 KB Output is correct
79 Correct 42 ms 48428 KB Output is correct
80 Correct 32 ms 47356 KB Output is correct
81 Correct 36 ms 47148 KB Output is correct
82 Correct 8 ms 40668 KB Output is correct
83 Correct 8 ms 40668 KB Output is correct
84 Correct 8 ms 40668 KB Output is correct
85 Correct 8 ms 40668 KB Output is correct
86 Correct 8 ms 40756 KB Output is correct
87 Correct 9 ms 40696 KB Output is correct
88 Correct 5 ms 31356 KB Output is correct
89 Correct 6 ms 31324 KB Output is correct
90 Correct 7 ms 31324 KB Output is correct
91 Correct 5 ms 31580 KB Output is correct
92 Correct 5 ms 31580 KB Output is correct
93 Correct 5 ms 31580 KB Output is correct
94 Correct 7 ms 31580 KB Output is correct
95 Correct 5 ms 31580 KB Output is correct
96 Correct 5 ms 31360 KB Output is correct
97 Correct 8 ms 31368 KB Output is correct
98 Correct 5 ms 31320 KB Output is correct
99 Correct 5 ms 31408 KB Output is correct
100 Correct 5 ms 31324 KB Output is correct
101 Correct 6 ms 31324 KB Output is correct
102 Correct 7 ms 31324 KB Output is correct
103 Correct 5 ms 31436 KB Output is correct
104 Correct 7 ms 31576 KB Output is correct
105 Correct 6 ms 31580 KB Output is correct
106 Correct 5 ms 31428 KB Output is correct
107 Correct 5 ms 31580 KB Output is correct
108 Correct 70 ms 52424 KB Output is correct
109 Correct 57 ms 52560 KB Output is correct
110 Correct 70 ms 52560 KB Output is correct
111 Correct 62 ms 52452 KB Output is correct
112 Correct 75 ms 52464 KB Output is correct
113 Correct 60 ms 59732 KB Output is correct
114 Correct 72 ms 57684 KB Output is correct
115 Correct 72 ms 56336 KB Output is correct
116 Correct 70 ms 55016 KB Output is correct
117 Correct 61 ms 52564 KB Output is correct
118 Correct 81 ms 53592 KB Output is correct
119 Correct 66 ms 53776 KB Output is correct
120 Correct 66 ms 53720 KB Output is correct
121 Correct 68 ms 52912 KB Output is correct
122 Correct 59 ms 52172 KB Output is correct
123 Correct 47 ms 47308 KB Output is correct
124 Correct 51 ms 53988 KB Output is correct
125 Correct 41 ms 54036 KB Output is correct
126 Correct 53 ms 54468 KB Output is correct
127 Correct 59 ms 54176 KB Output is correct
128 Correct 5 ms 31324 KB Output is correct
129 Correct 5 ms 31324 KB Output is correct
130 Correct 5 ms 31420 KB Output is correct
131 Correct 5 ms 31324 KB Output is correct
132 Correct 6 ms 31324 KB Output is correct
133 Correct 6 ms 31424 KB Output is correct
134 Correct 7 ms 31324 KB Output is correct
135 Correct 7 ms 31324 KB Output is correct
136 Correct 6 ms 31360 KB Output is correct
137 Correct 6 ms 31324 KB Output is correct
138 Correct 7 ms 31324 KB Output is correct
139 Correct 7 ms 31580 KB Output is correct
140 Correct 6 ms 31580 KB Output is correct
141 Correct 5 ms 31580 KB Output is correct
142 Correct 6 ms 31428 KB Output is correct
143 Correct 5 ms 31324 KB Output is correct
144 Correct 5 ms 31324 KB Output is correct
145 Correct 6 ms 31408 KB Output is correct
146 Correct 6 ms 31364 KB Output is correct
147 Correct 6 ms 31324 KB Output is correct
148 Correct 5 ms 31320 KB Output is correct
149 Correct 5 ms 31324 KB Output is correct
150 Correct 6 ms 31372 KB Output is correct
151 Correct 6 ms 31324 KB Output is correct
152 Correct 5 ms 31324 KB Output is correct
153 Correct 5 ms 31472 KB Output is correct
154 Correct 5 ms 31580 KB Output is correct
155 Correct 57 ms 52576 KB Output is correct
156 Correct 87 ms 52124 KB Output is correct
157 Correct 59 ms 52048 KB Output is correct
158 Correct 60 ms 49216 KB Output is correct
159 Correct 62 ms 48552 KB Output is correct
160 Correct 65 ms 47932 KB Output is correct
161 Correct 50 ms 47832 KB Output is correct
162 Correct 68 ms 47584 KB Output is correct
163 Correct 44 ms 47700 KB Output is correct
164 Correct 51 ms 47440 KB Output is correct
165 Correct 46 ms 47444 KB Output is correct
166 Correct 46 ms 47552 KB Output is correct
167 Correct 47 ms 47700 KB Output is correct
168 Correct 47 ms 50384 KB Output is correct
169 Correct 66 ms 57680 KB Output is correct
170 Correct 64 ms 55892 KB Output is correct
171 Correct 64 ms 56404 KB Output is correct
172 Correct 82 ms 54864 KB Output is correct
173 Correct 92 ms 49328 KB Output is correct
174 Correct 69 ms 50760 KB Output is correct
175 Correct 75 ms 50768 KB Output is correct
176 Correct 58 ms 49988 KB Output is correct
177 Correct 46 ms 49392 KB Output is correct
178 Correct 78 ms 53456 KB Output is correct
179 Correct 86 ms 53708 KB Output is correct
180 Correct 73 ms 53148 KB Output is correct
181 Correct 72 ms 53148 KB Output is correct
182 Correct 6 ms 31324 KB Output is correct
183 Correct 5 ms 31324 KB Output is correct
184 Correct 7 ms 31324 KB Output is correct
185 Correct 5 ms 31580 KB Output is correct
186 Correct 7 ms 31580 KB Output is correct
187 Correct 4 ms 31548 KB Output is correct
188 Correct 6 ms 31324 KB Output is correct
189 Correct 5 ms 31408 KB Output is correct
190 Correct 4 ms 31324 KB Output is correct
191 Correct 4 ms 31548 KB Output is correct
192 Correct 5 ms 31320 KB Output is correct
193 Correct 5 ms 31324 KB Output is correct
194 Correct 4 ms 31324 KB Output is correct
195 Correct 6 ms 31320 KB Output is correct
196 Correct 6 ms 31360 KB Output is correct
197 Correct 4 ms 31324 KB Output is correct
198 Correct 5 ms 31580 KB Output is correct
199 Correct 6 ms 31580 KB Output is correct
200 Correct 5 ms 31580 KB Output is correct
201 Correct 5 ms 31580 KB Output is correct
202 Correct 5 ms 31324 KB Output is correct
203 Correct 4 ms 31324 KB Output is correct
204 Correct 5 ms 31320 KB Output is correct
205 Correct 5 ms 31324 KB Output is correct
206 Correct 5 ms 31412 KB Output is correct
207 Correct 6 ms 31320 KB Output is correct
208 Correct 7 ms 31576 KB Output is correct
209 Correct 11 ms 40664 KB Output is correct
210 Correct 42 ms 46760 KB Output is correct
211 Correct 75 ms 52384 KB Output is correct
212 Correct 73 ms 57032 KB Output is correct
213 Correct 99 ms 60104 KB Output is correct
214 Correct 56 ms 49872 KB Output is correct
215 Correct 66 ms 49872 KB Output is correct
216 Correct 58 ms 51796 KB Output is correct
217 Correct 74 ms 50772 KB Output is correct
218 Correct 75 ms 49208 KB Output is correct
219 Correct 46 ms 48720 KB Output is correct
220 Correct 50 ms 48720 KB Output is correct
221 Correct 47 ms 48748 KB Output is correct
222 Correct 44 ms 50260 KB Output is correct
223 Correct 66 ms 54100 KB Output is correct
224 Correct 60 ms 52952 KB Output is correct
225 Correct 58 ms 50512 KB Output is correct
226 Correct 61 ms 50508 KB Output is correct
227 Correct 57 ms 50512 KB Output is correct
228 Correct 56 ms 49676 KB Output is correct
229 Correct 52 ms 49104 KB Output is correct
230 Correct 74 ms 50628 KB Output is correct
231 Correct 58 ms 50784 KB Output is correct