水水,弱弱飘过~编译就省了吧。
#include
using namespace std;
int main(void)
{
	int len,n,d;
	while(cin>>len>>n>>d,len||n||d)
	{
		int temp=0;
		temp=len-n;
		int ans=temp/(n-d);
		if(temp%(n-d))
			ans++;
		cout<
posted on 2011-11-06 13:40  cchun  阅读(88)  评论(0编辑  收藏  举报