0_0_33274342_1154\Main.java:1: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_33274342_1154\Main.java:1: 错误: 需要class, interface或enum
#include <stdio.h>
^
0_0_33274342_1154\Main.java:3: 错误: 非法字符: '#'
#include <string.h>
^
0_0_33274342_1154\Main.java:5: 错误: 非法字符: '#'
#include <map>
^
0_0_33274342_1154\Main.java:7: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_33274342_1154\Main.java:11: 错误: 非法字符: '#'
#define INF 0x3f3f3f3f
^
0_0_33274342_1154\Main.java:11: 错误: 需要class, interface或enum
#define INF 0x3f3f3f3f
^
0_0_33274342_1154\Main.java:13: 错误: 非法字符: '#'
#define min(a,b) ((a)<(b)?(a):(b))
^
0_0_33274342_1154\Main.java:15: 错误: 非法字符: '#'
#define max(a,b) ((a)>(b)?(a):(b))
^
0_0_33274342_1154\Main.java:19: 错误: 需要class, interface或enum
const int M = (1<<20) + 5;
^
0_0_33274342_1154\Main.java:21: 错误: 需要class, interface或enum
int t, n, num[N], dp[M][8];
^
0_0_33274342_1154\Main.java:23: 错误: 需要class, interface或enum
int dfs(int s, int k) {
^
0_0_33274342_1154\Main.java:27: 错误: 需要class, interface或enum
dp[s][k] = INF;
^
0_0_33274342_1154\Main.java:29: 错误: 需要class, interface或enum
if (s == (1<<n) - 1) return dp[s][k] = 0;
^
0_0_33274342_1154\Main.java:31: 错误: 需要class, interface或enum
int vis[8];
^
0_0_33274342_1154\Main.java:33: 错误: 需要class, interface或enum
memset(vis, 0, sizeof(vis));
^
0_0_33274342_1154\Main.java:35: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++) {
^
0_0_33274342_1154\Main.java:35: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++) {
^
0_0_33274342_1154\Main.java:35: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++) {
^
0_0_33274342_1154\Main.java:39: 错误: 需要class, interface或enum
if (s&(1<<i)) continue;
^
0_0_33274342_1154\Main.java:41: 错误: 需要class, interface或enum
vis[num[i]] = 1;
^
0_0_33274342_1154\Main.java:43: 错误: 需要class, interface或enum
int t = dfs(s^(1<<i), max(0, num[i] - k - 1)) + max(1, num[i] - k);
^
0_0_33274342_1154\Main.java:45: 错误: 需要class, interface或enum
dp[s][k] = min(dp[s][k], t);
^
0_0_33274342_1154\Main.java:47: 错误: 需要class, interface或enum
}
^
0_0_33274342_1154\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_33274342_1154\Main.java:57: 错误: 需要class, interface或enum
while (t--) {
^
0_0_33274342_1154\Main.java:61: 错误: 需要class, interface或enum
memset(dp, -1, sizeof(dp));
^
0_0_33274342_1154\Main.java:63: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++)
^
0_0_33274342_1154\Main.java:63: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++)
^
0_0_33274342_1154\Main.java:63: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++)
^
0_0_33274342_1154\Main.java:67: 错误: 需要class, interface或enum
printf("%d\n", dfs(0, 0));
^
0_0_33274342_1154\Main.java:69: 错误: 需要class, interface或enum
}
^
0_0_33274342_1154\Main.java:73: 错误: 需要class, interface或enum
}
^
33 个错误
|