摘要:
冒泡排序#includeint main(){ int a[10],i,j,t; for(i=0;ia[j]) { t=a[i]; a[i]=a[j]; a[j]=t; } } } for(i=0;i<10;i++) printf("%3d",a[i]);} 即第一层... 阅读全文
posted @ 2014-10-04 19:49
sequenceaa
阅读(254)
评论(0)
推荐(0)
摘要:
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;乌龟:乌龟的时间由题意可得,是需... 阅读全文
posted @ 2014-10-04 15:44
sequenceaa
阅读(387)
评论(0)
推荐(0)
摘要:
#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; ... 阅读全文
posted @ 2014-10-04 08:06
sequenceaa
阅读(245)
评论(0)
推荐(0)

浙公网安备 33010602011771号