| 比赛 | 普及组2016模拟练习3 | 评测结果 | RRRRRRRRRR |
|---|---|---|---|
| 题目名称 | 中考分数 | 最终得分 | 0 |
| 用户昵称 | . | 运行时间 | 0.002 s |
| 代码语言 | C++ | 内存使用 | 7.94 MiB |
| 提交时间 | 2016-11-15 20:31:31 | ||
#include<iostream>
#include<iomanip>
#include<cstdio>
using namespace std;
int x[2000003]={0};
int main(){
freopen("fireshow.in","r",stdin);
freopen("fireshow.out","w",stdout);
int a,b,d,e,f=0,c[110];
cin>>a>>b;
for(d=1;d<=a;d++){
cin>>c[d];
}
for(d=1;d<=a;d++){
for(e=0;e<=b;){
x[e]=1;
e=e+c[d];
}
}
for(d=1;d<=b;d++){
if(x[d]==1){
f++;
}
}
cout<<f;
return 0;
}