0_0_32626532_9968\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_32626532_9968\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_32626532_9968\Main.java:3: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_32626532_9968\Main.java:4: 错误: 需要class, interface或enum
const int MAXN = 100;
^
0_0_32626532_9968\Main.java:5: 错误: 需要class, interface或enum
int n, k;
^
0_0_32626532_9968\Main.java:6: 错误: 需要class, interface或enum
ll X[MAXN], Y[MAXN], D[MAXN][MAXN];
^
0_0_32626532_9968\Main.java:7: 错误: 需要class, interface或enum
ll d[MAXN]; int cnt;
^
0_0_32626532_9968\Main.java:7: 错误: 需要class, interface或enum
ll d[MAXN]; int cnt;
^
0_0_32626532_9968\Main.java:9: 错误: 需要class, interface或enum
ll dist(int i, int j)
^
0_0_32626532_9968\Main.java:12: 错误: 需要class, interface或enum
}
^
0_0_32626532_9968\Main.java:17: 错误: 需要class, interface或enum
int l[MAXN], r[MAXN], u[MAXN], d[MAXN], col[MAXN], row[MAXN];
^
0_0_32626532_9968\Main.java:18: 错误: 需要class, interface或enum
int h[MAXN], s[MAXN];
^
0_0_32626532_9968\Main.java:19: 错误: 需要class, interface或enum
int ans, ansk[MAXN];
^
0_0_32626532_9968\Main.java:21: 错误: 需要class, interface或enum
void init(int _n, int _m)
^
0_0_32626532_9968\Main.java:23: 错误: 需要class, interface或enum
n = _n; m = _m;
^
0_0_32626532_9968\Main.java:24: 错误: 需要class, interface或enum
for(int i = 0; i <= m; i++)
^
0_0_32626532_9968\Main.java:24: 错误: 需要class, interface或enum
for(int i = 0; i <= m; i++)
^
0_0_32626532_9968\Main.java:24: 错误: 需要class, interface或enum
for(int i = 0; i <= m; i++)
^
0_0_32626532_9968\Main.java:26: 错误: 需要class, interface或enum
r[i] = i + 1; l[i] = i - 1; u[i] = d[i] = i;
^
0_0_32626532_9968\Main.java:26: 错误: 需要class, interface或enum
r[i] = i + 1; l[i] = i - 1; u[i] = d[i] = i;
^
0_0_32626532_9968\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_32626532_9968\Main.java:28: 错误: 需要class, interface或enum
r[m] = 0; l[0] = m;
^
0_0_32626532_9968\Main.java:29: 错误: 需要class, interface或enum
memset(h, -1, sizeof(h));
^
0_0_32626532_9968\Main.java:30: 错误: 需要class, interface或enum
memset(s, 0, sizeof(s));
^
0_0_32626532_9968\Main.java:31: 错误: 需要class, interface或enum
cnt = m + 1;
^
0_0_32626532_9968\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_32626532_9968\Main.java:37: 错误: 需要class, interface或enum
row[cnt] = R; col[cnt] = C;
^
0_0_32626532_9968\Main.java:37: 错误: 需要class, interface或enum
row[cnt] = R; col[cnt] = C;
^
0_0_32626532_9968\Main.java:38: 错误: 需要class, interface或enum
u[cnt] = C; d[cnt] = d[C]; u[d[C]] = cnt; d[C] = cnt;
^
0_0_32626532_9968\Main.java:38: 错误: 需要class, interface或enum
u[cnt] = C; d[cnt] = d[C]; u[d[C]] = cnt; d[C] = cnt;
^
0_0_32626532_9968\Main.java:38: 错误: 需要class, interface或enum
u[cnt] = C; d[cnt] = d[C]; u[d[C]] = cnt; d[C] = cnt;
^
0_0_32626532_9968\Main.java:38: 错误: 需要class, interface或enum
u[cnt] = C; d[cnt] = d[C]; u[d[C]] = cnt; d[C] = cnt;
^
0_0_32626532_9968\Main.java:39: 错误: 需要class, interface或enum
if(h[R] == -1) h[R] = r[cnt] = l[cnt] = cnt;
^
0_0_32626532_9968\Main.java:40: 错误: 需要class, interface或enum
else
^
0_0_32626532_9968\Main.java:42: 错误: 需要class, interface或enum
r[cnt] = h[R]; l[cnt] = l[h[R]];
^
0_0_32626532_9968\Main.java:43: 错误: 需要class, interface或enum
r[l[h[R]]] = cnt; l[h[R]] = cnt;
^
0_0_32626532_9968\Main.java:43: 错误: 需要class, interface或enum
r[l[h[R]]] = cnt; l[h[R]] = cnt;
^
0_0_32626532_9968\Main.java:44: 错误: 需要class, interface或enum
}
^
0_0_32626532_9968\Main.java:46: 错误: 需要class, interface或enum
}
^
0_0_32626532_9968\Main.java:49: 错误: 需要class, interface或enum
for(int i = d[c]; i != c; i = d[i])
^
0_0_32626532_9968\Main.java:49: 错误: 需要class, interface或enum
for(int i = d[c]; i != c; i = d[i])
^
0_0_32626532_9968\Main.java:51: 错误: 需要class, interface或enum
l[r[i]] = l[i]; r[l[i]] = r[i];
^
0_0_32626532_9968\Main.java:52: 错误: 需要class, interface或enum
}
^
0_0_32626532_9968\Main.java:56: 错误: 需要class, interface或enum
for(int i = u[c]; i != c; i = u[i])
^
0_0_32626532_9968\Main.java:56: 错误: 需要class, interface或enum
for(int i = u[c]; i != c; i = u[i])
^
0_0_32626532_9968\Main.java:58: 错误: 需要class, interface或enum
l[r[i]] = i; r[l[i]] = i;
^
0_0_32626532_9968\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_32626532_9968\Main.java:63: 错误: 需要class, interface或enum
int leave()
^
0_0_32626532_9968\Main.java:66: 错误: 需要class, interface或enum
memset(vis, 0, sizeof(vis));
^
0_0_32626532_9968\Main.java:67: 错误: 需要class, interface或enum
for(int i = r[0]; i != 0; i = r[i])
^
0_0_32626532_9968\Main.java:67: 错误: 需要class, interface或enum
for(int i = r[0]; i != 0; i = r[i])
^
0_0_32626532_9968\Main.java:67: 错误: 需要class, interface或enum
for(int i = r[0]; i != 0; i = r[i])
^
0_0_32626532_9968\Main.java:72: 错误: 需要class, interface或enum
ans++;
^
0_0_32626532_9968\Main.java:73: 错误: 需要class, interface或enum
for(int j = d[i]; j != i; j = d[j])
^
0_0_32626532_9968\Main.java:73: 错误: 需要class, interface或enum
for(int j = d[i]; j != i; j = d[j])
^
0_0_32626532_9968\Main.java:73: 错误: 需要class, interface或enum
for(int j = d[i]; j != i; j = d[j])
^
0_0_32626532_9968\Main.java:75: 错误: 需要class, interface或enum
for(int k = r[j]; k != j; k = r[k])
^
0_0_32626532_9968\Main.java:75: 错误: 需要class, interface或enum
for(int k = r[j]; k != j; k = r[k])
^
0_0_32626532_9968\Main.java:77: 错误: 需要class, interface或enum
}
^
0_0_32626532_9968\Main.java:81: 错误: 需要class, interface或enum
}//最优情况还要多少个集合
^
0_0_32626532_9968\Main.java:87: 错误: 需要class, interface或enum
if(r[0] == 0) return 1;
^
0_0_32626532_9968\Main.java:88: 错误: 需要class, interface或enum
int c = r[0];
^
0_0_32626532_9968\Main.java:89: 错误: 需要class, interface或enum
for(int i = c; i; i = r[i]) if(s[i] < s[c]) c = i;//找到点最少的列
^
0_0_32626532_9968\Main.java:89: 错误: 需要class, interface或enum
for(int i = c; i; i = r[i]) if(s[i] < s[c]) c = i;//找到点最少的列
^
0_0_32626532_9968\Main.java:89: 错误: 需要class, interface或enum
for(int i = c; i; i = r[i]) if(s[i] < s[c]) c = i;//找到点最少的列
^
0_0_32626532_9968\Main.java:90: 错误: 需要class, interface或enum
for(int i = d[c]; i != c; i = d[i])
^
0_0_32626532_9968\Main.java:90: 错误: 需要class, interface或enum
for(int i = d[c]; i != c; i = d[i])
^
0_0_32626532_9968\Main.java:90: 错误: 需要class, interface或enum
for(int i = d[c]; i != c; i = d[i])
^
0_0_32626532_9968\Main.java:93: 错误: 需要class, interface或enum
for(int j = r[i]; j != i; j = r[j]) del(j);
^
0_0_32626532_9968\Main.java:93: 错误: 需要class, interface或enum
for(int j = r[i]; j != i; j = r[j]) del(j);
^
0_0_32626532_9968\Main.java:93: 错误: 需要class, interface或enum
for(int j = r[i]; j != i; j = r[j]) del(j);
^
0_0_32626532_9968\Main.java:94: 错误: 需要class, interface或enum
if(dance(dep + 1, K)) return 1;
^
0_0_32626532_9968\Main.java:95: 错误: 需要class, interface或enum
for(int j = l[i]; j != i; j = l[j]) res(j);
^
0_0_32626532_9968\Main.java:95: 错误: 需要class, interface或enum
for(int j = l[i]; j != i; j = l[j]) res(j);
^
0_0_32626532_9968\Main.java:95: 错误: 需要class, interface或enum
for(int j = l[i]; j != i; j = l[j]) res(j);
^
0_0_32626532_9968\Main.java:96: 错误: 需要class, interface或enum
res(i);
^
0_0_32626532_9968\Main.java:97: 错误: 需要class, interface或enum
}
^
0_0_32626532_9968\Main.java:99: 错误: 需要class, interface或enum
|