http://poj.org/problem?id=1664
Description
把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。
Input
第一行是测试数据的数目t(0
Output
对输入的每组数据M和N,用一行输出相应的K。
Sample Input
1
7 3
...
分类:
其他好文 时间:
2015-03-20 09:18:36
阅读次数:
119
1 通用
Rule 1 编译的Warnings不能被忽略掉
Rule
2 在已有Code或者三方的code基础上的修改,允许使用原来的coding standard
Rule
3 如果允许C和C++都访问的相同的C的header 文件, extern C 必须在header文件里
#ifdef __cplusplus
extern "C" {
#endif
/* body...
分类:
其他好文 时间:
2015-03-20 09:17:35
阅读次数:
115
SAP权限对象文集SAP的权限是通过授权对象来控制的,所有的事务码、角色等最终反映在系统中都是授权对象。在SAP中运行事务码时,系统首先会检查S_TCODE这个授权事务中是否有指定的事务码,如果有,你才能使用这个TCODE。但这里通过后,并不代表你可以将所要操作的业务进行完毕,在不同的地方,系统还会...
分类:
其他好文 时间:
2015-03-20 09:16:00
阅读次数:
320
Notes:1. Do not forget to check xi == xj. It will cause INF.2. DO not forget to initialize the iterator. 1 /** 2 * Definition for a point. 3 * struc.....
分类:
其他好文 时间:
2015-03-20 09:17:17
阅读次数:
93
ArcGIS Pro采用了Ribbon界面风格,看起来好漂亮,听起来很强大,就是不知道用起来怎么样,在网上看到一个ArcGIS Pro Beta2版本,下载下来,安装启动,好眼熟,像Office2013Word一样的风格。 但在登陆过程中遇到问题,就去官网看了,目前还没看到破解,但可以申请60多天的...
分类:
其他好文 时间:
2015-03-20 09:15:17
阅读次数:
131
在STM32的固件库和提供的例程中,到处都可以见到assert_param()的使用。如果打开任何一个例程中的stm32f10x_conf.h文件,就可以看到实际上assert_param是一个宏定义;在固件库中,它的作用就是检测传递给函数的参数是否是有效的参数。所谓有效的参数是指满足规定范围的参数...
分类:
其他好文 时间:
2015-03-20 09:15:35
阅读次数:
100
2015-03-19 09:06:00 来源:中国新闻网(北京)中新网3月19日电 在加拿大温哥华举行的Pwn2Own 2015世界黑客大赛上,来自中国的安全研究团队360Vulcan Team仅用时17秒就率先攻破微软Win8.1系统和最新的IE11浏览器。这是亚洲团队首次在世界大赛攻破IE,从而...
分类:
其他好文 时间:
2015-03-20 09:16:32
阅读次数:
135
在多数移动应用中任何时候都只能有一个应用程序处于活跃状态,如果其他应用此刻发生了一些用户感兴趣的那么通过通知机制就可以告诉用户此时发生的事 情。iOS中通知机制又叫消息机制,其包括两类:一类是本地通知;另一类是推送通知,也叫远程通知。两种通知在iOS中的表现一致,可以通过横幅或者弹出 提醒两种形式告...
分类:
其他好文 时间:
2015-03-20 09:16:46
阅读次数:
207
http://blog.csdn.net/pipisorry/article/details/39909057在PyCharm /opt/pycharm-3.4.1/help目录下可以找到ReferenceCard.pdf快捷键英文版说明PyCharm Default KeymapPyCharm.....
分类:
其他好文 时间:
2015-03-20 09:13:21
阅读次数:
108
DataList: DataList在呈显的时间会自动为模板内容加上Table表格 DataList多了两个模板:SelectedItemTemplate(选中项模板),EditItemTemplate(编辑项模板) 常用属性: RepeatColumns:每行显示的列数 RepeatDirect....
分类:
其他好文 时间:
2015-03-20 09:14:21
阅读次数:
105
Problem DescriptionThe picture indicates a tree, every node has 2 children.The depth of the nodes whose color is blue is 3; the depth of the node whos...
分类:
其他好文 时间:
2015-03-20 09:14:49
阅读次数:
194
1 struct Node { 2 int key, value; 3 Node(int k, int v) : key(k), value(v) {} 4 }; 5 6 class LRUCache{ 7 private: 8 int size; 9 list ...
分类:
其他好文 时间:
2015-03-20 09:12:45
阅读次数:
136
Notes:Do not forget to clean the total and rec. 1 class Solution { 2 public: 3 int longestValidParentheses(string s) { 4 int len = s.size(...
分类:
其他好文 时间:
2015-03-20 09:12:56
阅读次数:
119
序列化:对象--->流--->文件、二进制using System.Runtime.Serialization.Formatters.Binary;//二进制序列化器所在命名空间using System.Runtime.Serialization.Formatters.Soap;//using Sy...
分类:
其他好文 时间:
2015-03-20 09:13:07
阅读次数:
135
先 转载一段别人的文章 CString类的这几个函数, 一直在用, 但总感觉理解的不够透彻, 不时还实用错的现象. 今天抽时间和Nico一起分析了一下, 算是拨开了云雾: GetBuffer和ReleaseBuffer是一套须要配合使用的函数, 与GetBufferSetLength相比,...
分类:
其他好文 时间:
2015-03-20 09:11:13
阅读次数:
125
英文原文:Before you send an email to contact a web developer, please read this… 做为一名开发者,我收到很多关于开发新 web 应用程序或其它在线项目的邮件。我经常收到类似的邮件:嗨,Tommy:我在网上找到你的主页,想咨询一个....
分类:
其他好文 时间:
2015-03-20 09:12:20
阅读次数:
105
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-03-20 09:12:38
阅读次数:
107