题目链接: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
2151 Worm Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4826 Accepted Submission(s): 3063 Problem Description 自从见识了平安夜苹果的涨价后,Lele就在他家门口水平种了一排苹果树
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1049 Climbing Worm Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 17249 Accepted