Case EDGES=0 or NODES=1 (graph is fully compatible) is handled correctly.
So we try to comment selection and use first available NODE. This lead s
Do not returt set complement; do not return solutions shorter than NTH.
11{
12
13
14
15
16
17 long int node=0, maxl,i__1;
18 long int k1,k2,ind,nlink[1000];
19 long int i__,
k,
l, ndmap[1000];
20
21
22
23
24#define teit_ref(a_1,a_2) m_teit[(a_2)*2 + (a_1) - 3]
25#define weit_ref(a_1,a_2) weit[(a_2)*2 + (a_1)]
26
27
28
29
30
31
32
33
34
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74 weit -= 3;
76
77
78 if (nodes <= 0 || nodes > 1000) {
79 goto L999;
80 }
81 if (edges < 0 || edges > 499500) {
82 goto L999;
83 }
84 if (nodes < nth) {
85 goto L999;
86 }
87 if (*nptr > 0) {
89 case 1: goto L10;
90 case 2: goto L20;
91 case 3: goto L999;
92 }
93 }
94 if (nodes == 1 || edges == 0) {
95 goto L900;
96 }
103
104
105
108
109
110
111L888:
112 i__1 = nodes;
113 for (i__ = 1; i__ <= i__1; ++i__) {
114
115 nlink[i__ - 1] = 0;
116 }
118 for (i__ = 1; i__ <= i__1; ++i__) {
123
124 }
125
126
127 maxl = 0;
128 i__1 = nodes;
129 for (i__ = 1; i__ <= i__1; ++i__) {
130 if (maxl < nlink[i__ - 1]) {
131 maxl = nlink[i__ - 1];
133 }
134
135
136 }
137
138
139
142
143
144
145
146
147
148
149
150
151
152
155 for (i__ = 1; i__ <= i__1; ++i__) {
158 if (k == node) {
161
162 } else if (l == node) {
165
166 } else {
167 ++ind;
170
171 }
172
173 }
176
177 if (ind > 499500) {
178 return 1;
179
180 }
181 if (k1 == 0) {
182 goto L300;
183 }
184
187 for (i__ = 1; i__ <= i__1; ++i__) {
188 ++ind;
190
191 }
192 if (ind > 499500) {
193 return 2;
194
195 }
196
197
198
201 return 3;
202
203 }
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226 i__1 = nodes;
227 for (i__ = 1; i__ <= i__1; ++i__) {
228
229 ndmap[i__ - 1] = 0;
230 }
232 for (i__ =
m_lwset - k2 + 1; i__ <= i__1; ++i__) {
233
234 ndmap[
m_wset[i__ - 1] - 1] = 1;
235 }
236 k1 = 0;
241 if (ndmap[k - 1] + ndmap[l - 1] == 0) {
242 ++k1;
245
246
247 }
248
249 }
250
251 if (k1 == 0) {
252 goto L10;
253 }
254
256 for (i__ = 1; i__ <= i__1; ++i__) {
257
259 }
262 goto L888;
263
264
265
266
267
268
270
271L300:
273 goto L10;
274 }
276
278 return 0;
279
280L10:
282 goto L20;
283 }
285
287 return 0;
288
289
290
291L20:
293 goto L999;
294 }
301 for (i__ = 1; i__ <= i__1; ++i__) {
302 ++ind;
305
306
307
308
309
310
311
312 }
315 for (i__ = 1; i__ <= i__1; ++i__) {
316 ++ind;
320
321 }
322 goto L888;
323
324L900:
325 i__1 = nodes;
326 for (i__ = 1; i__ <= i__1; ++i__) {
327
329 }
330 *nptr = nodes;
332 return 0;
333
334L999:
335 *nptr = 0;
336 return 0;
337}
#define teit_ref(a_1, a_2)
#define weit_ref(a_1, a_2)
static void trevni_(long int *from, long int length, long int *to, long int maxv, long int *newlng, long int *work) noexcept
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
l
Printing final latex table to .tex output file.