The Cat in the HatBackground(An homage to Theodore Seuss Geisel)The Cat in the Hat is a nasty creature,But the striped hat he is wearing has a rather ...
分类:
其他好文 时间:
2014-11-02 22:22:39
阅读次数:
366
16进制的简单运算描述现在给你一个16进制的加减法的表达式,要求用8进制输出表达式的结果。输入第一行输入一个正整数T(0int main(){int m,n,k;scanf("%d",&n);while(n--){scanf("%x%x",&m,&k);printf("%o\n",m+k);}ret...
分类:
其他好文 时间:
2014-11-02 17:57:29
阅读次数:
119
题目大意:
有一只(聪明的)猫要打扫房间,但不想自己一个人干,于是让它帽子里的猫出来帮忙,它帽子里的猫的帽子里还有猫,它帽子里的猫的帽子里的猫的帽子里还有猫,等等。打扫房间的工作量不大,不需要所有的猫来帮忙,于是这只(聪明的)猫想到一个注意:“随着帽子的逐层变小,猫的身高也逐渐变小,会变到最小身高1,由身高为1的猫来打扫房间(输入会让每次下一层的猫的高度满足整数要求,并且会满足最后一层猫的整数(即1)等于workers的输入)。在每层帽子里的猫的数量是个常数,N(要我们自己去找这...
分类:
其他好文 时间:
2014-11-02 09:21:05
阅读次数:
300
java里finally 关键字通常与try catch块一起使用。用来在方法结束前或发生异常时做一些资源释放的操作。最近也看到网上有一些讨论try catch finally关键词执行的顺序的文章,并给出了finally块是在方法最后执行的。这些观点普遍认为:1)finally关键词是在程序ret...
分类:
编程语言 时间:
2014-11-02 00:33:56
阅读次数:
271
deb是debian linus的安装格式,跟red hat的rpm非常相似,最基本的安装命令是:dpkg -i file.debdpkg 是Debian Package的简写,是为Debian 专门开发的套件管理系统,方便软件的安装、更新及移除。所有源自Debian的Linux发行版都使用dpkg...
分类:
系统相关 时间:
2014-10-31 23:23:11
阅读次数:
267
1 环境配置参考官方文档《Grid Infrastructure Installation Guide for Linux》1.1 软件环境操作系统:[root@howe1 ~]# cat /etc/redhat-releaseRed Hat Enterprise Linux Server rele...
分类:
数据库 时间:
2014-10-31 21:51:36
阅读次数:
306
转载:Ubuntu下deb包的安装方法,http://blog.csdn.net/kevinhg/article/details/5934462deb是debian linus的安装格式,跟red hat的rpm非常相似,最基本的安装命令是:dpkg -i file.debdpkg 是Debian ...
分类:
系统相关 时间:
2014-10-31 18:54:58
阅读次数:
240
题意:
给定n个点m条无向边 答案取模 MOD
问:
有多少个最小生成树
DET模版:
#pragma comment(linker, "/STACK:1024000000,1024000000")
#include
#include
#include
#include
#include
template
inline bool rd(T &ret) {
char c; i...
分类:
其他好文 时间:
2014-10-31 15:41:09
阅读次数:
223
题目链接:点击打开链接
裸题
#pragma comment(linker, "/STACK:1024000000,1024000000")
#include
#include
#include
#include
#include
template
inline bool rd(T &ret) {
char c; int sgn;
if (c = getchar(), ...
分类:
Web程序 时间:
2014-10-31 15:40:44
阅读次数:
270
题目链接:点击打开链接
题意:
给定n个点m条边的无向图,问最小生成树有几个。
思路:
模版
#pragma comment(linker, "/STACK:1024000000,1024000000")
#include
template
inline bool rd(T &ret) {
char c; int sgn;
if(c=getchar(),c==EOF) ...
分类:
其他好文 时间:
2014-10-31 11:57:42
阅读次数:
169