0_0_6623714_22187\Main.java:1: illegal character: \35
#include<iostream>
^
0_0_6623714_22187\Main.java:2: illegal character: \35
#include<memory.h>
^
0_0_6623714_22187\Main.java:3: illegal character: \35
#include<algorithm>
^
0_0_6623714_22187\Main.java:4: illegal character: \35
#include<cstdio>
^
0_0_6623714_22187\Main.java:5: illegal character: \35
#include<cmath>
^
0_0_6623714_22187\Main.java:6: illegal character: \35
#include<map>
^
0_0_6623714_22187\Main.java:7: illegal character: \35
#include<vector>
^
0_0_6623714_22187\Main.java:9: class, interface, or enum expected
using namespace std;
^
0_0_6623714_22187\Main.java:11: class, interface, or enum expected
const int MaxN = 1005;
^
0_0_6623714_22187\Main.java:12: class, interface, or enum expected
const int MaxP = 1005;
^
0_0_6623714_22187\Main.java:13: class, interface, or enum expected
const int MaxQ = 4005;
^
0_0_6623714_22187\Main.java:14: class, interface, or enum expected
const double oo = 1e100;
^
0_0_6623714_22187\Main.java:15: class, interface, or enum expected
const double pi = acos(-1.0);
^
0_0_6623714_22187\Main.java:16: class, interface, or enum expected
const double eps = 1e-8;
^
0_0_6623714_22187\Main.java:18: class, interface, or enum expected
int sgn(double x)
^
0_0_6623714_22187\Main.java:21: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:26: class, interface, or enum expected
double ang;
^
0_0_6623714_22187\Main.java:27: class, interface, or enum expected
int id;
^
0_0_6623714_22187\Main.java:28: class, interface, or enum expected
pt()
^
0_0_6623714_22187\Main.java:38: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:42: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:46: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:50: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:52: class, interface, or enum expected
pair<double, int> q[MaxQ];
^
0_0_6623714_22187\Main.java:53: class, interface, or enum expected
int s[MaxN][MaxN], idx1[MaxN][MaxN], idx2[MaxN][MaxN];
^
0_0_6623714_22187\Main.java:54: class, interface, or enum expected
int pn, qn, tn;
^
0_0_6623714_22187\Main.java:56: class, interface, or enum expected
void init()
^
0_0_6623714_22187\Main.java:59: class, interface, or enum expected
for (int i = 0; i < pn; i++)
^
0_0_6623714_22187\Main.java:59: class, interface, or enum expected
for (int i = 0; i < pn; i++)
^
0_0_6623714_22187\Main.java:59: class, interface, or enum expected
for (int i = 0; i < pn; i++)
^
0_0_6623714_22187\Main.java:62: class, interface, or enum expected
for (int j = 0; j < pn; j++)
^
0_0_6623714_22187\Main.java:62: class, interface, or enum expected
for (int j = 0; j < pn; j++)
^
0_0_6623714_22187\Main.java:62: class, interface, or enum expected
for (int j = 0; j < pn; j++)
^
0_0_6623714_22187\Main.java:64: class, interface, or enum expected
for (int j = 0; j < tn; j++)
^
0_0_6623714_22187\Main.java:64: class, interface, or enum expected
for (int j = 0; j < tn; j++)
^
0_0_6623714_22187\Main.java:64: class, interface, or enum expected
for (int j = 0; j < tn; j++)
^
0_0_6623714_22187\Main.java:66: class, interface, or enum expected
sort(q, q + qn);
^
0_0_6623714_22187\Main.java:67: class, interface, or enum expected
for (int j = 0; j < qn; j++)
^
0_0_6623714_22187\Main.java:67: class, interface, or enum expected
for (int j = 0; j < qn; j++)
^
0_0_6623714_22187\Main.java:67: class, interface, or enum expected
for (int j = 0; j < qn; j++)
^
0_0_6623714_22187\Main.java:70: class, interface, or enum expected
q[j + qn].first += 2 * pi;
^
0_0_6623714_22187\Main.java:71: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:73: class, interface, or enum expected
for (int j = 0, k = 0; j < qn; j++)
^
0_0_6623714_22187\Main.java:73: class, interface, or enum expected
for (int j = 0, k = 0; j < qn; j++)
^
0_0_6623714_22187\Main.java:73: class, interface, or enum expected
for (int j = 0, k = 0; j < qn; j++)
^
0_0_6623714_22187\Main.java:77: class, interface, or enum expected
s[p[i].id][q[j].second] = tn - (q[j].second >= pn) - cnt;
^
0_0_6623714_22187\Main.java:78: class, interface, or enum expected
idx1[p[i].id][q[j].second] = cot;
^
0_0_6623714_22187\Main.java:79: class, interface, or enum expected
idx2[p[i].id][q[j].second] = j;
^
0_0_6623714_22187\Main.java:80: class, interface, or enum expected
if (q[j].second >= pn) cnt--, cot++;
^
0_0_6623714_22187\Main.java:81: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:88: class, interface, or enum expected
if (idx2[a][c] >= idx2[a][b]) ret = idx1[a][c] - idx1[a][b];
^
0_0_6623714_22187\Main.java:89: class, interface, or enum expected
else ret = tn - (idx1[a][b] - idx1[a][c]);
^
0_0_6623714_22187\Main.java:90: class, interface, or enum expected
return ret;
^
0_0_6623714_22187\Main.java:91: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:96: class, interface, or enum expected
if (sgn((p[b] - p[a]) * (p[c] - p[a])) < 0) swap(b, c);
^
0_0_6623714_22187\Main.java:97: class, interface, or enum expected
ret += doit(a, b, c);
^
0_0_6623714_22187\Main.java:98: class, interface, or enum expected
ret += doit(b, c, a);
^
0_0_6623714_22187\Main.java:99: class, interface, or enum expected
ret += doit(c, a, b);
^
0_0_6623714_22187\Main.java:100: class, interface, or enum expected
ret += s[a][b];
^
0_0_6623714_22187\Main.java:101: class, interface, or enum expected
ret += s[b][c];
^
0_0_6623714_22187\Main.java:102: class, interface, or enum expected
ret += s[c][a];
^
0_0_6623714_22187\Main.java:103: class, interface, or enum expected
ret -= 2 * tn;
^
0_0_6623714_22187\Main.java:104: class, interface, or enum expected
return ret;
^
0_0_6623714_22187\Main.java:105: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:111: class, interface, or enum expected
for (int i = 0; i < pn; i++)
^
0_0_6623714_22187\Main.java:111: class, interface, or enum expected
for (int i = 0; i < pn; i++)
^
0_0_6623714_22187\Main.java:111: class, interface, or enum expected
for (int i = 0; i < pn; i++)
^
0_0_6623714_22187\Main.java:112: class, interface, or enum expected
for (int j = i + 1; j < pn; j++)
^
0_0_6623714_22187\Main.java:112: class, interface, or enum expected
for (int j = i + 1; j < pn; j++)
^
0_0_6623714_22187\Main.java:113: class, interface, or enum expected
for (int k = j + 1; k < pn; k++)
^
0_0_6623714_22187\Main.java:113: class, interface, or enum expected
for (int k = j + 1; k < pn; k++)
^
0_0_6623714_22187\Main.java:116: class, interface, or enum expected
return ret;
^
0_0_6623714_22187\Main.java:117: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:121: class, interface, or enum expected
while (scanf("%d%d",&pn,&tn)!=EOF)
^
0_0_6623714_22187\Main.java:123: class, interface, or enum expected
for (int i = 0; i < pn; i++)
^
0_0_6623714_22187\Main.java:123: class, interface, or enum expected
for (int i = 0; i < pn; i++)
^
0_0_6623714_22187\Main.java:126: class, interface, or enum expected
p[i].id = i;
^
0_0_6623714_22187\Main.java:127: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:128: class, interface, or enum expected
for (int i = 0; i < tn; i++)
^
0_0_6623714_22187\Main.java:128: class, interface, or enum expected
for (int i = 0; i < tn; i++)
^
0_0_6623714_22187\Main.java:131: class, interface, or enum expected
t[i].id = pn + i;
^
0_0_6623714_22187\Main.java:132: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:134: class, interface, or enum expected
printf("Case %d: ", cas++);
^
0_0_6623714_22187\Main.java:135: class, interface, or enum expected
ans=doit();
^
0_0_6623714_22187\Main.java:136: class, interface, or enum expected
printf("%d\n",ans);
^
0_0_6623714_22187\Main.java:137: class, interface, or enum expected
}
^
0_0_6623714_22187\Main.java:139: class, interface, or enum expected
}
|