材料:
1 nasm:编译汇编源代码,网上很多地方有下
2 WinHex:作为windows系统中的写U盘工具,需要是正版(full version)才有写的权限,推荐:http://down.liangchan.net/WinHex_16.7.rar
步骤:
1 编译得到引导程序的机器代码。用命令行编译汇编源代码:name boot.asm -o boot.bin,其中boot...
分类:
其他好文 时间:
2014-08-10 21:42:40
阅读次数:
425
解题报告
题目传送门
题意:
意思很好理解。
思路:
每次操作是100000次,数据大小100000,又是多组输入。普通模拟肯定不行。
线段树结点记录区间里存在数字的个数,加点删点操作就让该点个数+1,判断x存在就查询[1,x]区间的个数和[1,x-1]的个数。
求x之后第k大的数就先确定小于x的个数t,第t+k小的数就是要求的。
#include
#include
#incl...
分类:
其他好文 时间:
2014-08-10 21:34:50
阅读次数:
303
Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?...
分类:
其他好文 时间:
2014-08-10 21:18:20
阅读次数:
232
列********************************************************************************创建分区表CREATETABLEccc1(idnumber(8),name
varchar2(30),sales_datedate)PARTITIONBYRANGE(sales_date)(PARTITIONp1VALUESLESSTHAN(
TO_DATE(‘01-JAN-1999‘,‘DD-MON-YYYY‘))tablespacez..
分类:
其他好文 时间:
2014-08-10 18:53:01
阅读次数:
304
直接用hbase shell命令进入shell的时候就会显示版本号:进入shell后,键入version命令,也可以查看版本号:# hbase shell
HBase Shell; enter 'help' for list of supported commands.
Type "exit" to leave the HBase Shell
Version 0.94.7, r1471806, W...
分类:
其他好文 时间:
2014-08-10 18:48:00
阅读次数:
263
Consider integer numbers from 1 to n. Let us call the sum of digits of an integer number its weight. Denote the weight of the number x as w(x).
Now let us order the numbers using so called graduated ...
分类:
其他好文 时间:
2014-08-10 18:47:20
阅读次数:
406
http://zhanghong.iteye.com/blog/8659371. 首先创建数据库表SQL> create table customer(2 id number(8) not null primary key,3 name varchar2(20),4 age number(3),5 ...
分类:
数据库 时间:
2014-08-10 18:01:30
阅读次数:
251
php-5.5.15 + mysql-5.5.27,编译php的时候报错,checking for mysql_set_server_option in -lmysqlclient... no configure: error: wrong mysql library version or lib ...
分类:
数据库 时间:
2014-08-10 15:26:10
阅读次数:
613
UVA 11651 - Krypton Number System
题目链接
题意:给一个进制base,一个分数score求该进制下,有多少数满足一下条件:
1、没有连续数字
2、没有前导零
3、分数为score,分数的计算方式为相邻数字的平方差的和
思路:先从dp入手,dp[i][j]表示组成i,最后一个数字为j的种数,然后进行状态转移,推出前面一步能构成的状态,也就是到...
分类:
其他好文 时间:
2014-08-10 13:06:10
阅读次数:
223
1,使用 mysqlslap 进行压力测试
mysqlslap --defaults-file=/etc/my.cnf --concurrency=200 --iterations=1 --number-int-cols=1 --auto-generate-sql --auto-generate-sql-load-type=write --engine=myisam,innodb --n...
分类:
数据库 时间:
2014-08-10 13:06:00
阅读次数:
368