Submission #560683

# Submission time Handle Problem Language Result Execution time Memory
560683 2022-05-11T22:48:04 Z ala2 Painting Walls (APIO20_paint) C++14
40 / 100
1500 ms 36056 KB
    #include "paint.h"
     
    #include <cassert>
    #include <cstdio>
    #pragma warning(disable : 4996)
    #include <map>
    #include <iostream>
    using namespace std;
    #include <vector>
    #include <queue>
    #include <set>
    #include <algorithm>
    #define ll long long
    #define vi vector<int> 
    #define vll vector<ll>
    #define pi pair<int,int> 
    #define pll pair<ll,ll>
     
    int minimumInstructions(
        int N, int M, int K, std::vector<int> C,
        std::vector<int> A, std::vector<std::vector<int>> B) {
     
        vector<vi> com(K);
     
        for (int i = 0; i < M; i++) {
            for (int j = 0; j < A[i]; j++) {
                com[B[i][j]].push_back(i);
            }
        }
        vector<vi> kad(N);
        for (int i = 0; i < N; i++) {
            kad[i].resize(com[C[i]].size());
        }
        for (int i = N - 2; i >= 0; i--) {
            if (com[C[i]].empty())
                return -1;
            for (int j = 0; j < kad[i].size(); j++) {
                for (int k = 0; k < kad[i+1].size(); k++) {
                    if (com[C[i + 1]][k] == (com[C[i]][j] + 1) % M) {
                        kad[i][j] = kad[i + 1][k] + 1;
                    }
                }
            }
        }
        vector<bool> ket(N);
        for (int i = 0; i < N; i++) {
            for (int j : kad[i]) {
                if (j >= M - 1) {
                    ket[i] = 1;
                }
            }
        }
        if (com[C[N - 1]].empty())
            return -1;
        int sum = 0;
        int last = -M;
        int need = 0;
        for (int i = 0; i < N; i++) {
            if (ket[i]) {
                last = i;
            }
            if (need ==i) {
                if (i - last >= M )
                    return -1;
                sum++;
                need = last + M;
            }
        }
        return sum;
    }



// not mine

Compilation message

paint.cpp:5: warning: ignoring '#pragma warning ' [-Wunknown-pragmas]
    5 |     #pragma warning(disable : 4996)
      | 
