Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

23309
31272
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 6216 3572 Accepted 100
1 1 4 5 6 0002.7 6216 3576 Accepted 100
2 1 4 5 6 0002.7 6216 3572 Accepted 100
3 2 6 0002.6 6216 3640 Accepted 100
4 2 6 0161.2 24800 18668 Accepted 100
5 2 6 0170.6 24800 18828 Accepted 100
6 2 6 0156.2 24800 18756 Accepted 100
7 2 6 0155.1 24800 18788 Accepted 100
8 2 6 0155.0 24800 18828 Accepted 100
9 2 6 0153.7 24800 18716 Accepted 100
10 2 6 0155.7 24800 18812 Accepted 100
11 2 6 0158.7 24800 18772 Accepted 100
12 2 6 0160.1 24800 18716 Accepted 100
13 2 6 0096.0 24800 18820 Accepted 100
14 2 6 0097.9 24800 18816 Accepted 100
15 2 6 0098.6 24800 18816 Accepted 100
16 2 6 0097.4 24800 18720 Accepted 100
17 2 6 0096.1 24800 18812 Accepted 100
18 2 6 0097.8 24800 18684 Accepted 100
19 2 6 0097.2 24800 18832 Accepted 100
20 2 6 0096.0 24800 18792 Accepted 100
21 2 6 0094.5 24800 18716 Accepted 100
22 3 6 0306.0 36232 31196 Accepted 100
23 3 6 0304.1 36232 31072 Accepted 100
24 3 6 0297.9 36232 31228 Accepted 100
25 3 6 0303.8 36232 31168 Accepted 100
26 3 6 0297.6 36232 31224 Accepted 100
27 3 6 0299.9 36232 31212 Accepted 100
28 3 6 0305.7 36232 31260 Accepted 100
29 3 6 0299.3 36232 31272 Accepted 100
30 3 6 0305.2 36232 31128 Accepted 100
31 3 6 0304.9 36232 31244 Accepted 100
32 3 6 0294.1 36232 31124 Accepted 100
33 3 6 0294.6 36232 31260 Accepted 100
34 3 6 0290.5 36232 31220 Accepted 100
35 3 6 0290.8 36232 31204 Accepted 100
36 3 6 0305.3 36232 31240 Accepted 100
37 4 5 6 0002.8 6216 3572 Accepted 100
38 4 5 6 0002.9 6216 3572 Accepted 100
39 4 5 6 0002.7 6216 3584 Accepted 100
40 4 5 6 0002.9 6216 3584 Accepted 100
41 4 5 6 0002.6 6216 3544 Accepted 100
42 4 5 6 0002.7 6216 3560 Accepted 100
43 4 5 6 0002.8 6216 3576 Accepted 100
44 4 5 6 0002.5 6216 3524 Accepted 100
45 4 5 6 0002.6 6216 3528 Accepted 100
46 4 5 6 0002.7 6216 3644 Accepted 100
47 4 5 6 0002.6 6216 3592 Accepted 100
48 4 5 6 0002.7 6216 3536 Accepted 100
49 4 5 6 0002.9 6216 3576 Accepted 100
50 4 5 6 0002.6 6216 3508 Accepted 100
51 4 5 6 0002.6 6216 3580 Accepted 100
52 4 5 6 0002.6 6216 3376 Accepted 100
53 4 5 6 0002.5 6216 3576 Accepted 100
54 4 5 6 0002.8 6216 3576 Accepted 100
55 4 5 6 0002.7 6216 3640 Accepted 100
56 4 5 6 0002.7 6216 3580 Accepted 100
57 4 5 6 0002.5 6216 3548 Accepted 100
58 4 5 6 0002.6 6216 3644 Accepted 100
59 4 5 6 0003.0 6216 3644 Accepted 100
60 4 5 6 0002.6 6216 3372 Accepted 100
61 4 5 6 0002.7 6216 3572 Accepted 100
62 4 5 6 0002.7 6216 3540 Accepted 100
63 4 5 6 0002.8 6216 3584 Accepted 100
64 4 5 6 0002.6 6216 3452 Accepted 100
65 4 5 6 0003.1 6216 3524 Accepted 100
66 4 5 6 0002.5 6216 3576 Accepted 100
67 4 5 6 0002.7 6216 3528 Accepted 100
68 4 5 6 0002.5 6216 3640 Accepted 100
69 4 5 6 0002.7 6216 3556 Accepted 100
70 4 5 6 0002.7 6216 3524 Accepted 100
71 4 5 6 0002.8 6216 3596 Accepted 100
72 5 6 0005.2 6608 3852 Accepted 100
73 5 6 0004.8 6496 3800 Accepted 100
74 5 6 0004.9 6496 3844 Accepted 100
75 5 6 0004.9 6516 3852 Accepted 100
76 5 6 0004.7 6480 3600 Accepted 100
77 5 6 0005.1 6612 3876 Accepted 100
78 5 6 0004.8 6480 3808 Accepted 100
79 5 6 0005.1 6496 3792 Accepted 100
80 5 6 0004.8 6504 3800 Accepted 100
81 5 6 0005.0 6612 3764 Accepted 100
82 5 6 0005.1 6612 3888 Accepted 100
83 5 6 0004.7 6480 3772 Accepted 100
84 5 6 0005.0 6480 3804 Accepted 100
85 5 6 0005.6 6608 3916 Accepted 100
86 5 6 0005.4 6608 3880 Accepted 100
87 5 6 0005.2 6608 3904 Accepted 100
88 5 6 0005.3 6608 3856 Accepted 100
89 5 6 0004.7 6608 3804 Accepted 100
90 5 6 0004.6 6608 3856 Accepted 100
91 5 6 0004.6 6608 3836 Accepted 100
92 5 6 0004.0 6484 3776 Accepted 100
93 5 6 0003.9 6480 3792 Accepted 100
94 5 6 0004.0 6496 3860 Accepted 100
95 5 6 0004.1 6480 3764 Accepted 100
96 5 6 0003.9 6480 3756 Accepted 100
97 5 6 0004.0 6480 3764 Accepted 100
98 5 6 0004.0 6496 3920 Accepted 100
99 5 6 0004.0 6496 3848 Accepted 100
100 5 6 0004.0 6520 3804 Accepted 100
101 6 0299.7 35968 30980 Accepted 100
102 6 0284.7 31876 26996 Accepted 100
103 6 0277.4 33592 28760 Accepted 100
104 6 0302.3 35044 30032 Accepted 100
105 6 0290.4 34120 29100 Accepted 100
106 6 0300.4 35836 31000 Accepted 100
107 6 0380.8 36232 31268 Accepted 100
108 6 0315.4 36232 31272 Accepted 100
109 6 0157.8 24800 18672 Accepted 100
110 6 0158.4 24800 18720 Accepted 100
111 6 0157.4 24800 18852 Accepted 100
112 6 0154.4 24800 18668 Accepted 100
113 6 0156.3 24800 18668 Accepted 100
114 6 0159.8 24800 18760 Accepted 100
115 6 0154.6 24800 18664 Accepted 100
116 6 0156.1 24800 18808 Accepted 100
117 6 0153.3 24800 18692 Accepted 100
118 6 0158.5 24800 18760 Accepted 100
119 6 0164.2 25052 19208 Accepted 100
120 6 0174.6 26848 19876 Accepted 100
121 6 0163.9 25824 19400 Accepted 100
122 6 0190.5 25676 20696 Accepted 100
123 6 0190.1 25876 20800 Accepted 100
124 6 0163.5 25308 18968 Accepted 100
125 6 0177.7 28896 20896 Accepted 100
126 6 0179.1 28896 21376 Accepted 100
127 6 0219.5 29372 22252 Accepted 100
128 6 0214.2 29108 21984 Accepted 100
129 6 0182.3 25412 20552 Accepted 100
130 6 0180.6 25412 20436 Accepted 100
131 6 0217.7 29108 22072 Accepted 100
132 6 0167.3 26844 20012 Accepted 100
133 6 0233.2 28776 22896 Accepted 100
134 6 0179.2 28896 21004 Accepted 100
135 6 0196.3 26204 21332 Accepted 100
136 6 0282.5 33328 28360 Accepted 100
137 6 0250.9 33592 28432 Accepted 100
138 6 0221.8 32800 27764 Accepted 100
139 6 0307.5 36232 31068 Accepted 100
140 6 0255.2 32536 27568 Accepted 100
141 6 0306.9 36232 31240 Accepted 100
142 6 0324.4 36232 31228 Accepted 100
143 6 0242.1 34516 29536 Accepted 100
144 6 0303.0 36232 31200 Accepted 100
145 6 0266.1 31084 26244 Accepted 100
146 6 0301.0 36232 31264 Accepted 100
147 6 0263.2 35044 30188 Accepted 100
148 6 0230.8 33460 28552 Accepted 100
149 6 0259.3 34648 29656 Accepted 100
150 6 0217.5 32800 27740 Accepted 100
151 6 0220.8 32272 27120 Accepted 100
152 6 0295.1 33592 28624 Accepted 100
153 6 0226.6 33592 28528 Accepted 100
154 6 0296.7 35440 30332 Accepted 100
155 6 0171.0 29636 24600 Accepted 100
156 6 0177.6 30696 25656 Accepted 100
157 6 0114.5 25020 19952 Accepted 100
158 6 0126.1 25812 20848 Accepted 100
159 6 0143.4 28056 22944 Accepted 100
160 6 0170.5 30160 25052 Accepted 100
161 6 0116.3 25340 20244 Accepted 100
162 6 0111.5 24872 19888 Accepted 100
163 6 0122.3 25664 20680 Accepted 100
164 6 0116.9 25208 20180 Accepted 100
165 6 0119.5 25604 20668 Accepted 100
166 6 0133.4 27008 22020 Accepted 100
167 6 0117.3 25136 20132 Accepted 100
168 6 0109.9 28896 21388 Accepted 100
169 6 0105.2 23964 18992 Accepted 100
170 6 0103.0 23960 19020 Accepted 100
171 6 0108.1 28900 19936 Accepted 100
172 6 0113.4 26844 19792 Accepted 100
173 6 0104.1 27920 20860 Accepted 100
174 6 0109.6 27920 20820 Accepted 100
175 6 0104.4 23960 19000 Accepted 100
176 6 0108.2 28896 20824 Accepted 100
177 6 0104.1 23960 18980 Accepted 100
178 6 0098.1 25308 19448 Accepted 100
179 6 0100.5 25052 19220 Accepted 100
180 6 0098.6 24800 18852 Accepted 100
181 6 0098.0 25308 19396 Accepted 100
182 6 0096.2 25052 18772 Accepted 100
183 6 0098.3 25052 19180 Accepted 100
184 6 0097.6 24800 19116 Accepted 100
185 6 0097.7 25308 19448 Accepted 100
186 6 0097.1 25308 19256 Accepted 100
187 6 0096.2 25052 18748 Accepted 100
188 6 0100.2 25308 18948 Accepted 100
189 6 0099.3 25312 19324 Accepted 100
Submitter:
Compiler:
c++20
Code Length:
1.45 KB
Back to Top