
CodeForces
「已注销」
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
By Elevator or Stairs?(从1楼到每层楼的最少时间)(动态规划)
题目链接:CodeForces - 1249E题目大意:你现在所处位置在1楼,给出你两组数据,第一组为从i到i+1走楼梯所需要的时间,第二组为从i到i+1坐电梯所需要的时间,从走楼梯转向电梯需要等c时间。从1楼向二楼走也需要等c时间。思路:动态规划。状态转移方程:dp[i][0]=min(dp[i-1][0]+b[i-1],dp[i-1][1]+b[i-1]+c);dp...原创 2019-10-31 21:59:32 · 403 阅读 · 0 评论 -
Too Many Segments (hard version)
题目链接:CodeForces - 1249D2 The only difference between easy and hard versions is constraints.You are givennnsegments on the coordinate axisOXOX. Segments can intersect, lie inside each other and ...原创 2019-11-01 14:59:49 · 483 阅读 · 1 评论 -
Too Many Segments (easy version)
题目链接:CodeForces - 1249D1The only difference between easy and hard versions is constraints.You are givennnsegments on the coordinate axisOXOX. Segments can intersect, lie inside each other and e...原创 2019-11-01 12:58:33 · 307 阅读 · 0 评论 -
Good Numbers (hard version) (数据大)
Good NumbersThe only difference between easy and hard versions is the maximum value of n.You are given a positive integer number n. You really love good numbers so you want to find the smallest goo...原创 2019-10-31 21:36:41 · 436 阅读 · 1 评论 -
Good Numbers (easy version)
题目链接:CodeForces - 1249C1Good NumbersThe only difference between easy and hard versions is the maximum value of n.You are given a positive integer number n. You really love good numbers so you wa...原创 2019-10-31 21:30:59 · 770 阅读 · 1 评论 -
Books Exchange (hard version) (记忆化)
题目链接:CodeForces - 1249B2 The only difference between easy and hard versions is constraints.There arennkids, each of them is reading a unique book. At the end of any day, theii-th kid will give ...原创 2019-10-31 21:11:21 · 834 阅读 · 1 评论