Submission #1059518

# Submission time Handle Problem Language Result Execution time Memory
1059518 2024-08-15T04:25:46 Z heeew Telephone Plans (CCO24_day2problem3) C++14
25 / 25
1444 ms 108400 KB
#include<iostream>
#include<algorithm>
#include<vector>
#include<set>

using namespace std;
using lint = long long;
using vint = vector<int>;
using pii = pair<int,int>;

const int MAX_N=500010;
const int MAX_Q=1500010;

struct Obj
{
    int v,p,i;
};

int in,n,q;
set<int> edge[MAX_N];
int cidx=0;
int cnt[MAX_N<<1];
int col[MAX_N<<1];
lint sum[MAX_Q],sump[MAX_Q];

int getmin(int x,int y)
{
    vector<Obj> vx={{x,y,-1}},vy={{y,x,-1}};
    while(1)
    {
        while(!vx.empty())
        {
            auto p=vx.back();
            auto it=edge[p.v].upper_bound(p.i);
            if(it==edge[p.v].end())
            {
                vx.pop_back();
                continue;
            }
            int v=vx.back().i=*it;
            if(v==p.p)continue;
            vx.push_back({v,p.v,-1});
            break;
        }
        if(vx.empty())return x;
        while(!vy.empty())
        {
            auto p=vy.back();
            auto it=edge[p.v].upper_bound(p.i);
            if(it==edge[p.v].end())
            {
                vy.pop_back();
                continue;
            }
            int v=vy.back().i=*it;
            if(v==p.p)continue;
            vy.push_back({v,p.v,-1});
            break;
        }
        if(vy.empty())return y;
    }
    return x;
}

void colorall(int v,int p,int c)
{
    cnt[col[v]]--;
    col[v]=c;
    cnt[col[v]]++;
    for(auto v0 : edge[v])
        if(v0!=p)
            colorall(v0,v,c);
}

