0_0_38262241_17535\Main.java:5: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_38262241_17535\Main.java:5: 错误: 需要class, interface或enum
#include<stdio.h>
^
0_0_38262241_17535\Main.java:6: 错误: 非法字符: '#'
#include<string.h>
^
0_0_38262241_17535\Main.java:7: 错误: 非法字符: '#'
#include<stdlib.h>
^
0_0_38262241_17535\Main.java:8: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_38262241_17535\Main.java:9: 错误: 非法字符: '#'
#include<iostream>
^
0_0_38262241_17535\Main.java:10: 错误: 非法字符: '#'
#include<queue>
^
0_0_38262241_17535\Main.java:11: 错误: 非法字符: '#'
#include<map>
^
0_0_38262241_17535\Main.java:12: 错误: 非法字符: '#'
#include<stack>
^
0_0_38262241_17535\Main.java:13: 错误: 非法字符: '#'
#include<set>
^
0_0_38262241_17535\Main.java:14: 错误: 非法字符: '#'
#include<math.h>
^
0_0_38262241_17535\Main.java:16: 错误: 需要class, interface或enum
typedef long long int64;
^
0_0_38262241_17535\Main.java:18: 错误: 需要class, interface或enum
typedef pair<int64,int64> PII;
^
0_0_38262241_17535\Main.java:19: 错误: 非法字符: '#'
#define MP(a,b) make_pair((a),(b))
^
0_0_38262241_17535\Main.java:19: 错误: 需要class, interface或enum
#define MP(a,b) make_pair((a),(b))
^
0_0_38262241_17535\Main.java:21: 错误: 需要class, interface或enum
const int maxm = 10005;
^
0_0_38262241_17535\Main.java:22: 错误: 需要class, interface或enum
const int inf = 99999099;
^
0_0_38262241_17535\Main.java:23: 错误: 需要class, interface或enum
const double pi=acos(-1.0);
^
0_0_38262241_17535\Main.java:24: 错误: 需要class, interface或enum
const double eps = 1e-8;
^
0_0_38262241_17535\Main.java:25: 错误: 需要class, interface或enum
struct Node{
^
0_0_38262241_17535\Main.java:27: 错误: 需要class, interface或enum
bool Choosed;
^
0_0_38262241_17535\Main.java:28: 错误: 需要class, interface或enum
int maxVal;
^
0_0_38262241_17535\Main.java:29: 错误: 需要class, interface或enum
}dp[ maxn ][ maxm ];
^
0_0_38262241_17535\Main.java:30: 错误: 需要class, interface或enum
void init(){
^
0_0_38262241_17535\Main.java:31: 错误: 需要class, interface或enum
for( int i=0;i<maxn;i++ ){
^
0_0_38262241_17535\Main.java:31: 错误: 需要class, interface或enum
for( int i=0;i<maxn;i++ ){
^
0_0_38262241_17535\Main.java:32: 错误: 需要class, interface或enum
for( int j=0;j<maxm;j++ ){
^
0_0_38262241_17535\Main.java:32: 错误: 需要class, interface或enum
for( int j=0;j<maxm;j++ ){
^
0_0_38262241_17535\Main.java:34: 错误: 需要class, interface或enum
dp[i][j].len = 0;
^
0_0_38262241_17535\Main.java:35: 错误: 需要class, interface或enum
dp[i][j].Choosed = false;
^
0_0_38262241_17535\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:40: 错误: 需要class, interface或enum
int main(){
^
0_0_38262241_17535\Main.java:42: 错误: 需要class, interface或enum
scanf("%d",&T);
^
0_0_38262241_17535\Main.java:43: 错误: 需要class, interface或enum
while( T-- ){
^
0_0_38262241_17535\Main.java:45: 错误: 需要class, interface或enum
scanf("%d%d",&n,&sum);
^
0_0_38262241_17535\Main.java:47: 错误: 需要class, interface或enum
init();
^
0_0_38262241_17535\Main.java:48: 错误: 需要class, interface或enum
int SumCost = 0;
^
0_0_38262241_17535\Main.java:49: 错误: 需要class, interface或enum
int MinCost = inf;
^
0_0_38262241_17535\Main.java:50: 错误: 需要class, interface或enum
for( int i=0;i<n;i++ ){
^
0_0_38262241_17535\Main.java:50: 错误: 需要class, interface或enum
for( int i=0;i<n;i++ ){
^
0_0_38262241_17535\Main.java:50: 错误: 需要class, interface或enum
for( int i=0;i<n;i++ ){
^
0_0_38262241_17535\Main.java:52: 错误: 需要class, interface或enum
SumCost += cost[ i ];
^
0_0_38262241_17535\Main.java:53: 错误: 需要class, interface或enum
MinCost = min( MinCost,cost[i] );
^
0_0_38262241_17535\Main.java:54: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:57: 错误: 需要class, interface或enum
continue;
^
0_0_38262241_17535\Main.java:58: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:61: 错误: 需要class, interface或enum
continue;
^
0_0_38262241_17535\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:65: 错误: 需要class, interface或enum
continue;
^
0_0_38262241_17535\Main.java:66: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:69: 错误: 需要class, interface或enum
for( int i=0;i<n;i++ ){
^
0_0_38262241_17535\Main.java:69: 错误: 需要class, interface或enum
for( int i=0;i<n;i++ ){
^
0_0_38262241_17535\Main.java:69: 错误: 需要class, interface或enum
for( int i=0;i<n;i++ ){
^
0_0_38262241_17535\Main.java:70: 错误: 需要class, interface或enum
for( int j=cost[i];j<=sum;j++ ){
^
0_0_38262241_17535\Main.java:70: 错误: 需要class, interface或enum
for( int j=cost[i];j<=sum;j++ ){
^
0_0_38262241_17535\Main.java:72: 错误: 需要class, interface或enum
dp[ i ][ j ].len = 1;
^
0_0_38262241_17535\Main.java:73: 错误: 需要class, interface或enum
dp[ i ][ j ].Choosed = true;
^
0_0_38262241_17535\Main.java:74: 错误: 需要class, interface或enum
ans = 1;
^
0_0_38262241_17535\Main.java:75: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:78: 错误: 需要class, interface或enum
for( int i=1;i<n;i++ ){
^
0_0_38262241_17535\Main.java:78: 错误: 需要class, interface或enum
for( int i=1;i<n;i++ ){
^
0_0_38262241_17535\Main.java:79: 错误: 需要class, interface或enum
for( int j=0;j<=sum;j++ ){
^
0_0_38262241_17535\Main.java:79: 错误: 需要class, interface或enum
for( int j=0;j<=sum;j++ ){
^
0_0_38262241_17535\Main.java:84: 错误: 需要class, interface或enum
dp[i][j].len = 1;
^
0_0_38262241_17535\Main.java:85: 错误: 需要class, interface或enum
dp[i][j].Choosed = true;
^
0_0_38262241_17535\Main.java:86: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:90: 错误: 需要class, interface或enum
dp[i][j].len = 0;
^
0_0_38262241_17535\Main.java:91: 错误: 需要class, interface或enum
dp[i][j].Choosed = false;
^
0_0_38262241_17535\Main.java:92: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:98: 错误: 需要class, interface或enum
dp[i][j].len = 0;
^
0_0_38262241_17535\Main.java:99: 错误: 需要class, interface或enum
dp[i][j].Choosed = false;
^
0_0_38262241_17535\Main.java:100: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:107: 错误: 需要class, interface或enum
dp[i][j].len = dp[i-1][j-cost[i]].len+1;
^
0_0_38262241_17535\Main.java:108: 错误: 需要class, interface或enum
dp[i][j].Choosed = true;
^
0_0_38262241_17535\Main.java:109: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:113: 错误: 需要class, interface或enum
dp[i][j].len = 0;
^
0_0_38262241_17535\Main.java:114: 错误: 需要class, interface或enum
dp[i][j].Choosed = false;
^
0_0_38262241_17535\Main.java:115: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:121: 错误: 需要class, interface或enum
dp[i][j].len = 0;
^
0_0_38262241_17535\Main.java:122: 错误: 需要class, interface或enum
dp[i][j].Choosed = false;
^
0_0_38262241_17535\Main.java:123: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:128: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:131: 错误: 需要class, interface或enum
}
^
0_0_38262241_17535\Main.java:133: 错误: 需要class, interface或enum
}
^
84 个错误
|