답안 #841713

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
841713 2023-09-01T23:36:42 Z Pajaraja 봉쇄 시간 (IOI23_closing) C++17
100 / 100
221 ms 57000 KB
#include "closing.h"
#include <bits/stdc++.h>
#include <vector>
#define MAXN 200007
using namespace std;
vector<int> g[MAXN],w[MAXN];
long long d[2][MAXN];
long long pm[2*MAXN];
void dfs(int br,int s,int f,long long dist)
{
    d[br][s]=dist;
    for(int i=0;i<g[s].size();i++) if(g[s][i]!=f) dfs(br,g[s][i],s,dist+w[s][i]);
}
int max_score(int N, int X, int Y, long long K, std::vector<int> U, std::vector<int> V, std::vector<int> W)
{
    for(int i=0;i<N;i++) g[i].clear();
    for(int i=0;i<N;i++) w[i].clear();
    for(int i=0;i<N-1;i++)
    {
        g[U[i]].push_back(V[i]);
        g[V[i]].push_back(U[i]);
        w[U[i]].push_back(W[i]);
        w[V[i]].push_back(W[i]);
    }
    if(X>Y) swap(X,Y);
    dfs(0,X,X,0);
    dfs(1,Y,Y,0);
    vector<long long> vk;
    long long total=0;
    int br=0,ans;
    for(int i=0;i<N;i++) vk.push_back(d[0][i]);
    for(int i=0;i<N;i++) vk.push_back(d[1][i]);
    sort(vk.begin(),vk.end());
    for(int i=0;i<vk.size();i++)
    {
        if(total+vk[i]<=K)
        {
            total+=vk[i];
            br++;
        }
    }
    ans=br;
    vector<long long> p;
    vector<pair<long long,long long> > v;
    for(int i=0;i<N;i++) if(d[0][i]+d[1][i]!=d[0][Y])
    {
        long long a=min(d[0][i],d[1][i]),b=max(d[0][i],d[1][i]);
        if(2*a<b)
        {
            v.push_back({2*a,0});
            v.push_back({2*(b-a),0});
        }
        else v.push_back({b,-a});
    }
    sort(v.begin(),v.end());
    p.push_back(0);
    if(v.size()!=0)
    {
        long long pmin=1000000000000000000LL;
        for(int i=v.size()-1;i>=0;i--)
        {
            if(v[i].second!=0) pmin=min(pmin,-v[i].second);
            else pmin=min(pmin,v[i].first/2);
            pm[i]=pmin;
        }
        long long last=0;
        for(int i=0;i<v.size();i++)
        {
            if(!v[i].second)
            {
                p.push_back(p.back()+v[i].first/2);
                last=v[i].first/2;
            }
            else
            {
                long long cur=p.back();
                p.push_back(min(cur+pm[i],cur-last+v[i].first));
                p.push_back(cur+v[i].first);
            }
        }
    }
    vector<pair<long long,int>> put;
    for(int i=0;i<N;i++) if(d[0][i]+d[1][i]==d[0][Y]) put.push_back({abs(d[0][i]-d[1][i]),i});
    sort(put.begin(),put.end());
    long long sum=0;
    for(int i=0;i<put.size();i++) sum+=min(d[0][put[i].second],d[1][put[i].second]);
    for(int i=0;i<put.size();i++)
    {
        int r=put[i].second;
        sum+=max(d[0][r],d[1][r])-min(d[0][r],d[1][r]);
        int lt=0,rt=p.size()-1;
        if(sum>K) continue;
        while(lt!=rt)
        {
            int s=(lt+rt+1)/2;
            if(p[s]+sum>K) rt=s-1;
            else lt=s;
        }
        ans=max(ans,(int)put.size()+i+1+lt);
    }
    return ans;
}

Compilation message

closing.cpp: In function 'void dfs(int, int, int, long long int)':
closing.cpp:12:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |     for(int i=0;i<g[s].size();i++) if(g[s][i]!=f) dfs(br,g[s][i],s,dist+w[s][i]);
      |                 ~^~~~~~~~~~~~
