摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=2059我们需要输入的有(1)l(2)n,c,t;(3)vr,v1,v2;(4)p[1],p[2],p[3], p[n];我们需要比较的是兔子的时间和乌龟的时间兔子:1.0*l/vr;乌龟:乌龟的时间由题意可得,是需... 阅读全文
摘要:
#include#include#includeusing namespace std;int max(int a,int b){ if(a>b) return a; else return b;}int main(){ int n,price[1200],i,f[1200],Max,m,j; ... 阅读全文