0_0_32648466_29043\Main.java:6: 错误: 非法字符: '#'
#include<iostream>
^
0_0_32648466_29043\Main.java:6: 错误: 需要class, interface或enum
#include<iostream>
^
0_0_32648466_29043\Main.java:7: 错误: 非法字符: '#'
#include<sstream>
^
0_0_32648466_29043\Main.java:8: 错误: 非法字符: '#'
#include<iterator>
^
0_0_32648466_29043\Main.java:9: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_32648466_29043\Main.java:10: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_32648466_29043\Main.java:11: 错误: 非法字符: '#'
#include<cstring>
^
0_0_32648466_29043\Main.java:12: 错误: 非法字符: '#'
#include<string>
^
0_0_32648466_29043\Main.java:13: 错误: 非法字符: '#'
#include<set>
^
0_0_32648466_29043\Main.java:14: 错误: 非法字符: '#'
#include<vector>
^
0_0_32648466_29043\Main.java:15: 错误: 非法字符: '#'
#include<bitset>
^
0_0_32648466_29043\Main.java:16: 错误: 非法字符: '#'
#include<climits>
^
0_0_32648466_29043\Main.java:17: 错误: 非法字符: '#'
#include<queue>
^
0_0_32648466_29043\Main.java:18: 错误: 非法字符: '#'
#include<iomanip>
^
0_0_32648466_29043\Main.java:19: 错误: 非法字符: '#'
#include<cmath>
^
0_0_32648466_29043\Main.java:20: 错误: 非法字符: '#'
#include<stack>
^
0_0_32648466_29043\Main.java:21: 错误: 非法字符: '#'
#include<map>
^
0_0_32648466_29043\Main.java:22: 错误: 非法字符: '#'
#include<ctime>
^
0_0_32648466_29043\Main.java:23: 错误: 非法字符: '#'
#include<new>
^
0_0_32648466_29043\Main.java:25: 错误: 非法字符: '#'
#define LL long long
^
0_0_32648466_29043\Main.java:25: 错误: 需要class, interface或enum
#define LL long long
^
0_0_32648466_29043\Main.java:26: 错误: 非法字符: '#'
#define ULL unsigned long long
^
0_0_32648466_29043\Main.java:27: 错误: 非法字符: '#'
#define MT(a,b) memset(a,b,sizeof(a))
^
0_0_32648466_29043\Main.java:29: 错误: 需要class, interface或enum
const int mod = 1e9 + 7;
^
0_0_32648466_29043\Main.java:30: 错误: 需要class, interface或enum
const int maxn = 1e6 + 5;
^
0_0_32648466_29043\Main.java:31: 错误: 需要class, interface或enum
const double PI = acos(-1.0);
^
0_0_32648466_29043\Main.java:32: 错误: 需要class, interface或enum
const double E = 2.718281828459;
^
0_0_32648466_29043\Main.java:33: 错误: 需要class, interface或enum
const double eps = 1e-7;
^
0_0_32648466_29043\Main.java:35: 错误: 需要class, interface或enum
int f1[maxn], f2[maxn];
^
0_0_32648466_29043\Main.java:36: 错误: 需要class, interface或enum
int find(int f[], int x) { return f[x] == x ? x : f[x] = find(f, f[x]); }
^
0_0_32648466_29043\Main.java:36: 错误: 需要class, interface或enum
int find(int f[], int x) { return f[x] == x ? x : f[x] = find(f, f[x]); }
^
0_0_32648466_29043\Main.java:39: 错误: 需要class, interface或enum
int c1[maxn], c2[maxn];
^
0_0_32648466_29043\Main.java:40: 错误: 需要class, interface或enum
int cnt1[maxn], cnt2[maxn];
^
0_0_32648466_29043\Main.java:41: 错误: 需要class, interface或enum
int main () {
^
0_0_32648466_29043\Main.java:43: 错误: 需要class, interface或enum
while(cin >> n >> m) {
^
0_0_32648466_29043\Main.java:44: 错误: 需要class, interface或enum
for(int i=0; i<n; i++){
^
0_0_32648466_29043\Main.java:44: 错误: 需要class, interface或enum
for(int i=0; i<n; i++){
^
0_0_32648466_29043\Main.java:46: 错误: 需要class, interface或enum
f1[i] = i;
^
0_0_32648466_29043\Main.java:47: 错误: 需要class, interface或enum
c1[i] = 0;
^
0_0_32648466_29043\Main.java:48: 错误: 需要class, interface或enum
cnt1[i] = 0;
^
0_0_32648466_29043\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_32648466_29043\Main.java:51: 错误: 需要class, interface或enum
for(int j=0; j<m; j++){
^
0_0_32648466_29043\Main.java:51: 错误: 需要class, interface或enum
for(int j=0; j<m; j++){
^
0_0_32648466_29043\Main.java:51: 错误: 需要class, interface或enum
for(int j=0; j<m; j++){
^
0_0_32648466_29043\Main.java:53: 错误: 需要class, interface或enum
f2[j] = j;
^
0_0_32648466_29043\Main.java:54: 错误: 需要class, interface或enum
c2[j] = 0;
^
0_0_32648466_29043\Main.java:55: 错误: 需要class, interface或enum
cnt2[j] = 0;
^
0_0_32648466_29043\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_32648466_29043\Main.java:58: 错误: 需要class, interface或enum
for(int i=0; i<n; i++) {
^
0_0_32648466_29043\Main.java:58: 错误: 需要class, interface或enum
for(int i=0; i<n; i++) {
^
0_0_32648466_29043\Main.java:58: 错误: 需要class, interface或enum
for(int i=0; i<n; i++) {
^
0_0_32648466_29043\Main.java:60: 错误: 需要class, interface或enum
int y = find(f1, a[i]);
^
0_0_32648466_29043\Main.java:61: 错误: 需要class, interface或enum
if(x != y) f1[x] = y;
^
0_0_32648466_29043\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_32648466_29043\Main.java:63: 错误: 需要class, interface或enum
for(int i=0; i<m; i++) {
^
0_0_32648466_29043\Main.java:63: 错误: 需要class, interface或enum
for(int i=0; i<m; i++) {
^
0_0_32648466_29043\Main.java:65: 错误: 需要class, interface或enum
int y = find(f2, b[i]);
^
0_0_32648466_29043\Main.java:66: 错误: 需要class, interface或enum
if(x != y) f2[x] = y;
^
0_0_32648466_29043\Main.java:67: 错误: 需要class, interface或enum
}
^
0_0_32648466_29043\Main.java:68: 错误: 需要class, interface或enum
for(int i=0; i<n; i++) {
^
0_0_32648466_29043\Main.java:68: 错误: 需要class, interface或enum
for(int i=0; i<n; i++) {
^
0_0_32648466_29043\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_32648466_29043\Main.java:71: 错误: 需要class, interface或enum
for(int i=0; i<m; i++) {
^
0_0_32648466_29043\Main.java:71: 错误: 需要class, interface或enum
for(int i=0; i<m; i++) {
^
0_0_32648466_29043\Main.java:73: 错误: 需要class, interface或enum
}
^
0_0_32648466_29043\Main.java:74: 错误: 需要class, interface或enum
for(int i=0; i<n; i++) cnt1[c1[i]] ++;
^
0_0_32648466_29043\Main.java:74: 错误: 需要class, interface或enum
for(int i=0; i<n; i++) cnt1[c1[i]] ++;
^
0_0_32648466_29043\Main.java:75: 错误: 需要class, interface或enum
for(int i=0; i<m; i++) cnt2[c2[i]] ++;
^
0_0_32648466_29043\Main.java:75: 错误: 需要class, interface或enum
for(int i=0; i<m; i++) cnt2[c2[i]] ++;
^
0_0_32648466_29043\Main.java:75: 错误: 需要class, interface或enum
for(int i=0; i<m; i++) cnt2[c2[i]] ++;
^
0_0_32648466_29043\Main.java:76: 错误: 需要class, interface或enum
LL ans = 1;
^
0_0_32648466_29043\Main.java:77: 错误: 需要class, interface或enum
LL sum[maxn]; for(int i=0; i<=n; i++) sum[i] = 0;
^
0_0_32648466_29043\Main.java:77: 错误: 需要class, interface或enum
LL sum[maxn]; for(int i=0; i<=n; i++) sum[i] = 0;
^
0_0_32648466_29043\Main.java:77: 错误: 需要class, interface或enum
LL sum[maxn]; for(int i=0; i<=n; i++) sum[i] = 0;
^
0_0_32648466_29043\Main.java:77: 错误: 需要class, interface或enum
LL sum[maxn]; for(int i=0; i<=n; i++) sum[i] = 0;
^
0_0_32648466_29043\Main.java:78: 错误: 需要class, interface或enum
for(int j=1; j<=m; j++) {
^
0_0_32648466_29043\Main.java:78: 错误: 需要class, interface或enum
for(int j=1; j<=m; j++) {
^
0_0_32648466_29043\Main.java:78: 错误: 需要class, interface或enum
for(int j=1; j<=m; j++) {
^
0_0_32648466_29043\Main.java:80: 错误: 需要class, interface或enum
for(int i=j; i<=n; i+=j) {
^
0_0_32648466_29043\Main.java:80: 错误: 需要class, interface或enum
for(int i=j; i<=n; i+=j) {
^
0_0_32648466_29043\Main.java:80: 错误: 需要class, interface或enum
for(int i=j; i<=n; i+=j) {
^
0_0_32648466_29043\Main.java:82: 错误: 需要class, interface或enum
sum[i] %= mod;
^
0_0_32648466_29043\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_32648466_29043\Main.java:85: 错误: 需要class, interface或enum
for(int i=1; i<=n; i++) {
^
0_0_32648466_29043\Main.java:85: 错误: 需要class, interface或enum
for(int i=1; i<=n; i++) {
^
0_0_32648466_29043\Main.java:86: 错误: 需要class, interface或enum
for(int j=0; j<cnt1[i]; j++)
^
0_0_32648466_29043\Main.java:86: 错误: 需要class, interface或enum
for(int j=0; j<cnt1[i]; j++)
^
0_0_32648466_29043\Main.java:88: 错误: 需要class, interf
|