模板匹配
岁月匆匆·
重拾折戟破楼兰
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
自适应辛普森公式求积分模板
话不多说直接上代码:#include <bits/stdc++.h>using namespace std;double v1, v2, x, k;double F(double t)//定义一个自己的公式F(x) { return k/((x-v2*t)*(x-v2*t)+v1*v1*t*t); } double simpson(double a, double b) { doubl原创 2017-04-23 20:05:29 · 1017 阅读 · 0 评论 -
双倍回文
记录一下吧 回文代码如下: #include <cstdio> #include <cstring> #include <string.h> char str[1000002 + 1200];int fast(char *p) { int ans = 1; for (int i = 1; p[i]; ++i) { int s = i, e = i, t;原创 2017-08-24 09:47:42 · 313 阅读 · 0 评论
分享