摘要: 并集(http://zh.cppreference.com/w/cpp/algorithm/set_union) 交集(http://zh.cppreference.com/w/cpp/algorithm/set_intersection) 差集(http://zh.cppreference.com 阅读全文
posted @ 2018-01-20 15:35 Neord 阅读(10666) 评论(0) 推荐(1)
摘要: 题意: 输入a、b, 求a/b 可以由多少个埃及分数组成。 埃及分数是形如1/a , a是自然数的分数。 如2/3 = 1/2 + 1/6, 但埃及分数中不允许有相同的 ,如不可以2/3 = 1/3 + 1/3. 求出可以表达a/b个数最少埃及分数方案, 如果个数相同则选取最小的分数最大。 阅读全文
posted @ 2018-01-20 14:23 Neord 阅读(187) 评论(0) 推荐(0)