Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

15481
24488
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 6220 3572 Accepted 100
1 1 4 5 6 0002.7 6220 3368 Accepted 100
2 1 4 5 6 0002.7 6220 3580 Accepted 100
3 2 6 0002.9 6220 3600 Accepted 100
4 2 6 0110.3 18732 15752 Accepted 100
5 2 6 0111.0 18732 15700 Accepted 100
6 2 6 0114.4 18732 15736 Accepted 100
7 2 6 0110.8 18732 15688 Accepted 100
8 2 6 0112.0 18732 15716 Accepted 100
9 2 6 0111.0 18732 15596 Accepted 100
10 2 6 0112.1 18732 15616 Accepted 100
11 2 6 0112.6 18732 15600 Accepted 100
12 2 6 0114.1 18732 15656 Accepted 100
13 2 6 0070.3 15604 12852 Accepted 100
14 2 6 0070.5 15604 12816 Accepted 100
15 2 6 0070.2 15604 12820 Accepted 100
16 2 6 0070.6 15604 12424 Accepted 100
17 2 6 0070.5 15604 12424 Accepted 100
18 2 6 0069.7 15604 12428 Accepted 100
19 2 6 0071.2 15604 12828 Accepted 100
20 2 6 0070.6 15604 12824 Accepted 100
21 2 6 0070.9 15604 12860 Accepted 100
22 3 6 0178.8 29984 24464 Accepted 100
23 3 6 0180.4 29984 24300 Accepted 100
24 3 6 0177.8 29984 24448 Accepted 100
25 3 6 0206.9 29984 24480 Accepted 100
26 3 6 0176.9 29984 24436 Accepted 100
27 3 6 0176.9 29984 24348 Accepted 100
28 3 6 0184.2 29984 24424 Accepted 100
29 3 6 0185.5 29984 24488 Accepted 100
30 3 6 0180.0 29984 24308 Accepted 100
31 3 6 0179.5 29984 24348 Accepted 100
32 3 6 0180.6 29984 24488 Accepted 100
33 3 6 0180.1 29984 24472 Accepted 100
34 3 6 0182.3 29984 24472 Accepted 100
35 3 6 0177.8 29984 24448 Accepted 100
36 3 6 0179.2 29984 24316 Accepted 100
37 4 5 6 0002.7 6220 3604 Accepted 100
38 4 5 6 0002.7 6220 3608 Accepted 100
39 4 5 6 0002.8 6220 3616 Accepted 100
40 4 5 6 0002.7 6220 3520 Accepted 100
41 4 5 6 0002.5 6220 3532 Accepted 100
42 4 5 6 0002.5 6220 3512 Accepted 100
43 4 5 6 0002.8 6220 3528 Accepted 100
44 4 5 6 0002.7 6220 3532 Accepted 100
45 4 5 6 0002.6 6220 3588 Accepted 100
46 4 5 6 0002.6 6220 3580 Accepted 100
47 4 5 6 0002.6 6220 3576 Accepted 100
48 4 5 6 0002.7 6220 3460 Accepted 100
49 4 5 6 0002.6 6220 3616 Accepted 100
50 4 5 6 0002.7 6220 3580 Accepted 100
51 4 5 6 0002.7 6220 3584 Accepted 100
52 4 5 6 0002.7 6220 3592 Accepted 100
53 4 5 6 0002.7 6220 3520 Accepted 100
54 4 5 6 0002.6 6220 3584 Accepted 100
55 4 5 6 0002.6 6220 3536 Accepted 100
56 4 5 6 0002.6 6220 3580 Accepted 100
57 4 5 6 0002.7 6220 3708 Accepted 100
58 4 5 6 0002.7 6220 3604 Accepted 100
59 4 5 6 0002.6 6220 3580 Accepted 100
60 4 5 6 0002.5 6220 3376 Accepted 100
61 4 5 6 0002.6 6220 3600 Accepted 100
62 4 5 6 0002.7 6220 3708 Accepted 100
63 4 5 6 0002.6 6220 3576 Accepted 100
64 4 5 6 0002.5 6220 3672 Accepted 100
65 4 5 6 0002.6 6220 3588 Accepted 100
66 4 5 6 0002.5 6220 3512 Accepted 100
67 4 5 6 0002.7 6220 3584 Accepted 100
68 4 5 6 0002.5 6220 3380 Accepted 100
69 4 5 6 0002.6 6220 3580 Accepted 100
70 4 5 6 0002.6 6220 3376 Accepted 100
71 4 5 6 0002.7 6220 3712 Accepted 100
72 5 6 0004.9 6564 3656 Accepted 100
73 5 6 0004.7 6508 3796 Accepted 100
74 5 6 0004.4 6372 3820 Accepted 100
75 5 6 0004.4 6516 3704 Accepted 100
76 5 6 0004.3 6372 3612 Accepted 100
77 5 6 0004.8 6564 3640 Accepted 100
78 5 6 0004.1 6372 3872 Accepted 100
79 5 6 0004.5 6508 3836 Accepted 100
80 5 6 0004.8 6508 3868 Accepted 100
81 5 6 0004.8 6564 3848 Accepted 100
82 5 6 0005.5 6564 3856 Accepted 100
83 5 6 0004.2 6372 3864 Accepted 100
84 5 6 0004.2 6372 3792 Accepted 100
85 5 6 0004.8 6564 3860 Accepted 100
86 5 6 0004.9 6564 3884 Accepted 100
87 5 6 0004.9 6564 3992 Accepted 100
88 5 6 0004.8 6564 3860 Accepted 100
89 5 6 0004.4 6564 3988 Accepted 100
90 5 6 0004.4 6564 3884 Accepted 100
91 5 6 0004.1 6564 3888 Accepted 100
92 5 6 0003.7 6372 3796 Accepted 100
93 5 6 0003.9 6564 3840 Accepted 100
94 5 6 0003.7 6372 3780 Accepted 100
95 5 6 0003.8 6564 3844 Accepted 100
96 5 6 0004.0 6372 3768 Accepted 100
97 5 6 0003.9 6564 3880 Accepted 100
98 5 6 0003.8 6372 3776 Accepted 100
99 5 6 0004.0 6372 3772 Accepted 100
100 5 6 0003.8 6372 3852 Accepted 100
101 6 0180.9 29984 24292 Accepted 100
102 6 0175.8 27444 22816 Accepted 100
103 6 0180.5 29984 23936 Accepted 100
104 6 0182.3 29984 24084 Accepted 100
105 6 0182.9 29984 23816 Accepted 100
106 6 0182.5 29984 24480 Accepted 100
107 6 0179.1 29984 24388 Accepted 100
108 6 0180.7 29984 24296 Accepted 100
109 6 0112.6 18732 15712 Accepted 100
110 6 0110.6 18732 15768 Accepted 100
111 6 0110.9 18732 15648 Accepted 100
112 6 0111.4 18732 15700 Accepted 100
113 6 0114.0 18732 15716 Accepted 100
114 6 0110.1 18732 15648 Accepted 100
115 6 0113.5 18732 15756 Accepted 100
116 6 0113.8 18732 15648 Accepted 100
117 6 0111.7 18732 15712 Accepted 100
118 6 0112.5 18732 15656 Accepted 100
119 6 0114.6 18964 15888 Accepted 100
120 6 0123.1 20052 17084 Accepted 100
121 6 0115.0 19412 16376 Accepted 100
122 6 0140.2 22868 18728 Accepted 100
123 6 0145.8 23892 19440 Accepted 100
124 6 0115.3 18964 16100 Accepted 100
125 6 0131.3 21332 17628 Accepted 100
126 6 0133.5 21332 18216 Accepted 100
127 6 0165.6 26960 21320 Accepted 100
128 6 0156.2 26960 20972 Accepted 100
129 6 0137.9 22868 18376 Accepted 100
130 6 0138.8 22868 18480 Accepted 100
131 6 0162.1 26960 20972 Accepted 100
132 6 0119.3 20052 16776 Accepted 100
133 6 0166.0 26960 21812 Accepted 100
134 6 0129.5 21332 17516 Accepted 100
135 6 0142.9 23892 19652 Accepted 100
136 6 0180.8 29984 23820 Accepted 100
137 6 0139.3 29984 23764 Accepted 100
138 6 0131.9 29984 23684 Accepted 100
139 6 0182.7 29984 24292 Accepted 100
140 6 0115.7 29984 23652 Accepted 100
141 6 0180.4 29984 24420 Accepted 100
142 6 0179.1 29984 24464 Accepted 100
143 6 0141.7 29984 24220 Accepted 100
144 6 0179.0 29984 24460 Accepted 100
145 6 0174.6 27444 22776 Accepted 100
146 6 0179.5 29984 24420 Accepted 100
147 6 0107.7 29984 24036 Accepted 100
148 6 0107.0 29984 23752 Accepted 100
149 6 0128.5 29984 24052 Accepted 100
150 6 0129.8 29984 23520 Accepted 100
151 6 0130.5 29984 23652 Accepted 100
152 6 0182.5 29984 23788 Accepted 100
153 6 0123.8 29984 23936 Accepted 100
154 6 0209.4 29984 24348 Accepted 100
155 6 0106.6 25884 20764 Accepted 100
156 6 0104.6 25884 20956 Accepted 100
157 6 0097.0 23300 18000 Accepted 100
158 6 0100.6 23836 18932 Accepted 100
159 6 0114.2 25884 20384 Accepted 100
160 6 0105.7 25884 21052 Accepted 100
161 6 0097.8 23300 17964 Accepted 100
162 6 0098.0 23300 17852 Accepted 100
163 6 0097.3 23300 18144 Accepted 100
164 6 0101.0 23300 18056 Accepted 100
165 6 0096.0 23300 18412 Accepted 100
166 6 0100.1 23836 19036 Accepted 100
167 6 0098.2 23300 18084 Accepted 100
168 6 0094.6 23300 17388 Accepted 100
169 6 0085.0 18716 15244 Accepted 100
170 6 0085.7 18716 15268 Accepted 100
171 6 0091.0 23300 17268 Accepted 100
172 6 0094.6 23300 17384 Accepted 100
173 6 0076.1 17180 13592 Accepted 100
174 6 0096.0 23300 17312 Accepted 100
175 6 0081.3 18716 14364 Accepted 100
176 6 0096.2 23300 17264 Accepted 100
177 6 0085.5 18716 15008 Accepted 100
178 6 0075.0 16028 13136 Accepted 100
179 6 0072.2 15836 13060 Accepted 100
180 6 0072.2 15604 12688 Accepted 100
181 6 0073.1 16028 12852 Accepted 100
182 6 0071.3 15828 12684 Accepted 100
183 6 0074.0 15836 12920 Accepted 100
184 6 0072.3 15828 12688 Accepted 100
185 6 0072.3 16028 13060 Accepted 100
186 6 0072.0 16028 13076 Accepted 100
187 6 0072.6 15828 12652 Accepted 100
188 6 0072.4 15836 13040 Accepted 100
189 6 0071.8 16028 13128 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
2.76 KB
Back to Top