首页 > 其他 > 详细

COGS 1051. [Vijos1021] Victoria的舞会1

时间:2017-09-01 22:52:16      阅读:251      评论:0      收藏:0      [点我收藏+]

1051. [Vijos1021] Victoria的舞会1

#include<bits/stdc++.h>
using namespace std;
#define maxn 2333
int n,m,x,num[maxn<<3],ans;
char ch;
inline void read(int &now)
{
    ch=getchar(); now=0;
    while(ch>9||ch<0) ch=getchar();
    while(ch>=0&&ch<=9) now=now*10+ch-0,ch=getchar();
}
int ac()
{
    freopen("victoria1.in","r",stdin);
    freopen("victoria1.out","w",stdout);
    read(n); read(m);
    for(int i=1;i<=n;i++)
    {
        while(scanf("%d",&x)&&x) num[i]++;
        if(num[i]>=m) ans++;
    }
    printf("%d\n",ans);
    return 0;
}
int i_want_ac=ac();
int main(){;}

 

COGS 1051. [Vijos1021] Victoria的舞会1

原文:http://www.cnblogs.com/chen74123/p/7465224.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!