摘要: 在终端里跑小火车sudo apt-get install slsl古怪的日ddate每天的财富sudo apt-get instlal fortunefortunefortune-zh….打印月份cal 3 2013 大眼睛xeyes 阅读全文
posted @ 2013-03-11 21:47 Joker0429 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1854: [Scoi2010]游戏Time Limit:5 SecMemory Limit:162 MBSubmit:1258Solved:424[Submit][Status][Discuss]Descriptionlxhgww最近迷上了一款游戏,在游戏里,他拥有很多的装备,每种装备都有2个属性,这些属性的值用[1,10000]之间的数表示。当他使用某种装备时,他只能使用该装备的某一个属性。并且每种装备最多只能使用一次。 游戏进行到最后,lxhgww遇到了终极boss,这个终极boss很奇怪,攻击他的装备所使用的属性值必须从1开始连续递增地攻击,才能对boss产生伤害。也就是说一开始的时候 阅读全文
posted @ 2013-03-03 12:34 Joker0429 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 首先Orz zhonghaoxi找的的神题GSS1Can you answer these queries I:http://www.spoj.com/problems/GSS1/求区间最大子序和考虑记录三个标记:tot(区间最大子序和),left(从区间左端开始向右的最大子序和),right(从区间右端开始向左的最大子序和)Code:GSS1_Code 1 #include <cstdio> 2 #include <algorithm> 3 #define maxn 50100 4 #define INF 1 << 30 5 #define For(i, 阅读全文
posted @ 2013-02-26 22:44 Joker0429 阅读(747) 评论(1) 推荐(0) 编辑
摘要: 2743: [HEOI2012]采花Time Limit:15 SecMemory Limit:128 MBSubmit:356Solved:153[Submit][Status][Discuss]Description萧芸斓是Z国的公主,平时的一大爱好是采花。今天天气晴朗,阳光明媚,公主清晨便去了皇宫中新建的花园采花。花园足够大,容纳了n朵花,花有c种颜色(用整数1-c表示),且花是排成一排的,以便于公主采花。公主每次采花后会统计采到的花的颜色数,颜色数越多她会越高兴!同时,她有一癖好,她不允许最后自己采到的花中,某一颜色的花只有一朵。为此,公主每采一朵花,要么此前已采到此颜色的花,要么有相 阅读全文
posted @ 2013-02-10 22:38 Joker0429 阅读(325) 评论(2) 推荐(0) 编辑
摘要: 1010: [HNOI2008]玩具装箱toyTime Limit:1 SecMemory Limit:162 MBSubmit:3647Solved:1242[Submit][Status][Discuss]DescriptionP教授要去看奥运,但是他舍不下他的玩具,于是他决定把所有的玩具运到北京。他使用自己的压缩器进行压缩,其可以将任意物品变成一堆,再放到一种特殊的一维容器中。P教授有编号为1...N的N件玩具,第i件玩具经过压缩后变成一维长度为Ci.为了方便整理,P教授要求在一个一维容器中的玩具编号是连续的。同时如果一个一维容器中有多个玩具,那么两件玩具之间要加入一个单位长度的填充物, 阅读全文
posted @ 2013-02-10 20:55 Joker0429 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 模板View Code 1 #ifdef unix 2 #define LLD "%lld" 3 #else 4 #define LLD "%I64d" 5 #endif 6 #include <cstdio> 7 #include <cstring> 8 #include <cstdlib> 9 #include <cmath>10 #include <algorithm>11 #include <iostream>12 #include <vector>13 #inc 阅读全文
posted @ 2013-02-10 20:32 Joker0429 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #ifdef unix#define LLD "%lld"#else#define LLD "%I64d"#endif#include <cstdio>#include <cstring>#include <algorithm>#include <iostream>#include <cstdlib>#include <cmath>#include <string>#define LL long long#define maxn #define INF 0x3f3f3f3 阅读全文
posted @ 2013-02-08 00:22 Joker0429 阅读(205) 评论(0) 推荐(0) 编辑
摘要: /*字符串模板总结——Trie树 * By Joker0429*/ #ifdef unix #define LLD "%lld" #else #define LLD "%I64d" #endif #include <cstdio> #include <cstring> #include <algorithm> #include <iostream> #include <cstdlib> #include <cmath> #define LL long long #define max 阅读全文
posted @ 2013-02-08 00:09 Joker0429 阅读(129) 评论(0) 推荐(0) 编辑
摘要: set number set tabstop=4 set softtabstop=4 set shiftwidth=4 set fdm=marker set smartindent set mouse=a set hlsearch filetype plugin indent on syntax on map <F8> : ! fpc % %< && size %< <CR> map <F9> : ! g++ % -o %< -g -Wall -Wextra -Wconversion && size %< 阅读全文
posted @ 2013-02-01 14:29 Joker0429 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 1、ibus输入法Ubuntu 系统安装后已经自带了ibus输入法,在英语环境下默认不启动。配置ibus自动启动可以在ubuntu系统菜单上选择System --- Preferences --- Startup Applications,在该窗口中增加一个程序:Name: ibus-daemonCommand: ibus-daemon -d -x -ribus默认提供的中文输入法比较弱智,需要额外安装ibus-pinyin,命令如下:sudo apt-get install ibus-pinyin这 时,还需要将ibus-pinyin输入法启动。在ubuntu系统菜单上选择System -- 阅读全文
posted @ 2013-01-31 20:54 Joker0429 阅读(1472) 评论(0) 推荐(0) 编辑