摘要:
FactorialsThe factorial of an integer N, written N!, is the product of all the integers from 1 through N inclusive. The factorial quickly becomes very... 阅读全文
摘要:
StringsobitsKim SchrijversConsider an ordered set S of strings of N (1 #include#includeusing namespace std;long long q[400][400];int time1[400];void a... 阅读全文
摘要:
Controlling CompaniesSome companies are partial owners of other companies because they have acquired part of their total shares of stock. For example,... 阅读全文
摘要:
StampsGiven a set of N stamp values (e.g., {1 cent, 3 cents}) and an upper limit K to the number of stamps that can fit on an envelope, calculate the ... 阅读全文
摘要:
ContactIOI'98The cows have developed a new interest in scanning the universe outside their farm with radiotelescopes. Recently, they noticed a very cu... 阅读全文
摘要:
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 se... 阅读全文
摘要:
Cow ToursFarmer John has a number of pastures on his farm. Cow paths connect some pastures with certain other pastures, forming a field. But, at the p... 阅读全文
摘要:
Bessie Come HomeKolstad & BurchIt's dinner time, and the cows are out in their separate pastures. Farmer John rings the bell so they will start walkin... 阅读全文
摘要:
Fractions to DecimalsWrite a program that will accept a fraction of the form N/D, where N is the numerator and D is the denominator and print the deci... 阅读全文