简单求组合数,直接运用公式。注意C(n,k)=C(n,n-k)。#include #include #include #define LL __int64using namespace std;LL myc(LL n, LL r){ LL sum=1; for(LL i=1;in-r?n-r:r; ...
分类:
其他好文 时间:
2014-09-27 11:20:19
阅读次数:
137
1、首先在头文件里面声明DECLARE_SERIAL(CSelectionSerial)2、重写CObject的Serialize函数virtual void Serialize(CArchive& ar){ CObject::Serialize(ar); //关键代码 if(ar.Is...
分类:
其他好文 时间:
2014-09-27 12:09:59
阅读次数:
280
问题描述:同学编写的小程序里,建立了资源文件夹,并在里面加入了(ico,png图片)而且在MainWindows窗口属性的windowsIcon的属性里,设置了图片。本以为这样就可以设置debug里面的exe的应用程序的图标。(【1】因为我们在初学Qt的时候,是将一个ico图标放在资源文件夹下,然后...
分类:
其他好文 时间:
2014-09-27 11:02:49
阅读次数:
180
通过学习Lucene3.5.0的doc文档,对不同release版本号 lucene版本号的API修改做分析。最后找到了有价值的修改信息。LUCENE-2302: Deprecated TermAttribute and replaced by a new CharTermAttribute. Th...
分类:
其他好文 时间:
2014-09-27 10:45:39
阅读次数:
264
Is the Information Reliable?Time Limit: 3000MSMemory Limit: 131072KTotal Submissions: 11125Accepted: 3492DescriptionThe galaxy war between the Empire ...
分类:
其他好文 时间:
2014-09-27 10:45:29
阅读次数:
162
序列化又称串行化,是.NET运行时环境用来支持用户定义类型的流化的机制。其目的是以某种存储形成使自定义对象持久化,或者将这种对象从一个地方传输到另一个地方。.NET框架提供了两种串行化的方式: 1、是使用BinaryFormatter进行串行化; 2、使用SoapFormatter进行串行化...
分类:
其他好文 时间:
2014-09-27 11:35:09
阅读次数:
219
按字典序选一个六组合。简单DFS#include #include #include using namespace std;int se[20];int ans[20];void dfs(int ps,int position,int k){ if(position>k){ if(ps==6){....
分类:
其他好文 时间:
2014-09-27 12:24:29
阅读次数:
207
Sublime Text 前端开发常用扩展插件推荐Sublime TextSublime Text 是程序员们公认的编码神奇,拥有漂亮的用户界面和强大的功能更重要的是,Sublime Text 易于扩展,众多开发人员为其贡献插件,而且通过包管理工具 —— Package Control 可以方便安装...
分类:
其他好文 时间:
2014-09-27 11:34:09
阅读次数:
261
Tried to register widget with id==content but that id is already registered
分类:
其他好文 时间:
2014-09-27 12:23:09
阅读次数:
191
Enable Notepad++ 666 support both SCLEX_FORTRAN and SCLEX_F77http://blog.csdn.net/gocad/article/details/32943395You can DIY.I have put the source code...
分类:
其他好文 时间:
2014-09-27 11:16:09
阅读次数:
191
//#define ALLOC_CONSOLE#ifdef ALLOC_CONSOLE AllocConsole(); // 开辟控制台 释放:FreeConsole(); SetConsoleTitle(L"Debug Output"); ...
分类:
其他好文 时间:
2014-09-27 12:22:29
阅读次数:
180
概述:编程算法,是完成程序逻辑的主要途径。本文推荐十大编程算法,有利于程序员的编程逻辑。算法一:快速排序算法快速排序是由东尼·霍尔所发展的一种排序算法。在平均状况下,排序n个项目要Ο(nlogn)次比较。在最坏状况下则需要Ο(n2)次比较,但这种状况并不常见。事实上,快速排序通常明显比其他Ο(nlo...
分类:
其他好文 时间:
2014-09-27 12:05:39
阅读次数:
312
岗位职责:1、专业人员职位,在上级的领导和监督下定期完成量化的工作要求,并能独立处理和解决所负责的任务;2、协助上级管理、协调市场,跟踪并监察各项市场营销计划的执行;3、协助对公司产品的市场调研活动;4、负责公司的广告定期制作及宣传工作;5、收集市场同行业信息,参与策划有关公司产品的发布、展会等活动...
分类:
其他好文 时间:
2014-09-27 11:48:39
阅读次数:
214
Logstash+Elasticsearch+Kibana+S3+NginxbuildourprivatelogquerysystemSystemstructureHowtosetupLogstash-index(Logstashserver)yum-yinstalljava-1.7.0-openjdkInstallandconfigureElasticsearch(Logstash1.4.2recommendsElasticsearch1.1.1)rpm--importhttp://packages.ela..
分类:
其他好文 时间:
2014-09-27 09:56:30
阅读次数:
322
谈到梦想这个词,相信每个人都有,但是随着时间的流逝或者出来社会经历的各种环境的影响,最终梦想都会被打破遗忘,但是我相信也有的人一直在坚持自己的梦想,虽然在追求梦想道路上遇到种种困难。但你的梦想实现的时候,那是你人生最开心的时刻。在我追求梦想这条道路上遇到种..
分类:
其他好文 时间:
2014-09-27 10:13:00
阅读次数:
198
#nginx-1.4.2.tar.gz#pcre-8.12.zip1.yuminstallpcre-developenssl-devel2.unzippcre-8.12.zipcdpcre-8.12./configure--prefix=/usr/local/pcremake&&makeinstall3.tarzxvfnginx-1.4.2.tar.gzcdnginx-1.4.2./configure--prefix=/usr/local/nginx--sbin-path=/usr/sbin/..
分类:
其他好文 时间:
2014-09-27 10:28:29
阅读次数:
244
yuminstalllibxml2-developenssl-develbzip2-develcd/usr/local/srctarzxvfphp-5.4.13.tar.gzcd/usr/local/src/php-5.4.13./configure--prefix=/usr/local/php--enable-fpm--with-openssl--enable-mbstring--enable-sysvshm--with-config-file-path=/etc--with-config-file-sca..
分类:
其他好文 时间:
2014-09-27 10:28:19
阅读次数:
208