답안 #810463

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
810463 2023-08-06T09:58:12 Z azberjibiou Council (JOI23_council) C++17
100 / 100
1760 ms 53924 KB
#include <bits/stdc++.h>
#define all(v) v.begin(), v.end()
#define gibon ios::sync_with_stdio(false); cin.tie(0);
#define fi first
#define se second
#define pdd pair<long double, long double>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define ppi pair<pii, pii>
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
typedef long long ll;
using namespace std;
const int mxN=300020;
const int mxM=25;
const int mxK=1200000;
const int MOD=1e9+7;
const ll INF=1e18;
typedef struct pnt{
    int dis, src, pos;
    pnt() : dis(), src(), pos() {}
    pnt(int dis, int src, int pos) : dis(dis), src(src), pos(pos) {}
}pnt;
int N, M;
int A[mxN];
int cnt[mxM], imp[mxN];
int one[mxN];
void input()
{
    cin >> N >> M;
    for(int i=1;i<=N;i++)
    {
        for(int j=0;j<M;j++)
        {
            int a;  cin >> a;
            A[i]+=a*(1<<j);
        }
    }
}
void make_cnt()
{
    for(int i=0;i<M;i++)
    {
        for(int j=1;j<=N;j++)   cnt[i]+=((A[j]>>i)&1);

        if(cnt[i]>=N/2+2)   for(int j=1;j<=N;j++)   one[j]++;
        if(cnt[i]<N/2)  continue;
        if(cnt[i]==N/2)
        {
            for(int j=1;j<=N;j++)   if((A[j]&(1<<i))==0)    imp[j]+=(1<<i);
        }
        if(cnt[i]==N/2+1)
        {
            for(int j=1;j<=N;j++)
            {
                if(A[j]&(1<<i)) imp[j]+=(1<<i);
                else    one[j]++;
            }
        }
    }
    for(int i=1;i<=N;i++)   imp[i]^=((1<<M)-1);
}
pair<pii, pii> D[mxK];
void bfs()
{
    queue <pnt> que;
    for(int i=1;i<=N;i++)
    {
        bool ok=false;
        if(D[A[i]].fi.se==0)    D[A[i]].fi=pii(0, i), ok=true;
        else if(D[A[i]].se.se==0)   D[A[i]].se=pii(0, i), ok=true;
        if(ok)  que.emplace(0, i, A[i]);
    }
    while(que.size())
    {
        auto [dis, src, now]=que.front();
        que.pop();
        for(int i=0;i<M;i++)
        {
            int nxt=(now^(1<<i));
            if(D[nxt].fi.se==0)
            {
                D[nxt].fi=pii(dis+1, src);
                que.emplace(dis+1, src, nxt);
            }
            else if(D[nxt].se.se==0 && D[nxt].fi.se!=src)
            {
                D[nxt].se=pii(dis+1, src);
                que.emplace(dis+1, src, nxt);
            }
        }
    }
}
pair<pii, pii> mrg(pair<pii, pii> a, pair<pii, pii> b)
{
    pair<pii, pii> res;
    res.fi=pii(), res.se=pii();
    vector <pii> t;
    if(a.fi.se!=0)  t.push_back(a.fi);
    if(a.se.se!=0)  t.push_back(a.se);
    if(b.fi.se!=0)  t.push_back(b.fi);
    if(b.se.se!=0)  t.push_back(b.se);
    sort(all(t));
    for(pii a : t)
    {
        if(res.fi.se==0)    res.fi=a;
        else if(res.se.se==0 && res.fi.se!=a.se)    res.se=a;
    }
    return res;
}
void imos_hanbyeol()
{
    for(int i=0;i<M;i++)
    {
        for(int j=0;j<(1<<M);j++)
        {
            if(j&(1<<i))    D[j]=mrg(D[j], D[j-(1<<i)]);
        }
    }
}
int main()
{
    gibon
    input();
    make_cnt();
    bfs();
    imos_hanbyeol();
    for(int i=1;i<=N;i++)
    {
        if(D[imp[i]].fi.se==i)  cout << one[i]+M-__builtin_popcount(imp[i])-D[imp[i]].se.fi << '\n';
        else    cout << one[i]+M-__builtin_popcount(imp[i])-D[imp[i]].fi.fi << '\n';
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 3 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 1220 ms 25580 KB Output is correct
6 Correct 1198 ms 21332 KB Output is correct
7 Correct 1331 ms 23056 KB Output is correct
8 Correct 1347 ms 25996 KB Output is correct
9 Correct 1406 ms 30184 KB Output is correct
10 Correct 1335 ms 24188 KB Output is correct
11 Correct 1404 ms 26768 KB Output is correct
12 Correct 1380 ms 30292 KB Output is correct
13 Correct 0 ms 332 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 336 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 1 ms 332 KB Output is correct
20 Correct 0 ms 340 KB Output is correct
21 Correct 1 ms 340 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 1 ms 340 KB Output is correct
24 Correct 0 ms 340 KB Output is correct
25 Correct 1 ms 340 KB Output is correct
26 Correct 1 ms 332 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 1 ms 340 KB Output is correct
29 Correct 1 ms 340 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 2 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 332 KB Output is correct
34 Correct 1 ms 340 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 340 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 328 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 13 ms 716 KB Output is correct
42 Correct 14 ms 724 KB Output is correct
43 Correct 14 ms 800 KB Output is correct
44 Correct 14 ms 724 KB Output is correct
45 Correct 15 ms 716 KB Output is correct
46 Correct 122 ms 3400 KB Output is correct
47 Correct 133 ms 3288 KB Output is correct
48 Correct 137 ms 3584 KB Output is correct
49 Correct 155 ms 3348 KB Output is correct
50 Correct 137 ms 3796 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 3 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 1220 ms 25580 KB Output is correct
6 Correct 1198 ms 21332 KB Output is correct
7 Correct 1331 ms 23056 KB Output is correct
8 Correct 1347 ms 25996 KB Output is correct
9 Correct 1406 ms 30184 KB Output is correct
10 Correct 1335 ms 24188 KB Output is correct
11 Correct 1404 ms 26768 KB Output is correct
12 Correct 1380 ms 30292 KB Output is correct
13 Correct 0 ms 332 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 336 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 1 ms 332 KB Output is correct
20 Correct 0 ms 340 KB Output is correct
21 Correct 1 ms 340 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 1 ms 340 KB Output is correct
24 Correct 0 ms 340 KB Output is correct
25 Correct 1 ms 340 KB Output is correct
26 Correct 1 ms 332 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 1 ms 340 KB Output is correct
29 Correct 1 ms 340 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 2 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 332 KB Output is correct
34 Correct 1 ms 340 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 340 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 328 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 13 ms 716 KB Output is correct
42 Correct 14 ms 724 KB Output is correct
43 Correct 14 ms 800 KB Output is correct
44 Correct 14 ms 724 KB Output is correct
45 Correct 15 ms 716 KB Output is correct
46 Correct 122 ms 3400 KB Output is correct
47 Correct 133 ms 3288 KB Output is correct
48 Correct 137 ms 3584 KB Output is correct
49 Correct 155 ms 3348 KB Output is correct
50 Correct 137 ms 3796 KB Output is correct
51 Correct 1299 ms 21452 KB Output is correct
52 Correct 1288 ms 21508 KB Output is correct
53 Correct 1437 ms 33720 KB Output is correct
54 Correct 1517 ms 33724 KB Output is correct
55 Correct 1 ms 340 KB Output is correct
56 Correct 145 ms 4820 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 45 ms 4396 KB Output is correct
3 Correct 40 ms 4324 KB Output is correct
4 Correct 29 ms 3840 KB Output is correct
5 Correct 44 ms 4384 KB Output is correct
6 Correct 30 ms 3788 KB Output is correct
7 Correct 44 ms 5584 KB Output is correct
8 Correct 0 ms 340 KB Output is correct
9 Correct 0 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 0 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 45 ms 4396 KB Output is correct
3 Correct 40 ms 4324 KB Output is correct
4 Correct 29 ms 3840 KB Output is correct
5 Correct 44 ms 4384 KB Output is correct
6 Correct 30 ms 3788 KB Output is correct
7 Correct 44 ms 5584 KB Output is correct
8 Correct 0 ms 340 KB Output is correct
9 Correct 0 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 0 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 332 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 141 ms 9068 KB Output is correct
21 Correct 137 ms 9672 KB Output is correct
22 Correct 128 ms 9616 KB Output is correct
23 Correct 131 ms 10612 KB Output is correct
24 Correct 125 ms 9116 KB Output is correct
25 Correct 151 ms 10364 KB Output is correct
26 Correct 144 ms 10316 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 0 ms 340 KB Output is correct
29 Correct 0 ms 340 KB Output is correct
30 Correct 0 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 340 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 0 ms 340 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 0 ms 340 KB Output is correct
40 Correct 0 ms 340 KB Output is correct
41 Correct 1 ms 332 KB Output is correct
42 Correct 1 ms 332 KB Output is correct
43 Correct 1 ms 340 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 45 ms 4396 KB Output is correct
3 Correct 40 ms 4324 KB Output is correct
4 Correct 29 ms 3840 KB Output is correct
5 Correct 44 ms 4384 KB Output is correct
6 Correct 30 ms 3788 KB Output is correct
7 Correct 44 ms 5584 KB Output is correct
8 Correct 0 ms 340 KB Output is correct
9 Correct 0 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 0 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 332 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 141 ms 9068 KB Output is correct
21 Correct 137 ms 9672 KB Output is correct
22 Correct 128 ms 9616 KB Output is correct
23 Correct 131 ms 10612 KB Output is correct
24 Correct 125 ms 9116 KB Output is correct
25 Correct 151 ms 10364 KB Output is correct
26 Correct 144 ms 10316 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 0 ms 340 KB Output is correct
29 Correct 0 ms 340 KB Output is correct
30 Correct 0 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 340 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 0 ms 340 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 0 ms 340 KB Output is correct
40 Correct 0 ms 340 KB Output is correct
41 Correct 1 ms 332 KB Output is correct
42 Correct 1 ms 332 KB Output is correct
43 Correct 1 ms 340 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
46 Correct 4 ms 340 KB Output is correct
47 Correct 200 ms 11856 KB Output is correct
48 Correct 190 ms 12396 KB Output is correct
49 Correct 184 ms 12276 KB Output is correct
50 Correct 188 ms 13228 KB Output is correct
51 Correct 180 ms 11740 KB Output is correct
52 Correct 201 ms 12928 KB Output is correct
53 Correct 206 ms 13232 KB Output is correct
54 Correct 13 ms 724 KB Output is correct
55 Correct 16 ms 716 KB Output is correct
56 Correct 14 ms 804 KB Output is correct
57 Correct 14 ms 752 KB Output is correct
58 Correct 14 ms 812 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 45 ms 4396 KB Output is correct
3 Correct 40 ms 4324 KB Output is correct
4 Correct 29 ms 3840 KB Output is correct
5 Correct 44 ms 4384 KB Output is correct
6 Correct 30 ms 3788 KB Output is correct
7 Correct 44 ms 5584 KB Output is correct
8 Correct 0 ms 340 KB Output is correct
9 Correct 0 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 0 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 332 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 141 ms 9068 KB Output is correct
21 Correct 137 ms 9672 KB Output is correct
22 Correct 128 ms 9616 KB Output is correct
23 Correct 131 ms 10612 KB Output is correct
24 Correct 125 ms 9116 KB Output is correct
25 Correct 151 ms 10364 KB Output is correct
26 Correct 144 ms 10316 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 0 ms 340 KB Output is correct
29 Correct 0 ms 340 KB Output is correct
30 Correct 0 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 340 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 0 ms 340 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 0 ms 340 KB Output is correct
40 Correct 0 ms 340 KB Output is correct
41 Correct 1 ms 332 KB Output is correct
42 Correct 1 ms 332 KB Output is correct
43 Correct 1 ms 340 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
46 Correct 4 ms 340 KB Output is correct
47 Correct 200 ms 11856 KB Output is correct
48 Correct 190 ms 12396 KB Output is correct
49 Correct 184 ms 12276 KB Output is correct
50 Correct 188 ms 13228 KB Output is correct
51 Correct 180 ms 11740 KB Output is correct
52 Correct 201 ms 12928 KB Output is correct
53 Correct 206 ms 13232 KB Output is correct
54 Correct 13 ms 724 KB Output is correct
55 Correct 16 ms 716 KB Output is correct
56 Correct 14 ms 804 KB Output is correct
57 Correct 14 ms 752 KB Output is correct
58 Correct 14 ms 812 KB Output is correct
59 Correct 272 ms 16120 KB Output is correct
60 Correct 212 ms 10060 KB Output is correct
61 Correct 225 ms 10692 KB Output is correct
62 Correct 224 ms 10828 KB Output is correct
63 Correct 269 ms 14124 KB Output is correct
64 Correct 347 ms 17456 KB Output is correct
65 Correct 348 ms 17348 KB Output is correct
66 Correct 324 ms 17312 KB Output is correct
67 Correct 317 ms 15872 KB Output is correct
68 Correct 356 ms 18696 KB Output is correct
69 Correct 357 ms 18716 KB Output is correct
70 Correct 122 ms 3412 KB Output is correct
71 Correct 128 ms 3292 KB Output is correct
72 Correct 134 ms 3604 KB Output is correct
73 Correct 130 ms 3364 KB Output is correct
74 Correct 135 ms 3796 KB Output is correct
75 Correct 135 ms 4800 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 3 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 1220 ms 25580 KB Output is correct
6 Correct 1198 ms 21332 KB Output is correct
7 Correct 1331 ms 23056 KB Output is correct
8 Correct 1347 ms 25996 KB Output is correct
9 Correct 1406 ms 30184 KB Output is correct
10 Correct 1335 ms 24188 KB Output is correct
11 Correct 1404 ms 26768 KB Output is correct
12 Correct 1380 ms 30292 KB Output is correct
13 Correct 0 ms 332 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 336 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 1 ms 332 KB Output is correct
20 Correct 0 ms 340 KB Output is correct
21 Correct 1 ms 340 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 1 ms 340 KB Output is correct
24 Correct 0 ms 340 KB Output is correct
25 Correct 1 ms 340 KB Output is correct
26 Correct 1 ms 332 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 1 ms 340 KB Output is correct
29 Correct 1 ms 340 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 2 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 332 KB Output is correct
34 Correct 1 ms 340 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 340 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 328 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 13 ms 716 KB Output is correct
42 Correct 14 ms 724 KB Output is correct
43 Correct 14 ms 800 KB Output is correct
44 Correct 14 ms 724 KB Output is correct
45 Correct 15 ms 716 KB Output is correct
46 Correct 122 ms 3400 KB Output is correct
47 Correct 133 ms 3288 KB Output is correct
48 Correct 137 ms 3584 KB Output is correct
49 Correct 155 ms 3348 KB Output is correct
50 Correct 137 ms 3796 KB Output is correct
51 Correct 1299 ms 21452 KB Output is correct
52 Correct 1288 ms 21508 KB Output is correct
53 Correct 1437 ms 33720 KB Output is correct
54 Correct 1517 ms 33724 KB Output is correct
55 Correct 1 ms 340 KB Output is correct
56 Correct 145 ms 4820 KB Output is correct
57 Correct 0 ms 340 KB Output is correct
58 Correct 45 ms 4396 KB Output is correct
59 Correct 40 ms 4324 KB Output is correct
60 Correct 29 ms 3840 KB Output is correct
61 Correct 44 ms 4384 KB Output is correct
62 Correct 30 ms 3788 KB Output is correct
63 Correct 44 ms 5584 KB Output is correct
64 Correct 0 ms 340 KB Output is correct
65 Correct 0 ms 340 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 0 ms 340 KB Output is correct
68 Correct 1 ms 340 KB Output is correct
69 Correct 0 ms 340 KB Output is correct
70 Correct 0 ms 340 KB Output is correct
71 Correct 0 ms 340 KB Output is correct
72 Correct 1 ms 340 KB Output is correct
73 Correct 1 ms 340 KB Output is correct
74 Correct 1 ms 332 KB Output is correct
75 Correct 0 ms 340 KB Output is correct
76 Correct 141 ms 9068 KB Output is correct
77 Correct 137 ms 9672 KB Output is correct
78 Correct 128 ms 9616 KB Output is correct
79 Correct 131 ms 10612 KB Output is correct
80 Correct 125 ms 9116 KB Output is correct
81 Correct 151 ms 10364 KB Output is correct
82 Correct 144 ms 10316 KB Output is correct
83 Correct 1 ms 340 KB Output is correct
84 Correct 0 ms 340 KB Output is correct
85 Correct 0 ms 340 KB Output is correct
86 Correct 0 ms 340 KB Output is correct
87 Correct 1 ms 340 KB Output is correct
88 Correct 1 ms 340 KB Output is correct
89 Correct 1 ms 340 KB Output is correct
90 Correct 1 ms 336 KB Output is correct
91 Correct 1 ms 340 KB Output is correct
92 Correct 1 ms 340 KB Output is correct
93 Correct 0 ms 340 KB Output is correct
94 Correct 1 ms 340 KB Output is correct
95 Correct 0 ms 340 KB Output is correct
96 Correct 0 ms 340 KB Output is correct
97 Correct 1 ms 332 KB Output is correct
98 Correct 1 ms 332 KB Output is correct
99 Correct 1 ms 340 KB Output is correct
100 Correct 1 ms 340 KB Output is correct
101 Correct 1 ms 340 KB Output is correct
102 Correct 4 ms 340 KB Output is correct
103 Correct 200 ms 11856 KB Output is correct
104 Correct 190 ms 12396 KB Output is correct
105 Correct 184 ms 12276 KB Output is correct
106 Correct 188 ms 13228 KB Output is correct
107 Correct 180 ms 11740 KB Output is correct
108 Correct 201 ms 12928 KB Output is correct
109 Correct 206 ms 13232 KB Output is correct
110 Correct 13 ms 724 KB Output is correct
111 Correct 16 ms 716 KB Output is correct
112 Correct 14 ms 804 KB Output is correct
113 Correct 14 ms 752 KB Output is correct
114 Correct 14 ms 812 KB Output is correct
115 Correct 272 ms 16120 KB Output is correct
116 Correct 212 ms 10060 KB Output is correct
117 Correct 225 ms 10692 KB Output is correct
118 Correct 224 ms 10828 KB Output is correct
119 Correct 269 ms 14124 KB Output is correct
120 Correct 347 ms 17456 KB Output is correct
121 Correct 348 ms 17348 KB Output is correct
122 Correct 324 ms 17312 KB Output is correct
123 Correct 317 ms 15872 KB Output is correct
124 Correct 356 ms 18696 KB Output is correct
125 Correct 357 ms 18716 KB Output is correct
126 Correct 122 ms 3412 KB Output is correct
127 Correct 128 ms 3292 KB Output is correct
128 Correct 134 ms 3604 KB Output is correct
129 Correct 130 ms 3364 KB Output is correct
130 Correct 135 ms 3796 KB Output is correct
131 Correct 135 ms 4800 KB Output is correct
132 Correct 1679 ms 45316 KB Output is correct
133 Correct 1635 ms 44160 KB Output is correct
134 Correct 1620 ms 44868 KB Output is correct
135 Correct 1576 ms 43176 KB Output is correct
136 Correct 1661 ms 43976 KB Output is correct
137 Correct 843 ms 29304 KB Output is correct
138 Correct 825 ms 29320 KB Output is correct
139 Correct 1450 ms 37364 KB Output is correct
140 Correct 1500 ms 35800 KB Output is correct
141 Correct 1760 ms 53888 KB Output is correct
142 Correct 1750 ms 53924 KB Output is correct