#include "jelly.h"
#include <vector>
#include <algorithm>
#include <iostream>
using namespace std;
vector<int> aa(2010), bb(2010);
vector<int> ax(11), by(11);
int nn;
int memo[2020][500][500];
int dp(int x, int y, int i)
{
if(i == nn)return 0;
if(x <0 || y<0)return 0;
if(memo[i][x][y] != -1)return memo[i][x][y];
if(x-aa[i]>=0) memo[i][x][y] = max(memo[i][x][y], dp(x-aa[i], y, i+1)+1);
if(y-bb[i]>=0) memo[i][x][y]= max(memo[i][x][y], dp(x, y-bb[i], i+1)+1);
memo[i][x][y]= max (memo[i][x][y], dp(x, y, i+1));
return memo[i][x][y];
}
int find_maximum_unique(int x, int y, vector<int> a, vector<int> b) {
int n = a.size();
nn = n;
for(int i = 0; i<n; i++)
{
aa[i]=a[i];
bb[i]=b[i];
}//cout<<"hola"<<endl;
for(int i = 0; i<2010; i++)
for(int j = 0; j<500; j++)
for(int h = 0; h<500; h++)memo[i][j][h]=-1;
int c = 0;
c = dp(x, y, 0);
return c;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
927 ms |
1966960 KB |
Output is correct |
2 |
Correct |
930 ms |
1967132 KB |
Output is correct |
3 |
Correct |
921 ms |
1966916 KB |
Output is correct |
4 |
Correct |
911 ms |
1966968 KB |
Output is correct |
5 |
Correct |
921 ms |
1967140 KB |
Output is correct |
6 |
Correct |
921 ms |
1967036 KB |
Output is correct |
7 |
Correct |
935 ms |
1967020 KB |
Output is correct |
8 |
Correct |
932 ms |
1967052 KB |
Output is correct |
9 |
Correct |
944 ms |
1966952 KB |
Output is correct |
10 |
Correct |
937 ms |
1967012 KB |
Output is correct |
11 |
Correct |
943 ms |
1966908 KB |
Output is correct |
12 |
Correct |
935 ms |
1966928 KB |
Output is correct |
13 |
Correct |
938 ms |
1967220 KB |
Output is correct |
14 |
Correct |
925 ms |
1966976 KB |
Output is correct |
15 |
Correct |
931 ms |
1967136 KB |
Output is correct |
16 |
Correct |
924 ms |
1967072 KB |
Output is correct |
17 |
Correct |
941 ms |
1966984 KB |
Output is correct |
18 |
Correct |
925 ms |
1966928 KB |
Output is correct |
19 |
Correct |
930 ms |
1967060 KB |
Output is correct |
20 |
Correct |
923 ms |
1966916 KB |
Output is correct |
21 |
Correct |
925 ms |
1967272 KB |
Output is correct |
22 |
Correct |
924 ms |
1966916 KB |
Output is correct |
23 |
Correct |
928 ms |
1966916 KB |
Output is correct |
24 |
Correct |
914 ms |
1966996 KB |
Output is correct |
25 |
Correct |
913 ms |
1967056 KB |
Output is correct |
26 |
Correct |
920 ms |
1966996 KB |
Output is correct |
27 |
Correct |
925 ms |
1966976 KB |
Output is correct |
28 |
Correct |
922 ms |
1967128 KB |
Output is correct |
29 |
Correct |
932 ms |
1966972 KB |
Output is correct |
30 |
Correct |
921 ms |
1967048 KB |
Output is correct |
31 |
Correct |
921 ms |
1967028 KB |
Output is correct |
32 |
Correct |
920 ms |
1967156 KB |
Output is correct |
33 |
Correct |
945 ms |
1967032 KB |
Output is correct |
34 |
Correct |
938 ms |
1967084 KB |
Output is correct |
35 |
Correct |
922 ms |
1967048 KB |
Output is correct |
36 |
Correct |
920 ms |
1967108 KB |
Output is correct |
37 |
Correct |
931 ms |
1967032 KB |
Output is correct |
38 |
Correct |
925 ms |
1966976 KB |
Output is correct |
39 |
Correct |
923 ms |
1967012 KB |
Output is correct |
40 |
Correct |
931 ms |
1966960 KB |
Output is correct |
41 |
Correct |
914 ms |
1967192 KB |
Output is correct |
42 |
Correct |
911 ms |
1967024 KB |
Output is correct |
43 |
Correct |
921 ms |
1967084 KB |
Output is correct |
44 |
Correct |
919 ms |
1967044 KB |
Output is correct |
45 |
Correct |
921 ms |
1966916 KB |
Output is correct |
46 |
Correct |
926 ms |
1967044 KB |
Output is correct |
47 |
Correct |
931 ms |
1967144 KB |
Output is correct |
48 |
Correct |
920 ms |
1967100 KB |
Output is correct |
49 |
Correct |
933 ms |
1966916 KB |
Output is correct |
50 |
Correct |
927 ms |
1966916 KB |
Output is correct |
51 |
Correct |
936 ms |
1967004 KB |
Output is correct |
52 |
Correct |
933 ms |
1967036 KB |
Output is correct |
53 |
Correct |
937 ms |
1967024 KB |
Output is correct |
54 |
Correct |
941 ms |
1967044 KB |
Output is correct |
55 |
Correct |
936 ms |
1967088 KB |
Output is correct |
56 |
Correct |
910 ms |
1966936 KB |
Output is correct |
57 |
Correct |
918 ms |
1966940 KB |
Output is correct |
58 |
Correct |
926 ms |
1967176 KB |
Output is correct |
59 |
Correct |
924 ms |
1966984 KB |
Output is correct |
60 |
Correct |
923 ms |
1967020 KB |
Output is correct |
61 |
Correct |
912 ms |
1967016 KB |
Output is correct |
62 |
Correct |
918 ms |
1966912 KB |
Output is correct |
63 |
Correct |
927 ms |
1966980 KB |
Output is correct |
64 |
Correct |
924 ms |
1966916 KB |
Output is correct |
65 |
Correct |
918 ms |
1967240 KB |
Output is correct |
66 |
Correct |
921 ms |
1967032 KB |
Output is correct |
67 |
Correct |
922 ms |
1966944 KB |
Output is correct |
68 |
Correct |
911 ms |
1967044 KB |
Output is correct |
69 |
Correct |
915 ms |
1967172 KB |
Output is correct |
70 |
Correct |
921 ms |
1967128 KB |
Output is correct |
71 |
Correct |
948 ms |
1967008 KB |
Output is correct |
72 |
Correct |
942 ms |
1967004 KB |
Output is correct |
73 |
Correct |
925 ms |
1966980 KB |
Output is correct |
74 |
Correct |
954 ms |
1966936 KB |
Output is correct |
75 |
Correct |
943 ms |
1966924 KB |
Output is correct |
76 |
Correct |
921 ms |
1967032 KB |
Output is correct |
77 |
Correct |
915 ms |
1966924 KB |
Output is correct |
78 |
Correct |
920 ms |
1967076 KB |
Output is correct |
79 |
Correct |
913 ms |
1966936 KB |
Output is correct |
80 |
Correct |
912 ms |
1966916 KB |
Output is correct |
81 |
Correct |
911 ms |
1967036 KB |
Output is correct |
82 |
Correct |
922 ms |
1967032 KB |
Output is correct |
83 |
Correct |
920 ms |
1966960 KB |
Output is correct |
84 |
Correct |
923 ms |
1967040 KB |
Output is correct |
85 |
Correct |
933 ms |
1967044 KB |
Output is correct |
86 |
Correct |
927 ms |
1967060 KB |
Output is correct |
87 |
Correct |
930 ms |
1966916 KB |
Output is correct |
88 |
Correct |
932 ms |
1967028 KB |
Output is correct |
89 |
Correct |
952 ms |
1967020 KB |
Output is correct |
90 |
Correct |
935 ms |
1966916 KB |
Output is correct |
91 |
Correct |
927 ms |
1966960 KB |
Output is correct |
92 |
Correct |
927 ms |
1967016 KB |
Output is correct |
93 |
Correct |
943 ms |
1966956 KB |
Output is correct |
94 |
Correct |
937 ms |
1967076 KB |
Output is correct |
95 |
Correct |
917 ms |
1967032 KB |
Output is correct |
96 |
Correct |
923 ms |
1966924 KB |
Output is correct |
97 |
Correct |
932 ms |
1967028 KB |
Output is correct |
98 |
Correct |
921 ms |
1966916 KB |
Output is correct |
99 |
Correct |
937 ms |
1967028 KB |
Output is correct |
100 |
Correct |
948 ms |
1966908 KB |
Output is correct |
101 |
Correct |
991 ms |
1967096 KB |
Output is correct |
102 |
Correct |
974 ms |
1967048 KB |
Output is correct |
103 |
Correct |
954 ms |
1966972 KB |
Output is correct |
104 |
Correct |
958 ms |
1967004 KB |
Output is correct |
105 |
Correct |
950 ms |
1966972 KB |
Output is correct |
106 |
Correct |
948 ms |
1966932 KB |
Output is correct |
107 |
Correct |
925 ms |
1967028 KB |
Output is correct |
108 |
Correct |
917 ms |
1966916 KB |
Output is correct |
109 |
Correct |
932 ms |
1966916 KB |
Output is correct |
110 |
Correct |
917 ms |
1966956 KB |
Output is correct |
111 |
Correct |
932 ms |
1967044 KB |
Output is correct |
112 |
Correct |
919 ms |
1966964 KB |
Output is correct |
113 |
Correct |
914 ms |
1967104 KB |
Output is correct |
114 |
Correct |
904 ms |
1967096 KB |
Output is correct |
115 |
Correct |
918 ms |
1967020 KB |
Output is correct |
116 |
Correct |
915 ms |
1966916 KB |
Output is correct |
117 |
Correct |
920 ms |
1967016 KB |
Output is correct |
118 |
Correct |
922 ms |
1967140 KB |
Output is correct |
119 |
Correct |
924 ms |
1967224 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
927 ms |
1966960 KB |
Output is correct |
2 |
Correct |
930 ms |
1967132 KB |
Output is correct |
3 |
Correct |
921 ms |
1966916 KB |
Output is correct |
4 |
Correct |
911 ms |
1966968 KB |
Output is correct |
5 |
Correct |
921 ms |
1967140 KB |
Output is correct |
6 |
Correct |
921 ms |
1967036 KB |
Output is correct |
7 |
Correct |
935 ms |
1967020 KB |
Output is correct |
8 |
Correct |
932 ms |
1967052 KB |
Output is correct |
9 |
Correct |
944 ms |
1966952 KB |
Output is correct |
10 |
Correct |
937 ms |
1967012 KB |
Output is correct |
11 |
Correct |
943 ms |
1966908 KB |
Output is correct |
12 |
Correct |
935 ms |
1966928 KB |
Output is correct |
13 |
Correct |
938 ms |
1967220 KB |
Output is correct |
14 |
Correct |
925 ms |
1966976 KB |
Output is correct |
15 |
Correct |
931 ms |
1967136 KB |
Output is correct |
16 |
Correct |
924 ms |
1967072 KB |
Output is correct |
17 |
Correct |
941 ms |
1966984 KB |
Output is correct |
18 |
Correct |
925 ms |
1966928 KB |
Output is correct |
19 |
Correct |
930 ms |
1967060 KB |
Output is correct |
20 |
Correct |
923 ms |
1966916 KB |
Output is correct |
21 |
Correct |
925 ms |
1967272 KB |
Output is correct |
22 |
Correct |
924 ms |
1966916 KB |
Output is correct |
23 |
Correct |
928 ms |
1966916 KB |
Output is correct |
24 |
Correct |
914 ms |
1966996 KB |
Output is correct |
25 |
Correct |
913 ms |
1967056 KB |
Output is correct |
26 |
Correct |
920 ms |
1966996 KB |
Output is correct |
27 |
Correct |
925 ms |
1966976 KB |
Output is correct |
28 |
Correct |
922 ms |
1967128 KB |
Output is correct |
29 |
Correct |
932 ms |
1966972 KB |
Output is correct |
30 |
Correct |
921 ms |
1967048 KB |
Output is correct |
31 |
Correct |
921 ms |
1967028 KB |
Output is correct |
32 |
Correct |
920 ms |
1967156 KB |
Output is correct |
33 |
Correct |
945 ms |
1967032 KB |
Output is correct |
34 |
Correct |
938 ms |
1967084 KB |
Output is correct |
35 |
Correct |
922 ms |
1967048 KB |
Output is correct |
36 |
Correct |
920 ms |
1967108 KB |
Output is correct |
37 |
Correct |
931 ms |
1967032 KB |
Output is correct |
38 |
Correct |
925 ms |
1966976 KB |
Output is correct |
39 |
Correct |
923 ms |
1967012 KB |
Output is correct |
40 |
Correct |
931 ms |
1966960 KB |
Output is correct |
41 |
Correct |
914 ms |
1967192 KB |
Output is correct |
42 |
Correct |
911 ms |
1967024 KB |
Output is correct |
43 |
Correct |
921 ms |
1967084 KB |
Output is correct |
44 |
Correct |
919 ms |
1967044 KB |
Output is correct |
45 |
Correct |
921 ms |
1966916 KB |
Output is correct |
46 |
Correct |
926 ms |
1967044 KB |
Output is correct |
47 |
Correct |
931 ms |
1967144 KB |
Output is correct |
48 |
Correct |
920 ms |
1967100 KB |
Output is correct |
49 |
Correct |
933 ms |
1966916 KB |
Output is correct |
50 |
Correct |
927 ms |
1966916 KB |
Output is correct |
51 |
Correct |
936 ms |
1967004 KB |
Output is correct |
52 |
Correct |
933 ms |
1967036 KB |
Output is correct |
53 |
Correct |
937 ms |
1967024 KB |
Output is correct |
54 |
Correct |
941 ms |
1967044 KB |
Output is correct |
55 |
Correct |
936 ms |
1967088 KB |
Output is correct |
56 |
Correct |
910 ms |
1966936 KB |
Output is correct |
57 |
Correct |
918 ms |
1966940 KB |
Output is correct |
58 |
Correct |
926 ms |
1967176 KB |
Output is correct |
59 |
Correct |
924 ms |
1966984 KB |
Output is correct |
60 |
Correct |
923 ms |
1967020 KB |
Output is correct |
61 |
Correct |
912 ms |
1967016 KB |
Output is correct |
62 |
Correct |
918 ms |
1966912 KB |
Output is correct |
63 |
Correct |
927 ms |
1966980 KB |
Output is correct |
64 |
Correct |
924 ms |
1966916 KB |
Output is correct |
65 |
Correct |
918 ms |
1967240 KB |
Output is correct |
66 |
Correct |
921 ms |
1967032 KB |
Output is correct |
67 |
Correct |
922 ms |
1966944 KB |
Output is correct |
68 |
Correct |
911 ms |
1967044 KB |
Output is correct |
69 |
Correct |
915 ms |
1967172 KB |
Output is correct |
70 |
Correct |
921 ms |
1967128 KB |
Output is correct |
71 |
Correct |
948 ms |
1967008 KB |
Output is correct |
72 |
Correct |
942 ms |
1967004 KB |
Output is correct |
73 |
Correct |
925 ms |
1966980 KB |
Output is correct |
74 |
Correct |
954 ms |
1966936 KB |
Output is correct |
75 |
Correct |
943 ms |
1966924 KB |
Output is correct |
76 |
Correct |
921 ms |
1967032 KB |
Output is correct |
77 |
Correct |
915 ms |
1966924 KB |
Output is correct |
78 |
Correct |
920 ms |
1967076 KB |
Output is correct |
79 |
Correct |
913 ms |
1966936 KB |
Output is correct |
80 |
Correct |
912 ms |
1966916 KB |
Output is correct |
81 |
Correct |
911 ms |
1967036 KB |
Output is correct |
82 |
Correct |
922 ms |
1967032 KB |
Output is correct |
83 |
Correct |
920 ms |
1966960 KB |
Output is correct |
84 |
Correct |
923 ms |
1967040 KB |
Output is correct |
85 |
Correct |
933 ms |
1967044 KB |
Output is correct |
86 |
Correct |
927 ms |
1967060 KB |
Output is correct |
87 |
Correct |
930 ms |
1966916 KB |
Output is correct |
88 |
Correct |
932 ms |
1967028 KB |
Output is correct |
89 |
Correct |
952 ms |
1967020 KB |
Output is correct |
90 |
Correct |
935 ms |
1966916 KB |
Output is correct |
91 |
Correct |
927 ms |
1966960 KB |
Output is correct |
92 |
Correct |
927 ms |
1967016 KB |
Output is correct |
93 |
Correct |
943 ms |
1966956 KB |
Output is correct |
94 |
Correct |
937 ms |
1967076 KB |
Output is correct |
95 |
Correct |
917 ms |
1967032 KB |
Output is correct |
96 |
Correct |
923 ms |
1966924 KB |
Output is correct |
97 |
Correct |
932 ms |
1967028 KB |
Output is correct |
98 |
Correct |
921 ms |
1966916 KB |
Output is correct |
99 |
Correct |
937 ms |
1967028 KB |
Output is correct |
100 |
Correct |
948 ms |
1966908 KB |
Output is correct |
101 |
Correct |
991 ms |
1967096 KB |
Output is correct |
102 |
Correct |
974 ms |
1967048 KB |
Output is correct |
103 |
Correct |
954 ms |
1966972 KB |
Output is correct |
104 |
Correct |
958 ms |
1967004 KB |
Output is correct |
105 |
Correct |
950 ms |
1966972 KB |
Output is correct |
106 |
Correct |
948 ms |
1966932 KB |
Output is correct |
107 |
Correct |
925 ms |
1967028 KB |
Output is correct |
108 |
Correct |
917 ms |
1966916 KB |
Output is correct |
109 |
Correct |
932 ms |
1966916 KB |
Output is correct |
110 |
Correct |
917 ms |
1966956 KB |
Output is correct |
111 |
Correct |
932 ms |
1967044 KB |
Output is correct |
112 |
Correct |
919 ms |
1966964 KB |
Output is correct |
113 |
Correct |
914 ms |
1967104 KB |
Output is correct |
114 |
Correct |
904 ms |
1967096 KB |
Output is correct |
115 |
Correct |
918 ms |
1967020 KB |
Output is correct |
116 |
Correct |
915 ms |
1966916 KB |
Output is correct |
117 |
Correct |
920 ms |
1967016 KB |
Output is correct |
118 |
Correct |
922 ms |
1967140 KB |
Output is correct |
119 |
Correct |
924 ms |
1967224 KB |
Output is correct |
120 |
Correct |
1000 ms |
1967164 KB |
Output is correct |
121 |
Correct |
1907 ms |
1967172 KB |
Output is correct |
122 |
Correct |
1755 ms |
1967232 KB |
Output is correct |
123 |
Correct |
1480 ms |
1967156 KB |
Output is correct |
124 |
Correct |
1502 ms |
1967184 KB |
Output is correct |
125 |
Correct |
1795 ms |
1967036 KB |
Output is correct |
126 |
Correct |
1965 ms |
1967040 KB |
Output is correct |
127 |
Correct |
1821 ms |
1967080 KB |
Output is correct |
128 |
Correct |
1637 ms |
1967212 KB |
Output is correct |
129 |
Correct |
1449 ms |
1967128 KB |
Output is correct |
130 |
Correct |
952 ms |
1967124 KB |
Output is correct |
131 |
Correct |
923 ms |
1967048 KB |
Output is correct |
132 |
Correct |
979 ms |
1967036 KB |
Output is correct |
133 |
Correct |
932 ms |
1967172 KB |
Output is correct |
134 |
Correct |
954 ms |
1966996 KB |
Output is correct |
135 |
Correct |
1002 ms |
1967196 KB |
Output is correct |
136 |
Correct |
1098 ms |
1967160 KB |
Output is correct |
137 |
Correct |
1029 ms |
1967020 KB |
Output is correct |
138 |
Correct |
1025 ms |
1967036 KB |
Output is correct |
139 |
Correct |
954 ms |
1967144 KB |
Output is correct |
140 |
Correct |
1027 ms |
1967036 KB |
Output is correct |
141 |
Correct |
1921 ms |
1967044 KB |
Output is correct |
142 |
Correct |
1767 ms |
1967040 KB |
Output is correct |
143 |
Correct |
1469 ms |
1967040 KB |
Output is correct |
144 |
Correct |
1550 ms |
1966996 KB |
Output is correct |
145 |
Correct |
1792 ms |
1967160 KB |
Output is correct |
146 |
Correct |
1932 ms |
1967040 KB |
Output is correct |
147 |
Correct |
1786 ms |
1967156 KB |
Output is correct |
148 |
Correct |
1615 ms |
1967044 KB |
Output is correct |
149 |
Correct |
1459 ms |
1967148 KB |
Output is correct |
150 |
Correct |
956 ms |
1966964 KB |
Output is correct |
151 |
Correct |
919 ms |
1966940 KB |
Output is correct |
152 |
Correct |
963 ms |
1967012 KB |
Output is correct |
153 |
Correct |
926 ms |
1967048 KB |
Output is correct |
154 |
Correct |
964 ms |
1966948 KB |
Output is correct |
155 |
Correct |
1004 ms |
1967180 KB |
Output is correct |
156 |
Correct |
1018 ms |
1967168 KB |
Output is correct |
157 |
Correct |
983 ms |
1967072 KB |
Output is correct |
158 |
Correct |
1002 ms |
1967164 KB |
Output is correct |
159 |
Correct |
941 ms |
1967044 KB |
Output is correct |
160 |
Correct |
985 ms |
1967040 KB |
Output is correct |
161 |
Correct |
1933 ms |
1967124 KB |
Output is correct |
162 |
Correct |
1813 ms |
1967044 KB |
Output is correct |
163 |
Correct |
1445 ms |
1967044 KB |
Output is correct |
164 |
Correct |
1510 ms |
1967144 KB |
Output is correct |
165 |
Correct |
1812 ms |
1967044 KB |
Output is correct |
166 |
Correct |
1991 ms |
1967040 KB |
Output is correct |
167 |
Correct |
1777 ms |
1967248 KB |
Output is correct |
168 |
Correct |
1632 ms |
1967012 KB |
Output is correct |
169 |
Correct |
1517 ms |
1967004 KB |
Output is correct |
170 |
Correct |
955 ms |
1967072 KB |
Output is correct |
171 |
Correct |
913 ms |
1967040 KB |
Output is correct |
172 |
Correct |
971 ms |
1966940 KB |
Output is correct |
173 |
Correct |
927 ms |
1967044 KB |
Output is correct |
174 |
Correct |
958 ms |
1967052 KB |
Output is correct |
175 |
Correct |
1016 ms |
1967040 KB |
Output is correct |
176 |
Correct |
1016 ms |
1966996 KB |
Output is correct |
177 |
Correct |
1002 ms |
1967044 KB |
Output is correct |
178 |
Correct |
1010 ms |
1967028 KB |
Output is correct |
179 |
Correct |
947 ms |
1967084 KB |
Output is correct |
180 |
Correct |
994 ms |
1967160 KB |
Output is correct |
181 |
Correct |
1903 ms |
1967040 KB |
Output is correct |
182 |
Correct |
1819 ms |
1967168 KB |
Output is correct |
183 |
Correct |
1481 ms |
1967104 KB |
Output is correct |
184 |
Correct |
1518 ms |
1967044 KB |
Output is correct |
185 |
Correct |
1846 ms |
1967044 KB |
Output is correct |
186 |
Correct |
1975 ms |
1967040 KB |
Output is correct |
187 |
Correct |
1820 ms |
1967276 KB |
Output is correct |
188 |
Correct |
1631 ms |
1967088 KB |
Output is correct |
189 |
Correct |
1461 ms |
1967056 KB |
Output is correct |
190 |
Correct |
946 ms |
1967072 KB |
Output is correct |
191 |
Correct |
917 ms |
1967204 KB |
Output is correct |
192 |
Correct |
956 ms |
1967092 KB |
Output is correct |
193 |
Correct |
934 ms |
1966936 KB |
Output is correct |
194 |
Correct |
945 ms |
1966932 KB |
Output is correct |
195 |
Correct |
1026 ms |
1967152 KB |
Output is correct |
196 |
Correct |
1040 ms |
1967024 KB |
Output is correct |
197 |
Correct |
1016 ms |
1967044 KB |
Output is correct |
198 |
Correct |
1008 ms |
1967016 KB |
Output is correct |
199 |
Correct |
949 ms |
1967044 KB |
Output is correct |
200 |
Correct |
995 ms |
1967008 KB |
Output is correct |
201 |
Correct |
1897 ms |
1967036 KB |
Output is correct |
202 |
Correct |
1778 ms |
1967156 KB |
Output is correct |
203 |
Correct |
1457 ms |
1967036 KB |
Output is correct |
204 |
Correct |
1526 ms |
1967124 KB |
Output is correct |
205 |
Correct |
1806 ms |
1966996 KB |
Output is correct |
206 |
Correct |
1962 ms |
1967036 KB |
Output is correct |
207 |
Correct |
1795 ms |
1967032 KB |
Output is correct |
208 |
Correct |
1619 ms |
1967140 KB |
Output is correct |
209 |
Correct |
1451 ms |
1967060 KB |
Output is correct |
210 |
Correct |
945 ms |
1967044 KB |
Output is correct |
211 |
Correct |
912 ms |
1966992 KB |
Output is correct |
212 |
Correct |
959 ms |
1967172 KB |
Output is correct |
213 |
Correct |
922 ms |
1967052 KB |
Output is correct |
214 |
Correct |
940 ms |
1967056 KB |
Output is correct |
215 |
Correct |
1002 ms |
1967040 KB |
Output is correct |
216 |
Correct |
1014 ms |
1967044 KB |
Output is correct |
217 |
Correct |
987 ms |
1966940 KB |
Output is correct |
218 |
Correct |
1012 ms |
1967044 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1012 ms |
1967296 KB |
1st lines differ - on the 1st token, expected: '689', found: '673' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1242 ms |
1967144 KB |
1st lines differ - on the 1st token, expected: '62', found: '44' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Execution timed out |
2233 ms |
1967124 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
927 ms |
1966960 KB |
Output is correct |
2 |
Correct |
930 ms |
1967132 KB |
Output is correct |
3 |
Correct |
921 ms |
1966916 KB |
Output is correct |
4 |
Correct |
911 ms |
1966968 KB |
Output is correct |
5 |
Correct |
921 ms |
1967140 KB |
Output is correct |
6 |
Correct |
921 ms |
1967036 KB |
Output is correct |
7 |
Correct |
935 ms |
1967020 KB |
Output is correct |
8 |
Correct |
932 ms |
1967052 KB |
Output is correct |
9 |
Correct |
944 ms |
1966952 KB |
Output is correct |
10 |
Correct |
937 ms |
1967012 KB |
Output is correct |
11 |
Correct |
943 ms |
1966908 KB |
Output is correct |
12 |
Correct |
935 ms |
1966928 KB |
Output is correct |
13 |
Correct |
938 ms |
1967220 KB |
Output is correct |
14 |
Correct |
925 ms |
1966976 KB |
Output is correct |
15 |
Correct |
931 ms |
1967136 KB |
Output is correct |
16 |
Correct |
924 ms |
1967072 KB |
Output is correct |
17 |
Correct |
941 ms |
1966984 KB |
Output is correct |
18 |
Correct |
925 ms |
1966928 KB |
Output is correct |
19 |
Correct |
930 ms |
1967060 KB |
Output is correct |
20 |
Correct |
923 ms |
1966916 KB |
Output is correct |
21 |
Correct |
925 ms |
1967272 KB |
Output is correct |
22 |
Correct |
924 ms |
1966916 KB |
Output is correct |
23 |
Correct |
928 ms |
1966916 KB |
Output is correct |
24 |
Correct |
914 ms |
1966996 KB |
Output is correct |
25 |
Correct |
913 ms |
1967056 KB |
Output is correct |
26 |
Correct |
920 ms |
1966996 KB |
Output is correct |
27 |
Correct |
925 ms |
1966976 KB |
Output is correct |
28 |
Correct |
922 ms |
1967128 KB |
Output is correct |
29 |
Correct |
932 ms |
1966972 KB |
Output is correct |
30 |
Correct |
921 ms |
1967048 KB |
Output is correct |
31 |
Correct |
921 ms |
1967028 KB |
Output is correct |
32 |
Correct |
920 ms |
1967156 KB |
Output is correct |
33 |
Correct |
945 ms |
1967032 KB |
Output is correct |
34 |
Correct |
938 ms |
1967084 KB |
Output is correct |
35 |
Correct |
922 ms |
1967048 KB |
Output is correct |
36 |
Correct |
920 ms |
1967108 KB |
Output is correct |
37 |
Correct |
931 ms |
1967032 KB |
Output is correct |
38 |
Correct |
925 ms |
1966976 KB |
Output is correct |
39 |
Correct |
923 ms |
1967012 KB |
Output is correct |
40 |
Correct |
931 ms |
1966960 KB |
Output is correct |
41 |
Correct |
914 ms |
1967192 KB |
Output is correct |
42 |
Correct |
911 ms |
1967024 KB |
Output is correct |
43 |
Correct |
921 ms |
1967084 KB |
Output is correct |
44 |
Correct |
919 ms |
1967044 KB |
Output is correct |
45 |
Correct |
921 ms |
1966916 KB |
Output is correct |
46 |
Correct |
926 ms |
1967044 KB |
Output is correct |
47 |
Correct |
931 ms |
1967144 KB |
Output is correct |
48 |
Correct |
920 ms |
1967100 KB |
Output is correct |
49 |
Correct |
933 ms |
1966916 KB |
Output is correct |
50 |
Correct |
927 ms |
1966916 KB |
Output is correct |
51 |
Correct |
936 ms |
1967004 KB |
Output is correct |
52 |
Correct |
933 ms |
1967036 KB |
Output is correct |
53 |
Correct |
937 ms |
1967024 KB |
Output is correct |
54 |
Correct |
941 ms |
1967044 KB |
Output is correct |
55 |
Correct |
936 ms |
1967088 KB |
Output is correct |
56 |
Correct |
910 ms |
1966936 KB |
Output is correct |
57 |
Correct |
918 ms |
1966940 KB |
Output is correct |
58 |
Correct |
926 ms |
1967176 KB |
Output is correct |
59 |
Correct |
924 ms |
1966984 KB |
Output is correct |
60 |
Correct |
923 ms |
1967020 KB |
Output is correct |
61 |
Correct |
912 ms |
1967016 KB |
Output is correct |
62 |
Correct |
918 ms |
1966912 KB |
Output is correct |
63 |
Correct |
927 ms |
1966980 KB |
Output is correct |
64 |
Correct |
924 ms |
1966916 KB |
Output is correct |
65 |
Correct |
918 ms |
1967240 KB |
Output is correct |
66 |
Correct |
921 ms |
1967032 KB |
Output is correct |
67 |
Correct |
922 ms |
1966944 KB |
Output is correct |
68 |
Correct |
911 ms |
1967044 KB |
Output is correct |
69 |
Correct |
915 ms |
1967172 KB |
Output is correct |
70 |
Correct |
921 ms |
1967128 KB |
Output is correct |
71 |
Correct |
948 ms |
1967008 KB |
Output is correct |
72 |
Correct |
942 ms |
1967004 KB |
Output is correct |
73 |
Correct |
925 ms |
1966980 KB |
Output is correct |
74 |
Correct |
954 ms |
1966936 KB |
Output is correct |
75 |
Correct |
943 ms |
1966924 KB |
Output is correct |
76 |
Correct |
921 ms |
1967032 KB |
Output is correct |
77 |
Correct |
915 ms |
1966924 KB |
Output is correct |
78 |
Correct |
920 ms |
1967076 KB |
Output is correct |
79 |
Correct |
913 ms |
1966936 KB |
Output is correct |
80 |
Correct |
912 ms |
1966916 KB |
Output is correct |
81 |
Correct |
911 ms |
1967036 KB |
Output is correct |
82 |
Correct |
922 ms |
1967032 KB |
Output is correct |
83 |
Correct |
920 ms |
1966960 KB |
Output is correct |
84 |
Correct |
923 ms |
1967040 KB |
Output is correct |
85 |
Correct |
933 ms |
1967044 KB |
Output is correct |
86 |
Correct |
927 ms |
1967060 KB |
Output is correct |
87 |
Correct |
930 ms |
1966916 KB |
Output is correct |
88 |
Correct |
932 ms |
1967028 KB |
Output is correct |
89 |
Correct |
952 ms |
1967020 KB |
Output is correct |
90 |
Correct |
935 ms |
1966916 KB |
Output is correct |
91 |
Correct |
927 ms |
1966960 KB |
Output is correct |
92 |
Correct |
927 ms |
1967016 KB |
Output is correct |
93 |
Correct |
943 ms |
1966956 KB |
Output is correct |
94 |
Correct |
937 ms |
1967076 KB |
Output is correct |
95 |
Correct |
917 ms |
1967032 KB |
Output is correct |
96 |
Correct |
923 ms |
1966924 KB |
Output is correct |
97 |
Correct |
932 ms |
1967028 KB |
Output is correct |
98 |
Correct |
921 ms |
1966916 KB |
Output is correct |
99 |
Correct |
937 ms |
1967028 KB |
Output is correct |
100 |
Correct |
948 ms |
1966908 KB |
Output is correct |
101 |
Correct |
991 ms |
1967096 KB |
Output is correct |
102 |
Correct |
974 ms |
1967048 KB |
Output is correct |
103 |
Correct |
954 ms |
1966972 KB |
Output is correct |
104 |
Correct |
958 ms |
1967004 KB |
Output is correct |
105 |
Correct |
950 ms |
1966972 KB |
Output is correct |
106 |
Correct |
948 ms |
1966932 KB |
Output is correct |
107 |
Correct |
925 ms |
1967028 KB |
Output is correct |
108 |
Correct |
917 ms |
1966916 KB |
Output is correct |
109 |
Correct |
932 ms |
1966916 KB |
Output is correct |
110 |
Correct |
917 ms |
1966956 KB |
Output is correct |
111 |
Correct |
932 ms |
1967044 KB |
Output is correct |
112 |
Correct |
919 ms |
1966964 KB |
Output is correct |
113 |
Correct |
914 ms |
1967104 KB |
Output is correct |
114 |
Correct |
904 ms |
1967096 KB |
Output is correct |
115 |
Correct |
918 ms |
1967020 KB |
Output is correct |
116 |
Correct |
915 ms |
1966916 KB |
Output is correct |
117 |
Correct |
920 ms |
1967016 KB |
Output is correct |
118 |
Correct |
922 ms |
1967140 KB |
Output is correct |
119 |
Correct |
924 ms |
1967224 KB |
Output is correct |
120 |
Correct |
1000 ms |
1967164 KB |
Output is correct |
121 |
Correct |
1907 ms |
1967172 KB |
Output is correct |
122 |
Correct |
1755 ms |
1967232 KB |
Output is correct |
123 |
Correct |
1480 ms |
1967156 KB |
Output is correct |
124 |
Correct |
1502 ms |
1967184 KB |
Output is correct |
125 |
Correct |
1795 ms |
1967036 KB |
Output is correct |
126 |
Correct |
1965 ms |
1967040 KB |
Output is correct |
127 |
Correct |
1821 ms |
1967080 KB |
Output is correct |
128 |
Correct |
1637 ms |
1967212 KB |
Output is correct |
129 |
Correct |
1449 ms |
1967128 KB |
Output is correct |
130 |
Correct |
952 ms |
1967124 KB |
Output is correct |
131 |
Correct |
923 ms |
1967048 KB |
Output is correct |
132 |
Correct |
979 ms |
1967036 KB |
Output is correct |
133 |
Correct |
932 ms |
1967172 KB |
Output is correct |
134 |
Correct |
954 ms |
1966996 KB |
Output is correct |
135 |
Correct |
1002 ms |
1967196 KB |
Output is correct |
136 |
Correct |
1098 ms |
1967160 KB |
Output is correct |
137 |
Correct |
1029 ms |
1967020 KB |
Output is correct |
138 |
Correct |
1025 ms |
1967036 KB |
Output is correct |
139 |
Correct |
954 ms |
1967144 KB |
Output is correct |
140 |
Correct |
1027 ms |
1967036 KB |
Output is correct |
141 |
Correct |
1921 ms |
1967044 KB |
Output is correct |
142 |
Correct |
1767 ms |
1967040 KB |
Output is correct |
143 |
Correct |
1469 ms |
1967040 KB |
Output is correct |
144 |
Correct |
1550 ms |
1966996 KB |
Output is correct |
145 |
Correct |
1792 ms |
1967160 KB |
Output is correct |
146 |
Correct |
1932 ms |
1967040 KB |
Output is correct |
147 |
Correct |
1786 ms |
1967156 KB |
Output is correct |
148 |
Correct |
1615 ms |
1967044 KB |
Output is correct |
149 |
Correct |
1459 ms |
1967148 KB |
Output is correct |
150 |
Correct |
956 ms |
1966964 KB |
Output is correct |
151 |
Correct |
919 ms |
1966940 KB |
Output is correct |
152 |
Correct |
963 ms |
1967012 KB |
Output is correct |
153 |
Correct |
926 ms |
1967048 KB |
Output is correct |
154 |
Correct |
964 ms |
1966948 KB |
Output is correct |
155 |
Correct |
1004 ms |
1967180 KB |
Output is correct |
156 |
Correct |
1018 ms |
1967168 KB |
Output is correct |
157 |
Correct |
983 ms |
1967072 KB |
Output is correct |
158 |
Correct |
1002 ms |
1967164 KB |
Output is correct |
159 |
Correct |
941 ms |
1967044 KB |
Output is correct |
160 |
Correct |
985 ms |
1967040 KB |
Output is correct |
161 |
Correct |
1933 ms |
1967124 KB |
Output is correct |
162 |
Correct |
1813 ms |
1967044 KB |
Output is correct |
163 |
Correct |
1445 ms |
1967044 KB |
Output is correct |
164 |
Correct |
1510 ms |
1967144 KB |
Output is correct |
165 |
Correct |
1812 ms |
1967044 KB |
Output is correct |
166 |
Correct |
1991 ms |
1967040 KB |
Output is correct |
167 |
Correct |
1777 ms |
1967248 KB |
Output is correct |
168 |
Correct |
1632 ms |
1967012 KB |
Output is correct |
169 |
Correct |
1517 ms |
1967004 KB |
Output is correct |
170 |
Correct |
955 ms |
1967072 KB |
Output is correct |
171 |
Correct |
913 ms |
1967040 KB |
Output is correct |
172 |
Correct |
971 ms |
1966940 KB |
Output is correct |
173 |
Correct |
927 ms |
1967044 KB |
Output is correct |
174 |
Correct |
958 ms |
1967052 KB |
Output is correct |
175 |
Correct |
1016 ms |
1967040 KB |
Output is correct |
176 |
Correct |
1016 ms |
1966996 KB |
Output is correct |
177 |
Correct |
1002 ms |
1967044 KB |
Output is correct |
178 |
Correct |
1010 ms |
1967028 KB |
Output is correct |
179 |
Correct |
947 ms |
1967084 KB |
Output is correct |
180 |
Correct |
994 ms |
1967160 KB |
Output is correct |
181 |
Correct |
1903 ms |
1967040 KB |
Output is correct |
182 |
Correct |
1819 ms |
1967168 KB |
Output is correct |
183 |
Correct |
1481 ms |
1967104 KB |
Output is correct |
184 |
Correct |
1518 ms |
1967044 KB |
Output is correct |
185 |
Correct |
1846 ms |
1967044 KB |
Output is correct |
186 |
Correct |
1975 ms |
1967040 KB |
Output is correct |
187 |
Correct |
1820 ms |
1967276 KB |
Output is correct |
188 |
Correct |
1631 ms |
1967088 KB |
Output is correct |
189 |
Correct |
1461 ms |
1967056 KB |
Output is correct |
190 |
Correct |
946 ms |
1967072 KB |
Output is correct |
191 |
Correct |
917 ms |
1967204 KB |
Output is correct |
192 |
Correct |
956 ms |
1967092 KB |
Output is correct |
193 |
Correct |
934 ms |
1966936 KB |
Output is correct |
194 |
Correct |
945 ms |
1966932 KB |
Output is correct |
195 |
Correct |
1026 ms |
1967152 KB |
Output is correct |
196 |
Correct |
1040 ms |
1967024 KB |
Output is correct |
197 |
Correct |
1016 ms |
1967044 KB |
Output is correct |
198 |
Correct |
1008 ms |
1967016 KB |
Output is correct |
199 |
Correct |
949 ms |
1967044 KB |
Output is correct |
200 |
Correct |
995 ms |
1967008 KB |
Output is correct |
201 |
Correct |
1897 ms |
1967036 KB |
Output is correct |
202 |
Correct |
1778 ms |
1967156 KB |
Output is correct |
203 |
Correct |
1457 ms |
1967036 KB |
Output is correct |
204 |
Correct |
1526 ms |
1967124 KB |
Output is correct |
205 |
Correct |
1806 ms |
1966996 KB |
Output is correct |
206 |
Correct |
1962 ms |
1967036 KB |
Output is correct |
207 |
Correct |
1795 ms |
1967032 KB |
Output is correct |
208 |
Correct |
1619 ms |
1967140 KB |
Output is correct |
209 |
Correct |
1451 ms |
1967060 KB |
Output is correct |
210 |
Correct |
945 ms |
1967044 KB |
Output is correct |
211 |
Correct |
912 ms |
1966992 KB |
Output is correct |
212 |
Correct |
959 ms |
1967172 KB |
Output is correct |
213 |
Correct |
922 ms |
1967052 KB |
Output is correct |
214 |
Correct |
940 ms |
1967056 KB |
Output is correct |
215 |
Correct |
1002 ms |
1967040 KB |
Output is correct |
216 |
Correct |
1014 ms |
1967044 KB |
Output is correct |
217 |
Correct |
987 ms |
1966940 KB |
Output is correct |
218 |
Correct |
1012 ms |
1967044 KB |
Output is correct |
219 |
Incorrect |
1012 ms |
1967296 KB |
1st lines differ - on the 1st token, expected: '689', found: '673' |
220 |
Halted |
0 ms |
0 KB |
- |