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

2015年5月20日

[HDOJ#1021]Fibonacci Again
摘要: #includeusing namespace std;int main(void){ int n; while(cin>>n) { if (n%4==2) cout=2).InputInput consists of a seq... 阅读全文
posted @ 2015-05-20 11:03 矢小北 阅读(85) 评论(0) 推荐(0)
 
 

2015年5月13日

[HDOJ#1020]Encoding
摘要: Problem DescriptionGiven a string containing only 'A' - 'Z', we could encode it using the following method: 1. Each sub-string containing k same char... 阅读全文
posted @ 2015-05-13 12:30 矢小北 阅读(112) 评论(0) 推荐(0)
 
 

2015年5月12日

[HDOJ#1018]Big Number
摘要: Problem DescriptionIn many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of... 阅读全文
posted @ 2015-05-12 21:40 矢小北 阅读(87) 评论(0) 推荐(0)
 
[HDOJ#1013]Digital Roots
摘要: Problem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then... 阅读全文
posted @ 2015-05-12 10:19 矢小北 阅读(113) 评论(0) 推荐(0)
 
 

2015年5月11日

[HDOJ#1012]u Calculate e
摘要: Problem DescriptionA simple mathematical formula for e iswhere n is allowed to go to infinity. This can actually yield very accurate approximations o... 阅读全文
posted @ 2015-05-11 16:26 矢小北 阅读(154) 评论(0) 推荐(0)
 
[HDOJ#1009]FatMouse' Trade
摘要: Problem DescriptionFatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean.... 阅读全文
posted @ 2015-05-11 15:43 矢小北 阅读(112) 评论(0) 推荐(0)
 
[HDOJ#1008]Elevator
摘要: Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at wh... 阅读全文
posted @ 2015-05-11 15:42 矢小北 阅读(127) 评论(0) 推荐(0)
 
[HDOJ#1007]Quoit Design
摘要: Problem DescriptionHave you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encircl... 阅读全文
posted @ 2015-05-11 15:40 矢小北 阅读(132) 评论(0) 推荐(0)
 
[HDOJ#1006]Tick and Tick
摘要: Problem DescriptionThe three hands of the clock are rotating every second and meeting each other many times everyday. Finally, they get bored of this ... 阅读全文
posted @ 2015-05-11 15:38 矢小北 阅读(191) 评论(0) 推荐(0)
 
[HDOJ#1005]Number Sequence
摘要: Problem DescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are... 阅读全文
posted @ 2015-05-11 15:36 矢小北 阅读(105) 评论(0) 推荐(0)
 
 
下一页

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3