文章
20
标签
31
分类
24
home
archives
categories
tags
link
shuoshuo
Spring Garden
My first blog
home
archives
categories
tags
link
shuoshuo
My first blog
发表于
2025-03-03
|
更新于
2025-03-03
|
浏览量:
文章作者:
stupid_spring
文章链接:
https://stupidcat-cyber.github.io/2025/03/03/My-first-blog/
版权声明:
本博客所有文章除特别声明外,均采用
CC BY-NC-SA 4.0
许可协议。转载请注明来源
Spring Garden
!
上一篇
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
下一篇
组合数与杨辉三角
P2822 [NOIP 2016 提高组] 组合数问题题目背景NOIP2016 提高组 D2T1 题目描述组合数 $\binom{n}{m}$ 表示的是从 $n$ 个物品中选出 $m$ 个物品的方案数。举个例子,从 $(1,2,3)$ 三个物品中选择两个物品可以有 $(1,2),(1,3),(2,3)$ 这三种选择方法。根据组合数的定义,我们可以给出计算组合数 $\binom{n}{m}$ 的一般公式: $$\binom{n}{m}=\frac{n!}{m!(n-m)!}$$ 其中 $n!=1\times2\times\cdots\times n$;特别地,定义 $0!=1$。 小葱想知道如果给定 $n,m$ 和 $k$,对于所有的 $0\leq i\leq n,0\leq j\leq \min \left ( i, m \right )$ 有多少对 $(i,j)$ 满足 $k\mid\binom{i}{j}$。 输入格式第一行有两个整数 $t,k$,其中 $t$ 代表该测试点总共有多少组测试数据,$k$ 的意义见问题描述。 接下来 $t$...
stupid_spring
This is my blog
文章
20
标签
31
分类
24
Follow Me
公告
This is my Blog
最新文章
P6824可乐_位运算+差分
2025-07-10
Tarjan离线求LCA
2025-04-19
树的重心
2025-04-19
树的直径
2025-04-12
KMP算法详解
2025-03-27