#include
using namespace std;
int bottom_up_cut_rod(int p[],int n,int &pos)
{
int *r=new int[n+1];
int *s=new int[n+1];
for(int i=0;i<=n;++i)
s[i]=0;
for(int i=0;i<=n;++i)
r[i]=0;
for(int j=1...
分类:
编程语言 时间:
2014-12-15 20:21:15
阅读次数:
340
原文链接:http://www.dotblogs.com.tw/yc421206/archive/2013/03/08/95920.aspxStep1.建立選單在VS2012選單,Tools→Customize→Commands 找到Create Unit Tests後,先按Move Up,再按Mo...
分类:
其他好文 时间:
2014-12-15 17:16:03
阅读次数:
125
I set up nginx/uwsgi/django, referencing . That's quite a comprehensive and detailed article. So I just listed serveral problems I encountered during ...
分类:
其他好文 时间:
2014-12-15 16:46:43
阅读次数:
215
题意:
Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions....
分类:
其他好文 时间:
2014-12-15 00:14:20
阅读次数:
252
转载请注明出处:http://blog.csdn.net/zhaokaiqiang1992 本篇文章翻译自Android开发者网站,但并不是完全按照原意翻译,添加了我个人的一些理解。想看原文的请戳:http://developer.android.com/training/basics/actionbar/styling.html ActionBar控件,可以为我们的App提供一致的导...
分类:
移动开发 时间:
2014-12-14 15:54:13
阅读次数:
249
#include
#include
#include
int num[5][5]; //定义函数和变量 int score;
int gett(int k);
void up();
void down();
void left();
void right();
void outt(); void n...
分类:
编程语言 时间:
2014-12-14 15:43:53
阅读次数:
530
题意没弄懂,还有就是没有考虑特殊情况0,导致我贡献了7次WA,感谢茂茂的提醒
Coin Test
时间限制:3000 ms | 内存限制:65535 KB
难度:1
描述
As is known to all,if you throw a coin up and let it droped on the desk there are usually th...
分类:
其他好文 时间:
2014-12-14 09:29:00
阅读次数:
237
netbeans的zencoding插件在编辑>zencoding里
默认
https://netbeans.org/project_downloads/usersguide/shortcuts-80.pdf
删除行ctrl+e
复制一行向上ctrl+shift+up
复制一行向下ctrl+shift+down
ctrl+up/down滚屏
ctrl+left/right跳单词
alt+shift+up/down移动一行
shif..
分类:
Web程序 时间:
2014-12-14 07:19:13
阅读次数:
210
题目 Binary Tree Level Order Traversal II通过率30.6%难度EasyGiven a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from ...
分类:
其他好文 时间:
2014-12-13 23:17:56
阅读次数:
150