博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年4月13日

摘要: 1:有一个数列,它由3个数列复合而成,并升序排列。三个数列分别是2的n次,3的n次,5的n次,0 #include #include using namespace std;struct Node { int base; int exp; Node (int base, int exp) { this->base = base; this->exp = exp; }};Node* Min(Node *a, Node *b) { if (a->exp * log(a->base) > b->exp * log(b->base)) { return b; 阅读全文

posted @ 2011-04-13 10:53 ¥忘%风 阅读(3388) 评论(37) 推荐(3) 编辑