2013年2月18日

USACO3.1.3--Humble Numbers

摘要: Humble NumbersFor a given set of K prime numbers S = {p1, p2, ..., pK}, consider the set of all numbers whose prime factors are a subset of S. This set contains, for example, p1, p1p2, p1p1, and p1p2p3(among others). This is the set of `humble numbers' for the input set S. Note: The number 1 is 阅读全文

posted @ 2013-02-18 01:03 仗剑奔走天涯 阅读(167) 评论(0) 推荐(0) 编辑

导航