Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

16333
9756
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.8 11712 3548 Accepted 100
1 1 4 5 6 0002.6 11712 3596 Accepted 100
2 1 4 5 6 0002.6 11712 3664 Accepted 100
3 2 6 0002.7 11712 3596 Accepted 100
4 2 6 0124.7 13292 7320 Accepted 100
5 2 6 0128.9 13292 7372 Accepted 100
6 2 6 0130.5 13292 7288 Accepted 100
7 2 6 0127.4 13292 7400 Accepted 100
8 2 6 0126.5 13292 7388 Accepted 100
9 2 6 0127.4 13292 7420 Accepted 100
10 2 6 0126.2 13292 7416 Accepted 100
11 2 6 0133.5 13292 7324 Accepted 100
12 2 6 0130.6 13292 7324 Accepted 100
13 2 6 0069.0 13292 7268 Accepted 100
14 2 6 0068.8 13292 7312 Accepted 100
15 2 6 0069.4 13292 7272 Accepted 100
16 2 6 0068.8 13292 7352 Accepted 100
17 2 6 0071.7 13292 7348 Accepted 100
18 2 6 0069.1 13292 7388 Accepted 100
19 2 6 0069.1 13292 7204 Accepted 100
20 2 6 0069.2 13292 7352 Accepted 100
21 2 6 0068.7 13292 7276 Accepted 100
22 3 6 0203.7 13292 9740 Accepted 100
23 3 6 0211.6 13292 9692 Accepted 100
24 3 6 0199.8 13292 9720 Accepted 100
25 3 6 0206.8 13292 9656 Accepted 100
26 3 6 0205.3 13292 9660 Accepted 100
27 3 6 0206.0 13292 9616 Accepted 100
28 3 6 0201.0 13292 9616 Accepted 100
29 3 6 0203.5 13292 9684 Accepted 100
30 3 6 0208.2 13292 9616 Accepted 100
31 3 6 0201.6 13292 9616 Accepted 100
32 3 6 0205.8 13292 9564 Accepted 100
33 3 6 0199.0 13292 9728 Accepted 100
34 3 6 0202.7 13292 9716 Accepted 100
35 3 6 0203.8 13292 9512 Accepted 100
36 3 6 0203.6 13292 9584 Accepted 100
37 4 5 6 0002.6 11712 3596 Accepted 100
38 4 5 6 0002.6 11712 3580 Accepted 100
39 4 5 6 0002.7 11712 3608 Accepted 100
40 4 5 6 0002.7 11712 3608 Accepted 100
41 4 5 6 0002.6 11712 3568 Accepted 100
42 4 5 6 0002.8 11712 3596 Accepted 100
43 4 5 6 0002.6 11712 3396 Accepted 100
44 4 5 6 0002.7 11712 3604 Accepted 100
45 4 5 6 0002.7 11712 3600 Accepted 100
46 4 5 6 0002.7 11712 3556 Accepted 100
47 4 5 6 0002.6 11712 3400 Accepted 100
48 4 5 6 0002.7 11712 3564 Accepted 100
49 4 5 6 0002.9 11712 3604 Accepted 100
50 4 5 6 0002.7 11712 3532 Accepted 100
51 4 5 6 0002.5 11712 3552 Accepted 100
52 4 5 6 0002.5 11712 3604 Accepted 100
53 4 5 6 0002.6 11712 3600 Accepted 100
54 4 5 6 0002.6 11712 3572 Accepted 100
55 4 5 6 0002.6 11712 3572 Accepted 100
56 4 5 6 0002.6 11712 3608 Accepted 100
57 4 5 6 0002.5 11712 3668 Accepted 100
58 4 5 6 0002.6 11712 3564 Accepted 100
59 4 5 6 0002.6 11712 3400 Accepted 100
60 4 5 6 0002.6 11712 3556 Accepted 100
61 4 5 6 0002.5 11712 3612 Accepted 100
62 4 5 6 0002.5 11712 3604 Accepted 100
63 4 5 6 0002.7 11712 3604 Accepted 100
64 4 5 6 0002.6 11712 3564 Accepted 100
65 4 5 6 0002.7 11712 3624 Accepted 100
66 4 5 6 0002.6 11712 3532 Accepted 100
67 4 5 6 0002.7 11712 3568 Accepted 100
68 4 5 6 0002.6 11712 3544 Accepted 100
69 4 5 6 0002.6 11712 3608 Accepted 100
70 4 5 6 0002.7 11712 3596 Accepted 100
71 4 5 6 0002.8 11712 3576 Accepted 100
72 5 6 0004.6 11712 3728 Accepted 100
73 5 6 0004.5 11712 3696 Accepted 100
74 5 6 0004.5 11712 3632 Accepted 100
75 5 6 0004.5 11712 3672 Accepted 100
76 5 6 0004.5 11712 3700 Accepted 100
77 5 6 0004.4 11712 3564 Accepted 100
78 5 6 0004.2 11712 3692 Accepted 100
79 5 6 0009.7 11712 3684 Accepted 100
80 5 6 0004.4 11712 3684 Accepted 100
81 5 6 0004.4 11712 3696 Accepted 100
82 5 6 0004.5 11712 3496 Accepted 100
83 5 6 0004.5 11712 3676 Accepted 100
84 5 6 0004.2 11712 3704 Accepted 100
85 5 6 0004.5 11712 3784 Accepted 100
86 5 6 0004.5 11712 3784 Accepted 100
87 5 6 0004.6 11712 3720 Accepted 100
88 5 6 0004.6 11712 3504 Accepted 100
89 5 6 0004.4 11712 3716 Accepted 100
90 5 6 0003.8 11712 3660 Accepted 100
91 5 6 0003.8 11712 3484 Accepted 100
92 5 6 0003.7 11712 3680 Accepted 100
93 5 6 0003.9 11712 3656 Accepted 100
94 5 6 0003.8 11712 3704 Accepted 100
95 5 6 0003.9 11712 3680 Accepted 100
96 5 6 0003.8 11712 3752 Accepted 100
97 5 6 0003.7 11712 3616 Accepted 100
98 5 6 0003.8 11712 3636 Accepted 100
99 5 6 0003.7 11712 3616 Accepted 100
100 5 6 0003.7 11712 3428 Accepted 100
101 6 0206.4 13292 9664 Accepted 100
102 6 0199.9 12524 9240 Accepted 100
103 6 0200.6 13292 9724 Accepted 100
104 6 0205.5 13292 9688 Accepted 100
105 6 0196.3 13292 9628 Accepted 100
106 6 0201.6 13292 9568 Accepted 100
107 6 0208.9 13292 9584 Accepted 100
108 6 0244.5 13292 9740 Accepted 100
109 6 0125.8 13292 7416 Accepted 100
110 6 0125.3 13292 7396 Accepted 100
111 6 0125.0 13292 7240 Accepted 100
112 6 0126.4 13292 7228 Accepted 100
113 6 0129.3 13292 7328 Accepted 100
114 6 0127.8 13292 7280 Accepted 100
115 6 0126.4 13292 7276 Accepted 100
116 6 0127.2 13292 7324 Accepted 100
117 6 0125.6 13292 7368 Accepted 100
118 6 0126.3 13292 7296 Accepted 100
119 6 0134.4 13292 7428 Accepted 100
120 6 0134.4 13292 7568 Accepted 100
121 6 0127.4 13292 7344 Accepted 100
122 6 0150.5 12524 7976 Accepted 100
123 6 0155.0 12776 8368 Accepted 100
124 6 0137.7 13292 7356 Accepted 100
125 6 0140.1 13292 7572 Accepted 100
126 6 0147.9 13292 7704 Accepted 100
127 6 0172.6 12524 8600 Accepted 100
128 6 0170.4 12524 8704 Accepted 100
129 6 0148.0 12524 7948 Accepted 100
130 6 0151.3 12524 7856 Accepted 100
131 6 0170.7 12524 8692 Accepted 100
132 6 0132.9 13292 7356 Accepted 100
133 6 0179.5 12272 8848 Accepted 100
134 6 0140.1 13292 7640 Accepted 100
135 6 0160.4 12776 8348 Accepted 100
136 6 0203.2 13292 9616 Accepted 100
137 6 0156.6 13292 9588 Accepted 100
138 6 0137.1 13292 9624 Accepted 100
139 6 0205.8 13292 9712 Accepted 100
140 6 0085.8 11712 9068 Accepted 100
141 6 0215.4 13292 9692 Accepted 100
142 6 0206.2 13292 9560 Accepted 100
143 6 0154.3 13292 9684 Accepted 100
144 6 0208.9 13292 9616 Accepted 100
145 6 0191.8 12524 9180 Accepted 100
146 6 0203.3 13292 9756 Accepted 100
147 6 0163.4 13292 9696 Accepted 100
148 6 0084.2 11712 9068 Accepted 100
149 6 0084.5 11712 9044 Accepted 100
150 6 0138.4 13292 9756 Accepted 100
151 6 0089.0 11712 9060 Accepted 100
152 6 0206.0 13292 9592 Accepted 100
153 6 0085.9 11712 9052 Accepted 100
154 6 0203.7 13292 9732 Accepted 100
155 6 0085.2 11712 9076 Accepted 100
156 6 0084.5 11712 9068 Accepted 100
157 6 0084.7 11712 9040 Accepted 100
158 6 0084.4 11712 9092 Accepted 100
159 6 0086.9 11712 9032 Accepted 100
160 6 0086.2 11712 9076 Accepted 100
161 6 0084.8 11712 9076 Accepted 100
162 6 0086.8 11712 8956 Accepted 100
163 6 0084.6 11712 9072 Accepted 100
164 6 0085.5 11712 9072 Accepted 100
165 6 0084.2 11712 9028 Accepted 100
166 6 0084.4 11712 9008 Accepted 100
167 6 0085.3 11712 9076 Accepted 100
168 6 0084.8 12140 8448 Accepted 100
169 6 0081.6 12524 8136 Accepted 100
170 6 0080.7 12524 8056 Accepted 100
171 6 0080.9 12524 8420 Accepted 100
172 6 0083.0 12004 8900 Accepted 100
173 6 0072.4 13292 7544 Accepted 100
174 6 0084.3 12140 8768 Accepted 100
175 6 0076.5 12524 7968 Accepted 100
176 6 0082.2 12140 8596 Accepted 100
177 6 0079.8 12524 8100 Accepted 100
178 6 0070.4 13292 7268 Accepted 100
179 6 0071.2 13292 7304 Accepted 100
180 6 0069.0 13292 7400 Accepted 100
181 6 0070.1 13292 7312 Accepted 100
182 6 0069.9 13292 7244 Accepted 100
183 6 0072.3 13292 7300 Accepted 100
184 6 0070.2 13292 7196 Accepted 100
185 6 0069.7 13292 7392 Accepted 100
186 6 0071.0 13292 7304 Accepted 100
187 6 0069.7 13292 7252 Accepted 100
188 6 0069.4 13292 7420 Accepted 100
189 6 0069.2 13292 7320 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
2.09 KB
Back to Top