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

  • 博客园
  • 联系
  • 订阅
  • 管理
上一页 1 2 3 4 5 6 7 8 下一页

2015年8月21日

组合——Program B

摘要: CodeForces 478BTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uDescription nparticipants of the competition were split intomte... 阅读全文

posted @ 2015-08-21 21:37 tony-cao 阅读(139) 评论(0) 推荐(0)

HDU 1575

摘要: Tr ATime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionA为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。Input数据的第一行是一个T,表示有T组数... 阅读全文

posted @ 2015-08-21 20:57 tony-cao 阅读(172) 评论(0) 推荐(0)

HDU 1465

摘要: 排列 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Description 大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了! 做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难上加 阅读全文

posted @ 2015-08-21 18:49 tony-cao 阅读(152) 评论(0) 推荐(0)

HDU 4548

摘要: 题意: 给你一个区间,问你这个区间中的数既是素数又是美素数的数有多少个?美素数:首先这个数本身必须是素数并且它的各位数字的和也是素数; 如29,本身是素数, 而且2+9 = 11也是素数, 所以它是美素数. 分析: 要筛选素数直接用埃拉托塞尼筛素数法, 然后枚举从n~m(n为1时从2开始)中的美素数 阅读全文

posted @ 2015-08-21 18:32 tony-cao 阅读(244) 评论(0) 推荐(0)

最大公约数——Program G

摘要: 最大公约数DescriptionThere is a hill with n holes around. The holes are signed from 0 to n-1.A rabbit must hide in one of the holes. A wolf searches the ra... 阅读全文

posted @ 2015-08-21 18:22 tony-cao 阅读(188) 评论(0) 推荐(0)

2015年8月16日

LIS-Program E

摘要: 最大上升子序列Description The world financial crisis is quite a subject. Some people are more relaxed while others are quite anxious. John is one of them.... 阅读全文

posted @ 2015-08-16 20:43 tony-cao 阅读(171) 评论(0) 推荐(0)

最大子段和-Program A

摘要: 最大子段和Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription Given a sequence a[1],a[2],a[3]......a[n], your job is to calculat... 阅读全文

posted @ 2015-08-16 20:32 tony-cao 阅读(120) 评论(0) 推荐(0)

HDU 1203-Program D

摘要: Description Speakless很早就想出国,现在他已经考完了所有需要的考试,准备了所有要准备的材料,于是,便需要去申请学校了。要申请国外的任何大学,你都要交纳一定的申请费用,这可是很惊人的。Speakless没有多少钱,总共只攒了n万美元。他将在m个学校中选择若干的(当然要在他的经... 阅读全文

posted @ 2015-08-16 20:15 tony-cao 阅读(130) 评论(0) 推荐(0)

LightOJ 1047-Program C

摘要: DescriptionThe people ofMohammadpurhave decided to paint each of their houses red, green, or blue. They've also decided that no two neighboring houses... 阅读全文

posted @ 2015-08-16 19:55 tony-cao 阅读(116) 评论(0) 推荐(0)

2015年8月9日

Program D--贪心-区间覆盖

摘要: Given several segments of line (int the X axis) with coordinates [Li,Ri]. You are to choose the minimal amount of them, such they would completely cov... 阅读全文

posted @ 2015-08-09 20:42 tony-cao 阅读(113) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 下一页
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3