Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

15919
22896
Accepted
100

Subtask Results

Subtask no. Testdata Range Constraints Score
1 0~2 範例測資 0 / 0
2 3~21 $p_i\neq 0$ 13 / 13
3 22~36 $p_i=0$ 8 / 8
4 0~2, 37~71 $N\le 20$ 11 / 11
5 0~2, 37~100 $N\le 3000$ 30 / 30
6 0~189 無額外限制 38 / 38

Testdata Results

Testdata no. Subtasks Time (ms) Memory (VSS, KiB) Memory (RSS, KiB) Verdict Score
0 1 4 5 6 0002.7 17152 3520 Accepted 100
1 1 4 5 6 0002.7 17152 3528 Accepted 100
2 1 4 5 6 0002.7 17152 3548 Accepted 100
3 2 6 0002.8 17152 3480 Accepted 100
4 2 6 0116.5 17152 12900 Accepted 100
5 2 6 0118.8 17152 12900 Accepted 100
6 2 6 0118.9 17152 12964 Accepted 100
7 2 6 0120.7 17152 12972 Accepted 100
8 2 6 0121.9 17152 12876 Accepted 100
9 2 6 0116.6 17152 12908 Accepted 100
10 2 6 0119.8 17152 12912 Accepted 100
11 2 6 0119.9 17152 12908 Accepted 100
12 2 6 0115.8 17152 12896 Accepted 100
13 2 6 0071.9 17152 12876 Accepted 100
14 2 6 0071.8 17152 12896 Accepted 100
15 2 6 0074.6 17152 12904 Accepted 100
16 2 6 0071.5 17152 12904 Accepted 100
17 2 6 0072.3 17152 12944 Accepted 100
18 2 6 0072.9 17152 12836 Accepted 100
19 2 6 0071.5 17152 12892 Accepted 100
20 2 6 0071.9 17152 12896 Accepted 100
21 2 6 0072.5 17152 12888 Accepted 100
22 3 6 0183.5 31532 22760 Accepted 100
23 3 6 0184.6 31532 22708 Accepted 100
24 3 6 0182.9 31532 22784 Accepted 100
25 3 6 0184.2 31532 22768 Accepted 100
26 3 6 0179.9 31532 22776 Accepted 100
27 3 6 0182.3 31532 22768 Accepted 100
28 3 6 0183.2 31532 22860 Accepted 100
29 3 6 0186.8 31532 22844 Accepted 100
30 3 6 0181.8 31532 22888 Accepted 100
31 3 6 0185.7 31532 22860 Accepted 100
32 3 6 0181.4 31532 22772 Accepted 100
33 3 6 0182.6 31532 22744 Accepted 100
34 3 6 0181.7 31532 22780 Accepted 100
35 3 6 0184.0 31532 22772 Accepted 100
36 3 6 0182.2 31532 22808 Accepted 100
37 4 5 6 0002.9 17152 3604 Accepted 100
38 4 5 6 0002.7 17152 3560 Accepted 100
39 4 5 6 0002.8 17152 3488 Accepted 100
40 4 5 6 0002.9 17152 3544 Accepted 100
41 4 5 6 0002.8 17152 3548 Accepted 100
42 4 5 6 0002.8 17152 3560 Accepted 100
43 4 5 6 0002.8 17152 3556 Accepted 100
44 4 5 6 0002.7 17152 3384 Accepted 100
45 4 5 6 0002.7 17152 3560 Accepted 100
46 4 5 6 0002.7 17152 3384 Accepted 100
47 4 5 6 0002.7 17152 3472 Accepted 100
48 4 5 6 0002.8 17152 3468 Accepted 100
49 4 5 6 0002.6 17152 3512 Accepted 100
50 4 5 6 0002.8 17152 3384 Accepted 100
51 4 5 6 0002.9 17152 3484 Accepted 100
52 4 5 6 0002.6 17152 3620 Accepted 100
53 4 5 6 0002.7 17152 3476 Accepted 100
54 4 5 6 0002.8 17152 3596 Accepted 100
55 4 5 6 0002.7 17152 3600 Accepted 100
56 4 5 6 0002.7 17152 3552 Accepted 100
57 4 5 6 0002.7 17152 3568 Accepted 100
58 4 5 6 0002.7 17152 3524 Accepted 100
59 4 5 6 0002.8 17152 3532 Accepted 100
60 4 5 6 0003.6 17152 3552 Accepted 100
61 4 5 6 0002.8 17152 3560 Accepted 100
62 4 5 6 0002.8 17152 3548 Accepted 100
63 4 5 6 0002.7 17152 3544 Accepted 100
64 4 5 6 0002.7 17152 3660 Accepted 100
65 4 5 6 0002.6 17152 3536 Accepted 100
66 4 5 6 0002.7 17152 3552 Accepted 100
67 4 5 6 0002.6 17152 3560 Accepted 100
68 4 5 6 0002.7 17152 3548 Accepted 100
69 4 5 6 0002.6 17152 3544 Accepted 100
70 4 5 6 0002.6 17152 3556 Accepted 100
71 4 5 6 0002.6 17152 3664 Accepted 100
72 5 6 0004.9 17376 3916 Accepted 100
73 5 6 0004.8 17152 3792 Accepted 100
74 5 6 0004.5 17152 3736 Accepted 100
75 5 6 0004.7 17152 3768 Accepted 100
76 5 6 0004.5 17152 3848 Accepted 100
77 5 6 0004.7 17376 3740 Accepted 100
78 5 6 0004.3 17152 3712 Accepted 100
79 5 6 0004.5 17152 3692 Accepted 100
80 5 6 0004.5 17152 3612 Accepted 100
81 5 6 0004.8 17376 3824 Accepted 100
82 5 6 0004.8 17376 3828 Accepted 100
83 5 6 0004.3 17152 3536 Accepted 100
84 5 6 0004.3 17152 3720 Accepted 100
85 5 6 0004.9 17376 3772 Accepted 100
86 5 6 0005.0 17376 3784 Accepted 100
87 5 6 0005.0 17376 3920 Accepted 100
88 5 6 0005.2 17376 3920 Accepted 100
89 5 6 0004.4 17376 3800 Accepted 100
90 5 6 0004.5 17376 3796 Accepted 100
91 5 6 0004.2 17376 3860 Accepted 100
92 5 6 0003.9 17152 3824 Accepted 100
93 5 6 0005.7 17376 3816 Accepted 100
94 5 6 0003.8 17152 3772 Accepted 100
95 5 6 0004.2 17376 3932 Accepted 100
96 5 6 0003.9 17152 3732 Accepted 100
97 5 6 0004.0 17376 3804 Accepted 100
98 5 6 0003.9 17152 3780 Accepted 100
99 5 6 0004.0 17152 3812 Accepted 100
100 5 6 0003.9 17152 3844 Accepted 100
101 6 0184.0 31532 22284 Accepted 100
102 6 0179.5 31532 22344 Accepted 100
103 6 0179.6 31532 21848 Accepted 100
104 6 0183.1 31532 22528 Accepted 100
105 6 0180.4 31532 22448 Accepted 100
106 6 0177.0 31532 22784 Accepted 100
107 6 0183.4 31532 22816 Accepted 100
108 6 0185.3 31532 22736 Accepted 100
109 6 0117.6 17152 12912 Accepted 100
110 6 0118.9 17152 12948 Accepted 100
111 6 0117.3 17152 12956 Accepted 100
112 6 0122.3 17152 12736 Accepted 100
113 6 0118.4 17152 12908 Accepted 100
114 6 0119.5 17152 12828 Accepted 100
115 6 0116.1 17152 12900 Accepted 100
116 6 0117.0 17152 12912 Accepted 100
117 6 0114.6 17152 12904 Accepted 100
118 6 0118.8 17152 12924 Accepted 100
119 6 0117.3 17572 13036 Accepted 100
120 6 0123.9 18472 13752 Accepted 100
121 6 0119.8 17832 13152 Accepted 100
122 6 0143.7 21804 15720 Accepted 100
123 6 0146.7 22312 16124 Accepted 100
124 6 0123.8 17572 13072 Accepted 100
125 6 0133.8 19752 14556 Accepted 100
126 6 0138.1 19752 14752 Accepted 100
127 6 0166.2 26412 18748 Accepted 100
128 6 0162.2 26412 18884 Accepted 100
129 6 0137.3 21804 15736 Accepted 100
130 6 0143.9 21804 15560 Accepted 100
131 6 0164.3 26412 18816 Accepted 100
132 6 0124.5 18472 13560 Accepted 100
133 6 0169.2 26412 18840 Accepted 100
134 6 0136.5 19752 14296 Accepted 100
135 6 0158.6 22312 16368 Accepted 100
136 6 0180.6 31532 22776 Accepted 100
137 6 0139.8 31532 22560 Accepted 100
138 6 0142.6 31532 22864 Accepted 100
139 6 0182.9 31532 22840 Accepted 100
140 6 0141.8 31532 22564 Accepted 100
141 6 0193.5 31532 22836 Accepted 100
142 6 0182.3 31532 22880 Accepted 100
143 6 0140.9 31532 22872 Accepted 100
144 6 0179.9 31532 22768 Accepted 100
145 6 0182.5 31532 22760 Accepted 100
146 6 0179.1 31532 22896 Accepted 100
147 6 0130.9 31532 20424 Accepted 100
148 6 0118.9 27432 18168 Accepted 100
149 6 0134.9 27432 19668 Accepted 100
150 6 0143.0 31532 22300 Accepted 100
151 6 0143.2 31532 21780 Accepted 100
152 6 0175.9 31532 22620 Accepted 100
153 6 0138.6 31532 21704 Accepted 100
154 6 0182.7 31532 22788 Accepted 100
155 6 0124.4 31532 20920 Accepted 100
156 6 0108.4 26412 16556 Accepted 100
157 6 0096.1 26412 15336 Accepted 100
158 6 0123.2 31532 21092 Accepted 100
159 6 0109.4 27432 18180 Accepted 100
160 6 0125.7 31532 20700 Accepted 100
161 6 0103.1 26412 18180 Accepted 100
162 6 0099.0 26412 17648 Accepted 100
163 6 0100.9 26412 17864 Accepted 100
164 6 0099.7 26412 17520 Accepted 100
165 6 0100.5 26412 17700 Accepted 100
166 6 0113.0 27432 18572 Accepted 100
167 6 0097.9 26412 17536 Accepted 100
168 6 0095.4 26412 18496 Accepted 100
169 6 0085.4 21804 14968 Accepted 100
170 6 0084.7 21804 14980 Accepted 100
171 6 0091.3 26412 18776 Accepted 100
172 6 0101.5 26412 17800 Accepted 100
173 6 0075.3 19500 13740 Accepted 100
174 6 0094.8 26412 17756 Accepted 100
175 6 0081.8 21804 15520 Accepted 100
176 6 0093.5 26412 18180 Accepted 100
177 6 0085.4 21804 14880 Accepted 100
178 6 0071.5 17772 13024 Accepted 100
179 6 0072.8 17572 13012 Accepted 100
180 6 0071.3 17152 12980 Accepted 100
181 6 0074.9 17772 13044 Accepted 100
182 6 0072.6 17376 13144 Accepted 100
183 6 0071.7 17572 13032 Accepted 100
184 6 0070.2 17376 13028 Accepted 100
185 6 0073.0 17772 13040 Accepted 100
186 6 0074.3 17772 12868 Accepted 100
187 6 0071.2 17376 12968 Accepted 100
188 6 0072.4 17572 13040 Accepted 100
189 6 0072.2 17772 13008 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
1.35 KB
Back to Top