随笔分类 -  思维

摘要:链接:https://ac.nowcoder.com/acm/contest/634/B 来源:牛客网 题目描述 给出$n$条线段,第$i$条线段的长度为$a_i$,每次可以从第$i$条线段的j位置跳到第$i + 1$条线段的$j+1$位置。如果第$i+1$条线段长度不到$j+1$,那么就会回到第$ 阅读全文
posted @ 2019-09-17 15:52 友人-A 阅读(145) 评论(0) 推荐(0)
摘要:B. Maximum of Maximums of Minimums You are given an array a1, a2, ..., an consisting of n integers, and an integer k. You have to split the array into 阅读全文
posted @ 2019-08-18 16:36 友人-A 阅读(367) 评论(0) 推荐(0)
摘要:A. Odds and Ends A. Odds and Ends Where do odds begin, and where do they end? Where does hope emerge, and will they ever break? Given an integer seque 阅读全文
posted @ 2019-08-18 16:24 友人-A 阅读(275) 评论(0) 推荐(0)