Manhattan Wiring
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 1482
Accepted: 869
Description
There is a rectangular area containing n × m cells. Two...
分类:
其他好文 时间:
2014-07-22 23:05:35
阅读次数:
211
本篇文章简单介绍如何在iOS中使用libxml
Mac OS版本:10.8.2
XCode版本:4.5.1
1. 选择xcode工程设定
2. 选择target
3. 选择Summary
4. 拉到Linked Frameworks and Libraries的地方,按下+按键
输入libxml并选择libxml2,按下Add按键
...
分类:
移动开发 时间:
2014-07-22 23:05:14
阅读次数:
519
很多时候,不注意这些细节,直接把bitmap放入List集合中,再者用完忘记清空bitmap,List集合,很容易造成内存泄露
就算你有良好的编程习惯,用完就清空掉,但是数据在list.add()循环的时候就报内存泄露了,还没等你清空,已经oom了
所以,开发中不建议把Bitmap放入list集合中...
分类:
其他好文 时间:
2014-07-22 23:04:34
阅读次数:
287
题目链接:uva 1530 - Floating Point Numbers
题目大意:给出一个16位的二进制数,用来表示一个浮点数,第一位为符号,1~7位表示一个十进制的数s,e=63-s;剩下的8位为小数部分,默认整数部分为1,得到f,然后最后a=f*2^e,要求用科学计数法输出a。
解题思路:模拟就好了,注意0的情况特殊处理,以及科学计数法的整数部分不能为0.
...
分类:
其他好文 时间:
2014-07-22 23:02:13
阅读次数:
250
这道题在前两个的基础上做稍微改进就可以。下面是AC代码: 1 /** 2 * Design an
algorithm to find the maximum profit. You may complete at most two transactions.
3 * @pa...
分类:
其他好文 时间:
2014-07-22 23:01:13
阅读次数:
251
一个轮流取数的游戏,取得的值最大者胜,这里要求结果。
这里使用一下deque数据结构吧。当然这里使用一般数列,用two points的思想解决也是可以的。
deque是可以两头取数都很快的容器。很适合本题这样的情况...
分类:
其他好文 时间:
2014-07-22 23:00:16
阅读次数:
286
HDU 2063
求一个二分图的最大匹配。
完全的裸题。贴代码。
#include
#include
#include
#include
#include
using namespace std;
vector G[1005];
bool check[1005];
int mac[1005];
int n;
void add_edge(int from,int to)
{
G[f...
分类:
其他好文 时间:
2014-05-02 20:57:04
阅读次数:
359
去除win7电脑系统桌面图标的快捷方式的小箭头:
首先在桌面新建一个文本文档,设为去除箭头.txt,第二步,把如下代码粘贴到文档中。
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\image...
21、Amicable numbersLet d(n) be defined as the sum
of proper divisors ofn(numbers less thannwhich divide evenly inton). If d(a)
=band d(b) =a, whereab,...
分类:
其他好文 时间:
2014-05-02 09:28:12
阅读次数:
776
方法一:在线安装
1.打开HELP->MyEclipse Configuration
Center。切换到SoftWare标签页。
2.点击Add Site 打开对话框,在对话框Name输入Svn,URL中输入:http://subclipse.tigris.org/update_1.6.x
3.在左边栏中找到Personal Site中找到SVN展开。将Core ...
分类:
系统相关 时间:
2014-05-01 18:15:35
阅读次数:
373