답안 #796045

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
796045 2023-07-28T05:19:21 Z 이성호(#10070) Council (JOI23_council) C++17
78 / 100
1020 ms 14152 KB
#include <iostream>
using namespace std;
int dp[1<<20][2];
int cnt[20];
int mask[300005];
int ans[300005];
int df[300005], nd[300005];
int req;
int main()
{
    ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    int N, M; cin >> N >> M;
    int tmp[20] = {};
    for (int i = 0; i < N; i++) {
        for (int j = 0; j < M; j++) {
            cin >> tmp[j];
            cnt[j] += tmp[j];
        }
        for (int j = M - 1; j >= 0; j--) mask[i] = (mask[i] << 1) + tmp[j];
    }
    M = 20;
    req = N / 2;
    int tot = (1 << M) - 1;
    for (int i = 0; i < N; i++) {
        for (int j = 0; j < M; j++) {
            if (mask[i] & (1 << j)) cnt[j]--;
        }
        for (int j = 0; j < M; j++) {
            if (cnt[j] == req) nd[i] |= 1 << j;
            else if (cnt[j] > req) df[i]++;
        }
        for (int j = 0; j < M; j++) {
            if (mask[i] & (1 << j)) cnt[j]++;
        }
    }
    for (int i = 0; i < N; i++) mask[i] = tot ^ mask[i];
    for (int i = 0; i < 19; i++) {
        if (i) {
            fill(&dp[0][0], &dp[1048575][2], 0);
        }
        for (int j = 0; j < N; j++) {
            if (j & (1 << i)) dp[mask[j]][1]++;
            else dp[mask[j]][0]++;
        }
        for (int i = 0; i < M; i++) {
            tot ^= 1 << i;
            for (int j = tot;; j = (j-1) & tot) {
                dp[j][0] += dp[j|1<<i][0];
                dp[j][1] += dp[j|1<<i][1];
                if (j == 0) break;
            }
            tot ^= 1 << i;
        }
        for (int i = 0; i < tot; i++) {
            dp[i][0] = dp[i][0] ? __builtin_popcount(i) : 0;
            dp[i][1] = dp[i][1] ? __builtin_popcount(i) : 0;
        }
        for (int i = 0; i < M; i++) {
            for (int j = (1<<i); j < (1 << M); j = (j+1) | (1<<i)) {
                dp[j][0] = max(dp[j][0], dp[j^(1<<i)][0]);
                dp[j][1] = max(dp[j][1], dp[j^(1<<i)][1]);
            }
        }
        for (int j = 0; j < N; j++) {
            if (j & (1 << i)) ans[j] = max(ans[j], dp[nd[j]][0]);
            else ans[j] = max(ans[j], dp[nd[j]][1]);
        }
    }
    for (int i = 0; i < N; i++) cout << ans[i] + df[i] << '\n';
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 609 ms 8532 KB Output is correct
2 Correct 609 ms 8556 KB Output is correct
3 Correct 648 ms 8532 KB Output is correct
4 Correct 628 ms 8532 KB Output is correct
5 Correct 619 ms 8536 KB Output is correct
6 Correct 608 ms 8532 KB Output is correct
7 Correct 596 ms 8532 KB Output is correct
8 Correct 599 ms 8548 KB Output is correct
9 Correct 626 ms 8536 KB Output is correct
10 Correct 602 ms 8652 KB Output is correct
11 Correct 609 ms 8532 KB Output is correct
12 Correct 623 ms 8532 KB Output is correct
13 Correct 630 ms 8532 KB Output is correct
14 Correct 635 ms 8532 KB Output is correct
15 Correct 640 ms 8548 KB Output is correct
16 Correct 634 ms 8532 KB Output is correct
17 Correct 642 ms 8532 KB Output is correct
18 Correct 636 ms 8532 KB Output is correct
19 Correct 630 ms 8532 KB Output is correct
20 Correct 625 ms 8532 KB Output is correct
21 Correct 637 ms 8532 KB Output is correct
22 Correct 638 ms 8532 KB Output is correct
23 Correct 639 ms 8532 KB Output is correct
24 Correct 643 ms 8532 KB Output is correct
25 Correct 645 ms 8656 KB Output is correct
26 Correct 661 ms 8532 KB Output is correct
27 Correct 649 ms 8532 KB Output is correct
28 Correct 646 ms 8532 KB Output is correct
29 Correct 632 ms 8532 KB Output is correct
30 Correct 647 ms 8536 KB Output is correct
31 Correct 664 ms 8532 KB Output is correct
32 Correct 638 ms 8532 KB Output is correct
33 Correct 634 ms 8532 KB Output is correct
34 Correct 650 ms 8532 KB Output is correct
35 Correct 643 ms 8540 KB Output is correct
36 Correct 637 ms 8540 KB Output is correct
37 Correct 641 ms 8532 KB Output is correct
38 Correct 634 ms 8532 KB Output is correct
39 Correct 650 ms 8536 KB Output is correct
40 Correct 675 ms 8536 KB Output is correct
41 Correct 621 ms 8532 KB Output is correct
42 Correct 608 ms 8544 KB Output is correct
43 Correct 633 ms 8532 KB Output is correct
44 Correct 607 ms 8536 KB Output is correct
45 Correct 610 ms 8532 KB Output is correct
46 Correct 632 ms 8532 KB Output is correct
47 Correct 608 ms 8532 KB Output is correct
48 Correct 597 ms 8532 KB Output is correct
49 Correct 590 ms 8532 KB Output is correct
50 Correct 617 ms 8536 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 609 ms 8532 KB Output is correct
2 Correct 609 ms 8556 KB Output is correct
3 Correct 648 ms 8532 KB Output is correct
4 Correct 628 ms 8532 KB Output is correct
5 Correct 619 ms 8536 KB Output is correct
6 Correct 608 ms 8532 KB Output is correct
7 Correct 596 ms 8532 KB Output is correct
8 Correct 599 ms 8548 KB Output is correct
9 Correct 626 ms 8536 KB Output is correct
10 Correct 602 ms 8652 KB Output is correct
11 Correct 609 ms 8532 KB Output is correct
12 Correct 623 ms 8532 KB Output is correct
13 Correct 630 ms 8532 KB Output is correct
14 Correct 635 ms 8532 KB Output is correct
15 Correct 640 ms 8548 KB Output is correct
16 Correct 634 ms 8532 KB Output is correct
17 Correct 642 ms 8532 KB Output is correct
18 Correct 636 ms 8532 KB Output is correct
19 Correct 630 ms 8532 KB Output is correct
20 Correct 625 ms 8532 KB Output is correct
21 Correct 637 ms 8532 KB Output is correct
22 Correct 638 ms 8532 KB Output is correct
23 Correct 639 ms 8532 KB Output is correct
24 Correct 643 ms 8532 KB Output is correct
25 Correct 645 ms 8656 KB Output is correct
26 Correct 661 ms 8532 KB Output is correct
27 Correct 649 ms 8532 KB Output is correct
28 Correct 646 ms 8532 KB Output is correct
29 Correct 632 ms 8532 KB Output is correct
30 Correct 647 ms 8536 KB Output is correct
31 Correct 664 ms 8532 KB Output is correct
32 Correct 638 ms 8532 KB Output is correct
33 Correct 634 ms 8532 KB Output is correct
34 Correct 650 ms 8532 KB Output is correct
35 Correct 643 ms 8540 KB Output is correct
36 Correct 637 ms 8540 KB Output is correct
37 Correct 641 ms 8532 KB Output is correct
38 Correct 634 ms 8532 KB Output is correct
39 Correct 650 ms 8536 KB Output is correct
40 Correct 675 ms 8536 KB Output is correct
41 Correct 621 ms 8532 KB Output is correct
42 Correct 608 ms 8544 KB Output is correct
43 Correct 633 ms 8532 KB Output is correct
44 Correct 607 ms 8536 KB Output is correct
45 Correct 610 ms 8532 KB Output is correct
46 Correct 632 ms 8532 KB Output is correct
47 Correct 608 ms 8532 KB Output is correct
48 Correct 597 ms 8532 KB Output is correct
49 Correct 590 ms 8532 KB Output is correct
50 Correct 617 ms 8536 KB Output is correct
51 Correct 599 ms 8576 KB Output is correct
52 Correct 658 ms 8552 KB Output is correct
53 Correct 658 ms 8576 KB Output is correct
54 Correct 675 ms 8584 KB Output is correct
55 Correct 648 ms 8584 KB Output is correct
56 Correct 694 ms 8588 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 636 ms 8532 KB Output is correct
2 Correct 690 ms 12640 KB Output is correct
3 Correct 740 ms 11352 KB Output is correct
4 Correct 727 ms 11380 KB Output is correct
5 Correct 740 ms 11480 KB Output is correct
6 Correct 732 ms 12548 KB Output is correct
7 Correct 745 ms 13716 KB Output is correct
8 Correct 645 ms 8532 KB Output is correct
9 Correct 644 ms 8532 KB Output is correct
10 Correct 645 ms 8544 KB Output is correct
11 Correct 642 ms 8532 KB Output is correct
12 Correct 682 ms 8532 KB Output is correct
13 Correct 639 ms 8532 KB Output is correct
14 Correct 645 ms 8532 KB Output is correct
15 Correct 649 ms 8532 KB Output is correct
16 Correct 648 ms 8532 KB Output is correct
17 Correct 651 ms 8576 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 636 ms 8532 KB Output is correct
2 Correct 690 ms 12640 KB Output is correct
3 Correct 740 ms 11352 KB Output is correct
4 Correct 727 ms 11380 KB Output is correct
5 Correct 740 ms 11480 KB Output is correct
6 Correct 732 ms 12548 KB Output is correct
7 Correct 745 ms 13716 KB Output is correct
8 Correct 645 ms 8532 KB Output is correct
9 Correct 644 ms 8532 KB Output is correct
10 Correct 645 ms 8544 KB Output is correct
11 Correct 642 ms 8532 KB Output is correct
12 Correct 682 ms 8532 KB Output is correct
13 Correct 639 ms 8532 KB Output is correct
14 Correct 645 ms 8532 KB Output is correct
15 Correct 649 ms 8532 KB Output is correct
16 Correct 648 ms 8532 KB Output is correct
17 Correct 651 ms 8576 KB Output is correct
18 Correct 633 ms 8532 KB Output is correct
19 Correct 671 ms 8556 KB Output is correct
20 Correct 868 ms 12548 KB Output is correct
21 Correct 845 ms 13728 KB Output is correct
22 Correct 870 ms 13720 KB Output is correct
23 Correct 765 ms 13000 KB Output is correct
24 Correct 822 ms 11372 KB Output is correct
25 Correct 873 ms 12552 KB Output is correct
26 Correct 888 ms 13720 KB Output is correct
27 Correct 644 ms 8536 KB Output is correct
28 Correct 635 ms 8536 KB Output is correct
29 Correct 658 ms 8532 KB Output is correct
30 Correct 660 ms 8532 KB Output is correct
31 Correct 648 ms 8540 KB Output is correct
32 Correct 669 ms 8532 KB Output is correct
33 Correct 648 ms 8532 KB Output is correct
34 Correct 645 ms 8532 KB Output is correct
35 Correct 652 ms 8544 KB Output is correct
36 Correct 664 ms 8536 KB Output is correct
37 Correct 639 ms 8532 KB Output is correct
38 Correct 641 ms 8532 KB Output is correct
39 Correct 662 ms 8532 KB Output is correct
40 Correct 662 ms 8536 KB Output is correct
41 Correct 641 ms 8532 KB Output is correct
42 Correct 642 ms 8532 KB Output is correct
43 Correct 649 ms 8532 KB Output is correct
44 Correct 644 ms 8532 KB Output is correct
45 Correct 653 ms 8532 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 636 ms 8532 KB Output is correct
2 Correct 690 ms 12640 KB Output is correct
3 Correct 740 ms 11352 KB Output is correct
4 Correct 727 ms 11380 KB Output is correct
5 Correct 740 ms 11480 KB Output is correct
6 Correct 732 ms 12548 KB Output is correct
7 Correct 745 ms 13716 KB Output is correct
8 Correct 645 ms 8532 KB Output is correct
9 Correct 644 ms 8532 KB Output is correct
10 Correct 645 ms 8544 KB Output is correct
11 Correct 642 ms 8532 KB Output is correct
12 Correct 682 ms 8532 KB Output is correct
13 Correct 639 ms 8532 KB Output is correct
14 Correct 645 ms 8532 KB Output is correct
15 Correct 649 ms 8532 KB Output is correct
16 Correct 648 ms 8532 KB Output is correct
17 Correct 651 ms 8576 KB Output is correct
18 Correct 633 ms 8532 KB Output is correct
19 Correct 671 ms 8556 KB Output is correct
20 Correct 868 ms 12548 KB Output is correct
21 Correct 845 ms 13728 KB Output is correct
22 Correct 870 ms 13720 KB Output is correct
23 Correct 765 ms 13000 KB Output is correct
24 Correct 822 ms 11372 KB Output is correct
25 Correct 873 ms 12552 KB Output is correct
26 Correct 888 ms 13720 KB Output is correct
27 Correct 644 ms 8536 KB Output is correct
28 Correct 635 ms 8536 KB Output is correct
29 Correct 658 ms 8532 KB Output is correct
30 Correct 660 ms 8532 KB Output is correct
31 Correct 648 ms 8540 KB Output is correct
32 Correct 669 ms 8532 KB Output is correct
33 Correct 648 ms 8532 KB Output is correct
34 Correct 645 ms 8532 KB Output is correct
35 Correct 652 ms 8544 KB Output is correct
36 Correct 664 ms 8536 KB Output is correct
37 Correct 639 ms 8532 KB Output is correct
38 Correct 641 ms 8532 KB Output is correct
39 Correct 662 ms 8532 KB Output is correct
40 Correct 662 ms 8536 KB Output is correct
41 Correct 641 ms 8532 KB Output is correct
42 Correct 642 ms 8532 KB Output is correct
43 Correct 649 ms 8532 KB Output is correct
44 Correct 644 ms 8532 KB Output is correct
45 Correct 653 ms 8532 KB Output is correct
46 Correct 601 ms 8532 KB Output is correct
47 Correct 944 ms 12556 KB Output is correct
48 Correct 932 ms 13716 KB Output is correct
49 Correct 954 ms 13784 KB Output is correct
50 Correct 805 ms 12880 KB Output is correct
51 Correct 859 ms 11376 KB Output is correct
52 Correct 911 ms 12680 KB Output is correct
53 Correct 938 ms 14152 KB Output is correct
54 Correct 622 ms 8532 KB Output is correct
55 Correct 614 ms 8536 KB Output is correct
56 Correct 621 ms 8532 KB Output is correct
57 Correct 613 ms 8536 KB Output is correct
58 Correct 616 ms 8532 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 636 ms 8532 KB Output is correct
2 Correct 690 ms 12640 KB Output is correct
3 Correct 740 ms 11352 KB Output is correct
4 Correct 727 ms 11380 KB Output is correct
5 Correct 740 ms 11480 KB Output is correct
6 Correct 732 ms 12548 KB Output is correct
7 Correct 745 ms 13716 KB Output is correct
8 Correct 645 ms 8532 KB Output is correct
9 Correct 644 ms 8532 KB Output is correct
10 Correct 645 ms 8544 KB Output is correct
11 Correct 642 ms 8532 KB Output is correct
12 Correct 682 ms 8532 KB Output is correct
13 Correct 639 ms 8532 KB Output is correct
14 Correct 645 ms 8532 KB Output is correct
15 Correct 649 ms 8532 KB Output is correct
16 Correct 648 ms 8532 KB Output is correct
17 Correct 651 ms 8576 KB Output is correct
18 Correct 633 ms 8532 KB Output is correct
19 Correct 671 ms 8556 KB Output is correct
20 Correct 868 ms 12548 KB Output is correct
21 Correct 845 ms 13728 KB Output is correct
22 Correct 870 ms 13720 KB Output is correct
23 Correct 765 ms 13000 KB Output is correct
24 Correct 822 ms 11372 KB Output is correct
25 Correct 873 ms 12552 KB Output is correct
26 Correct 888 ms 13720 KB Output is correct
27 Correct 644 ms 8536 KB Output is correct
28 Correct 635 ms 8536 KB Output is correct
29 Correct 658 ms 8532 KB Output is correct
30 Correct 660 ms 8532 KB Output is correct
31 Correct 648 ms 8540 KB Output is correct
32 Correct 669 ms 8532 KB Output is correct
33 Correct 648 ms 8532 KB Output is correct
34 Correct 645 ms 8532 KB Output is correct
35 Correct 652 ms 8544 KB Output is correct
36 Correct 664 ms 8536 KB Output is correct
37 Correct 639 ms 8532 KB Output is correct
38 Correct 641 ms 8532 KB Output is correct
39 Correct 662 ms 8532 KB Output is correct
40 Correct 662 ms 8536 KB Output is correct
41 Correct 641 ms 8532 KB Output is correct
42 Correct 642 ms 8532 KB Output is correct
43 Correct 649 ms 8532 KB Output is correct
44 Correct 644 ms 8532 KB Output is correct
45 Correct 653 ms 8532 KB Output is correct
46 Correct 601 ms 8532 KB Output is correct
47 Correct 944 ms 12556 KB Output is correct
48 Correct 932 ms 13716 KB Output is correct
49 Correct 954 ms 13784 KB Output is correct
50 Correct 805 ms 12880 KB Output is correct
51 Correct 859 ms 11376 KB Output is correct
52 Correct 911 ms 12680 KB Output is correct
53 Correct 938 ms 14152 KB Output is correct
54 Correct 622 ms 8532 KB Output is correct
55 Correct 614 ms 8536 KB Output is correct
56 Correct 621 ms 8532 KB Output is correct
57 Correct 613 ms 8536 KB Output is correct
58 Correct 616 ms 8532 KB Output is correct
59 Correct 944 ms 12860 KB Output is correct
60 Correct 806 ms 10588 KB Output is correct
61 Correct 812 ms 10824 KB Output is correct
62 Correct 824 ms 10908 KB Output is correct
63 Correct 980 ms 12596 KB Output is correct
64 Correct 995 ms 13720 KB Output is correct
65 Correct 984 ms 13716 KB Output is correct
66 Correct 840 ms 12936 KB Output is correct
67 Correct 896 ms 11376 KB Output is correct
68 Correct 975 ms 12552 KB Output is correct
69 Correct 1012 ms 14100 KB Output is correct
70 Correct 633 ms 8536 KB Output is correct
71 Correct 611 ms 8532 KB Output is correct
72 Correct 614 ms 8532 KB Output is correct
73 Correct 613 ms 8532 KB Output is correct
74 Correct 618 ms 8532 KB Output is correct
75 Correct 678 ms 8580 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 609 ms 8532 KB Output is correct
2 Correct 609 ms 8556 KB Output is correct
3 Correct 648 ms 8532 KB Output is correct
4 Correct 628 ms 8532 KB Output is correct
5 Correct 619 ms 8536 KB Output is correct
6 Correct 608 ms 8532 KB Output is correct
7 Correct 596 ms 8532 KB Output is correct
8 Correct 599 ms 8548 KB Output is correct
9 Correct 626 ms 8536 KB Output is correct
10 Correct 602 ms 8652 KB Output is correct
11 Correct 609 ms 8532 KB Output is correct
12 Correct 623 ms 8532 KB Output is correct
13 Correct 630 ms 8532 KB Output is correct
14 Correct 635 ms 8532 KB Output is correct
15 Correct 640 ms 8548 KB Output is correct
16 Correct 634 ms 8532 KB Output is correct
17 Correct 642 ms 8532 KB Output is correct
18 Correct 636 ms 8532 KB Output is correct
19 Correct 630 ms 8532 KB Output is correct
20 Correct 625 ms 8532 KB Output is correct
21 Correct 637 ms 8532 KB Output is correct
22 Correct 638 ms 8532 KB Output is correct
23 Correct 639 ms 8532 KB Output is correct
24 Correct 643 ms 8532 KB Output is correct
25 Correct 645 ms 8656 KB Output is correct
26 Correct 661 ms 8532 KB Output is correct
27 Correct 649 ms 8532 KB Output is correct
28 Correct 646 ms 8532 KB Output is correct
29 Correct 632 ms 8532 KB Output is correct
30 Correct 647 ms 8536 KB Output is correct
31 Correct 664 ms 8532 KB Output is correct
32 Correct 638 ms 8532 KB Output is correct
33 Correct 634 ms 8532 KB Output is correct
34 Correct 650 ms 8532 KB Output is correct
35 Correct 643 ms 8540 KB Output is correct
36 Correct 637 ms 8540 KB Output is correct
37 Correct 641 ms 8532 KB Output is correct
38 Correct 634 ms 8532 KB Output is correct
39 Correct 650 ms 8536 KB Output is correct
40 Correct 675 ms 8536 KB Output is correct
41 Correct 621 ms 8532 KB Output is correct
42 Correct 608 ms 8544 KB Output is correct
43 Correct 633 ms 8532 KB Output is correct
44 Correct 607 ms 8536 KB Output is correct
45 Correct 610 ms 8532 KB Output is correct
46 Correct 632 ms 8532 KB Output is correct
47 Correct 608 ms 8532 KB Output is correct
48 Correct 597 ms 8532 KB Output is correct
49 Correct 590 ms 8532 KB Output is correct
50 Correct 617 ms 8536 KB Output is correct
51 Correct 599 ms 8576 KB Output is correct
52 Correct 658 ms 8552 KB Output is correct
53 Correct 658 ms 8576 KB Output is correct
54 Correct 675 ms 8584 KB Output is correct
55 Correct 648 ms 8584 KB Output is correct
56 Correct 694 ms 8588 KB Output is correct
57 Correct 636 ms 8532 KB Output is correct
58 Correct 690 ms 12640 KB Output is correct
59 Correct 740 ms 11352 KB Output is correct
60 Correct 727 ms 11380 KB Output is correct
61 Correct 740 ms 11480 KB Output is correct
62 Correct 732 ms 12548 KB Output is correct
63 Correct 745 ms 13716 KB Output is correct
64 Correct 645 ms 8532 KB Output is correct
65 Correct 644 ms 8532 KB Output is correct
66 Correct 645 ms 8544 KB Output is correct
67 Correct 642 ms 8532 KB Output is correct
68 Correct 682 ms 8532 KB Output is correct
69 Correct 639 ms 8532 KB Output is correct
70 Correct 645 ms 8532 KB Output is correct
71 Correct 649 ms 8532 KB Output is correct
72 Correct 648 ms 8532 KB Output is correct
73 Correct 651 ms 8576 KB Output is correct
74 Correct 633 ms 8532 KB Output is correct
75 Correct 671 ms 8556 KB Output is correct
76 Correct 868 ms 12548 KB Output is correct
77 Correct 845 ms 13728 KB Output is correct
78 Correct 870 ms 13720 KB Output is correct
79 Correct 765 ms 13000 KB Output is correct
80 Correct 822 ms 11372 KB Output is correct
81 Correct 873 ms 12552 KB Output is correct
82 Correct 888 ms 13720 KB Output is correct
83 Correct 644 ms 8536 KB Output is correct
84 Correct 635 ms 8536 KB Output is correct
85 Correct 658 ms 8532 KB Output is correct
86 Correct 660 ms 8532 KB Output is correct
87 Correct 648 ms 8540 KB Output is correct
88 Correct 669 ms 8532 KB Output is correct
89 Correct 648 ms 8532 KB Output is correct
90 Correct 645 ms 8532 KB Output is correct
91 Correct 652 ms 8544 KB Output is correct
92 Correct 664 ms 8536 KB Output is correct
93 Correct 639 ms 8532 KB Output is correct
94 Correct 641 ms 8532 KB Output is correct
95 Correct 662 ms 8532 KB Output is correct
96 Correct 662 ms 8536 KB Output is correct
97 Correct 641 ms 8532 KB Output is correct
98 Correct 642 ms 8532 KB Output is correct
99 Correct 649 ms 8532 KB Output is correct
100 Correct 644 ms 8532 KB Output is correct
101 Correct 653 ms 8532 KB Output is correct
102 Correct 601 ms 8532 KB Output is correct
103 Correct 944 ms 12556 KB Output is correct
104 Correct 932 ms 13716 KB Output is correct
105 Correct 954 ms 13784 KB Output is correct
106 Correct 805 ms 12880 KB Output is correct
107 Correct 859 ms 11376 KB Output is correct
108 Correct 911 ms 12680 KB Output is correct
109 Correct 938 ms 14152 KB Output is correct
110 Correct 622 ms 8532 KB Output is correct
111 Correct 614 ms 8536 KB Output is correct
112 Correct 621 ms 8532 KB Output is correct
113 Correct 613 ms 8536 KB Output is correct
114 Correct 616 ms 8532 KB Output is correct
115 Correct 944 ms 12860 KB Output is correct
116 Correct 806 ms 10588 KB Output is correct
117 Correct 812 ms 10824 KB Output is correct
118 Correct 824 ms 10908 KB Output is correct
119 Correct 980 ms 12596 KB Output is correct
120 Correct 995 ms 13720 KB Output is correct
121 Correct 984 ms 13716 KB Output is correct
122 Correct 840 ms 12936 KB Output is correct
123 Correct 896 ms 11376 KB Output is correct
124 Correct 975 ms 12552 KB Output is correct
125 Correct 1012 ms 14100 KB Output is correct
126 Correct 633 ms 8536 KB Output is correct
127 Correct 611 ms 8532 KB Output is correct
128 Correct 614 ms 8532 KB Output is correct
129 Correct 613 ms 8532 KB Output is correct
130 Correct 618 ms 8532 KB Output is correct
131 Correct 678 ms 8580 KB Output is correct
132 Incorrect 1020 ms 14100 KB Output isn't correct
133 Halted 0 ms 0 KB -