码迷,mamicode.com
首页 >  
搜索关键字:ll    ( 5333个结果
POJ 2506 -TILING
水题,一个小模拟,规律也好找 f3 = f1 * 2 + f2; #include #include #include #include #include const int INF = 1e8; const int N = 100; #define ll long long using namespace std; int a[251][N]; int b[N] = {0}; in...
分类:其他好文   时间:2014-06-18 07:28:29    阅读次数:190
UML的基础元件之架构元件(四)
Structural Things An artifact is a physical and replaceable part of a system that contains physical information (“bits”). In a system, you’ll encounter different kinds of deployment artifacts...
分类:其他好文   时间:2014-06-17 23:08:40    阅读次数:258
gcc编译器参数使用及解决
gcc -c CStringAndPointer.c -o CStringAndPointer.o执行时出现问题:./CStringAndPointer.obash: ./CStringAndPointer.o:权限不够查看文件属性ll CStringAndPointer.o-rw-r--r-- 1...
分类:其他好文   时间:2014-06-17 19:59:12    阅读次数:197
Linux运维常用知识(4)
linux命令无效-bash:ls:commandnotfound一次重启后开机,基本所有的命令都不可用,只有少数的命令可用[root@centos-1~]#ll-bash:ls:commandnotfound[root@centos-1~]#pwd/root[root@centos-1~]#shutdown-rnow-bash:shutdown:commandnotfound[root@centos-1~]#export$PATH-bash:..
分类:系统相关   时间:2014-06-17 17:45:16    阅读次数:368
设备管理
修复被删除的磁盘链接文件和更新存储信息。无需重启服务器。删除/dev/sda后查看/dev/sd开头的设备:#ll/dev/sd*brw-r-----1rootdisk8,1606-1220:25/dev/sdb查看本机磁盘信息:#fdisk-lDisk/dev/vda:10.4GB,10485760000bytes255heads,63sectors/track,1274cylindersUnits=cylind..
分类:其他好文   时间:2014-06-17 17:35:29    阅读次数:322
二维树状数组的区间加减及查询 tyvj 1716 上帝造题的七分钟
具体解释见小结。 #include #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:1024000000"); #define EPS (1e-8) #define LL long long #define ULL u...
分类:其他好文   时间:2014-06-17 16:26:54    阅读次数:288
poj-3580-SuperMemo-splay
迷人的伸展树、、、 都是伸展树很裸的操作,没什么技术含量。 标记下放的时候注意一下就好。。。 #include #include #include #include #include using namespace std; #define LL long long #define maxn 220000 #define mem(a,b) memset(a,b,sizeof(a)) #def...
分类:其他好文   时间:2014-06-16 21:27:54    阅读次数:229
jquery下简化 console.log 的写法
window.ll = function f() { ll.history = ll.history || []; ll.history.push(arguments); if (this.console) { var a = arguments, c; ...
分类:Web程序   时间:2014-06-15 23:43:13    阅读次数:410
poj 3233 Matrix Power Series(等比矩阵求和)
http://poj.org/problem?id=3233 ps转: 用二分方法求等比数列前n项和:即   原理:   (1)若n==0   (2)若n%2==0     (3)若n%2==1 代码如下: LL sum(LL p,LL n) { if(n==0) return 1; i...
分类:其他好文   时间:2014-06-15 20:01:44    阅读次数:210
矩阵快速幂
复杂度为o(n^3logk) /* 求 a^k % mod,其中a是n*n的矩阵 */ const int mod = 10000; const int maxn = 2; _LL k; int n; struct matrix { _LL mat[maxn][maxn]; } a,res; matrix mul(matrix x, matrix y) { matrix tmp...
分类:其他好文   时间:2014-06-14 07:46:19    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!