![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
Seanlxh123
这个作者很懒,什么都没留下…
展开
-
hihocoder1804地铁站
将题目转化为求组合数,之后用快速幂求组合数即可,代码比较乱 // // Created by // #include <stdio.h> #include <stdlib.h> long long fac[100010]; const int MOD = 1e9 + 7; int N,K; const int MAXN = 1e5 + 10; int X[MAXN];...原创 2018-08-20 17:30:01 · 144 阅读 · 0 评论 -
hdu 1062
字符串处理水题,使用gets输入,注意末尾可能是空格的情况 // // Created by on 2018/9/2. // #include <string> #include "stdlib.h" #include "iostream" #include "stdio.h" #include "cstring" using namespace std; void strre...原创 2018-09-03 12:09:23 · 178 阅读 · 0 评论