码迷,mamicode.com
首页 >  
搜索关键字:num lock    ( 23499个结果
关于ORA-04021解决办法(timeout occurred while waiting to lock object)
某个应用正在锁定该表或者包表为select b.SID,b.SERIAL#,c.SQL_TEXTfrom v$locked_object a, v$session b, v$sqlarea cwhere a.SESSION_ID = b.SIDand b.SQL_ADDRESS = c.ADDRES...
分类:其他好文   时间:2014-05-09 11:06:57    阅读次数:413
ac1008
这题说的是 给了n个点在圆 上 然后 i连 i+2 从i+2 开始连 i+4 然后 这样一直到某个点 已经被连过为止 如果还有的没有被连过 就从那个点开始 连 按照上面的规则 当 N大于6 的时候可以很简单的发现 num=N*5; 画出后就很容易发现 当n《=2 的时候是0 个 n=3 1 n=.....
分类:其他好文   时间:2014-05-05 21:48:28    阅读次数:198
[转]delphi xe6 android屏幕操持常亮
1) setting the Project Options, Uses Permissions, Wake lock = True2) Adding Android.JNI.PowerManager to the uses clause3) call: AcquireWakeLock; // at...
分类:移动开发   时间:2014-05-05 11:29:06    阅读次数:501
php函数
function Http_num() //浏览计数 在同目录里建立一个count文件,访问网页次数计算结果保存在这里count文件里{ $hanld=fopen(".count.txt","a"); fclose($hanld); ...
分类:Web程序   时间:2014-05-05 10:44:20    阅读次数:406
shell脚本获取随机数random
用C提供的取随机数的方法srand和rand, 前者是给后者设置随机数种子seed。int rnd_num = 0;srand(seed); // time(NULL) 通常使用时间做种子rnd_num = rand(); // 产生随机数产生种子的方法:1. 使用日期时间 时间作为...
分类:其他好文   时间:2014-05-04 20:16:40    阅读次数:564
java web 程序---猜数字游戏的猜了多少次的代码
思路:用setAttribute()放 ,然后直接输出 Integer str=(Integer)session.getAttribute("count"); int num3= Integer.valueOf(str); session.setAttribute("count",num...
分类:编程语言   时间:2014-05-04 19:59:51    阅读次数:430
动态规划求解0-1背包
C代码实现如下: 1 #include 2 #include 3 4 int** DP(int num, int Weight, int*w, int *v); 5 void output(int *c, int *w, int weight, int **ptr, int num)...
分类:其他好文   时间:2014-05-04 10:09:07    阅读次数:269
poj3257(Cow Roller Coaster)DP
题意:要连出一个从1-L的过山车线,给出n段可选的建设方案。每段都有起始位置,终止位置,代价,和乐趣程度。要实现1-L的长度中,相邻两端要首尾相连,总建设代价控制在B之内,问最多能获得多少乐趣程度。 解法:二维dp, num[i][j]记录恰好建设到i并且用掉代价j多能获得的最多乐趣。先将每段可选方案按照位置排序,然后进行转移。最后选max(num[L][i]),i from 0 to ...
分类:其他好文   时间:2014-05-04 08:57:59    阅读次数:267
nefu 650 max num
题目:经典dp题目,求出最大相邻子序列的和。 方法:给出两种方法,一种dp,一种直接暴力(数据量小的时候可以考虑)。 代码1: #include #include using namespace std; int main() { int n; int t=1; cin>>n; int s[100010]; while(t<=n) { ...
分类:其他好文   时间:2014-05-03 17:02:34    阅读次数:324
Ubuntu Server 14.04 配置ssh登录
Linux服务器限制ssh登录,查看登录日志1.查看端口占用情况$sudosu #lsof-i:<NUM> netstat-apn|grep<NUM>2.修改默认端口号22/etc/ssh/sshd_configPort22最好先添加一个端口号,然后启用成功之后再关闭端口22。然后重启sshd:sudo/etc/init.d/sshrestart没有反应,使..
分类:其他好文   时间:2014-05-03 14:43:53    阅读次数:403
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!