paint.cpp: In function 'int minimumInstructions(int, int, int, std::vector<int>, std::vector<int>, std::vector<std::vector<int> >)':
paint.cpp:37:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   37 |             for (int j = 0; j < kad[i].size(); j++) {
      |                             ~~^~~~~~~~~~~~~~~
paint.cpp:38:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   38 |                 for (int k = 0; k < kad[i+1].size(); k++) {
      |                                 ~~^~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 2 ms 2644 KB Output is correct
14 Correct 1 ms 2644 KB Output is correct
15 Correct 2 ms 2644 KB Output is correct
16 Correct 2 ms 2644 KB Output is correct
17 Correct 2 ms 2644 KB Output is correct
18 Correct 2 ms 2644 KB Output is correct
19 Correct 2 ms 2644 KB Output is correct
20 Correct 3 ms 2644 KB Output is correct
21 Correct 2 ms 2644 KB Output is correct
22 Correct 21 ms 6612 KB Output is correct
23 Correct 23 ms 6564 KB Output is correct
24 Correct 18 ms 6552 KB Output is correct
25 Correct 3 ms 1492 KB Output is correct
26 Correct 4 ms 1492 KB Output is correct
27 Correct 4 ms 1492 KB Output is correct
28 Correct 3 ms 1492 KB Output is correct
29 Correct 3 ms 1492 KB Output is correct
30 Correct 3 ms 1492 KB Output is correct
31 Correct 9 ms 4820 KB Output is correct
32 Correct 10 ms 4820 KB Output is correct
33 Correct 10 ms 4820 KB Output is correct
34 Correct 10 ms 4820 KB Output is correct
35 Correct 10 ms 4808 KB Output is correct
36 Correct 16 ms 4792 KB Output is correct
37 Correct 27 ms 7912 KB Output is correct
38 Correct 29 ms 7928 KB Output is correct
39 Correct 35 ms 7892 KB Output is correct
40 Correct 13 ms 5908 KB Output is correct
41 Correct 10 ms 3860 KB Output is correct
42 Correct 15 ms 6452 KB Output is correct
43 Correct 11 ms 4308 KB Output is correct
44 Correct 9 ms 3936 KB Output is correct
45 Correct 15 ms 6548 KB Output is correct
46 Correct 50 ms 16392 KB Output is correct
47 Correct 35 ms 10444 KB Output is correct
48 Correct 38 ms 12748 KB Output is correct
49 Correct 49 ms 13260 KB Output is correct
50 Correct 46 ms 13376 KB Output is correct
51 Correct 34 ms 11100 KB Output is correct
52 Correct 15 ms 6488 KB Output is correct
53 Correct 15 ms 6568 KB Output is correct
54 Correct 17 ms 6484 KB Output is correct
55 Correct 15 ms 6500 KB Output is correct
56 Correct 14 ms 6468 KB Output is correct
57 Correct 15 ms 6460 KB Output is correct
58 Correct 51 ms 17840 KB Output is correct
59 Correct 58 ms 17812 KB Output is correct
60 Correct 61 ms 17892 KB Output is correct
61 Correct 53 ms 17884 KB Output is correct
62 Correct 50 ms 17844 KB Output is correct
63 Correct 55 ms 17884 KB Output is correct
64 Correct 56 ms 17116 KB Output is correct
65 Correct 54 ms 17088 KB Output is correct
66 Correct 73 ms 17100 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 2 ms 2644 KB Output is correct
14 Correct 1 ms 2644 KB Output is correct
15 Correct 2 ms 2644 KB Output is correct
16 Correct 2 ms 2644 KB Output is correct
17 Correct 2 ms 2644 KB Output is correct
18 Correct 2 ms 2644 KB Output is correct
19 Correct 2 ms 2644 KB Output is correct
20 Correct 3 ms 2644 KB Output is correct
21 Correct 2 ms 2644 KB Output is correct
22 Correct 0 ms 212 KB Output is correct
23 Correct 0 ms 212 KB Output is correct
24 Correct 1 ms 300 KB Output is correct
25 Correct 1 ms 260 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 300 KB Output is correct
28 Correct 2 ms 340 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 212 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 2 ms 2260 KB Output is correct
34 Correct 2 ms 1876 KB Output is correct
35 Correct 1 ms 1620 KB Output is correct
36 Correct 2 ms 2608 KB Output is correct
37 Correct 2 ms 2224 KB Output is correct
38 Correct 2 ms 2388 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 2132 KB Output is correct
41 Correct 1 ms 340 KB Output is correct
42 Correct 2 ms 2480 KB Output is correct
43 Correct 2 ms 2388 KB Output is correct
44 Correct 1 ms 304 KB Output is correct
45 Correct 3 ms 340 KB Output is correct
46 Correct 2 ms 340 KB Output is correct
47 Correct 1 ms 340 KB Output is correct
48 Correct 1 ms 340 KB Output is correct
49 Correct 2 ms 340 KB Output is correct
50 Correct 2 ms 2644 KB Output is correct
51 Correct 2 ms 2644 KB Output is correct
52 Correct 2 ms 2644 KB Output is correct
53 Correct 2 ms 2644 KB Output is correct
54 Correct 2 ms 2824 KB Output is correct
55 Correct 2 ms 2644 KB Output is correct
56 Correct 2 ms 2736 KB Output is correct
57 Correct 1 ms 340 KB Output is correct
58 Correct 2 ms 2740 KB Output is correct
59 Correct 1 ms 304 KB Output is correct
60 Correct 2 ms 2644 KB Output is correct
61 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 2 ms 2644 KB Output is correct
16 Correct 1 ms 2644 KB Output is correct
17 Correct 2 ms 2644 KB Output is correct
18 Correct 2 ms 2644 KB Output is correct
19 Correct 2 ms 2644 KB Output is correct
20 Correct 2 ms 2644 KB Output is correct
21 Correct 2 ms 2644 KB Output is correct
22 Correct 3 ms 2644 KB Output is correct
23 Correct 2 ms 2644 KB Output is correct
24 Correct 21 ms 6612 KB Output is correct
25 Correct 23 ms 6564 KB Output is correct
26 Correct 18 ms 6552 KB Output is correct
27 Correct 1 ms 300 KB Output is correct
28 Correct 1 ms 260 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 300 KB Output is correct
31 Correct 2 ms 340 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 340 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 2 ms 2260 KB Output is correct
37 Correct 2 ms 1876 KB Output is correct
38 Correct 1 ms 1620 KB Output is correct
39 Correct 2 ms 2608 KB Output is correct
40 Correct 2 ms 2224 KB Output is correct
41 Correct 2 ms 2388 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 1 ms 2132 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 2 ms 2480 KB Output is correct
46 Correct 2 ms 2388 KB Output is correct
47 Correct 1 ms 304 KB Output is correct
48 Correct 3 ms 340 KB Output is correct
49 Correct 2 ms 340 KB Output is correct
50 Correct 1 ms 340 KB Output is correct
51 Correct 1 ms 340 KB Output is correct
52 Correct 2 ms 340 KB Output is correct
53 Correct 2 ms 2644 KB Output is correct
54 Correct 2 ms 2644 KB Output is correct
55 Correct 2 ms 2644 KB Output is correct
56 Correct 2 ms 2644 KB Output is correct
57 Correct 2 ms 2824 KB Output is correct
58 Correct 2 ms 2644 KB Output is correct
59 Correct 2 ms 2736 KB Output is correct
60 Correct 1 ms 340 KB Output is correct
61 Correct 2 ms 2740 KB Output is correct
62 Correct 1 ms 304 KB Output is correct
63 Correct 2 ms 2644 KB Output is correct
64 Correct 1 ms 340 KB Output is correct
65 Correct 47 ms 468 KB Output is correct
66 Correct 6 ms 404 KB Output is correct
67 Correct 38 ms 468 KB Output is correct
68 Correct 13 ms 428 KB Output is correct
69 Correct 33 ms 524 KB Output is correct
70 Correct 5 ms 2552 KB Output is correct
71 Correct 6 ms 2232 KB Output is correct
72 Correct 5 ms 1876 KB Output is correct
73 Correct 2 ms 2004 KB Output is correct
74 Correct 5 ms 2360 KB Output is correct
75 Correct 4 ms 2748 KB Output is correct
76 Correct 21 ms 5148 KB Output is correct
77 Correct 20 ms 6212 KB Output is correct
78 Correct 26 ms 6872 KB Output is correct
79 Correct 96 ms 724 KB Output is correct
80 Correct 106 ms 724 KB Output is correct
81 Correct 103 ms 724 KB Output is correct
82 Correct 95 ms 724 KB Output is correct
83 Correct 102 ms 848 KB Output is correct
84 Correct 5 ms 2900 KB Output is correct
85 Correct 6 ms 2900 KB Output is correct
86 Correct 6 ms 2960 KB Output is correct
87 Correct 6 ms 2900 KB Output is correct
88 Correct 5 ms 2900 KB Output is correct
89 Correct 6 ms 2900 KB Output is correct
90 Correct 31 ms 7256 KB Output is correct
91 Correct 31 ms 7208 KB Output is correct
92 Correct 30 ms 7324 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 2 ms 2644 KB Output is correct
16 Correct 1 ms 2644 KB Output is correct
17 Correct 2 ms 2644 KB Output is correct
18 Correct 2 ms 2644 KB Output is correct
19 Correct 2 ms 2644 KB Output is correct
20 Correct 2 ms 2644 KB Output is correct
21 Correct 2 ms 2644 KB Output is correct
22 Correct 3 ms 2644 KB Output is correct
23 Correct 2 ms 2644 KB Output is correct
24 Correct 21 ms 6612 KB Output is correct
25 Correct 23 ms 6564 KB Output is correct
26 Correct 18 ms 6552 KB Output is correct
27 Correct 3 ms 1492 KB Output is correct
28 Correct 4 ms 1492 KB Output is correct
29 Correct 4 ms 1492 KB Output is correct
30 Correct 3 ms 1492 KB Output is correct
31 Correct 3 ms 1492 KB Output is correct
32 Correct 3 ms 1492 KB Output is correct
33 Correct 9 ms 4820 KB Output is correct
34 Correct 10 ms 4820 KB Output is correct
35 Correct 10 ms 4820 KB Output is correct
36 Correct 10 ms 4820 KB Output is correct
37 Correct 10 ms 4808 KB Output is correct
38 Correct 16 ms 4792 KB Output is correct
39 Correct 27 ms 7912 KB Output is correct
40 Correct 29 ms 7928 KB Output is correct
41 Correct 35 ms 7892 KB Output is correct
42 Correct 1 ms 300 KB Output is correct
43 Correct 1 ms 260 KB Output is correct
44 Correct 1 ms 212 KB Output is correct
45 Correct 1 ms 300 KB Output is correct
46 Correct 2 ms 340 KB Output is correct
47 Correct 1 ms 212 KB Output is correct
48 Correct 1 ms 340 KB Output is correct
49 Correct 1 ms 212 KB Output is correct
50 Correct 1 ms 340 KB Output is correct
51 Correct 2 ms 2260 KB Output is correct
52 Correct 2 ms 1876 KB Output is correct
53 Correct 1 ms 1620 KB Output is correct
54 Correct 2 ms 2608 KB Output is correct
55 Correct 2 ms 2224 KB Output is correct
56 Correct 2 ms 2388 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 1 ms 2132 KB Output is correct
59 Correct 1 ms 340 KB Output is correct
60 Correct 2 ms 2480 KB Output is correct
61 Correct 2 ms 2388 KB Output is correct
62 Correct 1 ms 304 KB Output is correct
63 Correct 3 ms 340 KB Output is correct
64 Correct 2 ms 340 KB Output is correct
65 Correct 1 ms 340 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 2 ms 340 KB Output is correct
68 Correct 2 ms 2644 KB Output is correct
69 Correct 2 ms 2644 KB Output is correct
70 Correct 2 ms 2644 KB Output is correct
71 Correct 2 ms 2644 KB Output is correct
72 Correct 2 ms 2824 KB Output is correct
73 Correct 2 ms 2644 KB Output is correct
74 Correct 2 ms 2736 KB Output is correct
75 Correct 1 ms 340 KB Output is correct
76 Correct 2 ms 2740 KB Output is correct
77 Correct 1 ms 304 KB Output is correct
78 Correct 2 ms 2644 KB Output is correct
79 Correct 1 ms 340 KB Output is correct
80 Correct 47 ms 468 KB Output is correct
81 Correct 6 ms 404 KB Output is correct
82 Correct 38 ms 468 KB Output is correct
83 Correct 13 ms 428 KB Output is correct
84 Correct 33 ms 524 KB Output is correct
85 Correct 5 ms 2552 KB Output is correct
86 Correct 6 ms 2232 KB Output is correct
87 Correct 5 ms 1876 KB Output is correct
88 Correct 2 ms 2004 KB Output is correct
89 Correct 5 ms 2360 KB Output is correct
90 Correct 4 ms 2748 KB Output is correct
91 Correct 21 ms 5148 KB Output is correct
92 Correct 20 ms 6212 KB Output is correct
93 Correct 26 ms 6872 KB Output is correct
94 Correct 96 ms 724 KB Output is correct
95 Correct 106 ms 724 KB Output is correct
96 Correct 103 ms 724 KB Output is correct
97 Correct 95 ms 724 KB Output is correct
98 Correct 102 ms 848 KB Output is correct
99 Correct 5 ms 2900 KB Output is correct
100 Correct 6 ms 2900 KB Output is correct
101 Correct 6 ms 2960 KB Output is correct
102 Correct 6 ms 2900 KB Output is correct
103 Correct 5 ms 2900 KB Output is correct
104 Correct 6 ms 2900 KB Output is correct
105 Correct 31 ms 7256 KB Output is correct
106 Correct 31 ms 7208 KB Output is correct
107 Correct 30 ms 7324 KB Output is correct
108 Correct 5 ms 1492 KB Output is correct
109 Execution timed out 1586 ms 36056 KB Time limit exceeded
110 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 2 ms 2644 KB Output is correct
16 Correct 1 ms 2644 KB Output is correct
17 Correct 2 ms 2644 KB Output is correct
18 Correct 2 ms 2644 KB Output is correct
19 Correct 2 ms 2644 KB Output is correct
20 Correct 2 ms 2644 KB Output is correct
21 Correct 2 ms 2644 KB Output is correct
22 Correct 3 ms 2644 KB Output is correct
23 Correct 2 ms 2644 KB Output is correct
24 Correct 21 ms 6612 KB Output is correct
25 Correct 23 ms 6564 KB Output is correct
26 Correct 18 ms 6552 KB Output is correct
27 Correct 3 ms 1492 KB Output is correct
28 Correct 4 ms 1492 KB Output is correct
29 Correct 4 ms 1492 KB Output is correct
30 Correct 3 ms 1492 KB Output is correct
31 Correct 3 ms 1492 KB Output is correct
32 Correct 3 ms 1492 KB Output is correct
33 Correct 9 ms 4820 KB Output is correct
34 Correct 10 ms 4820 KB Output is correct
35 Correct 10 ms 4820 KB Output is correct
36 Correct 10 ms 4820 KB Output is correct
37 Correct 10 ms 4808 KB Output is correct
38 Correct 16 ms 4792 KB Output is correct
39 Correct 27 ms 7912 KB Output is correct
40 Correct 29 ms 7928 KB Output is correct
41 Correct 35 ms 7892 KB Output is correct
42 Correct 13 ms 5908 KB Output is correct
43 Correct 10 ms 3860 KB Output is correct
44 Correct 15 ms 6452 KB Output is correct
45 Correct 11 ms 4308 KB Output is correct
46 Correct 9 ms 3936 KB Output is correct
47 Correct 15 ms 6548 KB Output is correct
48 Correct 50 ms 16392 KB Output is correct
49 Correct 35 ms 10444 KB Output is correct
50 Correct 38 ms 12748 KB Output is correct
51 Correct 49 ms 13260 KB Output is correct
52 Correct 46 ms 13376 KB Output is correct
53 Correct 34 ms 11100 KB Output is correct
54 Correct 15 ms 6488 KB Output is correct
55 Correct 15 ms 6568 KB Output is correct
56 Correct 17 ms 6484 KB Output is correct
57 Correct 15 ms 6500 KB Output is correct
58 Correct 14 ms 6468 KB Output is correct
59 Correct 15 ms 6460 KB Output is correct
60 Correct 51 ms 17840 KB Output is correct
61 Correct 58 ms 17812 KB Output is correct
62 Correct 61 ms 17892 KB Output is correct
63 Correct 53 ms 17884 KB Output is correct
64 Correct 50 ms 17844 KB Output is correct
65 Correct 55 ms 17884 KB Output is correct
66 Correct 56 ms 17116 KB Output is correct
67 Correct 54 ms 17088 KB Output is correct
68 Correct 73 ms 17100 KB Output is correct
69 Correct 1 ms 300 KB Output is correct
70 Correct 1 ms 260 KB Output is correct
71 Correct 1 ms 212 KB Output is correct
72 Correct 1 ms 300 KB Output is correct
73 Correct 2 ms 340 KB Output is correct
74 Correct 1 ms 212 KB Output is correct
75 Correct 1 ms 340 KB Output is correct
76 Correct 1 ms 212 KB Output is correct
77 Correct 1 ms 340 KB Output is correct
78 Correct 2 ms 2260 KB Output is correct
79 Correct 2 ms 1876 KB Output is correct
80 Correct 1 ms 1620 KB Output is correct
81 Correct 2 ms 2608 KB Output is correct
82 Correct 2 ms 2224 KB Output is correct
83 Correct 2 ms 2388 KB Output is correct
84 Correct 1 ms 212 KB Output is correct
85 Correct 1 ms 2132 KB Output is correct
86 Correct 1 ms 340 KB Output is correct
87 Correct 2 ms 2480 KB Output is correct
88 Correct 2 ms 2388 KB Output is correct
89 Correct 1 ms 304 KB Output is correct
90 Correct 3 ms 340 KB Output is correct
91 Correct 2 ms 340 KB Output is correct
92 Correct 1 ms 340 KB Output is correct
93 Correct 1 ms 340 KB Output is correct
94 Correct 2 ms 340 KB Output is correct
95 Correct 2 ms 2644 KB Output is correct
96 Correct 2 ms 2644 KB Output is correct
97 Correct 2 ms 2644 KB Output is correct
98 Correct 2 ms 2644 KB Output is correct
99 Correct 2 ms 2824 KB Output is correct
100 Correct 2 ms 2644 KB Output is correct
101 Correct 2 ms 2736 KB Output is correct
102 Correct 1 ms 340 KB Output is correct
103 Correct 2 ms 2740 KB Output is correct
104 Correct 1 ms 304 KB Output is correct
105 Correct 2 ms 2644 KB Output is correct
106 Correct 1 ms 340 KB Output is correct
107 Correct 47 ms 468 KB Output is correct
108 Correct 6 ms 404 KB Output is correct
109 Correct 38 ms 468 KB Output is correct
110 Correct 13 ms 428 KB Output is correct
111 Correct 33 ms 524 KB Output is correct
112 Correct 5 ms 2552 KB Output is correct
113 Correct 6 ms 2232 KB Output is correct
114 Correct 5 ms 1876 KB Output is correct
115 Correct 2 ms 2004 KB Output is correct
116 Correct 5 ms 2360 KB Output is correct
117 Correct 4 ms 2748 KB Output is correct
118 Correct 21 ms 5148 KB Output is correct
119 Correct 20 ms 6212 KB Output is correct
120 Correct 26 ms 6872 KB Output is correct
121 Correct 96 ms 724 KB Output is correct
122 Correct 106 ms 724 KB Output is correct
123 Correct 103 ms 724 KB Output is correct
124 Correct 95 ms 724 KB Output is correct
125 Correct 102 ms 848 KB Output is correct
126 Correct 5 ms 2900 KB Output is correct
127 Correct 6 ms 2900 KB Output is correct
128 Correct 6 ms 2960 KB Output is correct
129 Correct 6 ms 2900 KB Output is correct
130 Correct 5 ms 2900 KB Output is correct
131 Correct 6 ms 2900 KB Output is correct
132 Correct 31 ms 7256 KB Output is correct
133 Correct 31 ms 7208 KB Output is correct
134 Correct 30 ms 7324 KB Output is correct
135 Correct 5 ms 1492 KB Output is correct
136 Execution timed out 1586 ms 36056 KB Time limit exceeded
137 Halted 0 ms 0 KB -