2013年12月7日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2268小学四年级应用题,让我找回了儿时的快乐。。。#include #include #include using namespace std ;int main(){ int a,b,c ; while(~scanf("%d%d%d",&a,&b,&c)) { if(b<=a) { printf("%.3lf\n",c*1.0/a) ; continue ; } double x=c*1.0... 阅读全文
posted @ 2013-12-07 23:30 LegendaryAC 阅读(160) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2273N辆车排队过马路,不能相撞,问最短时间ans=车的总长度/最小速度#include using namespace std ;int main(){ int n ; while(~scanf("%d",&n)) { int minn=10 ; int a,b ; int cnt=0 ; while(n--) { scanf("%d%d",&a,&b) ; cnt+=a ; ... 阅读全文
posted @ 2013-12-07 00:56 LegendaryAC 阅读(201) 评论(0) 推荐(0) 编辑