uva11525:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2520题意:求1,2,3,4,.....k个数所形成的全排列中的第n个。其中n的是由计算出...
分类:
其他好文 时间:
2014-07-13 21:13:52
阅读次数:
261
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=6913874119133The Dole QueueAcceptedC++0.0092014-07...
分类:
其他好文 时间:
2014-07-13 20:59:42
阅读次数:
226
1). In /etc/my.ini, addskip-grant-tables2). mysql -u root -p (no password required)mysql> show databases;+--------------------+| Database |+----------...
分类:
Web程序 时间:
2014-07-13 20:58:19
阅读次数:
349
All in All题意:字符串匹配#include #include char S[200000];char P[200000];int next[200000];int KMP(int pos, int len1, int len2){ int i = pos, j = 1, k = 0;...
分类:
其他好文 时间:
2014-07-13 20:09:39
阅读次数:
175
Add All题意:最优二叉树(priority_queue实现)#include #include #include using namespace std;int main(int argc, char *argv[]){ int n, i, j, a, sum[6000]; pri...
分类:
其他好文 时间:
2014-07-13 20:03:13
阅读次数:
218
直接构造insert into t (c1, c2, c3) values (1, 1, 1), (2, 2, 2)使用UNIONinsert into t (c1, c2, c3) (select a1, a2, a3) union all (select b1, b2, b3)利用查询结果ins...
分类:
数据库 时间:
2014-07-13 19:58:40
阅读次数:
232
一.下载struts2.0.1http://struts.apache.org/downloads.html,下载struts-2.0.1-all.zip,这个压缩包中包括了开发struts2所需的struts2-core.jar核心包以及其他struts2所依赖的JAR文件,另外另一些struts...
分类:
其他好文 时间:
2014-07-13 19:49:57
阅读次数:
217
在windows 8下安装vm10.0.0+mac os 10.9遇到问题记录例如以下:一、因为之前我装的vm9+mac os 10.7;二、准备安装mac os 10.9,把vm9换成vm10;网上找非常多mac os10.9 安装不了或安装报错;最后找 1、 unlock-all-v120......
1. DataBases a.show databases; b.create database mydatabase; c.use mydatabase;2.Tables a.show tables; b.create table if not exists mytable ( ...
分类:
数据库 时间:
2014-07-13 19:07:23
阅读次数:
298
第一、连接:telnet127.0.0.111211第二、按回车键第三、flush_all后回车控制台显示OK,表示操作成功说明:1、清空所有键值flush_all注:flush并不会将items删除,只是将所有的items标记为expired,因此这时memcache依旧占用所有内存。2、退出quit
分类:
其他好文 时间:
2014-07-13 15:22:22
阅读次数:
260