我是靠谱客的博主 苹果铃铛,这篇文章主要介绍CF 403D Beautiful Pairs of Numbers,现在分享给大家,希望可以做个参考。

The sequence of integer pairs (a1, b1), (a2, b2), ..., (ak, bk) is beautiful, if the following statements are fulfilled: 

  • 1 ≤ a1 ≤ b1 < a2 ≤ b2 < ... < ak ≤ bk ≤ n, where n is a given positive integer; 
  • all numbers b1 - a1b2 - a2..., bk - ak are distinct. 

For the given number n find the number of beautiful sequences of length k. As the answer can be rather large, print the remainder after dividing it by 1000000007 (109 + 7).

转载于:https://www.cnblogs.com/uid001/p/10611603.html

最后

以上就是苹果铃铛最近收集整理的关于CF 403D Beautiful Pairs of Numbers的全部内容,更多相关CF内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(42)

评论列表共有 0 条评论

立即
投稿
返回
顶部