| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
为什么这里用cin,cout可以AC,而用scanf,printf会TLE????二分匹配代码略..
.....
....
....
...
int main(){
//while(scanf("%d%d",&u,&v)){
while(cin>>u>>v){
int k,t;
int i=0;
memset(c,false,sizeof(c));
while(i<u){
//scanf("%d",&k);
cin>>k;
while(k-->0){
//scanf("%d",&t);
cin>>t;
c[i][t-1]=true;
}
i++;
}
//printf("%d\n",Match());
cout<<Match()<<endl;
}
return 1;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator