Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

3128
8104
Accepted
100

Subtask Results

Subtask no. Testdata Range Constraints Score
1 0~1 範例測資。 0 / 0
2 2~20 $nm \le 16$ 7 / 7
3 21~99 $n = 2$ 或 $m = 2$ 35 / 35
4 100~186 $n \ge 12$ 且 $m \ge 12$ 47 / 47
5 187~222 無額外限制。 11 / 11

Testdata Results

Testdata no. Subtasks Time (ms) Memory (VSS, KiB) Memory (RSS, KiB) Verdict Score
0 1 0002.7 9984 3908 Accepted 100
1 1 0007.7 9984 7824 Accepted 100
2 2 0002.7 9984 3648 Accepted 100
3 2 0002.6 9984 3820 Accepted 100
4 2 0002.6 9984 3636 Accepted 100
5 2 0007.3 9984 7820 Accepted 100
6 2 0007.3 9984 7856 Accepted 100
7 2 0007.4 9984 7856 Accepted 100
8 2 0007.3 9984 7660 Accepted 100
9 2 0002.5 9984 3908 Accepted 100
10 2 0002.7 9984 3852 Accepted 100
11 2 0007.3 9984 7652 Accepted 100
12 2 0007.2 9984 7660 Accepted 100
13 2 0002.6 9984 3828 Accepted 100
14 2 0007.8 9984 7836 Accepted 100
15 2 0007.1 9984 7780 Accepted 100
16 2 0007.3 9984 7776 Accepted 100
17 2 0007.1 9984 7664 Accepted 100
18 2 0007.1 9984 7824 Accepted 100
19 2 0007.2 9984 7864 Accepted 100
20 2 0007.1 9984 7756 Accepted 100
21 3 0020.0 10012 7936 Accepted 100
22 3 0020.9 10016 7936 Accepted 100
23 3 0020.9 10016 7956 Accepted 100
24 3 0020.6 10016 7860 Accepted 100
25 3 0020.5 10016 7996 Accepted 100
26 3 0021.7 10012 7856 Accepted 100
27 3 0020.4 10016 7832 Accepted 100
28 3 0020.8 10020 8000 Accepted 100
29 3 0020.2 10016 7764 Accepted 100
30 3 0020.7 10012 8008 Accepted 100
31 3 0020.7 10012 8036 Accepted 100
32 3 0021.3 10016 8000 Accepted 100
33 3 0019.9 10012 7828 Accepted 100
34 3 0019.8 10016 8000 Accepted 100
35 3 0019.5 10016 8000 Accepted 100
36 3 0020.2 10016 8000 Accepted 100
37 3 0020.4 10016 8040 Accepted 100
38 3 0020.0 10016 8104 Accepted 100
39 3 0019.9 10016 7860 Accepted 100
40 3 0020.1 10012 7936 Accepted 100
41 3 0019.9 10016 7968 Accepted 100
42 3 0020.2 10016 7940 Accepted 100
43 3 0007.6 9984 7616 Accepted 100
44 3 0007.7 9984 7848 Accepted 100
45 3 0007.6 9984 7788 Accepted 100
46 3 0007.7 9984 7608 Accepted 100
47 3 0007.6 9984 7844 Accepted 100
48 3 0007.8 9984 7800 Accepted 100
49 3 0007.7 9984 7884 Accepted 100
50 3 0008.1 9984 7720 Accepted 100
51 3 0008.1 9984 7820 Accepted 100
52 3 0008.2 9984 7796 Accepted 100
53 3 0011.3 9984 7924 Accepted 100
54 3 0012.2 9984 7772 Accepted 100
55 3 0014.6 9984 7944 Accepted 100
56 3 0014.2 9984 7808 Accepted 100
57 3 0015.4 9984 7912 Accepted 100
58 3 0007.7 9984 7776 Accepted 100
59 3 0016.3 9984 7964 Accepted 100
60 3 0016.8 9984 7904 Accepted 100
61 3 0008.8 9984 7884 Accepted 100
62 3 0016.2 9988 8008 Accepted 100
63 3 0009.0 9984 7740 Accepted 100
64 3 0008.9 9984 7816 Accepted 100
65 3 0009.6 9984 7832 Accepted 100
66 3 0013.4 9984 7952 Accepted 100
67 3 0015.7 9984 7804 Accepted 100
68 3 0016.0 9988 7972 Accepted 100
69 3 0017.4 9996 7976 Accepted 100
70 3 0018.8 10004 7924 Accepted 100
71 3 0017.7 10000 7924 Accepted 100
72 3 0020.0 10008 7928 Accepted 100
73 3 0007.3 9984 7768 Accepted 100
74 3 0007.2 9984 7780 Accepted 100
75 3 0007.3 9984 7836 Accepted 100
76 3 0007.2 9984 7684 Accepted 100
77 3 0007.4 9984 7760 Accepted 100
78 3 0007.7 9984 7664 Accepted 100
79 3 0007.5 9984 7824 Accepted 100
80 3 0007.3 9984 7816 Accepted 100
81 3 0007.5 9984 7776 Accepted 100
82 3 0007.2 9984 7840 Accepted 100
83 3 0007.5 9984 7804 Accepted 100
84 3 0007.3 9984 7652 Accepted 100
85 3 0002.6 9984 3656 Accepted 100
86 3 0002.5 9984 3640 Accepted 100
87 3 0002.6 9984 3640 Accepted 100
88 3 0007.3 9984 7924 Accepted 100
89 3 0007.1 9984 7584 Accepted 100
90 3 0007.3 9984 7656 Accepted 100
91 3 0007.2 9984 7660 Accepted 100
92 3 0007.1 9984 7660 Accepted 100
93 3 0002.6 9984 3676 Accepted 100
94 3 0002.5 9984 3660 Accepted 100
95 3 0007.5 9984 7780 Accepted 100
96 3 0007.2 9984 7820 Accepted 100
97 3 0007.2 9984 7656 Accepted 100
98 3 0007.3 9984 7828 Accepted 100
99 3 0007.2 9984 7776 Accepted 100
100 4 0024.1 10008 7988 Accepted 100
101 4 0024.5 10012 8008 Accepted 100
102 4 0026.3 10012 7948 Accepted 100
103 4 0025.3 10012 7996 Accepted 100
104 4 0025.2 10016 7996 Accepted 100
105 4 0024.6 10012 8032 Accepted 100
106 4 0023.9 10012 8100 Accepted 100
107 4 0024.6 10012 8000 Accepted 100
108 4 0024.4 10012 8100 Accepted 100
109 4 0025.1 10012 8032 Accepted 100
110 4 0027.0 10016 7956 Accepted 100
111 4 0024.8 10012 8100 Accepted 100
112 4 0027.5 10016 7832 Accepted 100
113 4 0026.4 10008 7948 Accepted 100
114 4 0024.6 10008 7828 Accepted 100
115 4 0022.8 10008 7824 Accepted 100
116 4 0024.8 10004 7928 Accepted 100
117 4 0024.4 10008 7992 Accepted 100
118 4 0029.3 10004 8000 Accepted 100
119 4 0024.7 10012 8008 Accepted 100
120 4 0026.6 10012 7720 Accepted 100
121 4 0027.2 10016 8036 Accepted 100
122 4 0027.6 10012 7856 Accepted 100
123 4 0025.2 10008 7756 Accepted 100
124 4 0025.3 10012 8032 Accepted 100
125 4 0025.7 10008 7824 Accepted 100
126 4 0036.6 10016 8000 Accepted 100
127 4 0026.9 10012 7948 Accepted 100
128 4 0026.7 10016 7860 Accepted 100
129 4 0040.7 10012 7932 Accepted 100
130 4 0026.2 10016 7956 Accepted 100
131 4 0026.7 10012 8008 Accepted 100
132 4 0027.6 10012 8008 Accepted 100
133 4 0026.7 10020 7944 Accepted 100
134 4 0026.1 10012 7992 Accepted 100
135 4 0026.4 10012 8008 Accepted 100
136 4 0027.6 10016 8000 Accepted 100
137 4 0024.5 10004 8000 Accepted 100
138 4 0017.9 9984 7972 Accepted 100
139 4 0008.3 9984 7840 Accepted 100
140 4 0018.8 9988 7968 Accepted 100
141 4 0024.5 10012 7964 Accepted 100
142 4 0011.6 9984 7760 Accepted 100
143 4 0020.4 9992 7976 Accepted 100
144 4 0019.4 9984 7956 Accepted 100
145 4 0018.6 9984 7976 Accepted 100
146 4 0025.6 10004 8092 Accepted 100
147 4 0028.0 10016 8036 Accepted 100
148 4 0012.6 9984 7880 Accepted 100
149 4 0021.1 9992 7988 Accepted 100
150 4 0013.8 9984 7700 Accepted 100
151 4 0007.5 9984 7688 Accepted 100
152 4 0007.4 9984 7784 Accepted 100
153 4 0007.4 9984 7660 Accepted 100
154 4 0008.1 9984 7832 Accepted 100
155 4 0007.6 9984 7792 Accepted 100
156 4 0007.6 9984 7672 Accepted 100
157 4 0007.3 9984 7876 Accepted 100
158 4 0007.6 9984 7788 Accepted 100
159 4 0007.7 9984 7840 Accepted 100
160 4 0007.6 9984 7804 Accepted 100
161 4 0007.8 9984 7876 Accepted 100
162 4 0007.4 9984 7872 Accepted 100
163 4 0007.7 9984 7876 Accepted 100
164 4 0007.2 9984 7776 Accepted 100
165 4 0007.7 9984 7836 Accepted 100
166 4 0007.8 9984 7880 Accepted 100
167 4 0008.7 9984 7792 Accepted 100
168 4 0009.9 9984 7748 Accepted 100
169 4 0008.4 9984 7800 Accepted 100
170 4 0007.6 9984 7804 Accepted 100
171 4 0007.9 9984 7840 Accepted 100
172 4 0007.6 9984 7840 Accepted 100
173 4 0007.8 9984 7876 Accepted 100
174 4 0007.7 9984 7840 Accepted 100
175 4 0007.5 9984 7828 Accepted 100
176 4 0007.6 9984 7692 Accepted 100
177 4 0007.5 9984 7600 Accepted 100
178 4 0007.7 9984 7876 Accepted 100
179 4 0007.6 9984 7772 Accepted 100
180 4 0007.8 9984 7796 Accepted 100
181 4 0007.3 9984 7668 Accepted 100
182 4 0007.6 9984 7840 Accepted 100
183 4 0007.7 9984 7764 Accepted 100
184 4 0007.8 9984 7792 Accepted 100
185 4 0007.9 9984 7944 Accepted 100
186 4 0007.9 9984 7788 Accepted 100
187 5 0024.9 10012 8100 Accepted 100
188 5 0025.1 10016 8040 Accepted 100
189 5 0024.5 10012 7992 Accepted 100
190 5 0023.9 10020 8000 Accepted 100
191 5 0024.3 10016 7956 Accepted 100
192 5 0024.9 10012 7948 Accepted 100
193 5 0035.1 10016 8000 Accepted 100
194 5 0025.4 10012 8032 Accepted 100
195 5 0025.0 10016 7860 Accepted 100
196 5 0007.2 9984 7928 Accepted 100
197 5 0007.8 9984 7680 Accepted 100
198 5 0007.4 9984 7588 Accepted 100
199 5 0007.9 9984 7832 Accepted 100
200 5 0008.3 9984 7760 Accepted 100
201 5 0007.7 9984 7664 Accepted 100
202 5 0007.7 9984 7772 Accepted 100
203 5 0007.4 9984 7656 Accepted 100
204 5 0007.1 9984 7856 Accepted 100
205 5 0007.7 9984 7864 Accepted 100
206 5 0009.0 9984 7776 Accepted 100
207 5 0007.5 9984 7824 Accepted 100
208 5 0007.9 9984 7664 Accepted 100
209 5 0008.5 9984 7864 Accepted 100
210 5 0008.0 9984 7864 Accepted 100
211 5 0013.6 9984 7872 Accepted 100
212 5 0011.7 9984 7860 Accepted 100
213 5 0011.3 9984 7940 Accepted 100
214 5 0010.1 9984 7836 Accepted 100
215 5 0018.6 9984 8060 Accepted 100
216 5 0008.9 9984 7916 Accepted 100
217 5 0009.3 9984 7808 Accepted 100
218 5 0008.1 9984 7784 Accepted 100
219 5 0012.5 9984 7840 Accepted 100
220 5 0023.5 10012 7992 Accepted 100
221 5 0009.1 9984 7644 Accepted 100
222 5 0016.9 9984 7908 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
2.46 KB
Back to Top