0_0_37493785_30647\Main.java:1: 错误: 非法字符: '#'
#include <cmath>
^
0_0_37493785_30647\Main.java:1: 错误: 需要class, interface或enum
#include <cmath>
^
0_0_37493785_30647\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_37493785_30647\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_37493785_30647\Main.java:4: 错误: 非法字符: '#'
#include <string>
^
0_0_37493785_30647\Main.java:5: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_37493785_30647\Main.java:6: 错误: 非法字符: '#'
#include <iostream>
^
0_0_37493785_30647\Main.java:7: 错误: 非法字符: '#'
#include <vector>
^
0_0_37493785_30647\Main.java:8: 错误: 非法字符: '#'
#include <queue>
^
0_0_37493785_30647\Main.java:10: 错误: 需要class, interface或enum
typedef long long int ll;
^
0_0_37493785_30647\Main.java:12: 错误: 需要class, interface或enum
const int N = 10501, M = 1;
^
0_0_37493785_30647\Main.java:13: 错误: 需要class, interface或enum
int n, m;
^
0_0_37493785_30647\Main.java:14: 错误: 需要class, interface或enum
int ne[N];
^
0_0_37493785_30647\Main.java:15: 错误: 需要class, interface或enum
double dp[1010][1010][2];
^
0_0_37493785_30647\Main.java:16: 错误: 需要class, interface或enum
double a[26];
^
0_0_37493785_30647\Main.java:17: 错误: 需要class, interface或enum
char s[1010];
^
0_0_37493785_30647\Main.java:19: 错误: 需要class, interface或enum
void solve(){
^
0_0_37493785_30647\Main.java:20: 错误: 需要class, interface或enum
for (int i = 0; i < 26; i ++) a[i] = 0;
^
0_0_37493785_30647\Main.java:20: 错误: 需要class, interface或enum
for (int i = 0; i < 26; i ++) a[i] = 0;
^
0_0_37493785_30647\Main.java:22: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i ++){
^
0_0_37493785_30647\Main.java:22: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i ++){
^
0_0_37493785_30647\Main.java:22: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i ++){
^
0_0_37493785_30647\Main.java:23: 错误: 需要class, interface或enum
char str[2]; cin >> str;
^
0_0_37493785_30647\Main.java:24: 错误: 需要class, interface或enum
cin >> a[*str - 'a'];
^
0_0_37493785_30647\Main.java:25: 错误: 需要class, interface或enum
}
^
0_0_37493785_30647\Main.java:26: 错误: 需要class, interface或enum
scanf("%s", s + 1); n = strlen(s + 1);
^
0_0_37493785_30647\Main.java:27: 错误: 需要class, interface或enum
for (int i = 2, j = 0; s[i]; i ++){
^
0_0_37493785_30647\Main.java:27: 错误: 需要class, interface或enum
for (int i = 2, j = 0; s[i]; i ++){
^
0_0_37493785_30647\Main.java:27: 错误: 需要class, interface或enum
for (int i = 2, j = 0; s[i]; i ++){
^
0_0_37493785_30647\Main.java:29: 错误: 需要class, interface或enum
if (s[i] == s[j + 1]) j++;
^
0_0_37493785_30647\Main.java:30: 错误: 需要class, interface或enum
ne[i] = j;
^
0_0_37493785_30647\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_37493785_30647\Main.java:33: 错误: 需要class, interface或enum
for (int i = 0; i <= m + 1; i ++) {
^
0_0_37493785_30647\Main.java:33: 错误: 需要class, interface或enum
for (int i = 0; i <= m + 1; i ++) {
^
0_0_37493785_30647\Main.java:34: 错误: 需要class, interface或enum
for (int j = 0; j <= n + 1; j ++){
^
0_0_37493785_30647\Main.java:34: 错误: 需要class, interface或enum
for (int j = 0; j <= n + 1; j ++){
^
0_0_37493785_30647\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_37493785_30647\Main.java:40: 错误: 需要class, interface或enum
for (int i = 0; i < m; i ++){
^
0_0_37493785_30647\Main.java:40: 错误: 需要class, interface或enum
for (int i = 0; i < m; i ++){
^
0_0_37493785_30647\Main.java:40: 错误: 需要class, interface或enum
for (int i = 0; i < m; i ++){
^
0_0_37493785_30647\Main.java:41: 错误: 需要class, interface或enum
for (int j = 0; j < n; j ++){
^
0_0_37493785_30647\Main.java:41: 错误: 需要class, interface或enum
for (int j = 0; j < n; j ++){
^
0_0_37493785_30647\Main.java:42: 错误: 需要class, interface或enum
for (char k = 'a'; k <= 'z'; k ++){
^
0_0_37493785_30647\Main.java:42: 错误: 需要class, interface或enum
for (char k = 'a'; k <= 'z'; k ++){
^
0_0_37493785_30647\Main.java:44: 错误: 需要class, interface或enum
while (u && s[u + 1] != k) u = ne[u];
^
0_0_37493785_30647\Main.java:45: 错误: 需要class, interface或enum
if (s[u + 1] == k) u++;
^
0_0_37493785_30647\Main.java:46: 错误: 需要class, interface或enum
if (u == n){
^
0_0_37493785_30647\Main.java:47: 错误: 需要class, interface或enum
u = ne[u];dp[i + 1][u][1] += dp[i][j][0] * a[k - 'a'];
^
0_0_37493785_30647\Main.java:48: 错误: 需要class, interface或enum
}
^
0_0_37493785_30647\Main.java:51: 错误: 需要class, interface或enum
dp[i + 1][u][1] += dp[i][j][1] * a[k - 'a'];
^
0_0_37493785_30647\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_37493785_30647\Main.java:57: 错误: 需要class, interface或enum
for (int i = 0; i < n; i ++)
^
0_0_37493785_30647\Main.java:57: 错误: 需要class, interface或enum
for (int i = 0; i < n; i ++)
^
0_0_37493785_30647\Main.java:57: 错误: 需要class, interface或enum
for (int i = 0; i < n; i ++)
^
0_0_37493785_30647\Main.java:59: 错误: 需要class, interface或enum
ans = fenzi / fenmu * 100;
^
0_0_37493785_30647\Main.java:60: 错误: 需要class, interface或enum
printf("%.2f%\n", ans);
^
0_0_37493785_30647\Main.java:61: 错误: 需要class, interface或enum
}
^
0_0_37493785_30647\Main.java:66: 错误: 需要class, interface或enum
while (cin >> n >> m, n) solve();
^
0_0_37493785_30647\Main.java:67: 错误: 需要class, interface或enum
return 0;
^
0_0_37493785_30647\Main.java:68: 错误: 需要class, interface或enum
}
^
60 个错误
|