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






tccbj

 
 

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

2019年2月18日

PAT A1029 Median (25 分)——队列
摘要: Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 1 阅读全文
posted @ 2019-02-18 21:11 tccbj 阅读(181) 评论(0) 推荐(0)
 
PAT A1028 List Sorting (25 分)——排序,字符串输出用printf
摘要: Excel can sort records according to any column. Now you are supposed to imitate this function. Input Specification: Each input file contains one test 阅读全文
posted @ 2019-02-18 20:01 tccbj 阅读(116) 评论(0) 推荐(0)
 
PAT A1026 Table Tennis (30 分)——队列
摘要: A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if there are some tables open 阅读全文
posted @ 2019-02-18 19:08 tccbj 阅读(209) 评论(0) 推荐(0)
 
PAT A1024 Palindromic Number (25 分)——回文,大整数
摘要: A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number 阅读全文
posted @ 2019-02-18 14:22 tccbj 阅读(204) 评论(0) 推荐(0)