Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

98375
84312
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 0042.4 49968 31708 Accepted 100
1 1 4 5 6 0042.0 49968 31724 Accepted 100
2 1 4 5 6 0041.8 49968 31516 Accepted 100
3 2 6 0041.7 49968 31592 Accepted 100
4 2 6 0877.2 92624 83664 Accepted 100
5 2 6 0941.2 92624 83808 Accepted 100
6 2 6 0895.3 92624 83668 Accepted 100
7 2 6 0878.8 92624 83696 Accepted 100
8 2 6 0890.5 92624 83812 Accepted 100
9 2 6 0883.3 92624 83812 Accepted 100
10 2 6 0907.7 92624 83660 Accepted 100
11 2 6 0885.0 92624 83668 Accepted 100
12 2 6 0885.3 92624 83824 Accepted 100
13 2 6 0637.4 90704 80612 Accepted 100
14 2 6 0646.9 90572 80592 Accepted 100
15 2 6 0633.0 90704 80628 Accepted 100
16 2 6 0645.8 90572 80540 Accepted 100
17 2 6 0643.9 90708 80556 Accepted 100
18 2 6 0641.8 90572 80664 Accepted 100
19 2 6 0660.5 90572 80512 Accepted 100
20 2 6 0665.5 90572 80656 Accepted 100
21 2 6 0644.2 90572 80536 Accepted 100
22 3 6 0794.1 89544 81288 Accepted 100
23 3 6 0803.4 89544 81448 Accepted 100
24 3 6 0805.9 89544 81300 Accepted 100
25 3 6 0786.8 89544 81404 Accepted 100
26 3 6 0813.2 89544 81440 Accepted 100
27 3 6 0798.2 89544 81320 Accepted 100
28 3 6 0802.2 89544 81412 Accepted 100
29 3 6 0792.9 89544 81292 Accepted 100
30 3 6 0785.8 89544 81300 Accepted 100
31 3 6 0780.3 89544 81288 Accepted 100
32 3 6 0793.2 89544 81304 Accepted 100
33 3 6 0793.6 89544 81324 Accepted 100
34 3 6 0797.4 89544 81340 Accepted 100
35 3 6 0779.3 89544 81448 Accepted 100
36 3 6 0803.4 89544 81324 Accepted 100
37 4 5 6 0043.1 49968 31660 Accepted 100
38 4 5 6 0040.9 49968 31728 Accepted 100
39 4 5 6 0042.3 49968 31688 Accepted 100
40 4 5 6 0042.3 49968 31608 Accepted 100
41 4 5 6 0043.0 49968 31740 Accepted 100
42 4 5 6 0040.4 49968 31676 Accepted 100
43 4 5 6 0041.8 49968 31664 Accepted 100
44 4 5 6 0041.8 49968 31736 Accepted 100
45 4 5 6 0041.0 49968 31676 Accepted 100
46 4 5 6 0041.3 49968 31652 Accepted 100
47 4 5 6 0042.0 49968 31720 Accepted 100
48 4 5 6 0042.2 49968 31652 Accepted 100
49 4 5 6 0043.6 49968 31608 Accepted 100
50 4 5 6 0042.2 49968 31612 Accepted 100
51 4 5 6 0043.7 49968 31532 Accepted 100
52 4 5 6 0043.2 49968 31732 Accepted 100
53 4 5 6 0043.1 49968 31720 Accepted 100
54 4 5 6 0042.5 49968 31672 Accepted 100
55 4 5 6 0042.8 49968 31612 Accepted 100
56 4 5 6 0041.9 49968 31672 Accepted 100
57 4 5 6 0043.1 49968 31668 Accepted 100
58 4 5 6 0043.1 49968 31680 Accepted 100
59 4 5 6 0043.6 49968 31608 Accepted 100
60 4 5 6 0040.4 49968 31680 Accepted 100
61 4 5 6 0043.8 49968 31788 Accepted 100
62 4 5 6 0043.4 49968 31656 Accepted 100
63 4 5 6 0045.2 49968 31656 Accepted 100
64 4 5 6 0041.3 49968 31720 Accepted 100
65 4 5 6 0043.4 49968 31780 Accepted 100
66 4 5 6 0043.1 49968 31528 Accepted 100
67 4 5 6 0042.9 49968 31736 Accepted 100
68 4 5 6 0042.4 49968 31672 Accepted 100
69 4 5 6 0043.1 49968 31696 Accepted 100
70 4 5 6 0041.8 49968 31740 Accepted 100
71 4 5 6 0042.8 49968 31528 Accepted 100
72 5 6 0049.2 50628 32492 Accepted 100
73 5 6 0048.8 50496 32492 Accepted 100
74 5 6 0049.5 50628 32432 Accepted 100
75 5 6 0049.8 50628 32552 Accepted 100
76 5 6 0049.9 50628 32436 Accepted 100
77 5 6 0049.4 50496 32416 Accepted 100
78 5 6 0049.3 50628 32312 Accepted 100
79 5 6 0048.8 50628 32460 Accepted 100
80 5 6 0048.7 50628 32492 Accepted 100
81 5 6 0048.9 50496 32440 Accepted 100
82 5 6 0049.7 50632 32504 Accepted 100
83 5 6 0049.6 50628 32392 Accepted 100
84 5 6 0049.3 50628 32428 Accepted 100
85 5 6 0049.4 50496 32464 Accepted 100
86 5 6 0048.7 50628 32444 Accepted 100
87 5 6 0049.2 50628 32488 Accepted 100
88 5 6 0048.6 50628 32452 Accepted 100
89 5 6 0050.1 50628 32504 Accepted 100
90 5 6 0048.2 50628 32428 Accepted 100
91 5 6 0048.2 50628 32296 Accepted 100
92 5 6 0046.9 50496 32472 Accepted 100
93 5 6 0047.3 50496 32424 Accepted 100
94 5 6 0047.6 50496 32484 Accepted 100
95 5 6 0048.3 50496 32496 Accepted 100
96 5 6 0047.3 50496 32412 Accepted 100
97 5 6 0047.8 50496 32444 Accepted 100
98 5 6 0047.5 50496 32492 Accepted 100
99 5 6 0047.2 50496 32420 Accepted 100
100 5 6 0048.0 50496 32428 Accepted 100
101 6 0832.6 93648 84312 Accepted 100
102 6 0858.6 91596 83136 Accepted 100
103 6 0847.2 93648 84200 Accepted 100
104 6 0817.9 93648 84232 Accepted 100
105 6 0859.2 91596 83184 Accepted 100
106 6 0823.8 91596 83040 Accepted 100
107 6 0804.7 90572 82252 Accepted 100
108 6 0803.1 89544 81324 Accepted 100
109 6 0922.7 92624 83772 Accepted 100
110 6 0922.3 92624 83824 Accepted 100
111 6 0903.7 92628 83776 Accepted 100
112 6 0905.7 92624 83804 Accepted 100
113 6 0914.3 92624 83824 Accepted 100
114 6 0961.6 92624 83772 Accepted 100
115 6 0886.2 92624 83696 Accepted 100
116 6 0887.0 92624 83824 Accepted 100
117 6 0953.9 92624 83700 Accepted 100
118 6 0909.5 92624 83688 Accepted 100
119 6 0970.3 92624 83760 Accepted 100
120 6 0970.6 91604 82788 Accepted 100
121 6 0936.3 92624 83740 Accepted 100
122 6 0926.2 91432 82976 Accepted 100
123 6 0949.0 91432 82888 Accepted 100
124 6 0927.9 92624 83668 Accepted 100
125 6 0942.8 91600 82700 Accepted 100
126 6 0935.6 91600 82636 Accepted 100
127 6 0913.6 90832 82440 Accepted 100
128 6 0914.9 90836 82440 Accepted 100
129 6 0935.8 91432 82852 Accepted 100
130 6 0944.2 91432 82892 Accepted 100
131 6 0928.0 90832 82480 Accepted 100
132 6 0942.7 92624 83456 Accepted 100
133 6 0906.8 90704 82392 Accepted 100
134 6 0944.4 91600 82796 Accepted 100
135 6 0927.2 91840 83116 Accepted 100
136 6 0800.0 90060 81580 Accepted 100
137 6 0768.5 93648 84224 Accepted 100
138 6 0736.2 91596 83176 Accepted 100
139 6 0877.3 89544 81324 Accepted 100
140 6 0720.1 91596 83304 Accepted 100
141 6 0806.9 89544 81292 Accepted 100
142 6 0801.5 89544 81404 Accepted 100
143 6 0739.1 90060 81672 Accepted 100
144 6 0805.4 89544 81452 Accepted 100
145 6 0809.0 91596 83024 Accepted 100
146 6 0803.6 91596 83304 Accepted 100
147 6 0686.3 91596 83256 Accepted 100
148 6 0737.6 93648 84228 Accepted 100
149 6 0755.3 91600 83296 Accepted 100
150 6 0732.5 91596 83156 Accepted 100
151 6 0759.5 91596 83036 Accepted 100
152 6 0828.7 91596 83256 Accepted 100
153 6 0746.7 91596 83040 Accepted 100
154 6 0811.6 90572 82236 Accepted 100
155 6 0693.7 91596 82904 Accepted 100
156 6 0714.5 91596 83224 Accepted 100
157 6 0646.0 90060 81588 Accepted 100
158 6 0662.1 90060 81708 Accepted 100
159 6 0682.0 90572 82240 Accepted 100
160 6 0720.9 91596 82928 Accepted 100
161 6 0653.0 90064 81596 Accepted 100
162 6 0653.1 89820 81348 Accepted 100
163 6 0657.2 89820 81320 Accepted 100
164 6 0657.8 90064 81724 Accepted 100
165 6 0654.9 90068 81588 Accepted 100
166 6 0666.6 90576 82164 Accepted 100
167 6 0661.4 90076 81708 Accepted 100
168 6 0652.3 89960 81564 Accepted 100
169 6 0658.3 90060 81716 Accepted 100
170 6 0661.3 90060 81708 Accepted 100
171 6 0655.1 90060 81712 Accepted 100
172 6 0660.9 89676 81452 Accepted 100
173 6 0667.0 90572 82084 Accepted 100
174 6 0657.4 89936 81680 Accepted 100
175 6 0646.9 90060 81912 Accepted 100
176 6 0645.7 89804 81620 Accepted 100
177 6 0646.5 90060 81716 Accepted 100
178 6 0670.7 90572 80996 Accepted 100
179 6 0639.0 90572 80852 Accepted 100
180 6 0641.4 90704 80780 Accepted 100
181 6 0639.4 90572 80964 Accepted 100
182 6 0647.2 90572 81172 Accepted 100
183 6 0655.0 90572 81140 Accepted 100
184 6 0644.5 90572 80756 Accepted 100
185 6 0642.3 90704 81936 Accepted 100
186 6 0656.6 90572 81372 Accepted 100
187 6 0651.4 90708 81108 Accepted 100
188 6 0647.4 90704 81676 Accepted 100
189 6 0648.2 90572 81092 Accepted 100
Submitter:
Compiler:
c++20
Code Length:
3.65 KB
Back to Top