垃圾箱
bit_line
NOne
展开
-
toj1746_备份_未AC_跪了_
让我匪夷所思.想了ershidu/* * 我了个擦,竟然爆long long,,, */#include #include #include #include using namespace std;const int MAX = 601;const int LEN = 40;struct bigInt { int num[LEN]; //大整数 int bit;原创 2014-07-25 21:44:35 · 609 阅读 · 0 评论 -
欢迎使用CSDN-markdown编辑器
(1) 2π√∫10e−xdx(1)\ \ {2\over {\sqrt\pi}} \int_{0}^{1} {\text{e}^{-x}}\text{d}x原创 2016-04-30 15:28:15 · 419 阅读 · 0 评论 -
【随便写写】为什么可以O(m)地得到C(n,m)
我们知道,可以O(m)O(m)地求得(nm)n \choose m,做法就是//return C(n,m)int choose(int n, int m){ int res = 1; for (int i = 1; i <= m; ++i) { res *= n - i; res /= i; } return res;}那么为什么这原创 2015-08-23 12:48:56 · 516 阅读 · 0 评论 -
poj逗比了...
首先,这是一个TextArea的bug,真的似乎是一个bug只需要在poj1459中提交如下代码,就会发现,,,它其实提交不了…#include <cstdio>#include <cstring>#include <vector>#include <cstdlib>#include <cmath>#include <queue>#include <algorithm>using na原创 2015-05-01 10:59:46 · 663 阅读 · 0 评论 -
win7/ping优化
http://bbs.duowan.com/thread-19271300-1-1.html原创 2015-04-04 23:23:05 · 688 阅读 · 0 评论 -
【嚼之无味】toj1469 toj2867 toj3095
Wooden Sticks是一个贪心。题意:给n组数(li, wi)代表n种神马的两个属性,生一只神马需要1个单位时间,但是如果生出了(l, w),那么可以迅速(不消耗时间)地生一只(l'>l, w' > w)。开始理解错题意了(๑´ㅂ`๑)...显然我们只需要拍一遍序然后扫描一遍即可:对没有标记的做标记,然后依次往后进行一次子扫描过程。简单证明:排序后(假设我们按照l优先排序),原创 2015-02-03 21:07:08 · 775 阅读 · 0 评论 -
【toj1312】The Game
//时隔一年,再次做这个题,有一种不一样的感觉。。。 #include int a[50][50] = {0};int d[4][2] = {1,0, 1,1, 0,1, -1,1};bool dfs(int x, int y, int dir, int col, int s) { int xx = x + d[dir][0], yy = y + d[dir][1]; if (s原创 2014-11-30 17:18:39 · 707 阅读 · 0 评论 -
[代码备份]poj1755
/* * 半成品,但是今天快xie#include #include #include #include #include #include #include using namespace std;const int INF = 0xfffffff;const int MAX = 32;char Map[MAX][MAX];int Move[4][2] = {-1原创 2014-08-04 19:35:42 · 695 阅读 · 0 评论 -
[代码备份]poj1324--未完成
备份备份.写不来状态压缩压缩压缩缩缩原创 2014-08-05 19:33:08 · 656 阅读 · 0 评论 -
博客图库
数据库授权图习题10.1.2 多值依赖示意图 优先图 osmaozedong 图像处理 编译技术 Javascript之Ajax应用 others 当前: img26原创 2016-01-09 16:10:10 · 1248 阅读 · 0 评论