摘要: 简单的模拟。注意:在计算牛奶的平均价格时候,牛奶的体积必须是200的倍数且不比1000大。a[ i ].before 存的是原体积View Code 1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 #include<algorithm> 5 using namespace std; 6 const int maxn = 105; 7 struct node{ 8 int price; 9 int v,before;10 double per;11 int ok;12 阅读全文
posted @ 2013-01-25 15:27 xxx0624 阅读(382) 评论(0) 推荐(0) 编辑