답안 #877804

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
877804 2023-11-23T14:57:39 Z LucaIlie Council (JOI23_council) C++17
100 / 100
838 ms 38912 KB
#include <bits/stdc++.h>

using namespace std;

const int MAX_N = 3e5;
const int MAX_M = 20;

struct aa {
    int x, y;

    void operator += ( const aa &a ) {
        if ( x == -1 ) {
            x = a.x;
            y = a.y;
        } else if ( y == -1 )
            y = a.x;
    }
};

struct bb {
    int min1, x, min2, y;

    void operator += ( const bb &b ) {
        if ( b.min1 < min1 ) {
            if ( x != b.x ) {
                min2 = min1;
                y = x;
            }
            min1 = b.min1;
            x = b.x;
        } else if ( b.min1 < min2 && x != b.x ) {
            min2 = b.min1;
            y = b.x;
        }

        if ( b.min2 < min1 ) {
            if ( x != b.y ) {
                min2 = min1;
                y = x;
            }
            min1 = b.min2;
            x = b.y;
        } else if ( b.min2 < min2 && x != b.y ) {
            min2 = b.min2;
            y = b.y;
        }
    }
};

aa countVc1[1 << MAX_M];
bb countVc2[1 << MAX_M];
int vote[MAX_N], pro[MAX_M];

