0_0_14680725_20443\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_14680725_20443\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>
^
0_0_14680725_20443\Main.java:2: 错误: 非法字符: '#'
#include<cmath>
^
0_0_14680725_20443\Main.java:3: 错误: 非法字符: '#'
#include<cstring>
^
0_0_14680725_20443\Main.java:4: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_14680725_20443\Main.java:5: 错误: 非法字符: '#'
#include<iostream>
^
0_0_14680725_20443\Main.java:8: 错误: 需要class, interface或enum
const int Mn = 100010;
^
0_0_14680725_20443\Main.java:9: 错误: 需要class, interface或enum
const int Mod = 1e9 + 7;
^
0_0_14680725_20443\Main.java:10: 错误: 需要class, interface或enum
int a[Mn], b[Mn], n;
^
0_0_14680725_20443\Main.java:11: 错误: 需要class, interface或enum
int s[4][Mn];
^
0_0_14680725_20443\Main.java:12: 错误: 需要class, interface或enum
pair<int, int >c[Mn];
^
0_0_14680725_20443\Main.java:13: 错误: 需要class, interface或enum
inline int query(int k, int num){
^
0_0_14680725_20443\Main.java:15: 错误: 需要class, interface或enum
for(;k;k -= k &-k)
^
0_0_14680725_20443\Main.java:15: 错误: 需要class, interface或enum
for(;k;k -= k &-k)
^
0_0_14680725_20443\Main.java:15: 错误: 需要class, interface或enum
for(;k;k -= k &-k)
^
0_0_14680725_20443\Main.java:17: 错误: 需要class, interface或enum
return res;
^
0_0_14680725_20443\Main.java:18: 错误: 需要class, interface或enum
}
^
0_0_14680725_20443\Main.java:20: 错误: 需要class, interface或enum
for(; k <= n; k += k & -k){
^
0_0_14680725_20443\Main.java:20: 错误: 需要class, interface或enum
for(; k <= n; k += k & -k){
^
0_0_14680725_20443\Main.java:22: 错误: 需要class, interface或enum
}
^
0_0_14680725_20443\Main.java:27: 错误: 需要class, interface或enum
scanf("%d", &T);
^
0_0_14680725_20443\Main.java:28: 错误: 需要class, interface或enum
while(T--){
^
0_0_14680725_20443\Main.java:30: 错误: 需要class, interface或enum
scanf("%d", &n);
^
0_0_14680725_20443\Main.java:31: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i)
^
0_0_14680725_20443\Main.java:31: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i)
^
0_0_14680725_20443\Main.java:31: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i)
^
0_0_14680725_20443\Main.java:33: 错误: 需要class, interface或enum
sort(b+1, b+n+1);
^
0_0_14680725_20443\Main.java:34: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i){
^
0_0_14680725_20443\Main.java:34: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i){
^
0_0_14680725_20443\Main.java:34: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i){
^
0_0_14680725_20443\Main.java:36: 错误: 需要class, interface或enum
c[i] = make_pair(a[i],i);
^
0_0_14680725_20443\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_14680725_20443\Main.java:39: 错误: 需要class, interface或enum
long long ans(0);
^
0_0_14680725_20443\Main.java:40: 错误: 需要class, interface或enum
for(int i= 1; i <= n; ++i){
^
0_0_14680725_20443\Main.java:40: 错误: 需要class, interface或enum
for(int i= 1; i <= n; ++i){
^
0_0_14680725_20443\Main.java:40: 错误: 需要class, interface或enum
for(int i= 1; i <= n; ++i){
^
0_0_14680725_20443\Main.java:42: 错误: 需要class, interface或enum
long long t1 = query(c[i].second, 1);
^
0_0_14680725_20443\Main.java:43: 错误: 需要class, interface或enum
long long t2 = query(n-c[i].second+1,2);
^
0_0_14680725_20443\Main.java:44: 错误: 需要class, interface或enum
long long t3 = query(n-c[i].second+1,3);
^
0_0_14680725_20443\Main.java:45: 错误: 需要class, interface或enum
ans = (ans+(t0-(1+t1) * t1 /2) % Mod *(t2-(1+t3)*t3/2)%Mod) %Mod;
^
0_0_14680725_20443\Main.java:46: 错误: 需要class, interface或enum
update(c[i].second, c[i].second, 0);
^
0_0_14680725_20443\Main.java:47: 错误: 需要class, interface或enum
update(c[i].second, 1, 1);
^
0_0_14680725_20443\Main.java:48: 错误: 需要class, interface或enum
update(n-c[i].second+1, n-c[i].second+1,2);
^
0_0_14680725_20443\Main.java:49: 错误: 需要class, interface或enum
update(n-c[i].second+1,1,3);
^
0_0_14680725_20443\Main.java:50: 错误: 需要class, interface或enum
}
^
0_0_14680725_20443\Main.java:52: 错误: 需要class, interface或enum
}
^
0_0_14680725_20443\Main.java:54: 错误: 需要class, interface或enum
}
^
47 个错误
|