답안 #569794

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
569794 2022-05-27T20:02:10 Z aryan12 벽 칠하기 (APIO20_paint) C++17
51 / 100
355 ms 524288 KB
#include "paint.h"
#include <bits/stdc++.h>
using namespace std;

int minimumInstructions(int N, int M, int K, vector<int> colors, vector<int> num, vector<vector<int> > likes) 
{
    vector<vector<int> > dp(N, vector<int> (M, -1e9));
    vector<int> likings[K];
    for(int contractor = 0; contractor < M; contractor++)
    {
        for(int j = 0; j < num[contractor]; j++)
        {
            likings[likes[contractor][j]].push_back(contractor);
        }
    }
    for(int i = N - 1; i >= 0; i--)
    {
        for(int j = 0; j < likings[colors[i]].size(); j++)
        {
            int cur = likings[colors[i]][j];
            if(i == N - 1 || dp[i + 1][(cur + 1) % M] == -1e9)
            {
                dp[i][cur] = 1;
            }
            else
            {
                dp[i][cur] = dp[i + 1][(cur + 1) % M] + 1;
            }
        }
        // for(int j = 0; j < M; j++)
        // {
        //     if(likings[j].count(colors[i]))
        //     {
        //         if(i == N - 1 || dp[i + 1][(j + 1) % M] == -1e9)
        //         {
        //             dp[i][j] = 1;
        //         }
        //         else
        //         {
        //             dp[i][j] = dp[i + 1][(j + 1) % M] + 1;
        //         }
        //     }
        //     // cout << "dp[" << i << "][" << j << "] = " << dp[i][j] << "\n";
        // }
        // cout << "\n\n\n\n";
    }
    vector<int> start_pos;
    for(int i = N - M; i >= 0; i--)
    {
        for(int j = 0; j < M; j++)
        {
            if(dp[i][j] >= M)
            {
                start_pos.push_back(i);
                // cout << i << "\n";
                break;
            }
        }
    }
    int ans = 0;
    int min_x = N;
    for(int i = 0; i < start_pos.size(); i++)
    {
        // cout << "start_pos[i] = " << start_pos[i] << ", M = " << M << ", minx = " << min_x << "\n";
        if(start_pos[i] + M - 1 < min_x - 1)
        {
            return -1;
        }
        if(i == start_pos.size() - 1 || start_pos[i + 1] + M - 1 < min_x - 1 || start_pos[i] == 0)
        {
            min_x = start_pos[i];
            ans++;
        }
    }
    if(min_x != 0) return -1;
    return ans;
}

Compilation message

paint.cpp: In function 'int minimumInstructions(int, int, int, std::vector<int>, std::vector<int>, std::vector<std::vector<int> >)':
paint.cpp:18:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |         for(int j = 0; j < likings[colors[i]].size(); j++)
      |                        ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
paint.cpp:62:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   62 |     for(int i = 0; i < start_pos.size(); i++)
      |                    ~~^~~~~~~~~~~~~~~~~~
paint.cpp:69:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   69 |         if(i == start_pos.size() - 1 || start_pos[i + 1] + M - 1 < min_x - 1 || start_pos[i] == 0)
      |            ~~^~~~~~~~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 296 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 2 ms 3028 KB Output is correct
