- Victoria的舞会1
- 2018-07-16 16:56:33 @
int n,k,x,sum,ans;
int main(int argc, char** argv) {
scanf("%d%d",&n,&k);
for (int i=1;i<=n;i++)
{ sum=0;
while (scanf("%d",&x)==1&&x!=0)
{ sum+=x;
}
if (sum>=k)
ans++;
}
printf("%d",ans);
return 0;
}
1 条评论
-
Van Dark Holme LV 5 @ 2018-07-20 16:08:46
母鸡呀
- 1