# |
제출 시각 |
아이디 |
문제 |
언어 |
결과 |
실행 시간 |
메모리 |
796050 |
2023-07-28T05:25:59 Z |
이성호(#10070) |
Council (JOI23_council) |
C++17 |
|
1100 ms |
14108 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 |
626 ms |
8536 KB |
Output is correct |
2 |
Correct |
624 ms |
8532 KB |
Output is correct |
3 |
Correct |
653 ms |
8532 KB |
Output is correct |
4 |
Correct |
638 ms |
8536 KB |
Output is correct |
5 |
Correct |
633 ms |
8532 KB |
Output is correct |
6 |
Correct |
616 ms |
8536 KB |
Output is correct |
7 |
Correct |
602 ms |
8532 KB |
Output is correct |
8 |
Correct |
604 ms |
8508 KB |
Output is correct |
9 |
Correct |
648 ms |
8532 KB |
Output is correct |
10 |
Correct |
610 ms |
8532 KB |
Output is correct |
11 |
Correct |
602 ms |
8532 KB |
Output is correct |
12 |
Correct |
624 ms |
8532 KB |
Output is correct |
13 |
Correct |
641 ms |
8532 KB |
Output is correct |
14 |
Correct |
656 ms |
8532 KB |
Output is correct |
15 |
Correct |
622 ms |
8536 KB |
Output is correct |
16 |
Correct |
638 ms |
8532 KB |
Output is correct |
17 |
Correct |
645 ms |
8532 KB |
Output is correct |
18 |
Correct |
644 ms |
8532 KB |
Output is correct |
19 |
Correct |
636 ms |
8532 KB |
Output is correct |
20 |
Correct |
626 ms |
8532 KB |
Output is correct |
21 |
Correct |
660 ms |
8532 KB |
Output is correct |
22 |
Correct |
628 ms |
8532 KB |
Output is correct |
23 |
Correct |
636 ms |
8532 KB |
Output is correct |
24 |
Correct |
652 ms |
8536 KB |
Output is correct |
25 |
Correct |
667 ms |
8532 KB |
Output is correct |
26 |
Correct |
646 ms |
8536 KB |
Output is correct |
27 |
Correct |
656 ms |
8652 KB |
Output is correct |
28 |
Correct |
649 ms |
8552 KB |
Output is correct |
29 |
Correct |
634 ms |
8532 KB |
Output is correct |
30 |
Correct |
641 ms |
8656 KB |
Output is correct |
31 |
Correct |
664 ms |
8544 KB |
Output is correct |
32 |
Correct |
660 ms |
8532 KB |
Output is correct |
33 |
Correct |
628 ms |
8532 KB |
Output is correct |
34 |
Correct |
648 ms |
8660 KB |
Output is correct |
35 |
Correct |
662 ms |
8540 KB |
Output is correct |
36 |
Correct |
640 ms |
8532 KB |
Output is correct |
37 |
Correct |
648 ms |
8532 KB |
Output is correct |
38 |
Correct |
623 ms |
8532 KB |
Output is correct |
39 |
Correct |
642 ms |
8532 KB |
Output is correct |
40 |
Correct |
689 ms |
8532 KB |
Output is correct |
41 |
Correct |
631 ms |
8532 KB |
Output is correct |
42 |
Correct |
607 ms |
8544 KB |
Output is correct |
43 |
Correct |
651 ms |
8532 KB |
Output is correct |
44 |
Correct |
613 ms |
8532 KB |
Output is correct |
45 |
Correct |
613 ms |
8552 KB |
Output is correct |
46 |
Correct |
633 ms |
8536 KB |
Output is correct |
47 |
Correct |
600 ms |
8532 KB |
Output is correct |
48 |
Correct |
601 ms |
8532 KB |
Output is correct |
49 |
Correct |
641 ms |
8528 KB |
Output is correct |
50 |
Correct |
617 ms |
8532 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
626 ms |
8536 KB |
Output is correct |
2 |
Correct |
624 ms |
8532 KB |
Output is correct |
3 |
Correct |
653 ms |
8532 KB |
Output is correct |
4 |
Correct |
638 ms |
8536 KB |
Output is correct |
5 |
Correct |
633 ms |
8532 KB |
Output is correct |
6 |
Correct |
616 ms |
8536 KB |
Output is correct |
7 |
Correct |
602 ms |
8532 KB |
Output is correct |
8 |
Correct |
604 ms |
8508 KB |
Output is correct |
9 |
Correct |
648 ms |
8532 KB |
Output is correct |
10 |
Correct |
610 ms |
8532 KB |
Output is correct |
11 |
Correct |
602 ms |
8532 KB |
Output is correct |
12 |
Correct |
624 ms |
8532 KB |
Output is correct |
13 |
Correct |
641 ms |
8532 KB |
Output is correct |
14 |
Correct |
656 ms |
8532 KB |
Output is correct |
15 |
Correct |
622 ms |
8536 KB |
Output is correct |
16 |
Correct |
638 ms |
8532 KB |
Output is correct |
17 |
Correct |
645 ms |
8532 KB |
Output is correct |
18 |
Correct |
644 ms |
8532 KB |
Output is correct |
19 |
Correct |
636 ms |
8532 KB |
Output is correct |
20 |
Correct |
626 ms |
8532 KB |
Output is correct |
21 |
Correct |
660 ms |
8532 KB |
Output is correct |
22 |
Correct |
628 ms |
8532 KB |
Output is correct |
23 |
Correct |
636 ms |
8532 KB |
Output is correct |
24 |
Correct |
652 ms |
8536 KB |
Output is correct |
25 |
Correct |
667 ms |
8532 KB |
Output is correct |
26 |
Correct |
646 ms |
8536 KB |
Output is correct |
27 |
Correct |
656 ms |
8652 KB |
Output is correct |
28 |
Correct |
649 ms |
8552 KB |
Output is correct |
29 |
Correct |
634 ms |
8532 KB |
Output is correct |
30 |
Correct |
641 ms |
8656 KB |
Output is correct |
31 |
Correct |
664 ms |
8544 KB |
Output is correct |
32 |
Correct |
660 ms |
8532 KB |
Output is correct |
33 |
Correct |
628 ms |
8532 KB |
Output is correct |
34 |
Correct |
648 ms |
8660 KB |
Output is correct |
35 |
Correct |
662 ms |
8540 KB |
Output is correct |
36 |
Correct |
640 ms |
8532 KB |
Output is correct |
37 |
Correct |
648 ms |
8532 KB |
Output is correct |
38 |
Correct |
623 ms |
8532 KB |
Output is correct |
39 |
Correct |
642 ms |
8532 KB |
Output is correct |
40 |
Correct |
689 ms |
8532 KB |
Output is correct |
41 |
Correct |
631 ms |
8532 KB |
Output is correct |
42 |
Correct |
607 ms |
8544 KB |
Output is correct |
43 |
Correct |
651 ms |
8532 KB |
Output is correct |
44 |
Correct |
613 ms |
8532 KB |
Output is correct |
45 |
Correct |
613 ms |
8552 KB |
Output is correct |
46 |
Correct |
633 ms |
8536 KB |
Output is correct |
47 |
Correct |
600 ms |
8532 KB |
Output is correct |
48 |
Correct |
601 ms |
8532 KB |
Output is correct |
49 |
Correct |
641 ms |
8528 KB |
Output is correct |
50 |
Correct |
617 ms |
8532 KB |
Output is correct |
51 |
Correct |
618 ms |
8572 KB |
Output is correct |
52 |
Correct |
646 ms |
8552 KB |
Output is correct |
53 |
Correct |
709 ms |
8572 KB |
Output is correct |
54 |
Correct |
678 ms |
8584 KB |
Output is correct |
55 |
Correct |
695 ms |
8588 KB |
Output is correct |
56 |
Correct |
694 ms |
8600 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
671 ms |
8532 KB |
Output is correct |
2 |
Correct |
700 ms |
12548 KB |
Output is correct |
3 |
Correct |
720 ms |
11352 KB |
Output is correct |
4 |
Correct |
746 ms |
11488 KB |
Output is correct |
5 |
Correct |
783 ms |
11380 KB |
Output is correct |
6 |
Correct |
722 ms |
12620 KB |
Output is correct |
7 |
Correct |
810 ms |
13716 KB |
Output is correct |
8 |
Correct |
695 ms |
8532 KB |
Output is correct |
9 |
Correct |
645 ms |
8532 KB |
Output is correct |
10 |
Correct |
643 ms |
8532 KB |
Output is correct |
11 |
Correct |
698 ms |
8532 KB |
Output is correct |
12 |
Correct |
655 ms |
8532 KB |
Output is correct |
13 |
Correct |
673 ms |
8532 KB |
Output is correct |
14 |
Correct |
636 ms |
8532 KB |
Output is correct |
15 |
Correct |
643 ms |
8616 KB |
Output is correct |
16 |
Correct |
663 ms |
8532 KB |
Output is correct |
17 |
Correct |
715 ms |
8588 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
671 ms |
8532 KB |
Output is correct |
2 |
Correct |
700 ms |
12548 KB |
Output is correct |
3 |
Correct |
720 ms |
11352 KB |
Output is correct |
4 |
Correct |
746 ms |
11488 KB |
Output is correct |
5 |
Correct |
783 ms |
11380 KB |
Output is correct |
6 |
Correct |
722 ms |
12620 KB |
Output is correct |
7 |
Correct |
810 ms |
13716 KB |
Output is correct |
8 |
Correct |
695 ms |
8532 KB |
Output is correct |
9 |
Correct |
645 ms |
8532 KB |
Output is correct |
10 |
Correct |
643 ms |
8532 KB |
Output is correct |
11 |
Correct |
698 ms |
8532 KB |
Output is correct |
12 |
Correct |
655 ms |
8532 KB |
Output is correct |
13 |
Correct |
673 ms |
8532 KB |
Output is correct |
14 |
Correct |
636 ms |
8532 KB |
Output is correct |
15 |
Correct |
643 ms |
8616 KB |
Output is correct |
16 |
Correct |
663 ms |
8532 KB |
Output is correct |
17 |
Correct |
715 ms |
8588 KB |
Output is correct |
18 |
Correct |
630 ms |
8532 KB |
Output is correct |
19 |
Correct |
636 ms |
8532 KB |
Output is correct |
20 |
Correct |
887 ms |
12624 KB |
Output is correct |
21 |
Correct |
845 ms |
13720 KB |
Output is correct |
22 |
Correct |
856 ms |
13756 KB |
Output is correct |
23 |
Correct |
771 ms |
12932 KB |
Output is correct |
24 |
Correct |
870 ms |
11428 KB |
Output is correct |
25 |
Correct |
858 ms |
12584 KB |
Output is correct |
26 |
Correct |
875 ms |
13716 KB |
Output is correct |
27 |
Correct |
628 ms |
8532 KB |
Output is correct |
28 |
Correct |
637 ms |
8532 KB |
Output is correct |
29 |
Correct |
657 ms |
8536 KB |
Output is correct |
30 |
Correct |
644 ms |
8532 KB |
Output is correct |
31 |
Correct |
655 ms |
8540 KB |
Output is correct |
32 |
Correct |
658 ms |
8532 KB |
Output is correct |
33 |
Correct |
650 ms |
8536 KB |
Output is correct |
34 |
Correct |
641 ms |
8532 KB |
Output is correct |
35 |
Correct |
648 ms |
8652 KB |
Output is correct |
36 |
Correct |
659 ms |
8532 KB |
Output is correct |
37 |
Correct |
628 ms |
8532 KB |
Output is correct |
38 |
Correct |
643 ms |
8528 KB |
Output is correct |
39 |
Correct |
652 ms |
8652 KB |
Output is correct |
40 |
Correct |
648 ms |
8536 KB |
Output is correct |
41 |
Correct |
652 ms |
8532 KB |
Output is correct |
42 |
Correct |
640 ms |
8532 KB |
Output is correct |
43 |
Correct |
637 ms |
8544 KB |
Output is correct |
44 |
Correct |
641 ms |
8532 KB |
Output is correct |
45 |
Correct |
677 ms |
8544 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
671 ms |
8532 KB |
Output is correct |
2 |
Correct |
700 ms |
12548 KB |
Output is correct |
3 |
Correct |
720 ms |
11352 KB |
Output is correct |
4 |
Correct |
746 ms |
11488 KB |
Output is correct |
5 |
Correct |
783 ms |
11380 KB |
Output is correct |
6 |
Correct |
722 ms |
12620 KB |
Output is correct |
7 |
Correct |
810 ms |
13716 KB |
Output is correct |
8 |
Correct |
695 ms |
8532 KB |
Output is correct |
9 |
Correct |
645 ms |
8532 KB |
Output is correct |
10 |
Correct |
643 ms |
8532 KB |
Output is correct |
11 |
Correct |
698 ms |
8532 KB |
Output is correct |
12 |
Correct |
655 ms |
8532 KB |
Output is correct |
13 |
Correct |
673 ms |
8532 KB |
Output is correct |
14 |
Correct |
636 ms |
8532 KB |
Output is correct |
15 |
Correct |
643 ms |
8616 KB |
Output is correct |
16 |
Correct |
663 ms |
8532 KB |
Output is correct |
17 |
Correct |
715 ms |
8588 KB |
Output is correct |
18 |
Correct |
630 ms |
8532 KB |
Output is correct |
19 |
Correct |
636 ms |
8532 KB |
Output is correct |
20 |
Correct |
887 ms |
12624 KB |
Output is correct |
21 |
Correct |
845 ms |
13720 KB |
Output is correct |
22 |
Correct |
856 ms |
13756 KB |
Output is correct |
23 |
Correct |
771 ms |
12932 KB |
Output is correct |
24 |
Correct |
870 ms |
11428 KB |
Output is correct |
25 |
Correct |
858 ms |
12584 KB |
Output is correct |
26 |
Correct |
875 ms |
13716 KB |
Output is correct |
27 |
Correct |
628 ms |
8532 KB |
Output is correct |
28 |
Correct |
637 ms |
8532 KB |
Output is correct |
29 |
Correct |
657 ms |
8536 KB |
Output is correct |
30 |
Correct |
644 ms |
8532 KB |
Output is correct |
31 |
Correct |
655 ms |
8540 KB |
Output is correct |
32 |
Correct |
658 ms |
8532 KB |
Output is correct |
33 |
Correct |
650 ms |
8536 KB |
Output is correct |
34 |
Correct |
641 ms |
8532 KB |
Output is correct |
35 |
Correct |
648 ms |
8652 KB |
Output is correct |
36 |
Correct |
659 ms |
8532 KB |
Output is correct |
37 |
Correct |
628 ms |
8532 KB |
Output is correct |
38 |
Correct |
643 ms |
8528 KB |
Output is correct |
39 |
Correct |
652 ms |
8652 KB |
Output is correct |
40 |
Correct |
648 ms |
8536 KB |
Output is correct |
41 |
Correct |
652 ms |
8532 KB |
Output is correct |
42 |
Correct |
640 ms |
8532 KB |
Output is correct |
43 |
Correct |
637 ms |
8544 KB |
Output is correct |
44 |
Correct |
641 ms |
8532 KB |
Output is correct |
45 |
Correct |
677 ms |
8544 KB |
Output is correct |
46 |
Correct |
604 ms |
8532 KB |
Output is correct |
47 |
Correct |
946 ms |
12604 KB |
Output is correct |
48 |
Correct |
929 ms |
13772 KB |
Output is correct |
49 |
Correct |
923 ms |
13792 KB |
Output is correct |
50 |
Correct |
796 ms |
12932 KB |
Output is correct |
51 |
Correct |
865 ms |
11376 KB |
Output is correct |
52 |
Correct |
913 ms |
12624 KB |
Output is correct |
53 |
Correct |
946 ms |
13980 KB |
Output is correct |
54 |
Correct |
639 ms |
8532 KB |
Output is correct |
55 |
Correct |
597 ms |
8532 KB |
Output is correct |
56 |
Correct |
621 ms |
8528 KB |
Output is correct |
57 |
Correct |
615 ms |
8532 KB |
Output is correct |
58 |
Correct |
620 ms |
8532 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
671 ms |
8532 KB |
Output is correct |
2 |
Correct |
700 ms |
12548 KB |
Output is correct |
3 |
Correct |
720 ms |
11352 KB |
Output is correct |
4 |
Correct |
746 ms |
11488 KB |
Output is correct |
5 |
Correct |
783 ms |
11380 KB |
Output is correct |
6 |
Correct |
722 ms |
12620 KB |
Output is correct |
7 |
Correct |
810 ms |
13716 KB |
Output is correct |
8 |
Correct |
695 ms |
8532 KB |
Output is correct |
9 |
Correct |
645 ms |
8532 KB |
Output is correct |
10 |
Correct |
643 ms |
8532 KB |
Output is correct |
11 |
Correct |
698 ms |
8532 KB |
Output is correct |
12 |
Correct |
655 ms |
8532 KB |
Output is correct |
13 |
Correct |
673 ms |
8532 KB |
Output is correct |
14 |
Correct |
636 ms |
8532 KB |
Output is correct |
15 |
Correct |
643 ms |
8616 KB |
Output is correct |
16 |
Correct |
663 ms |
8532 KB |
Output is correct |
17 |
Correct |
715 ms |
8588 KB |
Output is correct |
18 |
Correct |
630 ms |
8532 KB |
Output is correct |
19 |
Correct |
636 ms |
8532 KB |
Output is correct |
20 |
Correct |
887 ms |
12624 KB |
Output is correct |
21 |
Correct |
845 ms |
13720 KB |
Output is correct |
22 |
Correct |
856 ms |
13756 KB |
Output is correct |
23 |
Correct |
771 ms |
12932 KB |
Output is correct |
24 |
Correct |
870 ms |
11428 KB |
Output is correct |
25 |
Correct |
858 ms |
12584 KB |
Output is correct |
26 |
Correct |
875 ms |
13716 KB |
Output is correct |
27 |
Correct |
628 ms |
8532 KB |
Output is correct |
28 |
Correct |
637 ms |
8532 KB |
Output is correct |
29 |
Correct |
657 ms |
8536 KB |
Output is correct |
30 |
Correct |
644 ms |
8532 KB |
Output is correct |
31 |
Correct |
655 ms |
8540 KB |
Output is correct |
32 |
Correct |
658 ms |
8532 KB |
Output is correct |
33 |
Correct |
650 ms |
8536 KB |
Output is correct |
34 |
Correct |
641 ms |
8532 KB |
Output is correct |
35 |
Correct |
648 ms |
8652 KB |
Output is correct |
36 |
Correct |
659 ms |
8532 KB |
Output is correct |
37 |
Correct |
628 ms |
8532 KB |
Output is correct |
38 |
Correct |
643 ms |
8528 KB |
Output is correct |
39 |
Correct |
652 ms |
8652 KB |
Output is correct |
40 |
Correct |
648 ms |
8536 KB |
Output is correct |
41 |
Correct |
652 ms |
8532 KB |
Output is correct |
42 |
Correct |
640 ms |
8532 KB |
Output is correct |
43 |
Correct |
637 ms |
8544 KB |
Output is correct |
44 |
Correct |
641 ms |
8532 KB |
Output is correct |
45 |
Correct |
677 ms |
8544 KB |
Output is correct |
46 |
Correct |
604 ms |
8532 KB |
Output is correct |
47 |
Correct |
946 ms |
12604 KB |
Output is correct |
48 |
Correct |
929 ms |
13772 KB |
Output is correct |
49 |
Correct |
923 ms |
13792 KB |
Output is correct |
50 |
Correct |
796 ms |
12932 KB |
Output is correct |
51 |
Correct |
865 ms |
11376 KB |
Output is correct |
52 |
Correct |
913 ms |
12624 KB |
Output is correct |
53 |
Correct |
946 ms |
13980 KB |
Output is correct |
54 |
Correct |
639 ms |
8532 KB |
Output is correct |
55 |
Correct |
597 ms |
8532 KB |
Output is correct |
56 |
Correct |
621 ms |
8528 KB |
Output is correct |
57 |
Correct |
615 ms |
8532 KB |
Output is correct |
58 |
Correct |
620 ms |
8532 KB |
Output is correct |
59 |
Correct |
949 ms |
12932 KB |
Output is correct |
60 |
Correct |
794 ms |
10688 KB |
Output is correct |
61 |
Correct |
813 ms |
10712 KB |
Output is correct |
62 |
Correct |
806 ms |
10900 KB |
Output is correct |
63 |
Correct |
970 ms |
12552 KB |
Output is correct |
64 |
Correct |
999 ms |
13720 KB |
Output is correct |
65 |
Correct |
991 ms |
13736 KB |
Output is correct |
66 |
Correct |
848 ms |
12920 KB |
Output is correct |
67 |
Correct |
894 ms |
11468 KB |
Output is correct |
68 |
Correct |
975 ms |
12652 KB |
Output is correct |
69 |
Correct |
1027 ms |
14108 KB |
Output is correct |
70 |
Correct |
628 ms |
8532 KB |
Output is correct |
71 |
Correct |
610 ms |
8532 KB |
Output is correct |
72 |
Correct |
616 ms |
8532 KB |
Output is correct |
73 |
Correct |
604 ms |
8532 KB |
Output is correct |
74 |
Correct |
615 ms |
8532 KB |
Output is correct |
75 |
Correct |
687 ms |
8588 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
626 ms |
8536 KB |
Output is correct |
2 |
Correct |
624 ms |
8532 KB |
Output is correct |
3 |
Correct |
653 ms |
8532 KB |
Output is correct |
4 |
Correct |
638 ms |
8536 KB |
Output is correct |
5 |
Correct |
633 ms |
8532 KB |
Output is correct |
6 |
Correct |
616 ms |
8536 KB |
Output is correct |
7 |
Correct |
602 ms |
8532 KB |
Output is correct |
8 |
Correct |
604 ms |
8508 KB |
Output is correct |
9 |
Correct |
648 ms |
8532 KB |
Output is correct |
10 |
Correct |
610 ms |
8532 KB |
Output is correct |
11 |
Correct |
602 ms |
8532 KB |
Output is correct |
12 |
Correct |
624 ms |
8532 KB |
Output is correct |
13 |
Correct |
641 ms |
8532 KB |
Output is correct |
14 |
Correct |
656 ms |
8532 KB |
Output is correct |
15 |
Correct |
622 ms |
8536 KB |
Output is correct |
16 |
Correct |
638 ms |
8532 KB |
Output is correct |
17 |
Correct |
645 ms |
8532 KB |
Output is correct |
18 |
Correct |
644 ms |
8532 KB |
Output is correct |
19 |
Correct |
636 ms |
8532 KB |
Output is correct |
20 |
Correct |
626 ms |
8532 KB |
Output is correct |
21 |
Correct |
660 ms |
8532 KB |
Output is correct |
22 |
Correct |
628 ms |
8532 KB |
Output is correct |
23 |
Correct |
636 ms |
8532 KB |
Output is correct |
24 |
Correct |
652 ms |
8536 KB |
Output is correct |
25 |
Correct |
667 ms |
8532 KB |
Output is correct |
26 |
Correct |
646 ms |
8536 KB |
Output is correct |
27 |
Correct |
656 ms |
8652 KB |
Output is correct |
28 |
Correct |
649 ms |
8552 KB |
Output is correct |
29 |
Correct |
634 ms |
8532 KB |
Output is correct |
30 |
Correct |
641 ms |
8656 KB |
Output is correct |
31 |
Correct |
664 ms |
8544 KB |
Output is correct |
32 |
Correct |
660 ms |
8532 KB |
Output is correct |
33 |
Correct |
628 ms |
8532 KB |
Output is correct |
34 |
Correct |
648 ms |
8660 KB |
Output is correct |
35 |
Correct |
662 ms |
8540 KB |
Output is correct |
36 |
Correct |
640 ms |
8532 KB |
Output is correct |
37 |
Correct |
648 ms |
8532 KB |
Output is correct |
38 |
Correct |
623 ms |
8532 KB |
Output is correct |
39 |
Correct |
642 ms |
8532 KB |
Output is correct |
40 |
Correct |
689 ms |
8532 KB |
Output is correct |
41 |
Correct |
631 ms |
8532 KB |
Output is correct |
42 |
Correct |
607 ms |
8544 KB |
Output is correct |
43 |
Correct |
651 ms |
8532 KB |
Output is correct |
44 |
Correct |
613 ms |
8532 KB |
Output is correct |
45 |
Correct |
613 ms |
8552 KB |
Output is correct |
46 |
Correct |
633 ms |
8536 KB |
Output is correct |
47 |
Correct |
600 ms |
8532 KB |
Output is correct |
48 |
Correct |
601 ms |
8532 KB |
Output is correct |
49 |
Correct |
641 ms |
8528 KB |
Output is correct |
50 |
Correct |
617 ms |
8532 KB |
Output is correct |
51 |
Correct |
618 ms |
8572 KB |
Output is correct |
52 |
Correct |
646 ms |
8552 KB |
Output is correct |
53 |
Correct |
709 ms |
8572 KB |
Output is correct |
54 |
Correct |
678 ms |
8584 KB |
Output is correct |
55 |
Correct |
695 ms |
8588 KB |
Output is correct |
56 |
Correct |
694 ms |
8600 KB |
Output is correct |
57 |
Correct |
671 ms |
8532 KB |
Output is correct |
58 |
Correct |
700 ms |
12548 KB |
Output is correct |
59 |
Correct |
720 ms |
11352 KB |
Output is correct |
60 |
Correct |
746 ms |
11488 KB |
Output is correct |
61 |
Correct |
783 ms |
11380 KB |
Output is correct |
62 |
Correct |
722 ms |
12620 KB |
Output is correct |
63 |
Correct |
810 ms |
13716 KB |
Output is correct |
64 |
Correct |
695 ms |
8532 KB |
Output is correct |
65 |
Correct |
645 ms |
8532 KB |
Output is correct |
66 |
Correct |
643 ms |
8532 KB |
Output is correct |
67 |
Correct |
698 ms |
8532 KB |
Output is correct |
68 |
Correct |
655 ms |
8532 KB |
Output is correct |
69 |
Correct |
673 ms |
8532 KB |
Output is correct |
70 |
Correct |
636 ms |
8532 KB |
Output is correct |
71 |
Correct |
643 ms |
8616 KB |
Output is correct |
72 |
Correct |
663 ms |
8532 KB |
Output is correct |
73 |
Correct |
715 ms |
8588 KB |
Output is correct |
74 |
Correct |
630 ms |
8532 KB |
Output is correct |
75 |
Correct |
636 ms |
8532 KB |
Output is correct |
76 |
Correct |
887 ms |
12624 KB |
Output is correct |
77 |
Correct |
845 ms |
13720 KB |
Output is correct |
78 |
Correct |
856 ms |
13756 KB |
Output is correct |
79 |
Correct |
771 ms |
12932 KB |
Output is correct |
80 |
Correct |
870 ms |
11428 KB |
Output is correct |
81 |
Correct |
858 ms |
12584 KB |
Output is correct |
82 |
Correct |
875 ms |
13716 KB |
Output is correct |
83 |
Correct |
628 ms |
8532 KB |
Output is correct |
84 |
Correct |
637 ms |
8532 KB |
Output is correct |
85 |
Correct |
657 ms |
8536 KB |
Output is correct |
86 |
Correct |
644 ms |
8532 KB |
Output is correct |
87 |
Correct |
655 ms |
8540 KB |
Output is correct |
88 |
Correct |
658 ms |
8532 KB |
Output is correct |
89 |
Correct |
650 ms |
8536 KB |
Output is correct |
90 |
Correct |
641 ms |
8532 KB |
Output is correct |
91 |
Correct |
648 ms |
8652 KB |
Output is correct |
92 |
Correct |
659 ms |
8532 KB |
Output is correct |
93 |
Correct |
628 ms |
8532 KB |
Output is correct |
94 |
Correct |
643 ms |
8528 KB |
Output is correct |
95 |
Correct |
652 ms |
8652 KB |
Output is correct |
96 |
Correct |
648 ms |
8536 KB |
Output is correct |
97 |
Correct |
652 ms |
8532 KB |
Output is correct |
98 |
Correct |
640 ms |
8532 KB |
Output is correct |
99 |
Correct |
637 ms |
8544 KB |
Output is correct |
100 |
Correct |
641 ms |
8532 KB |
Output is correct |
101 |
Correct |
677 ms |
8544 KB |
Output is correct |
102 |
Correct |
604 ms |
8532 KB |
Output is correct |
103 |
Correct |
946 ms |
12604 KB |
Output is correct |
104 |
Correct |
929 ms |
13772 KB |
Output is correct |
105 |
Correct |
923 ms |
13792 KB |
Output is correct |
106 |
Correct |
796 ms |
12932 KB |
Output is correct |
107 |
Correct |
865 ms |
11376 KB |
Output is correct |
108 |
Correct |
913 ms |
12624 KB |
Output is correct |
109 |
Correct |
946 ms |
13980 KB |
Output is correct |
110 |
Correct |
639 ms |
8532 KB |
Output is correct |
111 |
Correct |
597 ms |
8532 KB |
Output is correct |
112 |
Correct |
621 ms |
8528 KB |
Output is correct |
113 |
Correct |
615 ms |
8532 KB |
Output is correct |
114 |
Correct |
620 ms |
8532 KB |
Output is correct |
115 |
Correct |
949 ms |
12932 KB |
Output is correct |
116 |
Correct |
794 ms |
10688 KB |
Output is correct |
117 |
Correct |
813 ms |
10712 KB |
Output is correct |
118 |
Correct |
806 ms |
10900 KB |
Output is correct |
119 |
Correct |
970 ms |
12552 KB |
Output is correct |
120 |
Correct |
999 ms |
13720 KB |
Output is correct |
121 |
Correct |
991 ms |
13736 KB |
Output is correct |
122 |
Correct |
848 ms |
12920 KB |
Output is correct |
123 |
Correct |
894 ms |
11468 KB |
Output is correct |
124 |
Correct |
975 ms |
12652 KB |
Output is correct |
125 |
Correct |
1027 ms |
14108 KB |
Output is correct |
126 |
Correct |
628 ms |
8532 KB |
Output is correct |
127 |
Correct |
610 ms |
8532 KB |
Output is correct |
128 |
Correct |
616 ms |
8532 KB |
Output is correct |
129 |
Correct |
604 ms |
8532 KB |
Output is correct |
130 |
Correct |
615 ms |
8532 KB |
Output is correct |
131 |
Correct |
687 ms |
8588 KB |
Output is correct |
132 |
Correct |
1006 ms |
14108 KB |
Output is correct |
133 |
Correct |
1024 ms |
12680 KB |
Output is correct |
134 |
Correct |
1031 ms |
14108 KB |
Output is correct |
135 |
Correct |
1068 ms |
12808 KB |
Output is correct |
136 |
Correct |
1060 ms |
13024 KB |
Output is correct |
137 |
Correct |
1034 ms |
13848 KB |
Output is correct |
138 |
Correct |
1030 ms |
14088 KB |
Output is correct |
139 |
Correct |
858 ms |
12940 KB |
Output is correct |
140 |
Correct |
929 ms |
11380 KB |
Output is correct |
141 |
Correct |
1050 ms |
12548 KB |
Output is correct |
142 |
Correct |
1100 ms |
14104 KB |
Output is correct |