首页 > 其他
JRE System Library [jdk1.7]和Server Library [Apache Tomcat v6.0]为绑定错误解决方案
JRE System Library [jdk1.7]和Server Library [Apache Tomcat v6.0]为绑定错误解决方案 图形详细解析……...
分类:其他   时间:2014-05-24 22:05:29    收藏:0  评论:0  赞:0  阅读:418
2014 BNU 邀请赛E题(递推+矩阵快速幂)
Elegant String 题意:给定一个字符串,由0-k数字组成,要求该串中,子串不包含0-k全排列的方案数 思路:dp[i][j]表示放到i个数字,后面有j个不相同,然后想递推式,大概就是对应每种情况k分别能由那几种状态转移过来,在纸上画画就能构造出矩阵了,由于n很大,所以用快速幂解决 代码: #include #include const long long MOD = ...
分类:其他   时间:2014-05-25 00:36:08    收藏:0  评论:0  赞:0  阅读:376
LeetCode——Palindrome Partition
Palindrome Partitioning   Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "...
分类:其他   时间:2014-05-24 14:29:16    收藏:0  评论:0  赞:0  阅读:403
2014 BNU 邀请赛B题(枚举)
Beautiful Garden 题意:x轴上放了一些树,现在要移动一些树使得所有树都等间距,问最少要移动多少棵 思路:枚举,枚举第一棵树,和另一棵树,以及中间有多少树,这样就能知道等差数列的首项和公差,然后再循环一边计算出答案,保存最小值 代码: #include #include #include #include using namespace std; #define...
分类:其他   时间:2014-05-26 04:28:44    收藏:0  评论:0  赞:0  阅读:341
OpenWRT GPIO口控制 WLED
Linux系统下GPIO系统 http://lwn.net/Articles/465077/...
分类:其他   时间:2014-05-25 00:35:07    收藏:0  评论:0  赞:0  阅读:622
ubuntu 14.04 安装qq
本人系统为Ubuntu 13.04 LTS 64bit,各种google下成功wine安装了QQ用用 1.首先安装最新版的wine1.52,没记错版本号应该是这个 sudo add-apt-repository ppa:ubuntu-wine/ppa sudo apt-get update sudo apt-get install wine1.6 sudo apt-get in...
分类:其他   时间:2014-05-26 05:33:47    收藏:0  评论:0  赞:0  阅读:455
openstack源码类图,该通过什么工具获取?
Openstack源码类图,该通过什么工具获取?Eclipse+pydev是可以以文件的方式将源码导入到已经创建好的工程里(如下图),但该如何获取类图呢?请知道的兄弟指点一下,谢谢!...
分类:其他   时间:2014-05-24 19:18:46    收藏:0  评论:0  赞:0  阅读:559
【练习题】编写打印出一个单链表的所有元素的程序【链表】
只是实现了链表ADT的部分功能。 /*---编写打印出一个单链表的所有元素的程序---*/ #include #include struct Node{ int val; struct Node *next; }; Node *findEnd(Node *list){ while(list->next) list = list->next; return list; } v...
分类:其他   时间:2014-05-24 22:30:07    收藏:0  评论:0  赞:0  阅读:493
poj1182
题目链接: http://poj.org/problem?id=1182 题目为:      食物链 Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 42412   Accepted: 12366 Description 动物王国中有三类动物A,B,...
分类:其他   时间:2014-05-26 04:53:17    收藏:0  评论:0  赞:0  阅读:473
uva 1350 - Pinary(dp+计数)
题目链接:uva 1350 - Pinary 题目大意:给出n,输出第n给Pinary Number,Pinary Number为二进制数,并且没有连续两个1相连。 解题思路:dp[i]表示到第i位有dp[i]种,于是给定n,一层循环判断dp[i]≤n的话,就输出1,并且n减掉dp[i],注意输出0的时候,不能输出前导0. #include #include typedef l...
分类:其他   时间:2014-05-26 04:38:00    收藏:0  评论:0  赞:0  阅读:286
OpenCV之图像基本操作
图像的输入输出 C风格的操作: const char *pstrImageName = "秽土转生第七版.jpg"; const char *pstrWindowsTitle = "窗口标题"; //从文件中读取图像 IplImage *pImage = cvLoadImage(pstrImageName, CV_LOAD_IMAGE_UNCHANGED); //创建窗口 cvN...
分类:其他   时间:2014-05-26 03:47:26    收藏:0  评论:0  赞:0  阅读:488
层次遍历二叉树
按先序序列输入字符序列(其中逗号表示空节点),输出该二叉树的层次遍历序列。 #include #define END ','//表示空节点 using namespace std; typedef char Elem_Type; typedef struct BiTree { Elem_Type data; struct BiTree *Lchild; stru...
分类:其他   时间:2014-05-26 04:52:54    收藏:0  评论:0  赞:0  阅读:373
liunx 笔记(1)
ls -l:长格式 文件类型: -:普通文件 (f) d: 目录文件 b: 块设备文件 (block) c: 字符设备文件 (character) l: 符号链接文件(symbolic link file) p: 命令管道文件(pipe) s: 套接字文件(socket) 文件权限:9位,每3位一组,每一组:rwx(读,写,执行), r-- 文件硬链接的次数 文件的属主(o...
分类:其他   时间:2014-05-25 01:54:30    收藏:0  评论:0  赞:0  阅读:405
11218 - KTV(dfs)
题目:11218 - KTV 题目大意:ktv里有9个人,唱歌的话分三个一组,然后给出n中可能的分组,和每个分组的得分,求最多的得分。 解题思路:这题就是dfs,但是要注意这里的每个人都需要并且只能在一个组里。 代码: #include #include const int N = 100; int comb[N][3], score[N]; int n, v...
分类:其他   时间:2014-05-24 20:38:06    收藏:0  评论:0  赞:0  阅读:485
2014辽宁省赛 Repeat Number
问题 C: Repeat Number 时间限制: 1 Sec  内存限制: 128 MB 提交: 23  解决: 7 [提交][状态][论坛] 题目描述 Definition: a+b = c, if all the digits of c are same ( c is more than ten),then we call a and b are Repeat Number. My...
分类:其他   时间:2014-05-26 04:03:26    收藏:0  评论:0  赞:0  阅读:553
LaTeX的零零碎碎记录
因为课程需要,最近用LaTeX写了很多篇report. 为了能够更好记忆和查找,我决定要总结一下最近用的比较多的东西。 我的OS为Ubuntu12.04,内核是3.2.0-61-generic,LaTeX版本是pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian),编写用的是vim。 另外,我玩LaTeX基本是要写什么才上网查找资料,没有专门去...
分类:其他   时间:2014-05-26 04:58:38    收藏:0  评论:0  赞:0  阅读:562
2014辽宁省赛 Traveling
问题 K: Traveling 时间限制: 1 Sec  内存限制: 128 MB 提交: 13  解决: 4 [提交][状态][论坛] 题目描述 SH likes traveling around the world. When he arrives at a city, he will ask the staff about the number of cities that...
分类:其他   时间:2014-05-25 01:44:10    收藏:0  评论:0  赞:0  阅读:439
2014百度之星资格赛——XOR SUM
2014百度之星资格赛——XOR SUM Problem Description Zeus 和 Prometheus 做了一个游戏,Prometheus 给 Zeus 一个集合,集合中包含了N个正整数,随后 Prometheus 将向 Zeus 发起M次询问,每次询问中包含一个正整数 S ,之后 Zeus 需要在集合当中找出一个正整数 K ,使得 K 与 S 的异或结果最大。P...
分类:其他   时间:2014-05-24 20:53:26    收藏:0  评论:0  赞:0  阅读:415
2014辽宁ACM省赛 Distance
问题 E: Distance 时间限制: 1 Sec  内存限制: 128 MB 提交: 48  解决: 12 [提交][状态][论坛] 题目描述 There is a battle field. It is a square with the side length 100 miles, and unfortunately we have two comrades who get ...
分类:其他   时间:2014-05-26 05:57:21    收藏:0  评论:0  赞:0  阅读:520
2014辽宁ACM省赛 Prime Factors
问题 L: Prime Factors 时间限制: 1 Sec  内存限制: 128 MB 提交: 36  解决: 28 [提交][状态][论坛] 题目描述 I'll give you a number , please tell me how many different prime factors in this number. 输入 There is multiple te...
分类:其他   时间:2014-05-24 20:52:22    收藏:0  评论:0  赞:0  阅读:420
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!