closing.cpp: In function 'int max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)':
closing.cpp:34:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   34 |     for(int i=0;i<vk.size();i++)
      |                 ~^~~~~~~~~~
closing.cpp:67:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   67 |         for(int i=0;i<v.size();i++)
      |                     ~^~~~~~~~~
closing.cpp:86:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   86 |     for(int i=0;i<put.size();i++) sum+=min(d[0][put[i].second],d[1][put[i].second]);
      |                 ~^~~~~~~~~~~
closing.cpp:87:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   87 |     for(int i=0;i<put.size();i++)
      |                 ~^~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 13660 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 204 ms 55156 KB Output is correct
2 Correct 199 ms 56520 KB Output is correct
3 Correct 80 ms 16448 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 13912 KB Output is correct
2 Correct 2 ms 13660 KB Output is correct
3 Correct 2 ms 13660 KB Output is correct
4 Correct 3 ms 13660 KB Output is correct
5 Correct 2 ms 13660 KB Output is correct
6 Correct 3 ms 13660 KB Output is correct
7 Correct 3 ms 13660 KB Output is correct
8 Correct 3 ms 13660 KB Output is correct
9 Correct 3 ms 13660 KB Output is correct
10 Correct 3 ms 13660 KB Output is correct
11 Correct 2 ms 13660 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 13912 KB Output is correct
2 Correct 2 ms 13660 KB Output is correct
3 Correct 2 ms 13660 KB Output is correct
4 Correct 3 ms 13660 KB Output is correct
5 Correct 2 ms 13660 KB Output is correct
6 Correct 3 ms 13660 KB Output is correct
7 Correct 3 ms 13660 KB Output is correct
8 Correct 3 ms 13660 KB Output is correct
9 Correct 3 ms 13660 KB Output is correct
10 Correct 3 ms 13660 KB Output is correct
11 Correct 2 ms 13660 KB Output is correct
12 Correct 3 ms 13660 KB Output is correct
13 Correct 3 ms 13660 KB Output is correct
14 Correct 3 ms 13660 KB Output is correct
15 Correct 3 ms 13660 KB Output is correct
16 Correct 3 ms 13660 KB Output is correct
17 Correct 3 ms 13660 KB Output is correct
18 Correct 3 ms 13660 KB Output is correct
19 Correct 3 ms 13916 KB Output is correct
20 Correct 3 ms 13940 KB Output is correct
21 Correct 3 ms 13916 KB Output is correct
22 Correct 3 ms 13852 KB Output is correct
23 Correct 3 ms 13916 KB Output is correct
24 Correct 3 ms 13916 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 13912 KB Output is correct
2 Correct 2 ms 13660 KB Output is correct
3 Correct 2 ms 13660 KB Output is correct
4 Correct 3 ms 13660 KB Output is correct
5 Correct 2 ms 13660 KB Output is correct
6 Correct 3 ms 13660 KB Output is correct
7 Correct 3 ms 13660 KB Output is correct
8 Correct 3 ms 13660 KB Output is correct
9 Correct 3 ms 13660 KB Output is correct
10 Correct 3 ms 13660 KB Output is correct
11 Correct 2 ms 13660 KB Output is correct
12 Correct 3 ms 13660 KB Output is correct
13 Correct 3 ms 13660 KB Output is correct
14 Correct 3 ms 13660 KB Output is correct
15 Correct 3 ms 13660 KB Output is correct
16 Correct 3 ms 13660 KB Output is correct
17 Correct 3 ms 13660 KB Output is correct
18 Correct 3 ms 13660 KB Output is correct
19 Correct 3 ms 13916 KB Output is correct
20 Correct 3 ms 13940 KB Output is correct
21 Correct 3 ms 13916 KB Output is correct
22 Correct 3 ms 13852 KB Output is correct
23 Correct 3 ms 13916 KB Output is correct
24 Correct 3 ms 13916 KB Output is correct
25 Correct 4 ms 13916 KB Output is correct
26 Correct 5 ms 14428 KB Output is correct
27 Correct 4 ms 14428 KB Output is correct
28 Correct 4 ms 14428 KB Output is correct
29 Correct 4 ms 14424 KB Output is correct
30 Correct 4 ms 14428 KB Output is correct
31 Correct 4 ms 14428 KB Output is correct
32 Correct 5 ms 14416 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 13660 KB Output is correct
2 Correct 4 ms 13912 KB Output is correct
3 Correct 2 ms 13660 KB Output is correct
4 Correct 2 ms 13660 KB Output is correct
5 Correct 3 ms 13660 KB Output is correct
6 Correct 2 ms 13660 KB Output is correct
7 Correct 3 ms 13660 KB Output is correct
8 Correct 3 ms 13656 KB Output is correct
9 Correct 3 ms 13912 KB Output is correct
10 Correct 3 ms 13660 KB Output is correct
11 Correct 3 ms 13660 KB Output is correct
12 Correct 2 ms 13660 KB Output is correct
13 Correct 3 ms 13660 KB Output is correct
14 Correct 3 ms 13660 KB Output is correct
15 Correct 3 ms 13660 KB Output is correct
16 Correct 3 ms 13656 KB Output is correct
17 Correct 3 ms 13660 KB Output is correct
18 Correct 2 ms 13660 KB Output is correct
19 Correct 3 ms 13660 KB Output is correct
20 Correct 2 ms 13660 KB Output is correct
21 Correct 3 ms 13660 KB Output is correct
22 Correct 3 ms 13660 KB Output is correct
23 Correct 2 ms 13660 KB Output is correct
24 Correct 2 ms 13660 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 13660 KB Output is correct
2 Correct 4 ms 13912 KB Output is correct
3 Correct 2 ms 13660 KB Output is correct
4 Correct 2 ms 13660 KB Output is correct
5 Correct 3 ms 13660 KB Output is correct
6 Correct 2 ms 13660 KB Output is correct
7 Correct 3 ms 13660 KB Output is correct
8 Correct 3 ms 13660 KB Output is correct
9 Correct 3 ms 13660 KB Output is correct
10 Correct 3 ms 13660 KB Output is correct
11 Correct 3 ms 13660 KB Output is correct
12 Correct 2 ms 13660 KB Output is correct
13 Correct 3 ms 13660 KB Output is correct
14 Correct 3 ms 13660 KB Output is correct
15 Correct 3 ms 13660 KB Output is correct
16 Correct 3 ms 13660 KB Output is correct
17 Correct 3 ms 13660 KB Output is correct
18 Correct 3 ms 13660 KB Output is correct
19 Correct 3 ms 13660 KB Output is correct
20 Correct 3 ms 13656 KB Output is correct
21 Correct 3 ms 13912 KB Output is correct
22 Correct 3 ms 13660 KB Output is correct
23 Correct 3 ms 13660 KB Output is correct
24 Correct 2 ms 13660 KB Output is correct
25 Correct 3 ms 13660 KB Output is correct
26 Correct 3 ms 13660 KB Output is correct
27 Correct 3 ms 13660 KB Output is correct
28 Correct 3 ms 13656 KB Output is correct
29 Correct 3 ms 13660 KB Output is correct
30 Correct 2 ms 13660 KB Output is correct
31 Correct 3 ms 13660 KB Output is correct
32 Correct 2 ms 13660 KB Output is correct
33 Correct 3 ms 13660 KB Output is correct
34 Correct 3 ms 13660 KB Output is correct
35 Correct 2 ms 13660 KB Output is correct
36 Correct 2 ms 13660 KB Output is correct
37 Correct 3 ms 13660 KB Output is correct
38 Correct 3 ms 13660 KB Output is correct
39 Correct 3 ms 13856 KB Output is correct
40 Correct 3 ms 13660 KB Output is correct
41 Correct 3 ms 13660 KB Output is correct
42 Correct 3 ms 13660 KB Output is correct
43 Correct 3 ms 13660 KB Output is correct
44 Correct 3 ms 13660 KB Output is correct
45 Correct 2 ms 13912 KB Output is correct
46 Correct 3 ms 13656 KB Output is correct
47 Correct 3 ms 13660 KB Output is correct
48 Correct 3 ms 13660 KB Output is correct
49 Correct 3 ms 13660 KB Output is correct
50 Correct 3 ms 13912 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 13660 KB Output is correct
2 Correct 4 ms 13912 KB Output is correct
3 Correct 2 ms 13660 KB Output is correct
4 Correct 2 ms 13660 KB Output is correct
5 Correct 3 ms 13660 KB Output is correct
6 Correct 2 ms 13660 KB Output is correct
7 Correct 3 ms 13660 KB Output is correct
8 Correct 3 ms 13660 KB Output is correct
9 Correct 3 ms 13660 KB Output is correct
10 Correct 3 ms 13660 KB Output is correct
11 Correct 3 ms 13660 KB Output is correct
12 Correct 2 ms 13660 KB Output is correct
13 Correct 3 ms 13660 KB Output is correct
14 Correct 3 ms 13660 KB Output is correct
15 Correct 3 ms 13660 KB Output is correct
16 Correct 3 ms 13660 KB Output is correct
17 Correct 3 ms 13660 KB Output is correct
18 Correct 3 ms 13660 KB Output is correct
19 Correct 3 ms 13660 KB Output is correct
20 Correct 3 ms 13916 KB Output is correct
21 Correct 3 ms 13940 KB Output is correct
22 Correct 3 ms 13916 KB Output is correct
23 Correct 3 ms 13852 KB Output is correct
24 Correct 3 ms 13916 KB Output is correct
25 Correct 3 ms 13916 KB Output is correct
26 Correct 3 ms 13660 KB Output is correct
27 Correct 3 ms 13656 KB Output is correct
28 Correct 3 ms 13912 KB Output is correct
29 Correct 3 ms 13660 KB Output is correct
30 Correct 3 ms 13660 KB Output is correct
31 Correct 2 ms 13660 KB Output is correct
32 Correct 3 ms 13660 KB Output is correct
33 Correct 3 ms 13660 KB Output is correct
34 Correct 3 ms 13660 KB Output is correct
35 Correct 3 ms 13656 KB Output is correct
36 Correct 3 ms 13660 KB Output is correct
37 Correct 2 ms 13660 KB Output is correct
38 Correct 3 ms 13660 KB Output is correct
39 Correct 2 ms 13660 KB Output is correct
40 Correct 3 ms 13660 KB Output is correct
41 Correct 3 ms 13660 KB Output is correct
42 Correct 2 ms 13660 KB Output is correct
43 Correct 2 ms 13660 KB Output is correct
44 Correct 3 ms 13660 KB Output is correct
45 Correct 3 ms 13660 KB Output is correct
46 Correct 3 ms 13856 KB Output is correct
47 Correct 3 ms 13660 KB Output is correct
48 Correct 3 ms 13660 KB Output is correct
49 Correct 3 ms 13660 KB Output is correct
50 Correct 3 ms 13660 KB Output is correct
51 Correct 3 ms 13660 KB Output is correct
52 Correct 2 ms 13912 KB Output is correct
53 Correct 3 ms 13656 KB Output is correct
54 Correct 3 ms 13660 KB Output is correct
55 Correct 3 ms 13660 KB Output is correct
56 Correct 3 ms 13660 KB Output is correct
57 Correct 3 ms 13912 KB Output is correct
58 Correct 3 ms 13656 KB Output is correct
59 Correct 3 ms 13660 KB Output is correct
60 Correct 3 ms 13660 KB Output is correct
61 Correct 4 ms 13660 KB Output is correct
62 Correct 3 ms 13656 KB Output is correct
63 Correct 3 ms 13916 KB Output is correct
64 Correct 3 ms 13916 KB Output is correct
65 Correct 3 ms 13724 KB Output is correct
66 Correct 3 ms 13916 KB Output is correct
67 Correct 3 ms 13916 KB Output is correct
68 Correct 3 ms 13916 KB Output is correct
69 Correct 3 ms 13916 KB Output is correct
70 Correct 3 ms 13912 KB Output is correct
71 Correct 3 ms 13912 KB Output is correct
72 Correct 3 ms 13916 KB Output is correct
73 Correct 3 ms 13912 KB Output is correct
74 Correct 3 ms 13916 KB Output is correct
75 Correct 3 ms 13656 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 13660 KB Output is correct
2 Correct 4 ms 13912 KB Output is correct
3 Correct 2 ms 13660 KB Output is correct
4 Correct 2 ms 13660 KB Output is correct
5 Correct 3 ms 13660 KB Output is correct
6 Correct 2 ms 13660 KB Output is correct
7 Correct 3 ms 13660 KB Output is correct
8 Correct 3 ms 13660 KB Output is correct
9 Correct 3 ms 13660 KB Output is correct
10 Correct 3 ms 13660 KB Output is correct
11 Correct 3 ms 13660 KB Output is correct
12 Correct 2 ms 13660 KB Output is correct
13 Correct 3 ms 13660 KB Output is correct
14 Correct 3 ms 13660 KB Output is correct
15 Correct 3 ms 13660 KB Output is correct
16 Correct 3 ms 13660 KB Output is correct
17 Correct 3 ms 13660 KB Output is correct
18 Correct 3 ms 13660 KB Output is correct
19 Correct 3 ms 13660 KB Output is correct
20 Correct 3 ms 13916 KB Output is correct
21 Correct 3 ms 13940 KB Output is correct
22 Correct 3 ms 13916 KB Output is correct
23 Correct 3 ms 13852 KB Output is correct
24 Correct 3 ms 13916 KB Output is correct
25 Correct 3 ms 13916 KB Output is correct
26 Correct 4 ms 13916 KB Output is correct
27 Correct 5 ms 14428 KB Output is correct
28 Correct 4 ms 14428 KB Output is correct
29 Correct 4 ms 14428 KB Output is correct
30 Correct 4 ms 14424 KB Output is correct
31 Correct 4 ms 14428 KB Output is correct
32 Correct 4 ms 14428 KB Output is correct
33 Correct 5 ms 14416 KB Output is correct
34 Correct 3 ms 13660 KB Output is correct
35 Correct 3 ms 13656 KB Output is correct
36 Correct 3 ms 13912 KB Output is correct
37 Correct 3 ms 13660 KB Output is correct
38 Correct 3 ms 13660 KB Output is correct
39 Correct 2 ms 13660 KB Output is correct
40 Correct 3 ms 13660 KB Output is correct
41 Correct 3 ms 13660 KB Output is correct
42 Correct 3 ms 13660 KB Output is correct
43 Correct 3 ms 13656 KB Output is correct
44 Correct 3 ms 13660 KB Output is correct
45 Correct 2 ms 13660 KB Output is correct
46 Correct 3 ms 13660 KB Output is correct
47 Correct 2 ms 13660 KB Output is correct
48 Correct 3 ms 13660 KB Output is correct
49 Correct 3 ms 13660 KB Output is correct
50 Correct 2 ms 13660 KB Output is correct
51 Correct 2 ms 13660 KB Output is correct
52 Correct 3 ms 13660 KB Output is correct
53 Correct 3 ms 13660 KB Output is correct
54 Correct 3 ms 13856 KB Output is correct
55 Correct 3 ms 13660 KB Output is correct
56 Correct 3 ms 13660 KB Output is correct
57 Correct 3 ms 13660 KB Output is correct
58 Correct 3 ms 13660 KB Output is correct
59 Correct 3 ms 13660 KB Output is correct
60 Correct 2 ms 13912 KB Output is correct
61 Correct 3 ms 13656 KB Output is correct
62 Correct 3 ms 13660 KB Output is correct
63 Correct 3 ms 13660 KB Output is correct
64 Correct 3 ms 13660 KB Output is correct
65 Correct 3 ms 13912 KB Output is correct
66 Correct 3 ms 13656 KB Output is correct
67 Correct 3 ms 13660 KB Output is correct
68 Correct 3 ms 13660 KB Output is correct
69 Correct 4 ms 13660 KB Output is correct
70 Correct 3 ms 13656 KB Output is correct
71 Correct 3 ms 13916 KB Output is correct
72 Correct 3 ms 13916 KB Output is correct
73 Correct 3 ms 13724 KB Output is correct
74 Correct 3 ms 13916 KB Output is correct
75 Correct 3 ms 13916 KB Output is correct
76 Correct 3 ms 13916 KB Output is correct
77 Correct 3 ms 13916 KB Output is correct
78 Correct 3 ms 13912 KB Output is correct
79 Correct 3 ms 13912 KB Output is correct
80 Correct 3 ms 13916 KB Output is correct
81 Correct 3 ms 13912 KB Output is correct
82 Correct 3 ms 13916 KB Output is correct
83 Correct 3 ms 13656 KB Output is correct
84 Correct 4 ms 13916 KB Output is correct
85 Correct 4 ms 13916 KB Output is correct
86 Correct 4 ms 13916 KB Output is correct
87 Correct 4 ms 13916 KB Output is correct
88 Correct 4 ms 13916 KB Output is correct
89 Correct 4 ms 14172 KB Output is correct
90 Correct 5 ms 14172 KB Output is correct
91 Correct 4 ms 14172 KB Output is correct
92 Correct 4 ms 14172 KB Output is correct
93 Correct 4 ms 14236 KB Output is correct
94 Correct 4 ms 14428 KB Output is correct
95 Correct 4 ms 14288 KB Output is correct
96 Correct 5 ms 14172 KB Output is correct
97 Correct 4 ms 14172 KB Output is correct
98 Correct 4 ms 14168 KB Output is correct
99 Correct 4 ms 14168 KB Output is correct
100 Correct 4 ms 14172 KB Output is correct
101 Correct 4 ms 13916 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 13660 KB Output is correct
2 Correct 4 ms 13912 KB Output is correct
3 Correct 2 ms 13660 KB Output is correct
4 Correct 2 ms 13660 KB Output is correct
5 Correct 3 ms 13660 KB Output is correct
6 Correct 2 ms 13660 KB Output is correct
7 Correct 3 ms 13660 KB Output is correct
8 Correct 3 ms 13660 KB Output is correct
9 Correct 3 ms 13660 KB Output is correct
10 Correct 3 ms 13660 KB Output is correct
11 Correct 3 ms 13660 KB Output is correct
12 Correct 2 ms 13660 KB Output is correct
13 Correct 3 ms 13660 KB Output is correct
14 Correct 3 ms 13660 KB Output is correct
15 Correct 3 ms 13660 KB Output is correct
16 Correct 3 ms 13660 KB Output is correct
17 Correct 3 ms 13660 KB Output is correct
18 Correct 3 ms 13660 KB Output is correct
19 Correct 3 ms 13660 KB Output is correct
20 Correct 3 ms 13916 KB Output is correct
21 Correct 3 ms 13940 KB Output is correct
22 Correct 3 ms 13916 KB Output is correct
23 Correct 3 ms 13852 KB Output is correct
24 Correct 3 ms 13916 KB Output is correct
25 Correct 3 ms 13916 KB Output is correct
26 Correct 4 ms 13916 KB Output is correct
27 Correct 5 ms 14428 KB Output is correct
28 Correct 4 ms 14428 KB Output is correct
29 Correct 4 ms 14428 KB Output is correct
30 Correct 4 ms 14424 KB Output is correct
31 Correct 4 ms 14428 KB Output is correct
32 Correct 4 ms 14428 KB Output is correct
33 Correct 5 ms 14416 KB Output is correct
34 Correct 3 ms 13660 KB Output is correct
35 Correct 3 ms 13656 KB Output is correct
36 Correct 3 ms 13912 KB Output is correct
37 Correct 3 ms 13660 KB Output is correct
38 Correct 3 ms 13660 KB Output is correct
39 Correct 2 ms 13660 KB Output is correct
40 Correct 3 ms 13660 KB Output is correct
41 Correct 3 ms 13660 KB Output is correct
42 Correct 3 ms 13660 KB Output is correct
43 Correct 3 ms 13656 KB Output is correct
44 Correct 3 ms 13660 KB Output is correct
45 Correct 2 ms 13660 KB Output is correct
46 Correct 3 ms 13660 KB Output is correct
47 Correct 2 ms 13660 KB Output is correct
48 Correct 3 ms 13660 KB Output is correct
49 Correct 3 ms 13660 KB Output is correct
50 Correct 2 ms 13660 KB Output is correct
51 Correct 2 ms 13660 KB Output is correct
52 Correct 3 ms 13660 KB Output is correct
53 Correct 3 ms 13660 KB Output is correct
54 Correct 3 ms 13856 KB Output is correct
55 Correct 3 ms 13660 KB Output is correct
56 Correct 3 ms 13660 KB Output is correct
57 Correct 3 ms 13660 KB Output is correct
58 Correct 3 ms 13660 KB Output is correct
59 Correct 3 ms 13660 KB Output is correct
60 Correct 2 ms 13912 KB Output is correct
61 Correct 3 ms 13656 KB Output is correct
62 Correct 3 ms 13660 KB Output is correct
63 Correct 3 ms 13660 KB Output is correct
64 Correct 3 ms 13660 KB Output is correct
65 Correct 3 ms 13912 KB Output is correct
66 Correct 3 ms 13656 KB Output is correct
67 Correct 3 ms 13660 KB Output is correct
68 Correct 3 ms 13660 KB Output is correct
69 Correct 4 ms 13660 KB Output is correct
70 Correct 3 ms 13656 KB Output is correct
71 Correct 3 ms 13916 KB Output is correct
72 Correct 3 ms 13916 KB Output is correct
73 Correct 3 ms 13724 KB Output is correct
74 Correct 3 ms 13916 KB Output is correct
75 Correct 3 ms 13916 KB Output is correct
76 Correct 3 ms 13916 KB Output is correct
77 Correct 3 ms 13916 KB Output is correct
78 Correct 3 ms 13912 KB Output is correct
79 Correct 3 ms 13912 KB Output is correct
80 Correct 3 ms 13916 KB Output is correct
81 Correct 3 ms 13912 KB Output is correct
82 Correct 3 ms 13916 KB Output is correct
83 Correct 3 ms 13656 KB Output is correct
84 Correct 4 ms 13916 KB Output is correct
85 Correct 4 ms 13916 KB Output is correct
86 Correct 4 ms 13916 KB Output is correct
87 Correct 4 ms 13916 KB Output is correct
88 Correct 4 ms 13916 KB Output is correct
89 Correct 4 ms 14172 KB Output is correct
90 Correct 5 ms 14172 KB Output is correct
91 Correct 4 ms 14172 KB Output is correct
92 Correct 4 ms 14172 KB Output is correct
93 Correct 4 ms 14236 KB Output is correct
94 Correct 4 ms 14428 KB Output is correct
95 Correct 4 ms 14288 KB Output is correct
96 Correct 5 ms 14172 KB Output is correct
97 Correct 4 ms 14172 KB Output is correct
98 Correct 4 ms 14168 KB Output is correct
99 Correct 4 ms 14168 KB Output is correct
100 Correct 4 ms 14172 KB Output is correct
101 Correct 4 ms 13916 KB Output is correct
102 Correct 72 ms 16464 KB Output is correct
103 Correct 72 ms 16136 KB Output is correct
104 Correct 214 ms 52880 KB Output is correct
105 Correct 90 ms 18192 KB Output is correct
106 Correct 92 ms 17144 KB Output is correct
107 Correct 77 ms 51424 KB Output is correct
108 Correct 86 ms 51896 KB Output is correct
109 Correct 112 ms 56776 KB Output is correct
110 Correct 221 ms 46672 KB Output is correct
111 Correct 115 ms 52944 KB Output is correct
112 Correct 221 ms 46060 KB Output is correct
113 Correct 219 ms 45128 KB Output is correct
114 Correct 195 ms 47768 KB Output is correct
115 Correct 141 ms 57000 KB Output is correct
116 Correct 186 ms 51320 KB Output is correct
117 Correct 218 ms 50892 KB Output is correct
118 Correct 221 ms 46372 KB Output is correct
119 Correct 93 ms 22388 KB Output is correct
120 Correct 68 ms 16324 KB Output is correct