Question:HowdoIview,modifyandrecreatethenewinitrd.imgonUbuntu,Debian,CentOS,Fedora,Red-Hat,ArchLinux,orSUSEdistributions?1.HowToViewContentOfinitrd.imgfile?initrd.imgisingzipformat.Somoveinitrd.imgtoinitrd.gzasshownbelow.#cp/tftpboot/el5/initrd.img.
#ls
cd..
分类:
其他好文 时间:
2014-05-05 12:31:38
阅读次数:
359
题目题意:给n,求x;直接枚举肯定超时, 把给的式子变形, (y+x)(y-x) = n;令y-x =
b, y+x = a;枚举b, b 的范围肯定是sqrt(n), y = (a+b)/2; x = (a-b)/2;b越大, x越小, 所以倒着枚举b 1
#include 2 #include....
分类:
其他好文 时间:
2014-05-05 11:01:25
阅读次数:
244
Escape
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 584 Accepted Submission(s): 117
Problem Description
R's girl friend D is on m...
分类:
其他好文 时间:
2014-05-04 18:38:40
阅读次数:
379
After a long and successful day of preparing food for the banquet, it is time to clean up. There is a list of n jobs to do before the kitchen can be closed for the night. These jobs are indexed from 1...
分类:
其他好文 时间:
2014-05-04 18:25:07
阅读次数:
384
在memory.c里面有这么一段代码。为了其中的一句话,让我内牛满面啊!
dir = (unsigned long *) ((from>>20) & 0xffc)
int free_page_tables(unsigned long from,unsigned long size)
{
unsigned long *pg_table;
unsigned long...
分类:
系统相关 时间:
2014-05-04 18:22:41
阅读次数:
459
#define PAGE_SIZE 4096
/* these are not to be changed without changing head.s etc */
#define LOW_MEM 0x100000
extern unsigned long HIGH_MEMORY;
#define PAGING_MEMORY (15*1024*1024)
#define PAGING_PAG...
分类:
系统相关 时间:
2014-05-04 18:15:51
阅读次数:
441
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1015
深搜简单题
代码如下:
#include
#include
#include
#include
using namespace std;
string a;
int t;
int v,w,x,y,z;
int vis[20];
int b[6];
int flag;
int cmp(int...
分类:
其他好文 时间:
2014-05-04 18:09:00
阅读次数:
352
题意:
给定n个物品 m元,k种商品
下面n行 tpye w v 表示物品的牌子,价格,价值(每个物品只有1件)
问:每个牌子至少买一件能获得的最大价值是多少
思路:分组背包
#include
#include
#include
#include
#include
using namespace std;
#define ll int
ll n, m, k;
l...
分类:
其他好文 时间:
2014-05-04 18:03:15
阅读次数:
248
按照书上的例子,运行了下,lua指针关键就是3个值,指针函数,不变量,控制变量functioniter(a,i)--指针函数i=i+1localv=a[i]ifvthenreturni,vendendfunctionisp(a)--返回指针函数,不变量,控制变量returniter,a,0endfork,vinisp({1,2,4})do--控制变量是k,也就是指针函数返回..
分类:
其他好文 时间:
2014-05-04 17:34:40
阅读次数:
1033
本文简单的描述下如何连接rhevshell以及简单的使用。关于更详细的用法请参考官方文档。1、如何连接到rhevm?要想连接到rhevm,必须拥有一个有效的证书。此证书一般安装完rhevm后会自动产生。下面是如何获取到证书。[root@rhevm~]#wget-Orhevm.cerhttp://rhevm.xzxj.edu.cn/ca.c..
分类:
其他好文 时间:
2014-05-04 17:01:55
阅读次数:
376