답안 #233854

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
233854 2020-05-22T02:03:29 Z gs18115 철인 이종 경기 (APIO18_duathlon) C++14
100 / 100
181 ms 36960 KB
#include<iostream>
#include<vector>
#include<algorithm>
#define ep emplace
#define eb emplace_back
#define fi first
#define se second
#define all(x) (x).begin(),(x).end()
using namespace std;
typedef long long ll;
typedef pair<int,int>pi;
typedef pair<ll,ll>pl;
const int inf=1e9+7;
const ll INF=1e18+7;
vector<int>adj[100010];
vector<vector<pi> >bcc;
vector<pi>stk;
vector<int>cur;
int disc[100010];
int dct;
bool arp[100010];
int dfs(int x,int p)
{
    cur.eb(x);
    int ret=disc[x]=++dct;
    int c=0;
    for(int&t:adj[x])
    {
        if(t==p)
            continue;
        if(disc[t]!=0)
        {
            ret=min(ret,disc[t]);
            if(disc[x]>disc[t])
                stk.eb(t,x);
        }
        else
        {
            stk.eb(x,t);
            int rt=dfs(t,x);
            if(rt>=disc[x])
            {
                vector<pi>cb;
                pi b(-1,-1);
                while(b!=pi(x,t))
                {
                    b=stk.back();
                    stk.pop_back();
                    cb.eb(b);
                }
                bcc.eb(cb);
                c++;
            }
            ret=min(ret,rt);
        }
    }
    if(c-(p==0?1:0)>0)
        arp[x]=1;
    return ret;
}
vector<int>adj2[200010];
int sz[200010],siz[200010];
int pa[200010];
void dfs2(int x,int p)
{
    pa[x]=p;
    sz[x]=siz[x];
    for(int&t:adj2[x])
        if(t!=p)
            dfs2(t,x),sz[x]+=sz[t];
    return;
}
int num[100010];
inline ll npr(int n,int r)
{
    ll ret=1;
    for(int i=n;i>n-r;i--)
        ret*=i;
    return ret;
}
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int n,m;
    cin>>n>>m;
    for(int i=0;i<m;i++)
    {
        int u,v;
        cin>>u>>v;
        adj[u].eb(v);
        adj[v].eb(u);
    }
    ll ans=0;
    for(int v=0;v++<n;)
    {
        if(disc[v]==0)
        {
            cur.clear();
            bcc.clear();
            bcc.eb(vector<pi>());
            dfs(v,0);
            int bct=(int)bcc.size()-1,vct=bct;
            if(bct==0)
                continue;
            for(int&t:cur)
                if(arp[t])
                    num[t]=++vct;
            for(int i=0;i++<vct;)
                adj2[i].clear(),siz[i]=1;
            for(int i=0;i++<bct;)
            {
                vector<int>curv;
                for(pi&t:bcc[i])
                    curv.eb(t.fi),curv.eb(t.se);
                sort(all(curv));
                curv.erase(unique(all(curv)),curv.end());
                siz[i]=(int)curv.size();
                for(int&t:curv)
                    if(arp[t])
                        adj2[i].eb(num[t]),adj2[num[t]].eb(i),siz[i]--;
            }
            dfs2(1,0);
            ll cans=0;
            for(int i=0;i++<bct;)
            {
                int nsz=siz[i]+(int)adj2[i].size()-1;
                for(int&t:adj2[i])
                    if(t!=pa[i])
                        cans+=nsz*npr(sz[t],2);
                if(pa[i]!=0)
                    cans+=nsz*npr(sz[1]-sz[i],2);
            }
            ans+=npr(sz[1],3)-cans;
        }
    }
    cout<<ans<<endl;
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 9 ms 7424 KB Output is correct
3 Correct 8 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 8 ms 7424 KB Output is correct
6 Correct 9 ms 7424 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 8 ms 7424 KB Output is correct
9 Correct 9 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 9 ms 7348 KB Output is correct
12 Correct 8 ms 7424 KB Output is correct
13 Correct 8 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 8 ms 7424 KB Output is correct
16 Correct 9 ms 7424 KB Output is correct
17 Correct 8 ms 7424 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 8 ms 7424 KB Output is correct
20 Correct 9 ms 7424 KB Output is correct
21 Correct 9 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 8 ms 7424 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
28 Correct 8 ms 7424 KB Output is correct
29 Correct 9 ms 7424 KB Output is correct
30 Correct 9 ms 7336 KB Output is correct
31 Correct 8 ms 7424 KB Output is correct
32 Correct 8 ms 7424 KB Output is correct
33 Correct 8 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 9 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 9 ms 7424 KB Output is correct
3 Correct 8 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 8 ms 7424 KB Output is correct
6 Correct 9 ms 7424 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 8 ms 7424 KB Output is correct
9 Correct 9 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 9 ms 7348 KB Output is correct
12 Correct 8 ms 7424 KB Output is correct
13 Correct 8 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 8 ms 7424 KB Output is correct
16 Correct 9 ms 7424 KB Output is correct
17 Correct 8 ms 7424 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 8 ms 7424 KB Output is correct
20 Correct 9 ms 7424 KB Output is correct
21 Correct 9 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 8 ms 7424 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
28 Correct 8 ms 7424 KB Output is correct
29 Correct 9 ms 7424 KB Output is correct
30 Correct 9 ms 7336 KB Output is correct
31 Correct 8 ms 7424 KB Output is correct
32 Correct 8 ms 7424 KB Output is correct
33 Correct 8 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 9 ms 7424 KB Output is correct
36 Correct 9 ms 7424 KB Output is correct
37 Correct 8 ms 7424 KB Output is correct
38 Correct 9 ms 7424 KB Output is correct
39 Correct 9 ms 7424 KB Output is correct
40 Correct 8 ms 7424 KB Output is correct
41 Correct 9 ms 7424 KB Output is correct
42 Correct 8 ms 7424 KB Output is correct
43 Correct 8 ms 7424 KB Output is correct
44 Correct 8 ms 7424 KB Output is correct
45 Correct 8 ms 7424 KB Output is correct
46 Correct 8 ms 7424 KB Output is correct
47 Correct 8 ms 7424 KB Output is correct
48 Correct 9 ms 7424 KB Output is correct
49 Correct 8 ms 7424 KB Output is correct
50 Correct 8 ms 7424 KB Output is correct
51 Correct 8 ms 7424 KB Output is correct
52 Correct 8 ms 7424 KB Output is correct
53 Correct 8 ms 7424 KB Output is correct
54 Correct 9 ms 7424 KB Output is correct
55 Correct 8 ms 7424 KB Output is correct
56 Correct 8 ms 7424 KB Output is correct
57 Correct 9 ms 7424 KB Output is correct
58 Correct 8 ms 7424 KB Output is correct
59 Correct 8 ms 7424 KB Output is correct
60 Correct 8 ms 7424 KB Output is correct
61 Correct 8 ms 7424 KB Output is correct
62 Correct 9 ms 7424 KB Output is correct
63 Correct 9 ms 7424 KB Output is correct
64 Correct 8 ms 7424 KB Output is correct
65 Correct 8 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 100 ms 28760 KB Output is correct
2 Correct 126 ms 28780 KB Output is correct
3 Correct 120 ms 26052 KB Output is correct
4 Correct 108 ms 29144 KB Output is correct
5 Correct 102 ms 22464 KB Output is correct
6 Correct 115 ms 26204 KB Output is correct
7 Correct 104 ms 18732 KB Output is correct
8 Correct 108 ms 22088 KB Output is correct
9 Correct 99 ms 15668 KB Output is correct
10 Correct 108 ms 18308 KB Output is correct
11 Correct 73 ms 12408 KB Output is correct
12 Correct 72 ms 12280 KB Output is correct
13 Correct 64 ms 12152 KB Output is correct
14 Correct 63 ms 12024 KB Output is correct
15 Correct 58 ms 11520 KB Output is correct
16 Correct 51 ms 11384 KB Output is correct
17 Correct 11 ms 7808 KB Output is correct
18 Correct 10 ms 7808 KB Output is correct
19 Correct 10 ms 7808 KB Output is correct
20 Correct 10 ms 7808 KB Output is correct
21 Correct 10 ms 7808 KB Output is correct
22 Correct 11 ms 7808 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7552 KB Output is correct
2 Correct 9 ms 7552 KB Output is correct
3 Correct 9 ms 7552 KB Output is correct
4 Correct 10 ms 7680 KB Output is correct
5 Correct 12 ms 7680 KB Output is correct
6 Correct 9 ms 7680 KB Output is correct
7 Correct 9 ms 7680 KB Output is correct
8 Correct 9 ms 7680 KB Output is correct
9 Correct 9 ms 7680 KB Output is correct
10 Correct 9 ms 7552 KB Output is correct
11 Correct 9 ms 7552 KB Output is correct
12 Correct 9 ms 7552 KB Output is correct
13 Correct 10 ms 7424 KB Output is correct
14 Correct 9 ms 7424 KB Output is correct
15 Correct 9 ms 7424 KB Output is correct
16 Correct 9 ms 7424 KB Output is correct
17 Correct 9 ms 7552 KB Output is correct
18 Correct 9 ms 7552 KB Output is correct
19 Correct 9 ms 7552 KB Output is correct
20 Correct 9 ms 7552 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 118 ms 23972 KB Output is correct
2 Correct 137 ms 25220 KB Output is correct
3 Correct 137 ms 25248 KB Output is correct
4 Correct 130 ms 25252 KB Output is correct
5 Correct 126 ms 25232 KB Output is correct
6 Correct 147 ms 36960 KB Output is correct
7 Correct 128 ms 31440 KB Output is correct
8 Correct 130 ms 29852 KB Output is correct
9 Correct 129 ms 28444 KB Output is correct
10 Correct 122 ms 20136 KB Output is correct
11 Correct 119 ms 23716 KB Output is correct
12 Correct 108 ms 16684 KB Output is correct
13 Correct 115 ms 16048 KB Output is correct
14 Correct 93 ms 12664 KB Output is correct
15 Correct 76 ms 12280 KB Output is correct
16 Correct 52 ms 11256 KB Output is correct
17 Correct 85 ms 23136 KB Output is correct
18 Correct 81 ms 23200 KB Output is correct
19 Correct 89 ms 23452 KB Output is correct
20 Correct 84 ms 23208 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7552 KB Output is correct
2 Correct 9 ms 7552 KB Output is correct
3 Correct 9 ms 7552 KB Output is correct
4 Correct 9 ms 7552 KB Output is correct
5 Correct 11 ms 7552 KB Output is correct
6 Correct 10 ms 7424 KB Output is correct
7 Correct 9 ms 7552 KB Output is correct
8 Correct 9 ms 7552 KB Output is correct
9 Correct 9 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 9 ms 7552 KB Output is correct
12 Correct 10 ms 7680 KB Output is correct
13 Correct 10 ms 7680 KB Output is correct
14 Correct 10 ms 7552 KB Output is correct
15 Correct 9 ms 7552 KB Output is correct
16 Correct 10 ms 7552 KB Output is correct
17 Correct 10 ms 7552 KB Output is correct
18 Correct 9 ms 7424 KB Output is correct
19 Correct 9 ms 7424 KB Output is correct
20 Correct 9 ms 7424 KB Output is correct
21 Correct 9 ms 7552 KB Output is correct
22 Correct 10 ms 7552 KB Output is correct
23 Correct 9 ms 7552 KB Output is correct
24 Correct 9 ms 7552 KB Output is correct
25 Correct 9 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 132 ms 24040 KB Output is correct
2 Correct 125 ms 25632 KB Output is correct
3 Correct 126 ms 23840 KB Output is correct
4 Correct 135 ms 21292 KB Output is correct
5 Correct 116 ms 18468 KB Output is correct
6 Correct 112 ms 17068 KB Output is correct
7 Correct 97 ms 16424 KB Output is correct
8 Correct 99 ms 15660 KB Output is correct
9 Correct 85 ms 15148 KB Output is correct
10 Correct 82 ms 15004 KB Output is correct
11 Correct 87 ms 14576 KB Output is correct
12 Correct 90 ms 14448 KB Output is correct
13 Correct 83 ms 14448 KB Output is correct
14 Correct 85 ms 17896 KB Output is correct
15 Correct 136 ms 30500 KB Output is correct
16 Correct 131 ms 28288 KB Output is correct
17 Correct 130 ms 28616 KB Output is correct
18 Correct 132 ms 26476 KB Output is correct
19 Correct 114 ms 20776 KB Output is correct
20 Correct 137 ms 17708 KB Output is correct
21 Correct 130 ms 15792 KB Output is correct
22 Correct 114 ms 12832 KB Output is correct
23 Correct 84 ms 12664 KB Output is correct
24 Correct 119 ms 23204 KB Output is correct
25 Correct 127 ms 23396 KB Output is correct
26 Correct 123 ms 21924 KB Output is correct
27 Correct 131 ms 21924 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 9 ms 7424 KB Output is correct
3 Correct 8 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 8 ms 7424 KB Output is correct
6 Correct 9 ms 7424 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 8 ms 7424 KB Output is correct
9 Correct 9 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 9 ms 7348 KB Output is correct
12 Correct 8 ms 7424 KB Output is correct
13 Correct 8 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 8 ms 7424 KB Output is correct
16 Correct 9 ms 7424 KB Output is correct
17 Correct 8 ms 7424 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 8 ms 7424 KB Output is correct
20 Correct 9 ms 7424 KB Output is correct
21 Correct 9 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 8 ms 7424 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
28 Correct 8 ms 7424 KB Output is correct
29 Correct 9 ms 7424 KB Output is correct
30 Correct 9 ms 7336 KB Output is correct
31 Correct 8 ms 7424 KB Output is correct
32 Correct 8 ms 7424 KB Output is correct
33 Correct 8 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 9 ms 7424 KB Output is correct
36 Correct 9 ms 7424 KB Output is correct
37 Correct 8 ms 7424 KB Output is correct
38 Correct 9 ms 7424 KB Output is correct
39 Correct 9 ms 7424 KB Output is correct
40 Correct 8 ms 7424 KB Output is correct
41 Correct 9 ms 7424 KB Output is correct
42 Correct 8 ms 7424 KB Output is correct
43 Correct 8 ms 7424 KB Output is correct
44 Correct 8 ms 7424 KB Output is correct
45 Correct 8 ms 7424 KB Output is correct
46 Correct 8 ms 7424 KB Output is correct
47 Correct 8 ms 7424 KB Output is correct
48 Correct 9 ms 7424 KB Output is correct
49 Correct 8 ms 7424 KB Output is correct
50 Correct 8 ms 7424 KB Output is correct
51 Correct 8 ms 7424 KB Output is correct
52 Correct 8 ms 7424 KB Output is correct
53 Correct 8 ms 7424 KB Output is correct
54 Correct 9 ms 7424 KB Output is correct
55 Correct 8 ms 7424 KB Output is correct
56 Correct 8 ms 7424 KB Output is correct
57 Correct 9 ms 7424 KB Output is correct
58 Correct 8 ms 7424 KB Output is correct
59 Correct 8 ms 7424 KB Output is correct
60 Correct 8 ms 7424 KB Output is correct
61 Correct 8 ms 7424 KB Output is correct
62 Correct 9 ms 7424 KB Output is correct
63 Correct 9 ms 7424 KB Output is correct
64 Correct 8 ms 7424 KB Output is correct
65 Correct 8 ms 7424 KB Output is correct
66 Correct 8 ms 7424 KB Output is correct
67 Correct 9 ms 7424 KB Output is correct
68 Correct 9 ms 7552 KB Output is correct
69 Correct 9 ms 7552 KB Output is correct
70 Correct 10 ms 7552 KB Output is correct
71 Correct 9 ms 7424 KB Output is correct
72 Correct 9 ms 7424 KB Output is correct
73 Correct 9 ms 7424 KB Output is correct
74 Correct 9 ms 7424 KB Output is correct
75 Correct 9 ms 7424 KB Output is correct
76 Correct 9 ms 7552 KB Output is correct
77 Correct 10 ms 7552 KB Output is correct
78 Correct 9 ms 7552 KB Output is correct
79 Correct 9 ms 7424 KB Output is correct
80 Correct 9 ms 7424 KB Output is correct
81 Correct 9 ms 7424 KB Output is correct
82 Correct 9 ms 7552 KB Output is correct
83 Correct 9 ms 7552 KB Output is correct
84 Correct 10 ms 7552 KB Output is correct
85 Correct 9 ms 7552 KB Output is correct
86 Correct 9 ms 7552 KB Output is correct
87 Correct 11 ms 7424 KB Output is correct
88 Correct 9 ms 7424 KB Output is correct
89 Correct 9 ms 7424 KB Output is correct
90 Correct 9 ms 7424 KB Output is correct
91 Correct 9 ms 7552 KB Output is correct
92 Correct 9 ms 7552 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 9 ms 7424 KB Output is correct
3 Correct 8 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 8 ms 7424 KB Output is correct
6 Correct 9 ms 7424 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 8 ms 7424 KB Output is correct
9 Correct 9 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 9 ms 7348 KB Output is correct
12 Correct 8 ms 7424 KB Output is correct
13 Correct 8 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 8 ms 7424 KB Output is correct
16 Correct 9 ms 7424 KB Output is correct
17 Correct 8 ms 7424 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 8 ms 7424 KB Output is correct
20 Correct 9 ms 7424 KB Output is correct
21 Correct 9 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 8 ms 7424 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
28 Correct 8 ms 7424 KB Output is correct
29 Correct 9 ms 7424 KB Output is correct
30 Correct 9 ms 7336 KB Output is correct
31 Correct 8 ms 7424 KB Output is correct
32 Correct 8 ms 7424 KB Output is correct
33 Correct 8 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 9 ms 7424 KB Output is correct
36 Correct 9 ms 7424 KB Output is correct
37 Correct 8 ms 7424 KB Output is correct
38 Correct 9 ms 7424 KB Output is correct
39 Correct 9 ms 7424 KB Output is correct
40 Correct 8 ms 7424 KB Output is correct
41 Correct 9 ms 7424 KB Output is correct
42 Correct 8 ms 7424 KB Output is correct
43 Correct 8 ms 7424 KB Output is correct
44 Correct 8 ms 7424 KB Output is correct
45 Correct 8 ms 7424 KB Output is correct
46 Correct 8 ms 7424 KB Output is correct
47 Correct 8 ms 7424 KB Output is correct
48 Correct 9 ms 7424 KB Output is correct
49 Correct 8 ms 7424 KB Output is correct
50 Correct 8 ms 7424 KB Output is correct
51 Correct 8 ms 7424 KB Output is correct
52 Correct 8 ms 7424 KB Output is correct
53 Correct 8 ms 7424 KB Output is correct
54 Correct 9 ms 7424 KB Output is correct
55 Correct 8 ms 7424 KB Output is correct
56 Correct 8 ms 7424 KB Output is correct
57 Correct 9 ms 7424 KB Output is correct
58 Correct 8 ms 7424 KB Output is correct
59 Correct 8 ms 7424 KB Output is correct
60 Correct 8 ms 7424 KB Output is correct
61 Correct 8 ms 7424 KB Output is correct
62 Correct 9 ms 7424 KB Output is correct
63 Correct 9 ms 7424 KB Output is correct
64 Correct 8 ms 7424 KB Output is correct
65 Correct 8 ms 7424 KB Output is correct
66 Correct 100 ms 28760 KB Output is correct
67 Correct 126 ms 28780 KB Output is correct
68 Correct 120 ms 26052 KB Output is correct
69 Correct 108 ms 29144 KB Output is correct
70 Correct 102 ms 22464 KB Output is correct
71 Correct 115 ms 26204 KB Output is correct
72 Correct 104 ms 18732 KB Output is correct
73 Correct 108 ms 22088 KB Output is correct
74 Correct 99 ms 15668 KB Output is correct
75 Correct 108 ms 18308 KB Output is correct
76 Correct 73 ms 12408 KB Output is correct
77 Correct 72 ms 12280 KB Output is correct
78 Correct 64 ms 12152 KB Output is correct
79 Correct 63 ms 12024 KB Output is correct
80 Correct 58 ms 11520 KB Output is correct
81 Correct 51 ms 11384 KB Output is correct
82 Correct 11 ms 7808 KB Output is correct
83 Correct 10 ms 7808 KB Output is correct
84 Correct 10 ms 7808 KB Output is correct
85 Correct 10 ms 7808 KB Output is correct
86 Correct 10 ms 7808 KB Output is correct
87 Correct 11 ms 7808 KB Output is correct
88 Correct 9 ms 7552 KB Output is correct
89 Correct 9 ms 7552 KB Output is correct
90 Correct 9 ms 7552 KB Output is correct
91 Correct 10 ms 7680 KB Output is correct
92 Correct 12 ms 7680 KB Output is correct
93 Correct 9 ms 7680 KB Output is correct
94 Correct 9 ms 7680 KB Output is correct
95 Correct 9 ms 7680 KB Output is correct
96 Correct 9 ms 7680 KB Output is correct
97 Correct 9 ms 7552 KB Output is correct
98 Correct 9 ms 7552 KB Output is correct
99 Correct 9 ms 7552 KB Output is correct
100 Correct 10 ms 7424 KB Output is correct
101 Correct 9 ms 7424 KB Output is correct
102 Correct 9 ms 7424 KB Output is correct
103 Correct 9 ms 7424 KB Output is correct
104 Correct 9 ms 7552 KB Output is correct
105 Correct 9 ms 7552 KB Output is correct
106 Correct 9 ms 7552 KB Output is correct
107 Correct 9 ms 7552 KB Output is correct
108 Correct 118 ms 23972 KB Output is correct
109 Correct 137 ms 25220 KB Output is correct
110 Correct 137 ms 25248 KB Output is correct
111 Correct 130 ms 25252 KB Output is correct
112 Correct 126 ms 25232 KB Output is correct
113 Correct 147 ms 36960 KB Output is correct
114 Correct 128 ms 31440 KB Output is correct
115 Correct 130 ms 29852 KB Output is correct
116 Correct 129 ms 28444 KB Output is correct
117 Correct 122 ms 20136 KB Output is correct
118 Correct 119 ms 23716 KB Output is correct
119 Correct 108 ms 16684 KB Output is correct
120 Correct 115 ms 16048 KB Output is correct
121 Correct 93 ms 12664 KB Output is correct
122 Correct 76 ms 12280 KB Output is correct
123 Correct 52 ms 11256 KB Output is correct
124 Correct 85 ms 23136 KB Output is correct
125 Correct 81 ms 23200 KB Output is correct
126 Correct 89 ms 23452 KB Output is correct
127 Correct 84 ms 23208 KB Output is correct
128 Correct 9 ms 7552 KB Output is correct
129 Correct 9 ms 7552 KB Output is correct
130 Correct 9 ms 7552 KB Output is correct
131 Correct 9 ms 7552 KB Output is correct
132 Correct 11 ms 7552 KB Output is correct
133 Correct 10 ms 7424 KB Output is correct
134 Correct 9 ms 7552 KB Output is correct
135 Correct 9 ms 7552 KB Output is correct
136 Correct 9 ms 7424 KB Output is correct
137 Correct 9 ms 7424 KB Output is correct
138 Correct 9 ms 7552 KB Output is correct
139 Correct 10 ms 7680 KB Output is correct
140 Correct 10 ms 7680 KB Output is correct
141 Correct 10 ms 7552 KB Output is correct
142 Correct 9 ms 7552 KB Output is correct
143 Correct 10 ms 7552 KB Output is correct
144 Correct 10 ms 7552 KB Output is correct
145 Correct 9 ms 7424 KB Output is correct
146 Correct 9 ms 7424 KB Output is correct
147 Correct 9 ms 7424 KB Output is correct
148 Correct 9 ms 7552 KB Output is correct
149 Correct 10 ms 7552 KB Output is correct
150 Correct 9 ms 7552 KB Output is correct
151 Correct 9 ms 7552 KB Output is correct
152 Correct 9 ms 7424 KB Output is correct
153 Correct 9 ms 7424 KB Output is correct
154 Correct 9 ms 7424 KB Output is correct
155 Correct 132 ms 24040 KB Output is correct
156 Correct 125 ms 25632 KB Output is correct
157 Correct 126 ms 23840 KB Output is correct
158 Correct 135 ms 21292 KB Output is correct
159 Correct 116 ms 18468 KB Output is correct
160 Correct 112 ms 17068 KB Output is correct
161 Correct 97 ms 16424 KB Output is correct
162 Correct 99 ms 15660 KB Output is correct
163 Correct 85 ms 15148 KB Output is correct
164 Correct 82 ms 15004 KB Output is correct
165 Correct 87 ms 14576 KB Output is correct
166 Correct 90 ms 14448 KB Output is correct
167 Correct 83 ms 14448 KB Output is correct
168 Correct 85 ms 17896 KB Output is correct
169 Correct 136 ms 30500 KB Output is correct
170 Correct 131 ms 28288 KB Output is correct
171 Correct 130 ms 28616 KB Output is correct
172 Correct 132 ms 26476 KB Output is correct
173 Correct 114 ms 20776 KB Output is correct
174 Correct 137 ms 17708 KB Output is correct
175 Correct 130 ms 15792 KB Output is correct
176 Correct 114 ms 12832 KB Output is correct
177 Correct 84 ms 12664 KB Output is correct
178 Correct 119 ms 23204 KB Output is correct
179 Correct 127 ms 23396 KB Output is correct
180 Correct 123 ms 21924 KB Output is correct
181 Correct 131 ms 21924 KB Output is correct
182 Correct 8 ms 7424 KB Output is correct
183 Correct 9 ms 7424 KB Output is correct
184 Correct 9 ms 7552 KB Output is correct
185 Correct 9 ms 7552 KB Output is correct
186 Correct 10 ms 7552 KB Output is correct
187 Correct 9 ms 7424 KB Output is correct
188 Correct 9 ms 7424 KB Output is correct
189 Correct 9 ms 7424 KB Output is correct
190 Correct 9 ms 7424 KB Output is correct
191 Correct 9 ms 7424 KB Output is correct
192 Correct 9 ms 7552 KB Output is correct
193 Correct 10 ms 7552 KB Output is correct
194 Correct 9 ms 7552 KB Output is correct
195 Correct 9 ms 7424 KB Output is correct
196 Correct 9 ms 7424 KB Output is correct
197 Correct 9 ms 7424 KB Output is correct
198 Correct 9 ms 7552 KB Output is correct
199 Correct 9 ms 7552 KB Output is correct
200 Correct 10 ms 7552 KB Output is correct
201 Correct 9 ms 7552 KB Output is correct
202 Correct 9 ms 7552 KB Output is correct
203 Correct 11 ms 7424 KB Output is correct
204 Correct 9 ms 7424 KB Output is correct
205 Correct 9 ms 7424 KB Output is correct
206 Correct 9 ms 7424 KB Output is correct
207 Correct 9 ms 7552 KB Output is correct
208 Correct 9 ms 7552 KB Output is correct
209 Correct 11 ms 7808 KB Output is correct
210 Correct 56 ms 11616 KB Output is correct
211 Correct 125 ms 22768 KB Output is correct
212 Correct 157 ms 27964 KB Output is correct
213 Correct 181 ms 30904 KB Output is correct
214 Correct 70 ms 12792 KB Output is correct
215 Correct 75 ms 12920 KB Output is correct
216 Correct 131 ms 21664 KB Output is correct
217 Correct 118 ms 18848 KB Output is correct
218 Correct 91 ms 15788 KB Output is correct
219 Correct 86 ms 14836 KB Output is correct
220 Correct 80 ms 14448 KB Output is correct
221 Correct 81 ms 14320 KB Output is correct
222 Correct 93 ms 16056 KB Output is correct
223 Correct 121 ms 23176 KB Output is correct
224 Correct 127 ms 21920 KB Output is correct
225 Correct 116 ms 16568 KB Output is correct
226 Correct 111 ms 15280 KB Output is correct
227 Correct 109 ms 15280 KB Output is correct
228 Correct 108 ms 13048 KB Output is correct
229 Correct 82 ms 12792 KB Output is correct
230 Correct 115 ms 17828 KB Output is correct
231 Correct 111 ms 17972 KB Output is correct