码迷,mamicode.com
首页 > 其他好文
sn9c291+ov9712 mlayer 播放成功
[root@localhost ~]# mplayer tv:// -tv driver=v4l2:width=1280:height=720:device=/dev/video1:outfmt=0x34363248 -fps 24 MPlayer SVN-r35234-4.7.2 (C) 2000-2012 MPlayer Team mplayer: could not connect to...
分类:其他好文   时间:2014-08-02 18:23:13    阅读次数:817
ZOJ Monthly, September 2003【部分题解】
今天比赛做了一下这套题目。出了四道。两道水题,两道DP...
分类:其他好文   时间:2014-08-02 18:23:04    阅读次数:336
hadoop2.4.1+hbase0.98.3实现的分布式网盘系统初步
hadoop2.4.1+hbase0.98.3实现的分布式网盘系统初步...
分类:其他好文   时间:2014-08-02 18:22:43    阅读次数:247
字符串的排列
题目描述: 输入一个字符串,按字典序打印出该字符串中字符的所有排列。例如输入字符串abc,则打印出由字符a,b,c所能排列出来的所有字符串abc,acb,bac,bca,cab和cba。 输入: 每个测试案例包括1行。 输入一个字符串,长度不超过9(可能有字符重复),字符只包括大小写字母。 输出: 对应每组数据,按字典序输出所有排列。 样例输入: abcBCA...
分类:其他好文   时间:2014-08-02 18:22:33    阅读次数:203
ZOJ 1639 Hang Up the System (状态压缩)
Hang Up the System Time Limit: 2 Seconds      Memory Limit: 32768 KB You're going to design a multi-task operating system for an embedded system. Because the resources are limited on this mini c...
分类:其他好文   时间:2014-08-02 18:22:13    阅读次数:328
【代码优化】返回0长度数组或者集合
改掉你从C语言继承过来的习惯,我们在java中没理由返回类型为数组或者集合返回null。 private final List InStock =...; public Cheese[] getCheeses() { if( InStock.size() ==0){ return null; } } 这种是我们经常使用的 返...
分类:其他好文   时间:2014-08-02 18:22:04    阅读次数:185
Ubuntu:Codeblocks编译OpenGL超级宝典(第5版)的实例
在Ubuntu或其他Linux系统,使用Codeblocks运行OpenGL超级宝典(第5版)的代码。本文主要对Codeblocks进行相关配置,并对书上的GLTools目录中相关文件进行修改,以可以使用GLTools工具,方便快速创建自己的OpenGL项目。...
分类:其他好文   时间:2014-08-02 18:21:53    阅读次数:386
UVA 10298 - Power Strings(KMP)
UVA 10298 - Power Strings 题目链接 题意:本意其实就是,给定一个字符串,求出最小循环节需要几次循环出原字符串 思路:利用KMP中next数组的性质,n - next[n]就是最小循环节,然后n / 循环节就是答案 代码: #include #include const int N = 1000005; char str[N]; int ...
分类:其他好文   时间:2014-08-02 18:21:43    阅读次数:282
Codeforces 453B Little Pony and Harmony Chest 状压dp
题目链接:点击打开链接 b的数字最多只能达到59,因为选>=60 不如选1 所以状压一下前面出现过的素数即可,在59内的素数很少 然后暴力转移。。 #include #include #include #include #include const int Inf = (int)(1e9); const int S = 1 << 17; const int N = 100 + 2...
分类:其他好文   时间:2014-08-02 18:20:53    阅读次数:225
Codeforces 453A Little Pony and Expected Maximum 概率题Orz
题目链接:点击打开链接 #include #include #include using namespace std; #define INF 0x3f3f3f3f #define eps 1e-8 #define pi acos(-1.0) typedef long long ll; int main() { int i, j; double m,n; while...
分类:其他好文   时间:2014-08-02 18:20:43    阅读次数:233
ZOJ 1642 Match for Bonus(dp)
Match for Bonus Time Limit: 2 Seconds      Memory Limit: 65536 KB Roy played a game with his roommates the other day.  His roommates wrote 2 strings of characters, and gave each character a b...
分类:其他好文   时间:2014-08-02 18:20:33    阅读次数:256
Climbing Stairs
问题:上楼每次能走一步或两步,有多少种走法class Solution {public: int a[1000]; int dfs(int n) { if(n<0) return 0; if(n==0) return 1; if(a[n])...
分类:其他好文   时间:2014-08-02 18:19:03    阅读次数:140
Activiti常用类介绍
为什么要使用工作流?传统的设计在流程发生变化时的弊端: 1. 流程相关的属性和业务对象的属性,都放到了业务对象中。 2. 流程相关的逻辑和业务逻辑,都放到的业务逻辑中常用类 ProcessEngineConfiguration 流程引擎配置对象(配置数据库连接信息和建表策略) Pro...
分类:其他好文   时间:2014-08-02 18:18:43    阅读次数:202
HDU 4906
超时递推实现 f[i][j]表示前i个数能够表示j状态的方案数,其中j为最多20位的二进制,表示前i个数的和(1-20)是否达到#include "cstdio"#include "cstring"#define min(x,y) (x>y?y:x)#define MOD 1000000007int...
分类:其他好文   时间:2014-08-02 18:18:03    阅读次数:257
发工资了
Problem Description作为杭电的老师,最盼望的日子就是每月的8号了,因为这一天是发工资的日子,养家糊口就靠它了,呵呵但是对于学校财务处的工作人员来说,这一天则是很忙碌的一天,财务处的小胡老师最近就在考虑一个问题:如果每个老师的工资额都知道,最少需要准备多少张人民币,才能在给每位老师发...
分类:其他好文   时间:2014-08-02 18:17:53    阅读次数:260
优美英文
1) I love you not because of who you are, but because of who I am when I am with you. 我爱你,不是因为你是一个怎样的人,而是因为我喜欢与你在一起时的感觉。 2) No man or woman is wo...
分类:其他好文   时间:2014-08-02 18:17:43    阅读次数:241
Merge Two Sorted Lists
问题:有序合并两个有序链表分析:归并排序的合并部分class Solution {public: ListNode *mergeTwoLists(ListNode *l1, ListNode *l2) { ListNode *helper=new ListNode(0); ...
分类:其他好文   时间:2014-08-02 18:17:03    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!