一、树形菜单的右键标签
期中增加同级机构、增加下属机构、修改、删除分别是调用了addNode(),del()等方法。 新增同级机构 新增下属机...
分类:
Web程序 时间:
2014-04-30 00:49:12
阅读次数:
599
1、自定义Back按钮iOS中很多时候我们都会自定义返回按钮,也是一件easy的事,类似如下:
1 - (void)showNavBackButton 2 { 3 UIButton *backButton = [UIButton
buttonWithType:UIButtonTypeCust...
分类:
移动开发 时间:
2014-04-29 23:38:27
阅读次数:
1253
// 题意: // 输入两个整数N, H,按照字典序输出所有长度为N,恰好包含H个1的01串
// 规模:1#include#include#include#includeusing namespace std;int n,h;int
buf[16];void solve(int c0, int c...
分类:
其他好文 时间:
2014-04-29 23:19:55
阅读次数:
416
题目地址:http://acm.nyist.net/JudgeOnline/problem.php?pid=82AC代码:讲解,先统计在可搜索范围内对应的钥匙数,把搜到的门存到另外的一个队列中,第一个搜索结束后,开始看搜到的钥匙能否打看门,
如果能打看门,存到第一个队列中,在进行搜寻,知道找到宝藏,...
分类:
其他好文 时间:
2014-04-29 22:12:16
阅读次数:
550
题目链接:http://acm.bnu.edu.cn/bnuoj/problem_show.php?pid=2418解题报告:就是给你n个数,然后让你求这个数列的逆序对是多少?题目中n的范围是n
< 500000,所以,暴力是不行的。还是第一次学会用线段树求逆序数,这种方法的时间复杂度是n * lo...
分类:
其他好文 时间:
2014-04-29 21:38:23
阅读次数:
463
Problem G. Birthday CakeBackgroundLucy and Lily
are twins. Today is their birthday. Mother buys a birthday cake for them.Now we
put the cake onto a De...
分类:
其他好文 时间:
2014-04-28 15:37:11
阅读次数:
391
http://acm.fzu.edu.cn/problem.php?pid=2168最重要的是dp[k]=dp[k-1]-ans[k-1]+x[i]*m;ans[k-1]是m个数求和。Problem
2168 防守阵地 I Accept: 14Submit: 20 Time Limit: 3000 ...
分类:
其他好文 时间:
2014-04-28 02:30:56
阅读次数:
442
Page 30Perceptual blocks are obstacles that
prevent the problem-solver from clearly perceiving either the problem itself or
the information needed to ...
分类:
其他好文 时间:
2014-04-28 00:54:37
阅读次数:
403
BMega Man’s MissionsInputStandard
InputOutputStandard OutputMega Man is off to save the world again. His objective
is to kill the Robots created by Dr...
分类:
其他好文 时间:
2014-04-28 00:38:46
阅读次数:
483
原题地址:http://www.rqnoj.cn/problem/2解题思路:背包问题。状态转移方程:DP[i][j]=max(DP[i-v[j]][j-1]+p[j]*v[j],DP[i][j-1])DP[i][j]表示最多话费i的钱,购买前j+1个物品所能达到的最大价值。解题代码:
1 #inc...
分类:
其他好文 时间:
2014-04-27 21:26:22
阅读次数:
537