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 |
这程序怎么老是runtime error, 求各位大神帮帮忙, 小弟在这先谢了!#include<stdio.h> int main() { long m, n, i, k = 1, sum = 1, count = 0; int ques; while (scanf("%ld %ld", &n, &m) != EOF) { k = 1; sum = 1; for (i=m+1; i<=n; i++) k *= i; for (i=n-m; i>=2; i--) sum *= i; ques = k /sum; printf("%d\n", ques); } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator