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 |
Re:大哥救救 为什么过不了呢 什么是output time exceedIn Reply To:大哥救救 为什么过不了呢 什么是output time exceed Posted by:qqgyp at 2006-04-21 17:54:44 > #include<stdio.h> > void main() > { > int n,k,c,textnum=1; > scanf("%d%d",&n,&k); > while(k>=2&&n>=1) > { > if(n%(k-1)==0) c=n/(k-1)+n-1; > else c=n/(k-1)+n; > printf("%d\n",c); > scanf("%d%d",&n,&k); > textnum++; > } > }// 我的程序// Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator