0_0_25189953_32209\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_25189953_32209\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
^
0_0_25189953_32209\Main.java:3: 错误: 需要class, interface或enum
const int MAXN = 100086;
^
0_0_25189953_32209\Main.java:4: 错误: 需要class, interface或enum
int n, c[MAXN], a[MAXN], b[MAXN], d[MAXN], f[MAXN];
^
0_0_25189953_32209\Main.java:5: 错误: 需要class, interface或enum
void init() {
^
0_0_25189953_32209\Main.java:6: 错误: 需要class, interface或enum
for(int i = 0; i <= n; ++i) c[i] = a[i] = b[i] = f[i] = d[i] = 0;
^
0_0_25189953_32209\Main.java:6: 错误: 需要class, interface或enum
for(int i = 0; i <= n; ++i) c[i] = a[i] = b[i] = f[i] = d[i] = 0;
^
0_0_25189953_32209\Main.java:7: 错误: 需要class, interface或enum
}
^
0_0_25189953_32209\Main.java:11: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i) scanf("%d", c + i);
^
0_0_25189953_32209\Main.java:11: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i) scanf("%d", c + i);
^
0_0_25189953_32209\Main.java:11: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i) scanf("%d", c + i);
^
0_0_25189953_32209\Main.java:12: 错误: 需要class, interface或enum
int k = 1;
^
0_0_25189953_32209\Main.java:13: 错误: 需要class, interface或enum
while(k <= n && c[k] == 0) ++k;
^
0_0_25189953_32209\Main.java:14: 错误: 需要class, interface或enum
int t = (k <= n) ? 1:0;
^
0_0_25189953_32209\Main.java:15: 错误: 需要class, interface或enum
f[1] = c[k], a[k] = 1;
^
0_0_25189953_32209\Main.java:16: 错误: 需要class, interface或enum
for(int i = k + 1; i <= n; ++i) if(c[i]) {
^
0_0_25189953_32209\Main.java:16: 错误: 需要class, interface或enum
for(int i = k + 1; i <= n; ++i) if(c[i]) {
^
0_0_25189953_32209\Main.java:16: 错误: 需要class, interface或enum
for(int i = k + 1; i <= n; ++i) if(c[i]) {
^
0_0_25189953_32209\Main.java:18: 错误: 需要class, interface或enum
f[rk] = c[i];
^
0_0_25189953_32209\Main.java:19: 错误: 需要class, interface或enum
a[i] = rk;
^
0_0_25189953_32209\Main.java:20: 错误: 需要class, interface或enum
if(rk == t + 1) ++t;
^
0_0_25189953_32209\Main.java:21: 错误: 需要class, interface或enum
}
^
0_0_25189953_32209\Main.java:23: 错误: 需要class, interface或enum
while(k > 0 && c[k] == 0) --k;
^
0_0_25189953_32209\Main.java:24: 错误: 需要class, interface或enum
t = (k > 0) ? 1:0;
^
0_0_25189953_32209\Main.java:25: 错误: 需要class, interface或enum
f[1] = -c[k], b[k] = 1;
^
0_0_25189953_32209\Main.java:26: 错误: 需要class, interface或enum
for(int i = k - 1; i > 0; --i) if(c[i]) {
^
0_0_25189953_32209\Main.java:26: 错误: 需要class, interface或enum
for(int i = k - 1; i > 0; --i) if(c[i]) {
^
0_0_25189953_32209\Main.java:26: 错误: 需要class, interface或enum
for(int i = k - 1; i > 0; --i) if(c[i]) {
^
0_0_25189953_32209\Main.java:28: 错误: 需要class, interface或enum
f[rk] = -c[i];
^
0_0_25189953_32209\Main.java:29: 错误: 需要class, interface或enum
b[i] = rk;
^
0_0_25189953_32209\Main.java:30: 错误: 需要class, interface或enum
if(rk == t + 1) ++t;
^
0_0_25189953_32209\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_25189953_32209\Main.java:33: 错误: 需要class, interface或enum
for(int i = 0; i <= n; ++i) f[i] = 0;
^
0_0_25189953_32209\Main.java:33: 错误: 需要class, interface或enum
for(int i = 0; i <= n; ++i) f[i] = 0;
^
0_0_25189953_32209\Main.java:34: 错误: 需要class, interface或enum
k = n;
^
0_0_25189953_32209\Main.java:35: 错误: 需要class, interface或enum
while(k > 0) {
^
0_0_25189953_32209\Main.java:37: 错误: 需要class, interface或enum
for(; k > 0; --k) {
^
0_0_25189953_32209\Main.java:37: 错误: 需要class, interface或enum
for(; k > 0; --k) {
^
0_0_25189953_32209\Main.java:37: 错误: 需要class, interface或enum
for(; k > 0; --k) {
^
0_0_25189953_32209\Main.java:38: 错误: 需要class, interface或enum
if(c[k] == 0) {f[0] = n + 1; break;}
^
0_0_25189953_32209\Main.java:38: 错误: 需要class, interface或enum
if(c[k] == 0) {f[0] = n + 1; break;}
^
0_0_25189953_32209\Main.java:40: 错误: 需要class, interface或enum
if(f[u] > c[k] + 1) {
^
0_0_25189953_32209\Main.java:42: 错误: 需要class, interface或enum
--d[f[u]];
^
0_0_25189953_32209\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_25189953_32209\Main.java:45: 错误: 需要class, interface或enum
for(int i = y; i > k ; --i) f[b[i]] = max(c[i], f[b[i]]);
^
0_0_25189953_32209\Main.java:45: 错误: 需要class, interface或enum
for(int i = y; i > k ; --i) f[b[i]] = max(c[i], f[b[i]]);
^
0_0_25189953_32209\Main.java:46: 错误: 需要class, interface或enum
if(f[t] - 1 > c[k] && k) {
^
0_0_25189953_32209\Main.java:48: 错误: 需要class, interface或enum
--d[f[t]];
^
0_0_25189953_32209\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_25189953_32209\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_25189953_32209\Main.java:52: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i) d[i]+=d[i-1];
^
0_0_25189953_32209\Main.java:52: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i) d[i]+=d[i-1];
^
0_0_25189953_32209\Main.java:53: 错误: 需要class, interface或enum
long long ans = 0;
^
0_0_25189953_32209\Main.java:54: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i) ans += (d[i])?(long long)i * (t + 1) : (long long)i * t;
^
0_0_25189953_32209\Main.java:54: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i) ans += (d[i])?(long long)i * (t + 1) : (long long)i * t;
^
0_0_25189953_32209\Main.java:54: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i) ans += (d[i])?(long long)i * (t + 1) : (long long)i * t;
^
0_0_25189953_32209\Main.java:55: 错误: 需要class, interface或enum
printf("%I64d\n", ans);
^
0_0_25189953_32209\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_25189953_32209\Main.java:58: 错误: 需要class, interface或enum
}
^
59 个错误
|