int main()
{
    ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    cin >> in >> n >> q;
    for(int i=0;i<n;i++)
    {
        col[i+1]=i;
        cnt[i]=1;
    }
    cidx=n;
    lint lasta=0,change=0;
    for(int i=1;i<=q;i++)
    {
        int o;
        lint x,y,t;
        cin >> o;
        if(o==1)
        {
            cin >> x >> y;
            if(in)x^=lasta,y^=lasta;
            if(x>y)swap(x,y);
            change=(lint)cnt[col[x]]*cnt[col[y]];
            if(cnt[col[x]]<cnt[col[y]])
                colorall(x,y,col[y]);
            else
                colorall(y,x,col[x]);
            edge[x].insert(y);
            edge[y].insert(x);
        }
        if(o==2)
        {
            cin >> x >> y;
            if(in)x^=lasta,y^=lasta;
            edge[x].erase(y);
            edge[y].erase(x);
            if(getmin(x,y)==x)
                colorall(x,y,cidx++);
            else
                colorall(y,x,cidx++);
            change=-(lint)cnt[col[x]]*cnt[col[y]];
        }
        if(o==3)change=0;
        sum[i]=sum[i-1]+change;
        sump[i]=sump[i-1]+max(0LL,change);
        if(o==3)
        {
            cin >> t;
            if(in)t^=lasta;
            int j=max(0LL,i-t);
            lasta=sum[j]+sump[i]-sump[j];
            cout << lasta << '\n';
        }
    }
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 5 ms 28408 KB Output is correct
2 Correct 5 ms 28252 KB Output is correct
3 Correct 6 ms 28252 KB Output is correct
4 Correct 5 ms 28364 KB Output is correct
5 Correct 5 ms 28252 KB Output is correct
6 Correct 5 ms 28252 KB Output is correct
7 Correct 5 ms 28248 KB Output is correct
8 Correct 4 ms 28412 KB Output is correct
9 Correct 4 ms 28252 KB Output is correct
10 Correct 4 ms 28252 KB Output is correct
11 Correct 6 ms 28344 KB Output is correct
12 Correct 5 ms 28252 KB Output is correct
13 Correct 5 ms 28364 KB Output is correct
14 Correct 5 ms 28252 KB Output is correct
15 Correct 5 ms 28252 KB Output is correct
16 Correct 5 ms 28260 KB Output is correct
17 Correct 5 ms 28264 KB Output is correct
18 Correct 4 ms 28264 KB Output is correct
19 Correct 4 ms 28264 KB Output is correct
20 Correct 5 ms 28264 KB Output is correct
21 Correct 5 ms 28252 KB Output is correct
22 Correct 5 ms 28252 KB Output is correct
23 Correct 5 ms 28252 KB Output is correct
24 Correct 4 ms 28252 KB Output is correct
25 Correct 4 ms 28252 KB Output is correct
26 Correct 6 ms 28408 KB Output is correct
27 Correct 5 ms 28252 KB Output is correct
28 Correct 4 ms 28252 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 28252 KB Output is correct
2 Correct 5 ms 28252 KB Output is correct
3 Correct 4 ms 28252 KB Output is correct
4 Correct 4 ms 28364 KB Output is correct
5 Correct 4 ms 28252 KB Output is correct
6 Correct 5 ms 28252 KB Output is correct
7 Correct 5 ms 28412 KB Output is correct
8 Correct 4 ms 28252 KB Output is correct
9 Correct 4 ms 28252 KB Output is correct
10 Correct 4 ms 28412 KB Output is correct
11 Correct 4 ms 28248 KB Output is correct
12 Correct 4 ms 28248 KB Output is correct
13 Correct 4 ms 28268 KB Output is correct
14 Correct 4 ms 28304 KB Output is correct
15 Correct 4 ms 28252 KB Output is correct
16 Correct 4 ms 28252 KB Output is correct
17 Correct 4 ms 28252 KB Output is correct
18 Correct 4 ms 28252 KB Output is correct
19 Correct 4 ms 28252 KB Output is correct
20 Correct 4 ms 28252 KB Output is correct
21 Correct 4 ms 28404 KB Output is correct
22 Correct 4 ms 28248 KB Output is correct
23 Correct 5 ms 28248 KB Output is correct
24 Correct 4 ms 28252 KB Output is correct
25 Correct 5 ms 28252 KB Output is correct
26 Correct 5 ms 28252 KB Output is correct
27 Correct 4 ms 28252 KB Output is correct
28 Correct 5 ms 28252 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 28408 KB Output is correct
2 Correct 5 ms 28252 KB Output is correct
3 Correct 6 ms 28252 KB Output is correct
4 Correct 5 ms 28364 KB Output is correct
5 Correct 5 ms 28252 KB Output is correct
6 Correct 5 ms 28252 KB Output is correct
7 Correct 5 ms 28248 KB Output is correct
8 Correct 4 ms 28412 KB Output is correct
9 Correct 4 ms 28252 KB Output is correct
10 Correct 4 ms 28252 KB Output is correct
11 Correct 6 ms 28344 KB Output is correct
12 Correct 5 ms 28252 KB Output is correct
13 Correct 5 ms 28364 KB Output is correct
14 Correct 5 ms 28252 KB Output is correct
15 Correct 5 ms 28252 KB Output is correct
16 Correct 5 ms 28260 KB Output is correct
17 Correct 5 ms 28264 KB Output is correct
18 Correct 4 ms 28264 KB Output is correct
19 Correct 4 ms 28264 KB Output is correct
20 Correct 5 ms 28264 KB Output is correct
21 Correct 5 ms 28252 KB Output is correct
22 Correct 5 ms 28252 KB Output is correct
23 Correct 5 ms 28252 KB Output is correct
24 Correct 4 ms 28252 KB Output is correct
25 Correct 4 ms 28252 KB Output is correct
26 Correct 6 ms 28408 KB Output is correct
27 Correct 5 ms 28252 KB Output is correct
28 Correct 4 ms 28252 KB Output is correct
29 Correct 6 ms 28508 KB Output is correct
30 Correct 5 ms 28508 KB Output is correct
31 Correct 8 ms 28508 KB Output is correct
32 Correct 6 ms 28508 KB Output is correct
33 Correct 8 ms 28508 KB Output is correct
34 Correct 7 ms 28508 KB Output is correct
35 Correct 6 ms 28580 KB Output is correct
36 Correct 6 ms 28508 KB Output is correct
37 Correct 6 ms 28508 KB Output is correct
38 Correct 6 ms 28508 KB Output is correct
39 Correct 5 ms 28508 KB Output is correct
40 Correct 7 ms 28508 KB Output is correct
41 Correct 5 ms 28516 KB Output is correct
42 Correct 6 ms 28508 KB Output is correct
43 Correct 8 ms 28508 KB Output is correct
44 Correct 5 ms 28508 KB Output is correct
45 Correct 6 ms 28508 KB Output is correct
46 Correct 5 ms 28508 KB Output is correct
47 Correct 6 ms 28508 KB Output is correct
48 Correct 7 ms 28628 KB Output is correct
49 Correct 6 ms 28520 KB Output is correct
50 Correct 7 ms 28520 KB Output is correct
51 Correct 5 ms 28368 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 28252 KB Output is correct
2 Correct 5 ms 28252 KB Output is correct
3 Correct 4 ms 28252 KB Output is correct
4 Correct 4 ms 28364 KB Output is correct
5 Correct 4 ms 28252 KB Output is correct
6 Correct 5 ms 28252 KB Output is correct
7 Correct 5 ms 28412 KB Output is correct
8 Correct 4 ms 28252 KB Output is correct
9 Correct 4 ms 28252 KB Output is correct
10 Correct 4 ms 28412 KB Output is correct
11 Correct 4 ms 28248 KB Output is correct
12 Correct 4 ms 28248 KB Output is correct
13 Correct 4 ms 28268 KB Output is correct
14 Correct 4 ms 28304 KB Output is correct
15 Correct 4 ms 28252 KB Output is correct
16 Correct 4 ms 28252 KB Output is correct
17 Correct 4 ms 28252 KB Output is correct
18 Correct 4 ms 28252 KB Output is correct
19 Correct 4 ms 28252 KB Output is correct
20 Correct 4 ms 28252 KB Output is correct
21 Correct 4 ms 28404 KB Output is correct
22 Correct 4 ms 28248 KB Output is correct
23 Correct 5 ms 28248 KB Output is correct
24 Correct 4 ms 28252 KB Output is correct
25 Correct 5 ms 28252 KB Output is correct
26 Correct 5 ms 28252 KB Output is correct
27 Correct 4 ms 28252 KB Output is correct
28 Correct 5 ms 28252 KB Output is correct
29 Correct 6 ms 28556 KB Output is correct
30 Correct 6 ms 28660 KB Output is correct
31 Correct 7 ms 28520 KB Output is correct
32 Correct 6 ms 28720 KB Output is correct
33 Correct 8 ms 28520 KB Output is correct
34 Correct 5 ms 28520 KB Output is correct
35 Correct 6 ms 28520 KB Output is correct
36 Correct 6 ms 28520 KB Output is correct
37 Correct 8 ms 28520 KB Output is correct
38 Correct 9 ms 28520 KB Output is correct
39 Correct 6 ms 28520 KB Output is correct
40 Correct 8 ms 28476 KB Output is correct
41 Correct 6 ms 28520 KB Output is correct
42 Correct 6 ms 28488 KB Output is correct
43 Correct 6 ms 28516 KB Output is correct
44 Correct 8 ms 28520 KB Output is correct
45 Correct 6 ms 28644 KB Output is correct
46 Correct 6 ms 28520 KB Output is correct
47 Correct 6 ms 28520 KB Output is correct
48 Correct 6 ms 28520 KB Output is correct
49 Correct 5 ms 28624 KB Output is correct
50 Correct 5 ms 28416 KB Output is correct
51 Correct 5 ms 28520 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 28408 KB Output is correct
2 Correct 5 ms 28252 KB Output is correct
3 Correct 6 ms 28252 KB Output is correct
4 Correct 5 ms 28364 KB Output is correct
5 Correct 5 ms 28252 KB Output is correct
6 Correct 5 ms 28252 KB Output is correct
7 Correct 5 ms 28248 KB Output is correct
8 Correct 4 ms 28412 KB Output is correct
9 Correct 4 ms 28252 KB Output is correct
10 Correct 4 ms 28252 KB Output is correct
11 Correct 6 ms 28344 KB Output is correct
12 Correct 5 ms 28252 KB Output is correct
13 Correct 5 ms 28364 KB Output is correct
14 Correct 5 ms 28252 KB Output is correct
15 Correct 5 ms 28252 KB Output is correct
16 Correct 5 ms 28260 KB Output is correct
17 Correct 5 ms 28264 KB Output is correct
18 Correct 4 ms 28264 KB Output is correct
19 Correct 4 ms 28264 KB Output is correct
20 Correct 5 ms 28264 KB Output is correct
21 Correct 5 ms 28252 KB Output is correct
22 Correct 5 ms 28252 KB Output is correct
23 Correct 5 ms 28252 KB Output is correct
24 Correct 4 ms 28252 KB Output is correct
25 Correct 4 ms 28252 KB Output is correct
26 Correct 6 ms 28408 KB Output is correct
27 Correct 5 ms 28252 KB Output is correct
28 Correct 4 ms 28252 KB Output is correct
29 Correct 6 ms 28508 KB Output is correct
30 Correct 5 ms 28508 KB Output is correct
31 Correct 8 ms 28508 KB Output is correct
32 Correct 6 ms 28508 KB Output is correct
33 Correct 8 ms 28508 KB Output is correct
34 Correct 7 ms 28508 KB Output is correct
35 Correct 6 ms 28580 KB Output is correct
36 Correct 6 ms 28508 KB Output is correct
37 Correct 6 ms 28508 KB Output is correct
38 Correct 6 ms 28508 KB Output is correct
39 Correct 5 ms 28508 KB Output is correct
40 Correct 7 ms 28508 KB Output is correct
41 Correct 5 ms 28516 KB Output is correct
42 Correct 6 ms 28508 KB Output is correct
43 Correct 8 ms 28508 KB Output is correct
44 Correct 5 ms 28508 KB Output is correct
45 Correct 6 ms 28508 KB Output is correct
46 Correct 5 ms 28508 KB Output is correct
47 Correct 6 ms 28508 KB Output is correct
48 Correct 7 ms 28628 KB Output is correct
49 Correct 6 ms 28520 KB Output is correct
50 Correct 7 ms 28520 KB Output is correct
51 Correct 5 ms 28368 KB Output is correct
52 Correct 98 ms 45920 KB Output is correct
53 Correct 105 ms 45920 KB Output is correct
54 Correct 80 ms 41952 KB Output is correct
55 Correct 100 ms 45908 KB Output is correct
56 Correct 127 ms 45620 KB Output is correct
57 Correct 103 ms 41848 KB Output is correct
58 Correct 89 ms 45740 KB Output is correct
59 Correct 126 ms 45652 KB Output is correct
60 Correct 96 ms 42068 KB Output is correct
61 Correct 145 ms 45900 KB Output is correct
62 Correct 148 ms 45864 KB Output is correct
63 Correct 117 ms 42288 KB Output is correct
64 Correct 121 ms 45876 KB Output is correct
65 Correct 104 ms 45772 KB Output is correct
66 Correct 137 ms 42324 KB Output is correct
67 Correct 115 ms 45840 KB Output is correct
68 Correct 144 ms 45712 KB Output is correct
69 Correct 84 ms 45904 KB Output is correct
70 Correct 154 ms 45680 KB Output is correct
71 Correct 89 ms 41812 KB Output is correct
72 Correct 99 ms 41872 KB Output is correct
73 Correct 63 ms 37460 KB Output is correct
74 Correct 49 ms 35920 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 28252 KB Output is correct
2 Correct 5 ms 28252 KB Output is correct
3 Correct 4 ms 28252 KB Output is correct
4 Correct 4 ms 28364 KB Output is correct
5 Correct 4 ms 28252 KB Output is correct
6 Correct 5 ms 28252 KB Output is correct
7 Correct 5 ms 28412 KB Output is correct
8 Correct 4 ms 28252 KB Output is correct
9 Correct 4 ms 28252 KB Output is correct
10 Correct 4 ms 28412 KB Output is correct
11 Correct 4 ms 28248 KB Output is correct
12 Correct 4 ms 28248 KB Output is correct
13 Correct 4 ms 28268 KB Output is correct
14 Correct 4 ms 28304 KB Output is correct
15 Correct 4 ms 28252 KB Output is correct
16 Correct 4 ms 28252 KB Output is correct
17 Correct 4 ms 28252 KB Output is correct
18 Correct 4 ms 28252 KB Output is correct
19 Correct 4 ms 28252 KB Output is correct
20 Correct 4 ms 28252 KB Output is correct
21 Correct 4 ms 28404 KB Output is correct
22 Correct 4 ms 28248 KB Output is correct
23 Correct 5 ms 28248 KB Output is correct
24 Correct 4 ms 28252 KB Output is correct
25 Correct 5 ms 28252 KB Output is correct
26 Correct 5 ms 28252 KB Output is correct
27 Correct 4 ms 28252 KB Output is correct
28 Correct 5 ms 28252 KB Output is correct
29 Correct 6 ms 28556 KB Output is correct
30 Correct 6 ms 28660 KB Output is correct
31 Correct 7 ms 28520 KB Output is correct
32 Correct 6 ms 28720 KB Output is correct
33 Correct 8 ms 28520 KB Output is correct
34 Correct 5 ms 28520 KB Output is correct
35 Correct 6 ms 28520 KB Output is correct
36 Correct 6 ms 28520 KB Output is correct
37 Correct 8 ms 28520 KB Output is correct
38 Correct 9 ms 28520 KB Output is correct
39 Correct 6 ms 28520 KB Output is correct
40 Correct 8 ms 28476 KB Output is correct
41 Correct 6 ms 28520 KB Output is correct
42 Correct 6 ms 28488 KB Output is correct
43 Correct 6 ms 28516 KB Output is correct
44 Correct 8 ms 28520 KB Output is correct
45 Correct 6 ms 28644 KB Output is correct
46 Correct 6 ms 28520 KB Output is correct
47 Correct 6 ms 28520 KB Output is correct
48 Correct 6 ms 28520 KB Output is correct
49 Correct 5 ms 28624 KB Output is correct
50 Correct 5 ms 28416 KB Output is correct
51 Correct 5 ms 28520 KB Output is correct
52 Correct 81 ms 45800 KB Output is correct
53 Correct 81 ms 45904 KB Output is correct
54 Correct 84 ms 41812 KB Output is correct
55 Correct 102 ms 45904 KB Output is correct
56 Correct 129 ms 45648 KB Output is correct
57 Correct 86 ms 41808 KB Output is correct
58 Correct 83 ms 45904 KB Output is correct
59 Correct 126 ms 45628 KB Output is correct
60 Correct 90 ms 41956 KB Output is correct
61 Correct 136 ms 45908 KB Output is correct
62 Correct 141 ms 45908 KB Output is correct
63 Correct 142 ms 42364 KB Output is correct
64 Correct 94 ms 45904 KB Output is correct
65 Correct 107 ms 45652 KB Output is correct
66 Correct 123 ms 42320 KB Output is correct
67 Correct 90 ms 45828 KB Output is correct
68 Correct 129 ms 45648 KB Output is correct
69 Correct 102 ms 45828 KB Output is correct
70 Correct 144 ms 45648 KB Output is correct
71 Correct 93 ms 41812 KB Output is correct
72 Correct 102 ms 41972 KB Output is correct
73 Correct 49 ms 37404 KB Output is correct
74 Correct 45 ms 35920 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 28252 KB Output is correct
2 Correct 5 ms 28252 KB Output is correct
3 Correct 4 ms 28252 KB Output is correct
4 Correct 4 ms 28364 KB Output is correct
5 Correct 4 ms 28252 KB Output is correct
6 Correct 5 ms 28252 KB Output is correct
7 Correct 5 ms 28412 KB Output is correct
8 Correct 4 ms 28252 KB Output is correct
9 Correct 4 ms 28252 KB Output is correct
10 Correct 4 ms 28412 KB Output is correct
11 Correct 4 ms 28248 KB Output is correct
12 Correct 4 ms 28248 KB Output is correct
13 Correct 4 ms 28268 KB Output is correct
14 Correct 4 ms 28304 KB Output is correct
15 Correct 4 ms 28252 KB Output is correct
16 Correct 4 ms 28252 KB Output is correct
17 Correct 4 ms 28252 KB Output is correct
18 Correct 4 ms 28252 KB Output is correct
19 Correct 4 ms 28252 KB Output is correct
20 Correct 4 ms 28252 KB Output is correct
21 Correct 4 ms 28404 KB Output is correct
22 Correct 4 ms 28248 KB Output is correct
23 Correct 5 ms 28248 KB Output is correct
24 Correct 4 ms 28252 KB Output is correct
25 Correct 5 ms 28252 KB Output is correct
26 Correct 5 ms 28252 KB Output is correct
27 Correct 4 ms 28252 KB Output is correct
28 Correct 5 ms 28252 KB Output is correct
29 Correct 6 ms 28556 KB Output is correct
30 Correct 6 ms 28660 KB Output is correct
31 Correct 7 ms 28520 KB Output is correct
32 Correct 6 ms 28720 KB Output is correct
33 Correct 8 ms 28520 KB Output is correct
34 Correct 5 ms 28520 KB Output is correct
35 Correct 6 ms 28520 KB Output is correct
36 Correct 6 ms 28520 KB Output is correct
37 Correct 8 ms 28520 KB Output is correct
38 Correct 9 ms 28520 KB Output is correct
39 Correct 6 ms 28520 KB Output is correct
40 Correct 8 ms 28476 KB Output is correct
41 Correct 6 ms 28520 KB Output is correct
42 Correct 6 ms 28488 KB Output is correct
43 Correct 6 ms 28516 KB Output is correct
44 Correct 8 ms 28520 KB Output is correct
45 Correct 6 ms 28644 KB Output is correct
46 Correct 6 ms 28520 KB Output is correct
47 Correct 6 ms 28520 KB Output is correct
48 Correct 6 ms 28520 KB Output is correct
49 Correct 5 ms 28624 KB Output is correct
50 Correct 5 ms 28416 KB Output is correct
51 Correct 5 ms 28520 KB Output is correct
52 Correct 81 ms 45800 KB Output is correct
53 Correct 81 ms 45904 KB Output is correct
54 Correct 84 ms 41812 KB Output is correct
55 Correct 102 ms 45904 KB Output is correct
56 Correct 129 ms 45648 KB Output is correct
57 Correct 86 ms 41808 KB Output is correct
58 Correct 83 ms 45904 KB Output is correct
59 Correct 126 ms 45628 KB Output is correct
60 Correct 90 ms 41956 KB Output is correct
61 Correct 136 ms 45908 KB Output is correct
62 Correct 141 ms 45908 KB Output is correct
63 Correct 142 ms 42364 KB Output is correct
64 Correct 94 ms 45904 KB Output is correct
65 Correct 107 ms 45652 KB Output is correct
66 Correct 123 ms 42320 KB Output is correct
67 Correct 90 ms 45828 KB Output is correct
68 Correct 129 ms 45648 KB Output is correct
69 Correct 102 ms 45828 KB Output is correct
70 Correct 144 ms 45648 KB Output is correct
71 Correct 93 ms 41812 KB Output is correct
72 Correct 102 ms 41972 KB Output is correct
73 Correct 49 ms 37404 KB Output is correct
74 Correct 45 ms 35920 KB Output is correct
75 Correct 502 ms 108112 KB Output is correct
76 Correct 489 ms 108116 KB Output is correct
77 Correct 667 ms 88184 KB Output is correct
78 Correct 516 ms 108196 KB Output is correct
79 Correct 1115 ms 107924 KB Output is correct
80 Correct 699 ms 88208 KB Output is correct
81 Correct 536 ms 108116 KB Output is correct
82 Correct 1025 ms 107856 KB Output is correct
83 Correct 729 ms 88660 KB Output is correct
84 Correct 516 ms 108272 KB Output is correct
85 Correct 880 ms 107860 KB Output is correct
86 Correct 785 ms 89084 KB Output is correct
87 Correct 954 ms 108180 KB Output is correct
88 Correct 1047 ms 108400 KB Output is correct
89 Correct 975 ms 90448 KB Output is correct
90 Correct 578 ms 108100 KB Output is correct
91 Correct 657 ms 108112 KB Output is correct
92 Correct 1024 ms 90192 KB Output is correct
93 Correct 512 ms 108152 KB Output is correct
94 Correct 1131 ms 107860 KB Output is correct
95 Correct 619 ms 108112 KB Output is correct
96 Correct 1444 ms 107860 KB Output is correct
97 Correct 680 ms 88336 KB Output is correct
98 Correct 696 ms 88376 KB Output is correct
99 Correct 235 ms 67412 KB Output is correct
100 Correct 258 ms 58196 KB Output is correct
101 Correct 4 ms 28248 KB Output is correct