Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

3974
7816
Wrong Answer
42

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$ 0 / 47
5 187~222 無額外限制。 0 / 11

Testdata Results

Testdata no. Subtasks Time (ms) Memory (VSS, KiB) Memory (RSS, KiB) Verdict Score
0 1 0003.0 9984 3632 Accepted 100
1 1 0002.8 9984 3664 Accepted 100
2 2 0003.0 9984 3660 Accepted 100
3 2 0002.8 9984 3656 Accepted 100
4 2 0002.9 9984 3556 Accepted 100
5 2 0002.7 9984 3660 Accepted 100
6 2 0002.7 9984 3664 Accepted 100
7 2 0002.6 9984 3668 Accepted 100
8 2 0003.1 9984 3736 Accepted 100
9 2 0005.1 9984 3552 Accepted 100
10 2 0002.5 9984 3720 Accepted 100
11 2 0002.6 9984 3768 Accepted 100
12 2 0002.5 9984 3704 Accepted 100
13 2 0002.5 9984 3552 Accepted 100
14 2 0002.6 9984 3700 Accepted 100
15 2 0002.8 9984 3592 Accepted 100
16 2 0002.6 9984 3704 Accepted 100
17 2 0002.8 9984 3480 Accepted 100
18 2 0002.6 9984 3724 Accepted 100
19 2 0002.6 9984 3480 Accepted 100
20 2 0002.6 9984 3652 Accepted 100
21 3 0021.9 10012 7632 Accepted 100
22 3 0017.6 10020 7704 Accepted 100
23 3 0018.9 10016 7680 Accepted 100
24 3 0018.0 10008 7656 Accepted 100
25 3 0017.7 10016 7752 Accepted 100
26 3 0017.4 10016 7692 Accepted 100
27 3 0017.8 10012 7592 Accepted 100
28 3 0017.8 10016 7736 Accepted 100
29 3 0018.0 10012 7700 Accepted 100
30 3 0018.2 10016 7564 Accepted 100
31 3 0018.1 10016 7816 Accepted 100
32 3 0018.3 10016 7756 Accepted 100
33 3 0021.5 10012 7660 Accepted 100
34 3 0022.2 10016 7788 Accepted 100
35 3 0021.1 10012 7720 Accepted 100
36 3 0021.2 10016 7672 Accepted 100
37 3 0021.4 10016 7596 Accepted 100
38 3 0021.4 10016 7804 Accepted 100
39 3 0021.8 10012 7700 Accepted 100
40 3 0021.3 10016 7608 Accepted 100
41 3 0021.8 10012 7740 Accepted 100
42 3 0021.5 10020 7636 Accepted 100
43 3 0004.1 9984 4356 Accepted 100
44 3 0003.9 9984 4232 Accepted 100
45 3 0003.1 9984 3948 Accepted 100
46 3 0003.4 9984 4168 Accepted 100
47 3 0003.5 9984 4104 Accepted 100
48 3 0003.7 9984 4284 Accepted 100
49 3 0003.8 9984 4368 Accepted 100
50 3 0004.4 9984 4788 Accepted 100
51 3 0004.6 9984 4592 Accepted 100
52 3 0004.8 9984 4700 Accepted 100
53 3 0008.0 9984 5776 Accepted 100
54 3 0009.1 9984 6092 Accepted 100
55 3 0010.5 9984 6252 Accepted 100
56 3 0011.2 9984 6420 Accepted 100
57 3 0012.4 9984 6548 Accepted 100
58 3 0003.2 9984 3996 Accepted 100
59 3 0012.6 9984 6808 Accepted 100
60 3 0013.3 9984 6884 Accepted 100
61 3 0005.2 9984 4780 Accepted 100
62 3 0013.2 9984 6840 Accepted 100
63 3 0005.2 9984 4852 Accepted 100
64 3 0005.8 9984 5012 Accepted 100
65 3 0006.8 9984 5064 Accepted 100
66 3 0013.1 9984 6524 Accepted 100
67 3 0015.8 9984 6816 Accepted 100
68 3 0016.3 9988 7088 Accepted 100
69 3 0017.9 9992 7240 Accepted 100
70 3 0018.3 10004 7352 Accepted 100
71 3 0019.3 10000 7372 Accepted 100
72 3 0021.5 10016 7624 Accepted 100
73 3 0002.7 9984 3596 Accepted 100
74 3 0002.6 9984 3728 Accepted 100
75 3 0002.5 9984 3588 Accepted 100
76 3 0002.8 9984 3724 Accepted 100
77 3 0002.6 9984 3596 Accepted 100
78 3 0002.6 9984 3804 Accepted 100
79 3 0002.6 9984 3680 Accepted 100
80 3 0003.0 9984 3728 Accepted 100
81 3 0002.6 9984 3752 Accepted 100
82 3 0002.6 9984 3500 Accepted 100
83 3 0002.6 9984 3700 Accepted 100
84 3 0002.7 9984 3676 Accepted 100
85 3 0002.8 9984 3644 Accepted 100
86 3 0002.7 9984 3580 Accepted 100
87 3 0002.4 9984 3692 Accepted 100
88 3 0002.7 9984 3468 Accepted 100
89 3 0002.4 9984 3576 Accepted 100
90 3 0002.5 9984 3668 Accepted 100
91 3 0002.5 9984 3672 Accepted 100
92 3 0002.7 9984 3704 Accepted 100
93 3 0002.5 9984 3716 Accepted 100
94 3 0002.6 9984 3636 Accepted 100
95 3 0002.9 9984 3660 Accepted 100
96 3 0002.5 9984 3640 Accepted 100
97 3 0002.6 9984 3668 Accepted 100
98 3 0002.5 9984 3776 Accepted 100
99 3 0002.7 9984 3652 Accepted 100
100 4 0042.1 10012 7556 Wrong Answer 0
101 4 0043.2 10008 7732 Wrong Answer 0
102 4 0067.4 10016 7700 Wrong Answer 0
103 4 0051.7 10012 7624 Wrong Answer 0
104 4 0044.2 10016 7728 Wrong Answer 0
105 4 0045.0 10012 7760 Wrong Answer 0
106 4 0044.0 10008 7636 Wrong Answer 0
107 4 0043.5 10008 7564 Wrong Answer 0
108 4 0049.3 10016 7680 Wrong Answer 0
109 4 0044.5 10012 7700 Wrong Answer 0
110 4 0045.8 10016 7480 Wrong Answer 0
111 4 0044.0 10016 7808 Wrong Answer 0
112 4 0068.5 10016 7700 Wrong Answer 0
113 4 0042.4 9996 7552 Wrong Answer 0
114 4 0043.3 10000 7580 Wrong Answer 0
115 4 0051.4 10008 7600 Wrong Answer 0
116 4 0041.7 10008 7492 Wrong Answer 0
117 4 0043.5 10004 7612 Wrong Answer 0
118 4 0041.4 10008 7392 Wrong Answer 0
119 4 0042.9 10008 7520 Wrong Answer 0
120 4 0044.2 10012 7720 Wrong Answer 0
121 4 0047.3 10020 7696 Wrong Answer 0
122 4 0044.6 10016 7760 Wrong Answer 0
123 4 0043.0 10008 7620 Wrong Answer 0
124 4 0043.4 10008 7524 Wrong Answer 0
125 4 0018.9 10012 7508 Accepted 100
126 4 0044.2 10016 7580 Wrong Answer 0
127 4 0046.3 10012 7720 Wrong Answer 0
128 4 0058.0 10012 7748 Wrong Answer 0
129 4 0044.6 10016 7620 Wrong Answer 0
130 4 0058.6 10008 7712 Wrong Answer 0
131 4 0043.2 10008 7752 Wrong Answer 0
132 4 0044.6 10008 7664 Wrong Answer 0
133 4 0044.8 10016 7748 Wrong Answer 0
134 4 0049.6 10008 7608 Wrong Answer 0
135 4 0043.8 10012 7708 Wrong Answer 0
136 4 0043.6 10016 7568 Wrong Answer 0
137 4 0041.0 10004 7456 Wrong Answer 0
138 4 0031.9 9984 6724 Wrong Answer 0
139 4 0007.2 9984 4204 Wrong Answer 0
140 4 0034.5 9984 6856 Wrong Answer 0
141 4 0052.7 10008 7648 Wrong Answer 0
142 4 0018.8 9984 5440 Wrong Answer 0
143 4 0037.6 9988 6820 Wrong Answer 0
144 4 0035.3 9984 6704 Wrong Answer 0
145 4 0013.2 9984 6712 Accepted 100
146 4 0044.4 10000 7336 Wrong Answer 0
147 4 0047.9 10016 7688 Wrong Answer 0
148 4 0035.7 9984 5868 Wrong Answer 0
149 4 0038.9 9992 7152 Wrong Answer 0
150 4 0024.6 9984 5856 Wrong Answer 0
151 4 0005.5 9984 3844 Wrong Answer 0
152 4 0006.4 9984 3928 Wrong Answer 0
153 4 0006.1 9984 3980 Wrong Answer 0
154 4 0006.1 9984 3904 Wrong Answer 0
155 4 0006.6 9984 4032 Wrong Answer 0
156 4 0010.0 9984 3864 Wrong Answer 0
157 4 0006.4 9984 3924 Wrong Answer 0
158 4 0006.9 9984 3964 Wrong Answer 0
159 4 0007.3 9984 4008 Wrong Answer 0
160 4 0008.5 9984 3964 Wrong Answer 0
161 4 0009.2 9984 4060 Wrong Answer 0
162 4 0009.7 9984 4128 Wrong Answer 0
163 4 0005.5 9984 4012 Wrong Answer 0
164 4 0005.8 9984 4052 Wrong Answer 0
165 4 0007.8 9984 4072 Wrong Answer 0
166 4 0008.1 9984 4104 Wrong Answer 0
167 4 0007.4 9984 4088 Wrong Answer 0
168 4 0007.0 9984 4020 Wrong Answer 0
169 4 0006.7 9984 3924 Wrong Answer 0
170 4 0006.2 9984 4028 Wrong Answer 0
171 4 0007.9 9984 4100 Wrong Answer 0
172 4 0008.8 9984 4096 Wrong Answer 0
173 4 0011.3 9984 4188 Wrong Answer 0
174 4 0009.2 9984 4192 Wrong Answer 0
175 4 0005.8 9984 4032 Wrong Answer 0
176 4 0006.1 9984 4092 Wrong Answer 0
177 4 0006.3 9984 4196 Wrong Answer 0
178 4 0007.0 9984 4164 Wrong Answer 0
179 4 0007.7 9984 4188 Wrong Answer 0
180 4 0007.5 9984 4228 Wrong Answer 0
181 4 0006.7 9984 3864 Wrong Answer 0
182 4 0006.5 9984 3896 Wrong Answer 0
183 4 0008.2 9984 4116 Wrong Answer 0
184 4 0008.3 9984 4156 Wrong Answer 0
185 4 0011.5 9984 4188 Wrong Answer 0
186 4 0009.8 9984 4292 Wrong Answer 0
187 5 0044.6 10016 7752 Wrong Answer 0
188 5 0046.5 10016 7604 Wrong Answer 0
189 5 0046.5 10012 7712 Wrong Answer 0
190 5 0042.6 9984 7664 Wrong Answer 0
191 5 0044.7 10016 7752 Wrong Answer 0
192 5 0043.3 9984 7684 Wrong Answer 0
193 5 0046.4 10012 7776 Wrong Answer 0
194 5 0043.8 9996 7592 Wrong Answer 0
195 5 0044.1 10020 7640 Wrong Answer 0
196 5 0002.6 9984 3516 Accepted 100
197 5 0003.7 9984 3500 Wrong Answer 0
198 5 0002.8 9984 3708 Accepted 100
199 5 0003.9 9984 3792 Wrong Answer 0
200 5 0003.5 9984 3720 Wrong Answer 0
201 5 0003.1 9984 3608 Wrong Answer 0
202 5 0002.5 9984 3592 Accepted 100
203 5 0003.7 9984 3668 Wrong Answer 0
204 5 0002.5 9984 3720 Accepted 100
205 5 0002.7 9984 3592 Accepted 100
206 5 0003.0 9984 3804 Accepted 100
207 5 0003.3 9984 3752 Wrong Answer 0
208 5 0002.6 9984 3612 Accepted 100
209 5 0003.7 9984 3528 Wrong Answer 0
210 5 0002.7 9984 3604 Accepted 100
211 5 0023.9 9984 6052 Wrong Answer 0
212 5 0020.2 9984 5512 Wrong Answer 0
213 5 0020.7 9984 5464 Wrong Answer 0
214 5 0006.7 9984 5204 Accepted 100
215 5 0035.1 9984 6532 Wrong Answer 0
216 5 0013.8 9984 4732 Wrong Answer 0
217 5 0009.4 9984 4448 Wrong Answer 0
218 5 0007.2 9984 4276 Wrong Answer 0
219 5 0020.8 9984 5568 Wrong Answer 0
220 5 0041.9 9992 7452 Wrong Answer 0
221 5 0013.1 9984 4724 Wrong Answer 0
222 5 0031.1 9984 6440 Wrong Answer 0
Submitter:
Compiler:
c++20
Code Length:
912 Bytes
Back to Top