HDU 1.2.2 Climbing Worm. Online Teaching->ACM Steps->Chapter One->Section Two
第一版代码#includeintmain(){ intn,u,d,time,speed; while(scanf("%d%d%d",&n,&u,&d)&&n) { n-=u; time=1; if(n0){ n-=speed; time+=2; } printf("%d\n",time); } } return0;}总结:1.果然作题不能做太久,做太久连简单题都会犯