hdu1049climbing专题

hdu1049Climbing Worm

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1049 题意:题目相当于有n米深的井,一只虫子在井底,每分钟爬上u米,就会下滑d米问多少分钟虫子能爬出井。 代码: include <stdio.h> int main() {       int n,u,d,count,i,s;       while(scanf("%d%d%d",&n