Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

大哥救救 为什么过不了呢 什么是output time exceed

Posted by qqgyp at 2006-04-21 17:54:44 on Problem 2509
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator