摘要: Put Marbles in Bags You have k bags. You are given a 0-indexed integer array weights where weights[i] is the weight of the ith marble. You are also gi 阅读全文
posted @ 2023-02-01 18:00 onlyblues 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 牡牛和牝牛 约翰要带 $N$ 只牛去参加集会里的展示活动,这些牛可以是牡牛,也可以是牝牛。 牛们要站成一排,但是牡牛是好斗的,为了避免牡牛闹出乱子,约翰决定任意两只牡牛之间至少要有 $K$ 只牝牛。 请计算一共有多少种排队的方法,所有牡牛可以看成是相同的,所有牝牛也一样,答案对 $5000011$ 阅读全文
posted @ 2023-02-01 12:20 onlyblues 阅读(91) 评论(0) 推荐(0) 编辑
Web Analytics