| ||||||||||
| 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 | |||||||||
一个函数就AC__int64 f(int n,int k)
{
__int64 y=1;
for(int i=n-k+1,j=2;i<=n;i++){
y*=i;
while(y%j==0&&j<=k){
y=y/j;
j++;
}
}
return y;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator