上一页 1 ··· 123 124 125 126 127 128 129 130 131 ··· 329 下一页
摘要: 一段错误的代码首先看一段错误的代码: #!/bin/bashSLICE=100;slppid=1;pidfile=/var/run/vpnrulematch.pid# 停止之前的sleepkill_prev() { pid=$1; /bin/kill -0 $pid;exist=$? ppid=$(/bin/cat /proc/$pid/status|/usr/bin/awk -F ' ' '/PPid/{print $2}'); if [ "$exist" == 0 ] && [ "$ppid" == $ 阅读全文
posted @ 2013-07-14 22:04 jlins 阅读(400) 评论(0) 推荐(0)
摘要: 求删点后最小的生成树,n#include#include#include#include#include#include#include#include#include#include#include#include#define FF(i, a, b) for(i=a; ib; i--)#define CLR(a, b) memset(a, b, sizeof(a))#define LL long long#define CPY(a, b) memcpy(a, b, sizeof(b))using namespace std;ofstream fout ("output.txt&q 阅读全文
posted @ 2013-07-13 20:58 jlins 阅读(171) 评论(0) 推荐(0)
摘要: 解决lssub未能发现海信HisenseUSB设置:选择 天翼宽带连接如下所示:luogw@luogw-ThinkPad-Edge:~$ lsusb Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 阅读全文
posted @ 2013-07-13 20:56 jlins 阅读(395) 评论(0) 推荐(0)
摘要: #include #include #define N 10 using namespace std;typedef struct node *link;struct node { int item; link l,r; };link NODE(int item,link l,link r){ link t = (link)malloc(sizeof(struct node)); t->item = item; t->l = l; t->r = r; return t; }link insert_node(link t,int item){ if... 阅读全文
posted @ 2013-07-13 20:54 jlins 阅读(476) 评论(0) 推荐(0)
摘要: B. Help Kingdom of Far Far Away 2time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFor some time the program of rounding numbers that had been developed by the Codeforces participants during one of the previous rounds, helped the citizens of Far Fa 阅读全文
posted @ 2013-07-13 20:52 jlins 阅读(312) 评论(0) 推荐(0)
摘要: 批量文件改名 正则替换 中英翻译文件名 批量操作 界面和使用效果如下图 使用步骤如下 CSDN下载在这里http://download.csdn.net/detail/vonlycn/5746999 阅读全文
posted @ 2013-07-13 20:50 jlins 阅读(189) 评论(0) 推荐(0)
摘要: 下面就一些每天都在使用的东西列个表(不分先后),肯定是不全的,或者是不详细的,高手请补充,入门弟子请体验Eclipse提高工作效率的好习惯:1、切换编辑点 Alt + 2、查看打开文件 Ctr + e3、充分利用模板 主要是自己定义的4、自定义快捷键生成Getter和Setter我的:Ctr+Shift+S,S 单个的属性的生成你可以:Ctr+1 建议中有一项5、删除时候尽量不要退格或者Delete键,行级别 Ctr+d,行中个别部分 Ctr+x6、看见方法名或者变量名不好,替换Ctr+2,r7、查找选中的下一个:Ctr+k,反查:Ctr+Shift+k8、运行Ctr+F119、大小写转化:C 阅读全文
posted @ 2013-07-13 20:48 jlins 阅读(194) 评论(0) 推荐(0)
摘要: import java.net.DatagramPacket;import java.net.DatagramSocket;import java.net.InetAddress;public class UDPsend { /** * @param args */ public static void main(String[] args) throws Exception { // TODO Auto-generated method stub DatagramSocket ds=new DatagramSocket(); String string="hello world&q 阅读全文
posted @ 2013-07-13 20:46 jlins 阅读(193) 评论(0) 推荐(0)
摘要: 这道题算是比较综合的了,要用到扩展欧几里得,乘法二分,高斯消元。看了题解才做出来orz基本思路是这样,建一个n*(n-1)的行列式,然后高斯消元。关键就是在建行列式时会暴long long,所以要用取模来计算,即公式ax=b,等价于ax=b(mod p)因为答案范围不超过正负10^17次,p可以取(2*10^17+3)。然后加减乘除都能够进行了,乘法用乘法二分来做,除法用模线性方程求逆来做。#include#include#includeusing namespace std;#define LL __int64const LL p=(LL)200000000*1000000000+3;//杭 阅读全文
posted @ 2013-07-13 20:44 jlins 阅读(329) 评论(0) 推荐(0)
摘要: 知识预备 1. 回顾:logistic回归出发,引出了SVM,即支持向量机[续]。2. Mercer定理:如果函数K是上的映射(也就是从两个n维向量映射到实数域)。那么如果K是一个有效核函数(也称为Mercer核函数),那么当且仅当对于训练样例,其相应的核函数矩阵是对称半正定的。核函数描述和分析 考虑在” 回归和梯度下降 “一节的“线性回归”中提出的问题,特征是房子的面积x,这里的x是实数,结果y是房子的价格。假设我们从样本点的分布中看到x和y符合3次曲线,那么我们希望使用x的三次多项式来逼近这些样本点。那么首先需要将特征x扩展到三维 ,然后寻找特征和结果之间的模型。我们将这种特征变换称作特征 阅读全文
posted @ 2013-07-13 20:43 jlins 阅读(1579) 评论(0) 推荐(0)
上一页 1 ··· 123 124 125 126 127 128 129 130 131 ··· 329 下一页