摘要: #include <iostream>#include <string>#include <map>#include <deque>using namespace std;struct husband_st { string buy_name; int buy_amount;} *husband_t;husband_st mem[1001];int main() { int M, N, amount, count=0, remain, temp_remain, first_guy, second_guy; map<string, int&g 阅读全文
posted @ 2011-07-28 20:58 DOF_KL 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <math.h>using namespace std;int main() { double l,w,h,t,g=981,r,rs,rm; cin>>l>>h>>w; if(h <= l/2) { cout<<"butter"<<endl; return 0; } //求出来的t可能是无效数字,所以要防止2*h-l是负数 t = pow((2*h-l)/g, 0.5); r = 60 / w; rs = t / r; rm = 阅读全文
posted @ 2011-07-28 19:45 DOF_KL 阅读(153) 评论(0) 推荐(0) 编辑