14 Correct 2 ms 2992 KB Output is correct
15 Correct 2 ms 3028 KB Output is correct
16 Correct 2 ms 3028 KB Output is correct
17 Correct 2 ms 2992 KB Output is correct
18 Correct 3 ms 3028 KB Output is correct
19 Correct 2 ms 3028 KB Output is correct
20 Correct 2 ms 3028 KB Output is correct
21 Correct 2 ms 3028 KB Output is correct
22 Correct 20 ms 7244 KB Output is correct
23 Correct 18 ms 7212 KB Output is correct
24 Correct 18 ms 7124 KB Output is correct
25 Correct 3 ms 1748 KB Output is correct
26 Correct 3 ms 1720 KB Output is correct
27 Correct 4 ms 1696 KB Output is correct
28 Correct 4 ms 1592 KB Output is correct
29 Correct 4 ms 1492 KB Output is correct
30 Correct 4 ms 1588 KB Output is correct
31 Correct 87 ms 161392 KB Output is correct
32 Correct 89 ms 161464 KB Output is correct
33 Correct 80 ms 161420 KB Output is correct
34 Correct 82 ms 161404 KB Output is correct
35 Correct 83 ms 161448 KB Output is correct
36 Correct 87 ms 161504 KB Output is correct
37 Correct 116 ms 164412 KB Output is correct
38 Correct 127 ms 164796 KB Output is correct
39 Correct 106 ms 164816 KB Output is correct
40 Correct 17 ms 6708 KB Output is correct
41 Correct 14 ms 4352 KB Output is correct
42 Correct 19 ms 7036 KB Output is correct
43 Correct 15 ms 4532 KB Output is correct
44 Correct 11 ms 4116 KB Output is correct
45 Correct 20 ms 6660 KB Output is correct
46 Runtime error 355 ms 524288 KB Execution killed with signal 9
47 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 296 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 2 ms 3028 KB Output is correct
14 Correct 2 ms 2992 KB Output is correct
15 Correct 2 ms 3028 KB Output is correct
16 Correct 2 ms 3028 KB Output is correct
17 Correct 2 ms 2992 KB Output is correct
18 Correct 3 ms 3028 KB Output is correct
19 Correct 2 ms 3028 KB Output is correct
20 Correct 2 ms 3028 KB Output is correct
21 Correct 2 ms 3028 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 0 ms 296 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 212 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 300 KB Output is correct
29 Correct 1 ms 340 KB Output is correct
30 Correct 1 ms 296 KB Output is correct
31 Correct 1 ms 300 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 2 ms 2516 KB Output is correct
34 Correct 2 ms 2132 KB Output is correct
35 Correct 1 ms 1748 KB Output is correct
36 Correct 2 ms 2772 KB Output is correct
37 Correct 2 ms 2388 KB Output is correct
38 Correct 2 ms 2388 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 2 ms 2260 KB Output is correct
41 Correct 1 ms 468 KB Output is correct
42 Correct 2 ms 2604 KB Output is correct
43 Correct 2 ms 2480 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 296 KB Output is correct
46 Correct 1 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 1 ms 340 KB Output is correct
50 Correct 2 ms 2988 KB Output is correct
51 Correct 2 ms 3028 KB Output is correct
52 Correct 2 ms 2992 KB Output is correct
53 Correct 2 ms 3028 KB Output is correct
54 Correct 2 ms 3048 KB Output is correct
55 Correct 2 ms 2992 KB Output is correct
56 Correct 2 ms 3028 KB Output is correct
57 Correct 1 ms 724 KB Output is correct
58 Correct 2 ms 3028 KB Output is correct
59 Correct 1 ms 724 KB Output is correct
60 Correct 2 ms 3028 KB Output is correct
61 Correct 1 ms 724 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 296 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 1 ms 296 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 2 ms 3028 KB Output is correct
16 Correct 2 ms 2992 KB Output is correct
17 Correct 2 ms 3028 KB Output is correct
18 Correct 2 ms 3028 KB Output is correct
19 Correct 2 ms 2992 KB Output is correct
20 Correct 3 ms 3028 KB Output is correct
21 Correct 2 ms 3028 KB Output is correct
22 Correct 2 ms 3028 KB Output is correct
23 Correct 2 ms 3028 KB Output is correct
24 Correct 20 ms 7244 KB Output is correct
25 Correct 18 ms 7212 KB Output is correct
26 Correct 18 ms 7124 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 1 ms 300 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 296 KB Output is correct
34 Correct 1 ms 300 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 2 ms 2516 KB Output is correct
37 Correct 2 ms 2132 KB Output is correct
38 Correct 1 ms 1748 KB Output is correct
39 Correct 2 ms 2772 KB Output is correct
40 Correct 2 ms 2388 KB Output is correct
41 Correct 2 ms 2388 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 2 ms 2260 KB Output is correct
44 Correct 1 ms 468 KB Output is correct
45 Correct 2 ms 2604 KB Output is correct
46 Correct 2 ms 2480 KB Output is correct
47 Correct 1 ms 340 KB Output is correct
48 Correct 1 ms 296 KB Output is correct
49 Correct 1 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 1 ms 340 KB Output is correct
53 Correct 2 ms 2988 KB Output is correct
54 Correct 2 ms 3028 KB Output is correct
55 Correct 2 ms 2992 KB Output is correct
56 Correct 2 ms 3028 KB Output is correct
57 Correct 2 ms 3048 KB Output is correct
58 Correct 2 ms 2992 KB Output is correct
59 Correct 2 ms 3028 KB Output is correct
60 Correct 1 ms 724 KB Output is correct
61 Correct 2 ms 3028 KB Output is correct
62 Correct 1 ms 724 KB Output is correct
63 Correct 2 ms 3028 KB Output is correct
64 Correct 1 ms 724 KB Output is correct
65 Correct 1 ms 468 KB Output is correct
66 Correct 1 ms 300 KB Output is correct
67 Correct 1 ms 468 KB Output is correct
68 Correct 1 ms 468 KB Output is correct
69 Correct 1 ms 468 KB Output is correct
70 Correct 3 ms 2804 KB Output is correct
71 Correct 3 ms 2360 KB Output is correct
72 Correct 3 ms 2008 KB Output is correct
73 Correct 2 ms 2132 KB Output is correct
74 Correct 3 ms 2412 KB Output is correct
75 Correct 3 ms 3028 KB Output is correct
76 Correct 21 ms 4872 KB Output is correct
77 Correct 20 ms 5632 KB Output is correct
78 Correct 26 ms 6276 KB Output is correct
79 Correct 2 ms 724 KB Output is correct
80 Correct 2 ms 724 KB Output is correct
81 Correct 2 ms 724 KB Output is correct
82 Correct 2 ms 680 KB Output is correct
83 Correct 2 ms 724 KB Output is correct
84 Correct 4 ms 3284 KB Output is correct
85 Correct 4 ms 3284 KB Output is correct
86 Correct 4 ms 3284 KB Output is correct
87 Correct 4 ms 3380 KB Output is correct
88 Correct 4 ms 3284 KB Output is correct
89 Correct 5 ms 3380 KB Output is correct
90 Correct 37 ms 6944 KB Output is correct
91 Correct 34 ms 7040 KB Output is correct
92 Correct 26 ms 7032 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 296 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 1 ms 296 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 2 ms 3028 KB Output is correct
16 Correct 2 ms 2992 KB Output is correct
17 Correct 2 ms 3028 KB Output is correct
18 Correct 2 ms 3028 KB Output is correct
19 Correct 2 ms 2992 KB Output is correct
20 Correct 3 ms 3028 KB Output is correct
21 Correct 2 ms 3028 KB Output is correct
22 Correct 2 ms 3028 KB Output is correct
23 Correct 2 ms 3028 KB Output is correct
24 Correct 20 ms 7244 KB Output is correct
25 Correct 18 ms 7212 KB Output is correct
26 Correct 18 ms 7124 KB Output is correct
27 Correct 3 ms 1748 KB Output is correct
28 Correct 3 ms 1720 KB Output is correct
29 Correct 4 ms 1696 KB Output is correct
30 Correct 4 ms 1592 KB Output is correct
31 Correct 4 ms 1492 KB Output is correct
32 Correct 4 ms 1588 KB Output is correct
33 Correct 87 ms 161392 KB Output is correct
34 Correct 89 ms 161464 KB Output is correct
35 Correct 80 ms 161420 KB Output is correct
36 Correct 82 ms 161404 KB Output is correct
37 Correct 83 ms 161448 KB Output is correct
38 Correct 87 ms 161504 KB Output is correct
39 Correct 116 ms 164412 KB Output is correct
40 Correct 127 ms 164796 KB Output is correct
41 Correct 106 ms 164816 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 1 ms 212 KB Output is correct
44 Correct 1 ms 212 KB Output is correct
45 Correct 1 ms 212 KB Output is correct
46 Correct 1 ms 300 KB Output is correct
47 Correct 1 ms 340 KB Output is correct
48 Correct 1 ms 296 KB Output is correct
49 Correct 1 ms 300 KB Output is correct
50 Correct 1 ms 340 KB Output is correct
51 Correct 2 ms 2516 KB Output is correct
52 Correct 2 ms 2132 KB Output is correct
53 Correct 1 ms 1748 KB Output is correct
54 Correct 2 ms 2772 KB Output is correct
55 Correct 2 ms 2388 KB Output is correct
56 Correct 2 ms 2388 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 2 ms 2260 KB Output is correct
59 Correct 1 ms 468 KB Output is correct
60 Correct 2 ms 2604 KB Output is correct
61 Correct 2 ms 2480 KB Output is correct
62 Correct 1 ms 340 KB Output is correct
63 Correct 1 ms 296 KB Output is correct
64 Correct 1 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 1 ms 340 KB Output is correct
68 Correct 2 ms 2988 KB Output is correct
69 Correct 2 ms 3028 KB Output is correct
70 Correct 2 ms 2992 KB Output is correct
71 Correct 2 ms 3028 KB Output is correct
72 Correct 2 ms 3048 KB Output is correct
73 Correct 2 ms 2992 KB Output is correct
74 Correct 2 ms 3028 KB Output is correct
75 Correct 1 ms 724 KB Output is correct
76 Correct 2 ms 3028 KB Output is correct
77 Correct 1 ms 724 KB Output is correct
78 Correct 2 ms 3028 KB Output is correct
79 Correct 1 ms 724 KB Output is correct
80 Correct 1 ms 468 KB Output is correct
81 Correct 1 ms 300 KB Output is correct
82 Correct 1 ms 468 KB Output is correct
83 Correct 1 ms 468 KB Output is correct
84 Correct 1 ms 468 KB Output is correct
85 Correct 3 ms 2804 KB Output is correct
86 Correct 3 ms 2360 KB Output is correct
87 Correct 3 ms 2008 KB Output is correct
88 Correct 2 ms 2132 KB Output is correct
89 Correct 3 ms 2412 KB Output is correct
90 Correct 3 ms 3028 KB Output is correct
91 Correct 21 ms 4872 KB Output is correct
92 Correct 20 ms 5632 KB Output is correct
93 Correct 26 ms 6276 KB Output is correct
94 Correct 2 ms 724 KB Output is correct
95 Correct 2 ms 724 KB Output is correct
96 Correct 2 ms 724 KB Output is correct
97 Correct 2 ms 680 KB Output is correct
98 Correct 2 ms 724 KB Output is correct
99 Correct 4 ms 3284 KB Output is correct
100 Correct 4 ms 3284 KB Output is correct
101 Correct 4 ms 3284 KB Output is correct
102 Correct 4 ms 3380 KB Output is correct
103 Correct 4 ms 3284 KB Output is correct
104 Correct 5 ms 3380 KB Output is correct
105 Correct 37 ms 6944 KB Output is correct
106 Correct 34 ms 7040 KB Output is correct
107 Correct 26 ms 7032 KB Output is correct
108 Correct 5 ms 1720 KB Output is correct
109 Correct 86 ms 36048 KB Output is correct
110 Correct 59 ms 31956 KB Output is correct
111 Correct 56 ms 31444 KB Output is correct
112 Correct 70 ms 44948 KB Output is correct
113 Correct 50 ms 40872 KB Output is correct
114 Correct 35 ms 47792 KB Output is correct
115 Correct 14 ms 7012 KB Output is correct
116 Correct 46 ms 56940 KB Output is correct
117 Correct 29 ms 33360 KB Output is correct
118 Correct 19 ms 9284 KB Output is correct
119 Correct 55 ms 88500 KB Output is correct
120 Correct 91 ms 96076 KB Output is correct
121 Correct 55 ms 92616 KB Output is correct
122 Correct 39 ms 30624 KB Output is correct
123 Correct 20 ms 26956 KB Output is correct
124 Correct 34 ms 18228 KB Output is correct
125 Correct 15 ms 13908 KB Output is correct
126 Correct 8 ms 4220 KB Output is correct
127 Correct 38 ms 42708 KB Output is correct
128 Correct 14 ms 10428 KB Output is correct
129 Correct 21 ms 13524 KB Output is correct
130 Correct 4 ms 1748 KB Output is correct
131 Correct 117 ms 50960 KB Output is correct
132 Correct 110 ms 63948 KB Output is correct
133 Correct 107 ms 72112 KB Output is correct
134 Correct 113 ms 78644 KB Output is correct
135 Correct 107 ms 84588 KB Output is correct
136 Correct 96 ms 162264 KB Output is correct
137 Correct 96 ms 162268 KB Output is correct
138 Correct 95 ms 162224 KB Output is correct
139 Correct 123 ms 162212 KB Output is correct
140 Correct 103 ms 162292 KB Output is correct
141 Correct 94 ms 162268 KB Output is correct
142 Correct 122 ms 164996 KB Output is correct
143 Correct 94 ms 159356 KB Output is correct
144 Correct 133 ms 164968 KB Output is correct
145 Correct 87 ms 159240 KB Output is correct
146 Correct 119 ms 164992 KB Output is correct
147 Correct 92 ms 159252 KB Output is correct
148 Correct 105 ms 161356 KB Output is correct
149 Correct 71 ms 82996 KB Output is correct
150 Correct 42 ms 56724 KB Output is correct
151 Correct 36 ms 43872 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 296 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 1 ms 296 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 2 ms 3028 KB Output is correct
16 Correct 2 ms 2992 KB Output is correct
17 Correct 2 ms 3028 KB Output is correct
18 Correct 2 ms 3028 KB Output is correct
19 Correct 2 ms 2992 KB Output is correct
20 Correct 3 ms 3028 KB Output is correct
21 Correct 2 ms 3028 KB Output is correct
22 Correct 2 ms 3028 KB Output is correct
23 Correct 2 ms 3028 KB Output is correct
24 Correct 20 ms 7244 KB Output is correct
25 Correct 18 ms 7212 KB Output is correct
26 Correct 18 ms 7124 KB Output is correct
27 Correct 3 ms 1748 KB Output is correct
28 Correct 3 ms 1720 KB Output is correct
29 Correct 4 ms 1696 KB Output is correct
30 Correct 4 ms 1592 KB Output is correct
31 Correct 4 ms 1492 KB Output is correct
32 Correct 4 ms 1588 KB Output is correct
33 Correct 87 ms 161392 KB Output is correct
34 Correct 89 ms 161464 KB Output is correct
35 Correct 80 ms 161420 KB Output is correct
36 Correct 82 ms 161404 KB Output is correct
37 Correct 83 ms 161448 KB Output is correct
38 Correct 87 ms 161504 KB Output is correct
39 Correct 116 ms 164412 KB Output is correct
40 Correct 127 ms 164796 KB Output is correct
41 Correct 106 ms 164816 KB Output is correct
42 Correct 17 ms 6708 KB Output is correct
43 Correct 14 ms 4352 KB Output is correct
44 Correct 19 ms 7036 KB Output is correct
45 Correct 15 ms 4532 KB Output is correct
46 Correct 11 ms 4116 KB Output is correct
47 Correct 20 ms 6660 KB Output is correct
48 Runtime error 355 ms 524288 KB Execution killed with signal 9
49 Halted 0 ms 0 KB -