int main() {
    int n, m;

    cin >> n >> m;
    for ( int mask = 0; mask < (1 << m); mask++ )
        countVc1[mask] = { -1, -1 };
    for ( int i = 0; i < n; i++ ) {
        for ( int b = 0; b < m; b++ ) {
            int x;
            cin >> x;
            vote[i] += (x << b);
            pro[b] += x;
        }
        countVc1[vote[i]] += { i, -1 };
    }

    for ( int b = 0; b < m; b++ ) {
        for ( int mask = 0; mask < (1 << m); mask++ ) {
            if ( (mask >> b) & 1 )
                countVc1[mask] += countVc1[mask - (1 << b)];
        }
    }
    for ( int mask = 0; mask < (1 << m); mask++ ) {
        int x = countVc1[mask].x;
        int y = countVc1[mask].y;
        int mx = (x == -1 ? m + 1 : __builtin_popcount( mask ));
        int my = (y == -1 ? m + 1 : __builtin_popcount( mask ));
        countVc2[mask] = { mx, x, my, y };
    }
    for ( int b = 0; b < m; b++ ) {
        for ( int mask = (1 << m) - 1; mask >= 0; mask-- ) {
            if ( ((mask >> b) & 1) == 0 )
                countVc2[mask] += countVc2[mask + (1 << b)];
        }
    }


    for ( int i = 0; i < n; i++ ) {
        vector<int> bits;
        int mask = (1 << m) - 1, ap = 0, k = 0;
        for ( int b = 0; b < m; b++ ) {
            int x = pro[b] - ((vote[i] >> b) & 1);
            if ( x > n / 2 )
                ap++;
            if ( x == n / 2 ) {
                mask -= (1 << b);
                k++;
            }
        }

        if ( countVc2[mask].x == -1 )
            cout << ap;
        else if ( countVc2[mask].x == i ) {
            if ( countVc2[mask].y == -1 )
                cout << ap;
            else
                cout << ap + k - (countVc2[mask].min2 - __builtin_popcount( mask ));
        } else
            cout << ap + k - (countVc2[mask].min1 - __builtin_popcount( mask ));
        cout << "\n";
    }

    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4444 KB Output is correct
2 Correct 1 ms 4444 KB Output is correct
3 Correct 1 ms 4444 KB Output is correct
4 Correct 1 ms 4444 KB Output is correct
5 Correct 64 ms 26040 KB Output is correct
6 Correct 72 ms 26020 KB Output is correct
7 Correct 70 ms 26036 KB Output is correct
8 Correct 82 ms 26028 KB Output is correct
9 Correct 85 ms 26036 KB Output is correct
10 Correct 71 ms 26016 KB Output is correct
11 Correct 77 ms 25948 KB Output is correct
12 Correct 92 ms 26284 KB Output is correct
13 Correct 1 ms 4444 KB Output is correct
14 Correct 1 ms 4440 KB Output is correct
15 Correct 1 ms 4444 KB Output is correct
16 Correct 1 ms 4444 KB Output is correct
17 Correct 1 ms 4444 KB Output is correct
18 Correct 1 ms 4444 KB Output is correct
19 Correct 1 ms 4448 KB Output is correct
20 Correct 1 ms 4452 KB Output is correct
21 Correct 1 ms 4548 KB Output is correct
22 Correct 1 ms 4552 KB Output is correct
23 Correct 1 ms 4540 KB Output is correct
24 Correct 1 ms 4456 KB Output is correct
25 Correct 1 ms 4548 KB Output is correct
26 Correct 1 ms 4552 KB Output is correct
27 Correct 1 ms 4448 KB Output is correct
28 Correct 1 ms 4448 KB Output is correct
29 Correct 1 ms 4448 KB Output is correct
30 Correct 1 ms 4448 KB Output is correct
31 Correct 1 ms 4788 KB Output is correct
32 Correct 1 ms 4544 KB Output is correct
33 Correct 1 ms 4696 KB Output is correct
34 Correct 1 ms 4444 KB Output is correct
35 Correct 1 ms 4544 KB Output is correct
36 Correct 1 ms 4444 KB Output is correct
37 Correct 1 ms 4444 KB Output is correct
38 Correct 1 ms 4444 KB Output is correct
39 Correct 1 ms 4444 KB Output is correct
40 Correct 1 ms 4444 KB Output is correct
41 Correct 2 ms 4440 KB Output is correct
42 Correct 2 ms 4444 KB Output is correct
43 Correct 2 ms 4548 KB Output is correct
44 Correct 2 ms 4444 KB Output is correct
45 Correct 2 ms 4444 KB Output is correct
46 Correct 8 ms 6492 KB Output is correct
47 Correct 7 ms 6600 KB Output is correct
48 Correct 8 ms 6596 KB Output is correct
49 Correct 8 ms 6492 KB Output is correct
50 Correct 8 ms 6596 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4444 KB Output is correct
2 Correct 1 ms 4444 KB Output is correct
3 Correct 1 ms 4444 KB Output is correct
4 Correct 1 ms 4444 KB Output is correct
5 Correct 64 ms 26040 KB Output is correct
6 Correct 72 ms 26020 KB Output is correct
7 Correct 70 ms 26036 KB Output is correct
8 Correct 82 ms 26028 KB Output is correct
9 Correct 85 ms 26036 KB Output is correct
10 Correct 71 ms 26016 KB Output is correct
11 Correct 77 ms 25948 KB Output is correct
12 Correct 92 ms 26284 KB Output is correct
13 Correct 1 ms 4444 KB Output is correct
14 Correct 1 ms 4440 KB Output is correct
15 Correct 1 ms 4444 KB Output is correct
16 Correct 1 ms 4444 KB Output is correct
17 Correct 1 ms 4444 KB Output is correct
18 Correct 1 ms 4444 KB Output is correct
19 Correct 1 ms 4448 KB Output is correct
20 Correct 1 ms 4452 KB Output is correct
21 Correct 1 ms 4548 KB Output is correct
22 Correct 1 ms 4552 KB Output is correct
23 Correct 1 ms 4540 KB Output is correct
24 Correct 1 ms 4456 KB Output is correct
25 Correct 1 ms 4548 KB Output is correct
26 Correct 1 ms 4552 KB Output is correct
27 Correct 1 ms 4448 KB Output is correct
28 Correct 1 ms 4448 KB Output is correct
29 Correct 1 ms 4448 KB Output is correct
30 Correct 1 ms 4448 KB Output is correct
31 Correct 1 ms 4788 KB Output is correct
32 Correct 1 ms 4544 KB Output is correct
33 Correct 1 ms 4696 KB Output is correct
34 Correct 1 ms 4444 KB Output is correct
35 Correct 1 ms 4544 KB Output is correct
36 Correct 1 ms 4444 KB Output is correct
37 Correct 1 ms 4444 KB Output is correct
38 Correct 1 ms 4444 KB Output is correct
39 Correct 1 ms 4444 KB Output is correct
40 Correct 1 ms 4444 KB Output is correct
41 Correct 2 ms 4440 KB Output is correct
42 Correct 2 ms 4444 KB Output is correct
43 Correct 2 ms 4548 KB Output is correct
44 Correct 2 ms 4444 KB Output is correct
45 Correct 2 ms 4444 KB Output is correct
46 Correct 8 ms 6492 KB Output is correct
47 Correct 7 ms 6600 KB Output is correct
48 Correct 8 ms 6596 KB Output is correct
49 Correct 8 ms 6492 KB Output is correct
50 Correct 8 ms 6596 KB Output is correct
51 Correct 82 ms 26164 KB Output is correct
52 Correct 74 ms 25936 KB Output is correct
53 Correct 86 ms 26128 KB Output is correct
54 Correct 88 ms 26160 KB Output is correct
55 Correct 2 ms 4444 KB Output is correct
56 Correct 15 ms 6488 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4444 KB Output is correct
2 Correct 99 ms 4944 KB Output is correct
3 Correct 89 ms 4944 KB Output is correct
4 Correct 51 ms 4624 KB Output is correct
5 Correct 108 ms 4832 KB Output is correct
6 Correct 57 ms 4688 KB Output is correct
7 Correct 107 ms 4816 KB Output is correct
8 Correct 1 ms 4440 KB Output is correct
9 Correct 1 ms 4444 KB Output is correct
10 Correct 1 ms 4536 KB Output is correct
11 Correct 1 ms 4444 KB Output is correct
12 Correct 1 ms 4444 KB Output is correct
13 Correct 1 ms 4444 KB Output is correct
14 Correct 1 ms 4444 KB Output is correct
15 Correct 1 ms 4444 KB Output is correct
16 Correct 1 ms 4444 KB Output is correct
17 Correct 2 ms 4444 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4444 KB Output is correct
2 Correct 99 ms 4944 KB Output is correct
3 Correct 89 ms 4944 KB Output is correct
4 Correct 51 ms 4624 KB Output is correct
5 Correct 108 ms 4832 KB Output is correct
6 Correct 57 ms 4688 KB Output is correct
7 Correct 107 ms 4816 KB Output is correct
8 Correct 1 ms 4440 KB Output is correct
9 Correct 1 ms 4444 KB Output is correct
10 Correct 1 ms 4536 KB Output is correct
11 Correct 1 ms 4444 KB Output is correct
12 Correct 1 ms 4444 KB Output is correct
13 Correct 1 ms 4444 KB Output is correct
14 Correct 1 ms 4444 KB Output is correct
15 Correct 1 ms 4444 KB Output is correct
16 Correct 1 ms 4444 KB Output is correct
17 Correct 2 ms 4444 KB Output is correct
18 Correct 1 ms 4444 KB Output is correct
19 Correct 1 ms 4444 KB Output is correct
20 Correct 362 ms 7524 KB Output is correct
21 Correct 361 ms 7172 KB Output is correct
22 Correct 372 ms 6820 KB Output is correct
23 Correct 350 ms 7508 KB Output is correct
24 Correct 344 ms 7252 KB Output is correct
25 Correct 351 ms 7248 KB Output is correct
26 Correct 382 ms 7172 KB Output is correct
27 Correct 1 ms 4444 KB Output is correct
28 Correct 1 ms 4444 KB Output is correct
29 Correct 1 ms 4440 KB Output is correct
30 Correct 1 ms 4540 KB Output is correct
31 Correct 1 ms 4444 KB Output is correct
32 Correct 1 ms 4444 KB Output is correct
33 Correct 1 ms 4444 KB Output is correct
34 Correct 1 ms 4444 KB Output is correct
35 Correct 1 ms 4444 KB Output is correct
36 Correct 1 ms 4444 KB Output is correct
37 Correct 1 ms 4444 KB Output is correct
38 Correct 1 ms 4548 KB Output is correct
39 Correct 1 ms 4444 KB Output is correct
40 Correct 1 ms 4444 KB Output is correct
41 Correct 1 ms 4444 KB Output is correct
42 Correct 1 ms 4444 KB Output is correct
43 Correct 1 ms 4444 KB Output is correct
44 Correct 1 ms 4444 KB Output is correct
45 Correct 2 ms 4444 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4444 KB Output is correct
2 Correct 99 ms 4944 KB Output is correct
3 Correct 89 ms 4944 KB Output is correct
4 Correct 51 ms 4624 KB Output is correct
5 Correct 108 ms 4832 KB Output is correct
6 Correct 57 ms 4688 KB Output is correct
7 Correct 107 ms 4816 KB Output is correct
8 Correct 1 ms 4440 KB Output is correct
9 Correct 1 ms 4444 KB Output is correct
10 Correct 1 ms 4536 KB Output is correct
11 Correct 1 ms 4444 KB Output is correct
12 Correct 1 ms 4444 KB Output is correct
13 Correct 1 ms 4444 KB Output is correct
14 Correct 1 ms 4444 KB Output is correct
15 Correct 1 ms 4444 KB Output is correct
16 Correct 1 ms 4444 KB Output is correct
17 Correct 2 ms 4444 KB Output is correct
18 Correct 1 ms 4444 KB Output is correct
19 Correct 1 ms 4444 KB Output is correct
20 Correct 362 ms 7524 KB Output is correct
21 Correct 361 ms 7172 KB Output is correct
22 Correct 372 ms 6820 KB Output is correct
23 Correct 350 ms 7508 KB Output is correct
24 Correct 344 ms 7252 KB Output is correct
25 Correct 351 ms 7248 KB Output is correct
26 Correct 382 ms 7172 KB Output is correct
27 Correct 1 ms 4444 KB Output is correct
28 Correct 1 ms 4444 KB Output is correct
29 Correct 1 ms 4440 KB Output is correct
30 Correct 1 ms 4540 KB Output is correct
31 Correct 1 ms 4444 KB Output is correct
32 Correct 1 ms 4444 KB Output is correct
33 Correct 1 ms 4444 KB Output is correct
34 Correct 1 ms 4444 KB Output is correct
35 Correct 1 ms 4444 KB Output is correct
36 Correct 1 ms 4444 KB Output is correct
37 Correct 1 ms 4444 KB Output is correct
38 Correct 1 ms 4548 KB Output is correct
39 Correct 1 ms 4444 KB Output is correct
40 Correct 1 ms 4444 KB Output is correct
41 Correct 1 ms 4444 KB Output is correct
42 Correct 1 ms 4444 KB Output is correct
43 Correct 1 ms 4444 KB Output is correct
44 Correct 1 ms 4444 KB Output is correct
45 Correct 2 ms 4444 KB Output is correct
46 Correct 1 ms 4536 KB Output is correct
47 Correct 523 ms 8632 KB Output is correct
48 Correct 460 ms 8328 KB Output is correct
49 Correct 508 ms 8304 KB Output is correct
50 Correct 490 ms 9112 KB Output is correct
51 Correct 456 ms 8760 KB Output is correct
52 Correct 485 ms 8700 KB Output is correct
53 Correct 487 ms 9008 KB Output is correct
54 Correct 2 ms 4696 KB Output is correct
55 Correct 1 ms 4444 KB Output is correct
56 Correct 1 ms 4540 KB Output is correct
57 Correct 1 ms 4440 KB Output is correct
58 Correct 2 ms 4440 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4444 KB Output is correct
2 Correct 99 ms 4944 KB Output is correct
3 Correct 89 ms 4944 KB Output is correct
4 Correct 51 ms 4624 KB Output is correct
5 Correct 108 ms 4832 KB Output is correct
6 Correct 57 ms 4688 KB Output is correct
7 Correct 107 ms 4816 KB Output is correct
8 Correct 1 ms 4440 KB Output is correct
9 Correct 1 ms 4444 KB Output is correct
10 Correct 1 ms 4536 KB Output is correct
11 Correct 1 ms 4444 KB Output is correct
12 Correct 1 ms 4444 KB Output is correct
13 Correct 1 ms 4444 KB Output is correct
14 Correct 1 ms 4444 KB Output is correct
15 Correct 1 ms 4444 KB Output is correct
16 Correct 1 ms 4444 KB Output is correct
17 Correct 2 ms 4444 KB Output is correct
18 Correct 1 ms 4444 KB Output is correct
19 Correct 1 ms 4444 KB Output is correct
20 Correct 362 ms 7524 KB Output is correct
21 Correct 361 ms 7172 KB Output is correct
22 Correct 372 ms 6820 KB Output is correct
23 Correct 350 ms 7508 KB Output is correct
24 Correct 344 ms 7252 KB Output is correct
25 Correct 351 ms 7248 KB Output is correct
26 Correct 382 ms 7172 KB Output is correct
27 Correct 1 ms 4444 KB Output is correct
28 Correct 1 ms 4444 KB Output is correct
29 Correct 1 ms 4440 KB Output is correct
30 Correct 1 ms 4540 KB Output is correct
31 Correct 1 ms 4444 KB Output is correct
32 Correct 1 ms 4444 KB Output is correct
33 Correct 1 ms 4444 KB Output is correct
34 Correct 1 ms 4444 KB Output is correct
35 Correct 1 ms 4444 KB Output is correct
36 Correct 1 ms 4444 KB Output is correct
37 Correct 1 ms 4444 KB Output is correct
38 Correct 1 ms 4548 KB Output is correct
39 Correct 1 ms 4444 KB Output is correct
40 Correct 1 ms 4444 KB Output is correct
41 Correct 1 ms 4444 KB Output is correct
42 Correct 1 ms 4444 KB Output is correct
43 Correct 1 ms 4444 KB Output is correct
44 Correct 1 ms 4444 KB Output is correct
45 Correct 2 ms 4444 KB Output is correct
46 Correct 1 ms 4536 KB Output is correct
47 Correct 523 ms 8632 KB Output is correct
48 Correct 460 ms 8328 KB Output is correct
49 Correct 508 ms 8304 KB Output is correct
50 Correct 490 ms 9112 KB Output is correct
51 Correct 456 ms 8760 KB Output is correct
52 Correct 485 ms 8700 KB Output is correct
53 Correct 487 ms 9008 KB Output is correct
54 Correct 2 ms 4696 KB Output is correct
55 Correct 1 ms 4444 KB Output is correct
56 Correct 1 ms 4540 KB Output is correct
57 Correct 1 ms 4440 KB Output is correct
58 Correct 2 ms 4440 KB Output is correct
59 Correct 556 ms 14792 KB Output is correct
60 Correct 237 ms 10028 KB Output is correct
61 Correct 270 ms 10500 KB Output is correct
62 Correct 283 ms 10576 KB Output is correct
63 Correct 563 ms 14608 KB Output is correct
64 Correct 604 ms 17488 KB Output is correct
65 Correct 610 ms 17236 KB Output is correct
66 Correct 566 ms 17508 KB Output is correct
67 Correct 612 ms 17208 KB Output is correct
68 Correct 605 ms 17372 KB Output is correct
69 Correct 626 ms 17540 KB Output is correct
70 Correct 7 ms 6492 KB Output is correct
71 Correct 7 ms 6492 KB Output is correct
72 Correct 7 ms 6492 KB Output is correct
73 Correct 7 ms 6600 KB Output is correct
74 Correct 8 ms 6492 KB Output is correct
75 Correct 17 ms 6708 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4444 KB Output is correct
2 Correct 1 ms 4444 KB Output is correct
3 Correct 1 ms 4444 KB Output is correct
4 Correct 1 ms 4444 KB Output is correct
5 Correct 64 ms 26040 KB Output is correct
6 Correct 72 ms 26020 KB Output is correct
7 Correct 70 ms 26036 KB Output is correct
8 Correct 82 ms 26028 KB Output is correct
9 Correct 85 ms 26036 KB Output is correct
10 Correct 71 ms 26016 KB Output is correct
11 Correct 77 ms 25948 KB Output is correct
12 Correct 92 ms 26284 KB Output is correct
13 Correct 1 ms 4444 KB Output is correct
14 Correct 1 ms 4440 KB Output is correct
15 Correct 1 ms 4444 KB Output is correct
16 Correct 1 ms 4444 KB Output is correct
17 Correct 1 ms 4444 KB Output is correct
18 Correct 1 ms 4444 KB Output is correct
19 Correct 1 ms 4448 KB Output is correct
20 Correct 1 ms 4452 KB Output is correct
21 Correct 1 ms 4548 KB Output is correct
22 Correct 1 ms 4552 KB Output is correct
23 Correct 1 ms 4540 KB Output is correct
24 Correct 1 ms 4456 KB Output is correct
25 Correct 1 ms 4548 KB Output is correct
26 Correct 1 ms 4552 KB Output is correct
27 Correct 1 ms 4448 KB Output is correct
28 Correct 1 ms 4448 KB Output is correct
29 Correct 1 ms 4448 KB Output is correct
30 Correct 1 ms 4448 KB Output is correct
31 Correct 1 ms 4788 KB Output is correct
32 Correct 1 ms 4544 KB Output is correct
33 Correct 1 ms 4696 KB Output is correct
34 Correct 1 ms 4444 KB Output is correct
35 Correct 1 ms 4544 KB Output is correct
36 Correct 1 ms 4444 KB Output is correct
37 Correct 1 ms 4444 KB Output is correct
38 Correct 1 ms 4444 KB Output is correct
39 Correct 1 ms 4444 KB Output is correct
40 Correct 1 ms 4444 KB Output is correct
41 Correct 2 ms 4440 KB Output is correct
42 Correct 2 ms 4444 KB Output is correct
43 Correct 2 ms 4548 KB Output is correct
44 Correct 2 ms 4444 KB Output is correct
45 Correct 2 ms 4444 KB Output is correct
46 Correct 8 ms 6492 KB Output is correct
47 Correct 7 ms 6600 KB Output is correct
48 Correct 8 ms 6596 KB Output is correct
49 Correct 8 ms 6492 KB Output is correct
50 Correct 8 ms 6596 KB Output is correct
51 Correct 82 ms 26164 KB Output is correct
52 Correct 74 ms 25936 KB Output is correct
53 Correct 86 ms 26128 KB Output is correct
54 Correct 88 ms 26160 KB Output is correct
55 Correct 2 ms 4444 KB Output is correct
56 Correct 15 ms 6488 KB Output is correct
57 Correct 1 ms 4444 KB Output is correct
58 Correct 99 ms 4944 KB Output is correct
59 Correct 89 ms 4944 KB Output is correct
60 Correct 51 ms 4624 KB Output is correct
61 Correct 108 ms 4832 KB Output is correct
62 Correct 57 ms 4688 KB Output is correct
63 Correct 107 ms 4816 KB Output is correct
64 Correct 1 ms 4440 KB Output is correct
65 Correct 1 ms 4444 KB Output is correct
66 Correct 1 ms 4536 KB Output is correct
67 Correct 1 ms 4444 KB Output is correct
68 Correct 1 ms 4444 KB Output is correct
69 Correct 1 ms 4444 KB Output is correct
70 Correct 1 ms 4444 KB Output is correct
71 Correct 1 ms 4444 KB Output is correct
72 Correct 1 ms 4444 KB Output is correct
73 Correct 2 ms 4444 KB Output is correct
74 Correct 1 ms 4444 KB Output is correct
75 Correct 1 ms 4444 KB Output is correct
76 Correct 362 ms 7524 KB Output is correct
77 Correct 361 ms 7172 KB Output is correct
78 Correct 372 ms 6820 KB Output is correct
79 Correct 350 ms 7508 KB Output is correct
80 Correct 344 ms 7252 KB Output is correct
81 Correct 351 ms 7248 KB Output is correct
82 Correct 382 ms 7172 KB Output is correct
83 Correct 1 ms 4444 KB Output is correct
84 Correct 1 ms 4444 KB Output is correct
85 Correct 1 ms 4440 KB Output is correct
86 Correct 1 ms 4540 KB Output is correct
87 Correct 1 ms 4444 KB Output is correct
88 Correct 1 ms 4444 KB Output is correct
89 Correct 1 ms 4444 KB Output is correct
90 Correct 1 ms 4444 KB Output is correct
91 Correct 1 ms 4444 KB Output is correct
92 Correct 1 ms 4444 KB Output is correct
93 Correct 1 ms 4444 KB Output is correct
94 Correct 1 ms 4548 KB Output is correct
95 Correct 1 ms 4444 KB Output is correct
96 Correct 1 ms 4444 KB Output is correct
97 Correct 1 ms 4444 KB Output is correct
98 Correct 1 ms 4444 KB Output is correct
99 Correct 1 ms 4444 KB Output is correct
100 Correct 1 ms 4444 KB Output is correct
101 Correct 2 ms 4444 KB Output is correct
102 Correct 1 ms 4536 KB Output is correct
103 Correct 523 ms 8632 KB Output is correct
104 Correct 460 ms 8328 KB Output is correct
105 Correct 508 ms 8304 KB Output is correct
106 Correct 490 ms 9112 KB Output is correct
107 Correct 456 ms 8760 KB Output is correct
108 Correct 485 ms 8700 KB Output is correct
109 Correct 487 ms 9008 KB Output is correct
110 Correct 2 ms 4696 KB Output is correct
111 Correct 1 ms 4444 KB Output is correct
112 Correct 1 ms 4540 KB Output is correct
113 Correct 1 ms 4440 KB Output is correct
114 Correct 2 ms 4440 KB Output is correct
115 Correct 556 ms 14792 KB Output is correct
116 Correct 237 ms 10028 KB Output is correct
117 Correct 270 ms 10500 KB Output is correct
118 Correct 283 ms 10576 KB Output is correct
119 Correct 563 ms 14608 KB Output is correct
120 Correct 604 ms 17488 KB Output is correct
121 Correct 610 ms 17236 KB Output is correct
122 Correct 566 ms 17508 KB Output is correct
123 Correct 612 ms 17208 KB Output is correct
124 Correct 605 ms 17372 KB Output is correct
125 Correct 626 ms 17540 KB Output is correct
126 Correct 7 ms 6492 KB Output is correct
127 Correct 7 ms 6492 KB Output is correct
128 Correct 7 ms 6492 KB Output is correct
129 Correct 7 ms 6600 KB Output is correct
130 Correct 8 ms 6492 KB Output is correct
131 Correct 17 ms 6708 KB Output is correct
132 Correct 769 ms 38772 KB Output is correct
133 Correct 798 ms 38552 KB Output is correct
134 Correct 761 ms 38632 KB Output is correct
135 Correct 838 ms 38656 KB Output is correct
136 Correct 802 ms 38740 KB Output is correct
137 Correct 747 ms 28700 KB Output is correct
138 Correct 722 ms 29020 KB Output is correct
139 Correct 708 ms 38912 KB Output is correct
140 Correct 678 ms 38468 KB Output is correct
141 Correct 766 ms 38448 KB Output is correct
142 Correct 805 ms 38728 KB Output is correct