2015年12月8日
摘要: Pie Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 13564 Accepted: 4650 Special Judge Description My birthday is coming up and traditional 阅读全文
posted @ 2015-12-08 17:23 yoyo_sincerely 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 二分查找 二分查找又称折半查找,优点是比较次数少,查找速度快,平均性能好;其缺点是要求待查表为有序表,且插入删除困难。因此,折半查找方法适用于不经常变动而查找频繁的有序列表。首先,假设表中元素是按升序排列,将表中间位置记录的关键字与查找关键字比较,如果两者相等,则查找成功;否则利用中间位置记录将表分 阅读全文
posted @ 2015-12-08 16:24 yoyo_sincerely 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Sum of Consecutive Prime Numbers Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 21613 Accepted: 11837 Description Some positive integers c 阅读全文
posted @ 2015-12-08 08:50 yoyo_sincerely 阅读(502) 评论(0) 推荐(0) 编辑