| ||||||||||
| 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 | |||||||||
大哥救救 为什么过不了呢 什么是output time exceed#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