0_0_26024900_23220\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_26024900_23220\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
^
0_0_26024900_23220\Main.java:3: 错误: 需要class, interface或enum
const int maxn = 4e7+5;
^
0_0_26024900_23220\Main.java:4: 错误: 非法字符: '#'
#define ll long long
^
0_0_26024900_23220\Main.java:4: 错误: 需要class, interface或enum
#define ll long long
^
0_0_26024900_23220\Main.java:7: 错误: 需要class, interface或enum
int phi[maxn], p[maxn];
^
0_0_26024900_23220\Main.java:8: 错误: 需要class, interface或enum
ll sum[maxn];
^
0_0_26024900_23220\Main.java:10: 错误: 需要class, interface或enum
void init() {
^
0_0_26024900_23220\Main.java:12: 错误: 需要class, interface或enum
memset(f, true, sizeof f);
^
0_0_26024900_23220\Main.java:13: 错误: 需要class, interface或enum
phi[1] = 1;
^
0_0_26024900_23220\Main.java:14: 错误: 需要class, interface或enum
for(int i = 2; i < maxn; i++) {
^
0_0_26024900_23220\Main.java:14: 错误: 需要class, interface或enum
for(int i = 2; i < maxn; i++) {
^
0_0_26024900_23220\Main.java:14: 错误: 需要class, interface或enum
for(int i = 2; i < maxn; i++) {
^
0_0_26024900_23220\Main.java:17: 错误: 需要class, interface或enum
phi[i] = i - 1;
^
0_0_26024900_23220\Main.java:18: 错误: 需要class, interface或enum
}
^
0_0_26024900_23220\Main.java:19: 错误: 需要class, interface或enum
for(int j = 0; j < cnt; j++) {
^
0_0_26024900_23220\Main.java:19: 错误: 需要class, interface或enum
for(int j = 0; j < cnt; j++) {
^
0_0_26024900_23220\Main.java:21: 错误: 需要class, interface或enum
f[i * p[j]] = false;
^
0_0_26024900_23220\Main.java:22: 错误: 需要class, interface或enum
if(i % p[j] == 0) {
^
0_0_26024900_23220\Main.java:24: 错误: 需要class, interface或enum
break;
^
0_0_26024900_23220\Main.java:25: 错误: 需要class, interface或enum
} else phi[i * p[j]] = (p[j] - 1) * phi[i];
^
0_0_26024900_23220\Main.java:26: 错误: 需要class, interface或enum
}
^
0_0_26024900_23220\Main.java:31: 错误: 需要class, interface或enum
int n, t;
^
0_0_26024900_23220\Main.java:32: 错误: 需要class, interface或enum
sum[0] = 0;
^
0_0_26024900_23220\Main.java:33: 错误: 需要class, interface或enum
for(int i = 1; i < maxn / 2; i++) sum[i] = sum[i - 1] + phi[i * 2] / 2;
^
0_0_26024900_23220\Main.java:33: 错误: 需要class, interface或enum
for(int i = 1; i < maxn / 2; i++) sum[i] = sum[i - 1] + phi[i * 2] / 2;
^
0_0_26024900_23220\Main.java:33: 错误: 需要class, interface或enum
for(int i = 1; i < maxn / 2; i++) sum[i] = sum[i - 1] + phi[i * 2] / 2;
^
0_0_26024900_23220\Main.java:34: 错误: 需要class, interface或enum
scanf("%d", &t);
^
0_0_26024900_23220\Main.java:35: 错误: 需要class, interface或enum
while(t--) {
^
0_0_26024900_23220\Main.java:37: 错误: 需要class, interface或enum
printf("%lld\n", sum[n]);
^
0_0_26024900_23220\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_26024900_23220\Main.java:40: 错误: 需要class, interface或enum
}
^
32 个错误
|