• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






buffms

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2016年1月26日

usaco-Section 3.2-Factorials
摘要: 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... 阅读全文
posted @ 2016-01-26 07:54 buffms 阅读(242) 评论(0) 推荐(0)
 

2016年1月24日

usaco-Section 3.2-Stringsobits
摘要: 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... 阅读全文
posted @ 2016-01-24 21:43 buffms 阅读(229) 评论(0) 推荐(0)
 
usaco-Section 2.3-Controlling Companies
摘要: Controlling CompaniesSome companies are partial owners of other companies because they have acquired part of their total shares of stock. For example,... 阅读全文
posted @ 2016-01-24 19:16 buffms 阅读(168) 评论(0) 推荐(0)
 
usaco-Section 3.1-Stamps
摘要: 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 ... 阅读全文
posted @ 2016-01-24 19:14 buffms 阅读(246) 评论(0) 推荐(0)
 
usaco-Section 3.1-Contact
摘要: ContactIOI'98The cows have developed a new interest in scanning the universe outside their farm with radiotelescopes. Recently, they noticed a very cu... 阅读全文
posted @ 2016-01-24 19:12 buffms 阅读(171) 评论(0) 推荐(0)
 
usaco-Section 3.1-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 se... 阅读全文
posted @ 2016-01-24 19:08 buffms 阅读(270) 评论(0) 推荐(0)
 
usaco-Section 2.4-Cow Tours
摘要: 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... 阅读全文
posted @ 2016-01-24 18:57 buffms 阅读(120) 评论(0) 推荐(0)
 
usaco-Section 2.4-Bessie Come Home
摘要: 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... 阅读全文
posted @ 2016-01-24 18:55 buffms 阅读(112) 评论(0) 推荐(0)
 
usaco-Section 2.4-Fractions to Decimals
摘要: 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... 阅读全文
posted @ 2016-01-24 18:51 buffms 阅读(202) 评论(0) 推荐(0)