![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模板
文章平均质量分 59
guognib
这个作者很懒,什么都没留下…
展开
-
求逆元 求组合数
求一个数的模p(一般为质数)的逆元,原创 2014-07-30 11:56:28 · 2889 阅读 · 0 评论 -
三分模板
using namespace std;typedef long long LL;const int INF = 0x3f3f3f3f;const int maxn = 100010;const int MOD = 1000000007;int n, m;int a[1000100];LL calc(int idx){ LL ans = 0; int x = -1原创 2014-05-03 22:20:39 · 2329 阅读 · 0 评论 -
gets strtok sscanf 实现读入一行并分割字符
gets strtok sscanf#include#include#include using namespace std;char s[1000];int main(){ while (gets(s)) { char *p = strtok(s, " "); while (p) {原创 2014-08-06 22:49:21 · 1674 阅读 · 0 评论