0_0_5953728_19466\Main.java:1: illegal character: \35
#include <cstdlib>
^
0_0_5953728_19466\Main.java:2: illegal character: \35
#include <cstdio>
^
0_0_5953728_19466\Main.java:3: illegal character: \35
#include <cstring>
^
0_0_5953728_19466\Main.java:4: illegal character: \35
#include <vector>
^
0_0_5953728_19466\Main.java:5: illegal character: \35
#include <cmath.>
^
0_0_5953728_19466\Main.java:9: class, interface, or enum expected
struct CNode {
^
0_0_5953728_19466\Main.java:11: class, interface, or enum expected
double l;
^
0_0_5953728_19466\Main.java:13: class, interface, or enum expected
CNode(int v, double l)
^
0_0_5953728_19466\Main.java:16: class, interface, or enum expected
this->l = l;
^
0_0_5953728_19466\Main.java:17: class, interface, or enum expected
}
^
0_0_5953728_19466\Main.java:20: class, interface, or enum expected
const int MAXN = 2010;
^
0_0_5953728_19466\Main.java:22: class, interface, or enum expected
vector<CNode> a[MAXN];
^
0_0_5953728_19466\Main.java:24: class, interface, or enum expected
int n, m, nn; //nn表示添加扩展点之后的点上界
^
0_0_5953728_19466\Main.java:26: class, interface, or enum expected
int pre[MAXN], flag[MAXN], merge[MAXN];
^
0_0_5953728_19466\Main.java:27: class, interface, or enum expected
double len[MAXN];
^
0_0_5953728_19466\Main.java:29: class, interface, or enum expected
double sum;
^
0_0_5953728_19466\Main.java:31: class, interface, or enum expected
void dfs1(int u)
^
0_0_5953728_19466\Main.java:35: class, interface, or enum expected
flag[u] = 1;
^
0_0_5953728_19466\Main.java:36: class, interface, or enum expected
for (vector<CNode>::iterator i = a[u].begin(); i != a[u].end(); ++i) {
^
0_0_5953728_19466\Main.java:36: class, interface, or enum expected
for (vector<CNode>::iterator i = a[u].begin(); i != a[u].end(); ++i) {
^
0_0_5953728_19466\Main.java:36: class, interface, or enum expected
for (vector<CNode>::iterator i = a[u].begin(); i != a[u].end(); ++i) {
^
0_0_5953728_19466\Main.java:38: class, interface, or enum expected
}
^
0_0_5953728_19466\Main.java:44: class, interface, or enum expected
dfs1(root);
^
0_0_5953728_19466\Main.java:45: class, interface, or enum expected
for (int i = 0; i < n; ++i)
^
0_0_5953728_19466\Main.java:45: class, interface, or enum expected
for (int i = 0; i < n; ++i)
^
0_0_5953728_19466\Main.java:45: class, interface, or enum expected
for (int i = 0; i < n; ++i)
^
0_0_5953728_19466\Main.java:48: class, interface, or enum expected
return true;
^
0_0_5953728_19466\Main.java:49: class, interface, or enum expected
}
^
0_0_5953728_19466\Main.java:58: class, interface, or enum expected
if (flag[u] > 0)
^
0_0_5953728_19466\Main.java:60: class, interface, or enum expected
flag[u] = 1;
^
0_0_5953728_19466\Main.java:61: class, interface, or enum expected
int ret = dfs2(pre[u]);
^
0_0_5953728_19466\Main.java:62: class, interface, or enum expected
flag[u] = -1;
^
0_0_5953728_19466\Main.java:63: class, interface, or enum expected
return ret;
^
0_0_5953728_19466\Main.java:64: class, interface, or enum expected
}
^
0_0_5953728_19466\Main.java:72: class, interface, or enum expected
double ans = 0;
^
0_0_5953728_19466\Main.java:73: class, interface, or enum expected
for (int i = 0; i < 2 * n; ++i) {
^
0_0_5953728_19466\Main.java:73: class, interface, or enum expected
for (int i = 0; i < 2 * n; ++i) {
^
0_0_5953728_19466\Main.java:73: class, interface, or enum expected
for (int i = 0; i < 2 * n; ++i) {
^
0_0_5953728_19466\Main.java:75: class, interface, or enum expected
len[i] = 0;
^
0_0_5953728_19466\Main.java:76: class, interface, or enum expected
merge[i] = i;
^
0_0_5953728_19466\Main.java:77: class, interface, or enum expected
}
^
0_0_5953728_19466\Main.java:79: class, interface, or enum expected
while (true) {
^
0_0_5953728_19466\Main.java:80: class, interface, or enum expected
for (int i = 0; i < nn; ++i) {
^
0_0_5953728_19466\Main.java:80: class, interface, or enum expected
for (int i = 0; i < nn; ++i) {
^
0_0_5953728_19466\Main.java:82: class, interface, or enum expected
}
^
0_0_5953728_19466\Main.java:83: class, interface, or enum expected
for (int i = 0; i < nn; ++i) {
^
0_0_5953728_19466\Main.java:83: class, interface, or enum expected
for (int i = 0; i < nn; ++i) {
^
0_0_5953728_19466\Main.java:86: class, interface, or enum expected
for (vector<CNode>::iterator index = a[i].begin(); index != a[i].end(); ++index) {
^
0_0_5953728_19466\Main.java:86: class, interface, or enum expected
for (vector<CNode>::iterator index = a[i].begin(); index != a[i].end(); ++index) {
^
0_0_5953728_19466\Main.java:86: class, interface, or enum expected
for (vector<CNode>::iterator index = a[i].begin(); index != a[i].end(); ++index) {
^
0_0_5953728_19466\Main.java:89: class, interface, or enum expected
if (pre[index->v] == -1 || len[index->v] > index->l) {
^
0_0_5953728_19466\Main.java:91: class, interface, or enum expected
len[index->v] = index->l;
^
0_0_5953728_19466\Main.java:92: class, interface, or enum expected
}
^
0_0_5953728_19466\Main.java:97: class, interface, or enum expected
for (int i = 0; i < nn; ++i) {
^
0_0_5953728_19466\Main.java:97: class, interface, or enum expected
for (int i = 0; i < nn; ++i) {
^
0_0_5953728_19466\Main.java:97: class, interface, or enum expected
for (int i = 0; i < nn; ++i) {
^
0_0_5953728_19466\Main.java:99: class, interface, or enum expected
}
^
0_0_5953728_19466\Main.java:101: class, interface, or enum expected
for (int u = 0; u < nn; ++u) {
^
0_0_5953728_19466\Main.java:101: class, interface, or enum expected
for (int u = 0; u < nn; ++u) {
^
0_0_5953728_19466\Main.java:101: class, interface, or enum expected
for (int u = 0; u < nn; ++u) {
^
0_0_5953728_19466\Main.java:103: class, interface, or enum expected
if (t < 0)
^
0_0_5953728_19466\Main.java:105: class, interface, or enum expected
noLoop = false;
^
0_0_5953728_19466\Main.java:107: class, interface, or enum expected
int now = t;
^
0_0_5953728_19466\Main.java:108: class, interface, or enum expected
do {
^
0_0_5953728_19466\Main.java:110: class, interface, or enum expected
now = pre[now];
^
0_0_5953728_19466\Main.java:111: class, interface, or enum expected
ans += len[now];
^
0_0_5953728_19466\Main.java:112: class, interface, or enum expected
} while (now != t);
^
0_0_5953728_19466\Main.java:114: class, interface, or enum expected
a[nn].clear();
^
0_0_5953728_19466\Main.java:115: class, interface, or enum expected
for (int i = 0; i < nn; ++i) {
^
0_0_5953728_19466\Main.java:115: class, interface, or enum expected
for (int i = 0; i < nn; ++i) {
^
0_0_5953728_19466\Main.java:115: class, interface, or enum expected
for (int i = 0; i < nn; ++i) {
^
0_0_5953728_19466\Main.java:117: class, interface, or enum expected
for (vector<CNode>::iterator index = a[i].begin(); index != a[i].end(); ++index) {
^
0_0_5953728_19466\Main.java:117: class, interface, or enum expected
for (vector<CNode>::iterator index = a[i].begin(); index != a[i].end(); ++index) {
^
0_0_5953728_19466\Main.java:120: class, interface, or enum expected
}
^
0_0_5953728_19466\Main.java:123: class, interface, or enum expected
for (int j = 0; j<k; ++j) {
^
0_0_5953728_19466\Main.java:123: class, interface, or enum expected
for (int j = 0; j<k; ++j) {
^
0_0_5953728_19466\Main.java:123: class, interface, or enum expected
for (int j = 0; j<k; ++j) {
^
0_0_5953728_19466\Main.java:127: class, interface, or enum expected
a[i][j].v = nn;
^
0_0_5953728_19466\Main.java:128: class, interface, or enum expected
}
^
0_0_5953728
|