Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

13732
14024
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 6220 3572 Accepted 100
1 1 4 5 6 0002.7 6220 3512 Accepted 100
2 1 4 5 6 0002.7 6220 3708 Accepted 100
3 2 6 0002.6 6220 3372 Accepted 100
4 2 6 0105.7 12488 9544 Accepted 100
5 2 6 0104.2 12488 9660 Accepted 100
6 2 6 0103.9 12488 9616 Accepted 100
7 2 6 0124.4 12488 9560 Accepted 100
8 2 6 0103.8 12488 9536 Accepted 100
9 2 6 0106.7 12488 9536 Accepted 100
10 2 6 0109.0 12488 9660 Accepted 100
11 2 6 0103.8 12488 9652 Accepted 100
12 2 6 0105.2 12488 9696 Accepted 100
13 2 6 0090.3 10920 8012 Accepted 100
14 2 6 0064.9 10920 8040 Accepted 100
15 2 6 0065.6 10920 8052 Accepted 100
16 2 6 0064.5 10920 7884 Accepted 100
17 2 6 0064.6 10920 7932 Accepted 100
18 2 6 0066.9 10920 7936 Accepted 100
19 2 6 0065.1 10920 7972 Accepted 100
20 2 6 0065.4 10920 8052 Accepted 100
21 2 6 0065.6 10920 8020 Accepted 100
22 3 6 0156.3 18128 13884 Accepted 100
23 3 6 0157.4 18128 13884 Accepted 100
24 3 6 0155.0 18128 14004 Accepted 100
25 3 6 0156.3 18128 14004 Accepted 100
26 3 6 0154.0 18128 13888 Accepted 100
27 3 6 0153.3 18128 14016 Accepted 100
28 3 6 0159.1 18128 13892 Accepted 100
29 3 6 0156.1 18128 13832 Accepted 100
30 3 6 0153.2 18128 14008 Accepted 100
31 3 6 0156.0 18128 13980 Accepted 100
32 3 6 0154.4 18128 13904 Accepted 100
33 3 6 0156.5 18128 13860 Accepted 100
34 3 6 0155.9 18128 13976 Accepted 100
35 3 6 0158.8 18128 14008 Accepted 100
36 3 6 0155.5 18128 14016 Accepted 100
37 4 5 6 0002.7 6220 3512 Accepted 100
38 4 5 6 0002.6 6220 3588 Accepted 100
39 4 5 6 0002.6 6220 3380 Accepted 100
40 4 5 6 0002.5 6220 3584 Accepted 100
41 4 5 6 0002.9 6220 3580 Accepted 100
42 4 5 6 0002.7 6220 3580 Accepted 100
43 4 5 6 0002.6 6220 3584 Accepted 100
44 4 5 6 0002.6 6220 3580 Accepted 100
45 4 5 6 0002.5 6220 3456 Accepted 100
46 4 5 6 0002.6 6220 3580 Accepted 100
47 4 5 6 0002.6 6220 3604 Accepted 100
48 4 5 6 0002.6 6220 3584 Accepted 100
49 4 5 6 0002.6 6220 3520 Accepted 100
50 4 5 6 0002.7 6220 3580 Accepted 100
51 4 5 6 0002.6 6220 3576 Accepted 100
52 4 5 6 0002.6 6220 3604 Accepted 100
53 4 5 6 0002.7 6220 3592 Accepted 100
54 4 5 6 0002.6 6220 3592 Accepted 100
55 4 5 6 0002.7 6220 3516 Accepted 100
56 4 5 6 0002.6 6220 3532 Accepted 100
57 4 5 6 0002.5 6220 3572 Accepted 100
58 4 5 6 0002.5 6220 3600 Accepted 100
59 4 5 6 0002.7 6220 3616 Accepted 100
60 4 5 6 0002.8 6220 3376 Accepted 100
61 4 5 6 0002.7 6220 3572 Accepted 100
62 4 5 6 0002.5 6220 3608 Accepted 100
63 4 5 6 0002.5 6220 3552 Accepted 100
64 4 5 6 0002.6 6220 3372 Accepted 100
65 4 5 6 0002.7 6220 3708 Accepted 100
66 4 5 6 0002.7 6220 3516 Accepted 100
67 4 5 6 0002.6 6220 3576 Accepted 100
68 4 5 6 0002.5 6220 3608 Accepted 100
69 4 5 6 0002.6 6220 3376 Accepted 100
70 4 5 6 0002.6 6220 3580 Accepted 100
71 4 5 6 0002.5 6220 3532 Accepted 100
72 5 6 0004.6 6360 3836 Accepted 100
73 5 6 0004.3 6360 3740 Accepted 100
74 5 6 0004.2 6360 3696 Accepted 100
75 5 6 0004.2 6360 3704 Accepted 100
76 5 6 0004.4 6360 3636 Accepted 100
77 5 6 0004.6 6360 3732 Accepted 100
78 5 6 0006.4 6360 3488 Accepted 100
79 5 6 0004.6 6360 3712 Accepted 100
80 5 6 0004.5 6360 3708 Accepted 100
81 5 6 0004.6 6360 3760 Accepted 100
82 5 6 0004.7 6360 3760 Accepted 100
83 5 6 0004.0 6356 3476 Accepted 100
84 5 6 0004.1 6360 3688 Accepted 100
85 5 6 0004.6 6360 3836 Accepted 100
86 5 6 0004.6 6360 3548 Accepted 100
87 5 6 0004.6 6360 3836 Accepted 100
88 5 6 0004.5 6360 3532 Accepted 100
89 5 6 0004.1 6360 3628 Accepted 100
90 5 6 0004.1 6360 3680 Accepted 100
91 5 6 0003.9 6360 3752 Accepted 100
92 5 6 0003.6 6360 3716 Accepted 100
93 5 6 0003.9 6360 3720 Accepted 100
94 5 6 0003.7 6360 3628 Accepted 100
95 5 6 0003.8 6360 3672 Accepted 100
96 5 6 0003.7 6220 3632 Accepted 100
97 5 6 0003.8 6360 3716 Accepted 100
98 5 6 0003.6 6360 3676 Accepted 100
99 5 6 0003.6 6360 3704 Accepted 100
100 5 6 0003.7 6220 3704 Accepted 100
101 6 0156.9 18128 14020 Accepted 100
102 6 0153.7 16860 13256 Accepted 100
103 6 0159.0 18128 13636 Accepted 100
104 6 0154.7 18128 13624 Accepted 100
105 6 0155.3 18128 13744 Accepted 100
106 6 0154.5 18128 13840 Accepted 100
107 6 0154.1 18128 14024 Accepted 100
108 6 0155.9 18128 14008 Accepted 100
109 6 0103.8 12488 9644 Accepted 100
110 6 0103.6 12488 9640 Accepted 100
111 6 0105.9 12488 9660 Accepted 100
112 6 0113.6 12488 9672 Accepted 100
113 6 0106.8 12488 9688 Accepted 100
114 6 0103.2 12488 9616 Accepted 100
115 6 0103.3 12488 9616 Accepted 100
116 6 0103.7 12488 9660 Accepted 100
117 6 0104.2 12488 9524 Accepted 100
118 6 0103.9 12488 9576 Accepted 100
119 6 0107.9 12712 9648 Accepted 100
120 6 0113.2 13168 9964 Accepted 100
121 6 0106.1 12720 9980 Accepted 100
122 6 0127.0 14576 11196 Accepted 100
123 6 0130.0 15088 11448 Accepted 100
124 6 0106.6 12712 9640 Accepted 100
125 6 0122.8 13808 10536 Accepted 100
126 6 0121.2 13808 10792 Accepted 100
127 6 0145.6 16616 12204 Accepted 100
128 6 0143.8 16616 12040 Accepted 100
129 6 0123.4 14576 10932 Accepted 100
130 6 0125.4 14576 10804 Accepted 100
131 6 0145.0 16616 12140 Accepted 100
132 6 0110.3 13168 10080 Accepted 100
133 6 0147.5 16616 12368 Accepted 100
134 6 0115.8 13808 10524 Accepted 100
135 6 0130.2 15088 11596 Accepted 100
136 6 0157.1 18128 13304 Accepted 100
137 6 0119.8 18128 13356 Accepted 100
138 6 0118.4 18128 13444 Accepted 100
139 6 0154.7 18128 14012 Accepted 100
140 6 0095.1 18128 13408 Accepted 100
141 6 0155.1 18128 14020 Accepted 100
142 6 0154.4 18128 13888 Accepted 100
143 6 0116.8 18128 13632 Accepted 100
144 6 0155.7 18128 14020 Accepted 100
145 6 0153.6 16860 12904 Accepted 100
146 6 0157.6 18128 13996 Accepted 100
147 6 0095.7 18128 13732 Accepted 100
148 6 0091.0 18128 13464 Accepted 100
149 6 0111.1 18128 13756 Accepted 100
150 6 0110.5 18128 13316 Accepted 100
151 6 0110.3 18128 13480 Accepted 100
152 6 0154.3 18128 13360 Accepted 100
153 6 0104.9 18128 13492 Accepted 100
154 6 0155.8 18128 13628 Accepted 100
155 6 0090.5 16076 12148 Accepted 100
156 6 0091.0 16076 12044 Accepted 100
157 6 0083.8 14788 10792 Accepted 100
158 6 0084.4 15052 10984 Accepted 100
159 6 0087.1 16076 11868 Accepted 100
160 6 0089.7 16076 11996 Accepted 100
161 6 0084.9 14788 10796 Accepted 100
162 6 0083.0 14788 10548 Accepted 100
163 6 0084.2 14788 10720 Accepted 100
164 6 0083.5 14788 10720 Accepted 100
165 6 0086.3 14788 10860 Accepted 100
166 6 0088.9 15052 11324 Accepted 100
167 6 0084.1 14788 10836 Accepted 100
168 6 0079.5 14788 10336 Accepted 100
169 6 0076.7 12496 9124 Accepted 100
170 6 0075.3 12496 9208 Accepted 100
171 6 0088.4 14788 10352 Accepted 100
172 6 0081.2 14788 10260 Accepted 100
173 6 0070.1 11728 8608 Accepted 100
174 6 0080.6 14788 10208 Accepted 100
175 6 0073.4 12496 9016 Accepted 100
176 6 0079.8 14788 10308 Accepted 100
177 6 0074.8 12496 9172 Accepted 100
178 6 0066.0 11152 8340 Accepted 100
179 6 0066.2 11144 8028 Accepted 100
180 6 0065.7 10920 8040 Accepted 100
181 6 0066.7 11152 8416 Accepted 100
182 6 0067.3 10920 8004 Accepted 100
183 6 0066.3 11144 7936 Accepted 100
184 6 0065.7 10920 8004 Accepted 100
185 6 0067.6 11152 8260 Accepted 100
186 6 0066.6 11152 8232 Accepted 100
187 6 0065.6 10920 8056 Accepted 100
188 6 0066.0 11144 8040 Accepted 100
189 6 0068.7 11152 8172 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
2.76 KB
Back to Top