码迷,mamicode.com
首页 >  
搜索关键字:free square    ( 7430个结果
Gauss elimination Template
Gauss elimination:#include #include #include #include using namespace std;const int MAXN = 50;int a[MAXN][MAXN];//增广矩阵int x[MAXN];//解集bool free_x[MAXN...
分类:其他好文   时间:2014-07-29 11:47:16    阅读次数:225
Topcoder 多校T-shirt场
盗用名字:C题题目都没看懂, B:You are given a long longn. Return the largest divisor ofnthat is a perfect square. That is, the correct return value is x if and ...
分类:其他好文   时间:2014-07-29 10:54:36    阅读次数:204
ARC中__bridge, __bridge__transfer, __bridge_retained 关系
总结于 IOS Tuturial 中 ARC两章,详细在dropbox pdf 文档。Toll-Free Bridging当你在Objective-C和Core Foundation对象之间进行转换时,就需要使用Bridge cast。今天的多数应用很少需要使用Core Foundation,大多数...
分类:其他好文   时间:2014-07-28 13:50:50    阅读次数:367
hdu 1398 Square Coins(母函数|完全背包)
http://acm.hdu.edu.cn/showproblem.php?pid=1398 题意:有价值为1^2,2^2....7^2的硬币共17种,每种硬币都有无限个。问用这些硬币能够组成价值为n的钱数共有几种方案数。 母函数: #include #include #include #include #include #include #include #i...
分类:其他好文   时间:2014-07-28 00:03:19    阅读次数:219
HDU1078:FatMouse and Cheese(记忆化)
Problem Description FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 <= p < n and 0 <= q < n. At e...
分类:其他好文   时间:2014-07-28 00:02:49    阅读次数:319
malloc中 heap block 的 blocksize 大小问题
heap block 引发的思考 问题背景: Implicit Free Lists                   Any practical allocator needs some data structure that allows it to distinguish block boundaries and to distinguish between allo...
分类:其他好文   时间:2014-07-27 23:38:29    阅读次数:452
Leetcode | Sqrt(x)
Implement int sqrt(int x).Compute and return the square root of x.线性查找会TLE。用二分查找。注意溢出的处理。全部都改成long long. 1 class Solution { 2 public: 3 int sqrt(i...
分类:其他好文   时间:2014-07-27 10:41:02    阅读次数:181
[LeetCode] Spiral Matrix II
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example, Given n = 3,You should return the followin...
分类:其他好文   时间:2014-07-27 10:21:02    阅读次数:219
Linux监控工具 (Linux Monitor Tools)
最近发现几个好用的工具,顺便总结下。procps-ng: top, free, ps, pgrep, vmstat ...sysstat: iostat, sar ...lsof,iftop,mtr,htopcv:新发现的监控cp,dd等即时速度的nmon:从AIX鼎鼎大名的topas移植过来的ds...
分类:系统相关   时间:2014-07-27 10:04:32    阅读次数:333
杭电 1518 Square (深搜)(回溯)
http://acm.hdu.edu.cn/showproblem.php?pid=1518 Square Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8343    Accepted Submission(s): 270...
分类:其他好文   时间:2014-07-26 17:14:32    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!