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






tccbj

 
 

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

2019年2月13日

PAT A1010 Radix (25 分)——进制转换,二分法
摘要: Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a 阅读全文
posted @ 2019-02-13 20:49 tccbj 阅读(489) 评论(0) 推荐(0)
 
PAT A1009 Product of Polynomials (25 分)——浮点,结构体数组
摘要: This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文
posted @ 2019-02-13 17:59 tccbj 阅读(232) 评论(0) 推荐(0)
 
PAT A1007 Maximum Subsequence Sum (25 分)——最大子列和,动态规划
摘要: Given a sequence of K integers { N​1​​, N​2​​, ..., N​K​​ }. A continuous subsequence is defined to be { N​i​​, N​i+1​​, ..., N​j​​ } where 1. The Max 阅读全文
posted @ 2019-02-13 17:55 tccbj 阅读(303) 评论(0) 推荐(0)
 
PAT A1004 Counting Leaves (30 分)——树,DFS,BFS
摘要: A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification: Each inp 阅读全文
posted @ 2019-02-13 16:21 tccbj 阅读(120) 评论(0) 推荐(0)