摘要: No. 1385挤牛奶问题Tips: 查找之前对数据进行一下排列会比较好; 两个“最长”放在一趟遍历里查找。class LT{public: int bt; int ct; int duration; LT(): bt(0), ct(0), duration(0) {} LT& operator=(LT one) { bt=one.bt; ct=one.ct; duration=one.duration; return *this; }};赋值操作符重载时,必须返回对 *this 的引用 阅读全文
posted @ 2014-01-05 11:02 阿祖叔叔 阅读(107) 评论(0) 推荐(0) 编辑