0_0_17453680_5663\Main.java:6: 错误: 需要class, interface或enum
public Main {
^
0_0_17453680_5663\Main.java:7: 错误: 需要class, interface或enum
public static int base = 31;
^
0_0_17453680_5663\Main.java:8: 错误: 需要class, interface或enum
public static long hash[] = new long[100000];
^
0_0_17453680_5663\Main.java:9: 错误: 需要class, interface或enum
public static long nBase[] = new long[100000];
^
0_0_17453680_5663\Main.java:10: 错误: 需要class, interface或enum
public static int count = 0;
^
0_0_17453680_5663\Main.java:11: 错误: 需要class, interface或enum
public static Map<Long, Integer> map = new HashMap<Long, Integer>();
^
0_0_17453680_5663\Main.java:13: 错误: 需要class, interface或enum
public static void main(String[] args) {
^
0_0_17453680_5663\Main.java:15: 错误: 需要class, interface或enum
for (int i = 1; i <= 10; i++) {
^
0_0_17453680_5663\Main.java:15: 错误: 需要class, interface或enum
for (int i = 1; i <= 10; i++) {
^
0_0_17453680_5663\Main.java:15: 错误: 需要class, interface或enum
for (int i = 1; i <= 10; i++) {
^
0_0_17453680_5663\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_17453680_5663\Main.java:19: 错误: 需要class, interface或enum
Scanner sc = new Scanner(System.in);
^
0_0_17453680_5663\Main.java:20: 错误: 需要class, interface或enum
while (sc.hasNext()) {
^
0_0_17453680_5663\Main.java:22: 错误: 需要class, interface或enum
int L = sc.nextInt();
^
0_0_17453680_5663\Main.java:23: 错误: 需要class, interface或enum
String str = sc.next();
^
0_0_17453680_5663\Main.java:24: 错误: 需要class, interface或enum
int len = str.length();
^
0_0_17453680_5663\Main.java:25: 错误: 需要class, interface或enum
hash[len] = 0;
^
0_0_17453680_5663\Main.java:26: 错误: 需要class, interface或enum
for (int i = len - 1; i >= 0; i--) {
^
0_0_17453680_5663\Main.java:26: 错误: 需要class, interface或enum
for (int i = len - 1; i >= 0; i--) {
^
0_0_17453680_5663\Main.java:26: 错误: 需要class, interface或enum
for (int i = len - 1; i >= 0; i--) {
^
0_0_17453680_5663\Main.java:28: 错误: 需要class, interface或enum
}
^
0_0_17453680_5663\Main.java:29: 错误: 需要class, interface或enum
for (int i = 0; i < L && i + M * L <= len; i++) {
^
0_0_17453680_5663\Main.java:29: 错误: 需要class, interface或enum
for (int i = 0; i < L && i + M * L <= len; i++) {
^
0_0_17453680_5663\Main.java:31: 错误: 需要class, interface或enum
for (int j = i; j < i + M * L; j += L) {
^
0_0_17453680_5663\Main.java:31: 错误: 需要class, interface或enum
for (int j = i; j < i + M * L; j += L) {
^
0_0_17453680_5663\Main.java:31: 错误: 需要class, interface或enum
for (int j = i; j < i + M * L; j += L) {
^
0_0_17453680_5663\Main.java:33: 错误: 需要class, interface或enum
if (map.get((long) temp) == null) {
^
0_0_17453680_5663\Main.java:35: 错误: 需要class, interface或enum
} else {
^
0_0_17453680_5663\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_17453680_5663\Main.java:42: 错误: 需要class, interface或enum
for (int j = i + M * L; j + L <= len; j += L) {
^
0_0_17453680_5663\Main.java:42: 错误: 需要class, interface或enum
for (int j = i + M * L; j + L <= len; j += L) {
^
0_0_17453680_5663\Main.java:42: 错误: 需要class, interface或enum
for (int j = i + M * L; j + L <= len; j += L) {
^
0_0_17453680_5663\Main.java:44: 错误: 需要class, interface或enum
map.put((long) temp, map.get((long) temp - 1));
^
0_0_17453680_5663\Main.java:45: 错误: 需要class, interface或enum
if (map.get((long) temp) == null) {
^
0_0_17453680_5663\Main.java:47: 错误: 需要class, interface或enum
}
^
0_0_17453680_5663\Main.java:49: 错误: 需要class, interface或enum
if (map.get((long) temp) == null) {
^
0_0_17453680_5663\Main.java:51: 错误: 需要class, interface或enum
} else {
^
0_0_17453680_5663\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_17453680_5663\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_17453680_5663\Main.java:60: 错误: 需要class, interface或enum
}
^
40 个错误
|