1.定义函数的指针类型:就像自定义数据类型一样,我们也可以先定义一个函数指针类型,然后再用这个类型来申明函数指针变量。一个自定义数据类型的例子。typedef int* PINT; //为int* 类型定义了一个PINT的别名int main(){ int x; PINT px=&x; //与i.....
分类:
其他好文 时间:
2015-08-16 21:09:29
阅读次数:
96
B -LISTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescription一组研究人员正在设计一项实验,以测试猴子的智商。他们将挂香蕉在建筑物的屋顶,同时,提供一些砖块给这些猴子。如果...
分类:
其他好文 时间:
2015-08-16 21:11:38
阅读次数:
102
Multiply StringsGiven two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large ...
分类:
其他好文 时间:
2015-08-16 21:11:48
阅读次数:
95
drop的包是因为网卡的buffer满了查看当前网卡的buffer size情况ethtool -g eth0Ring parameters for eth0:Pre-set maximums:RX: 4096RX Mini: 0RX Jumbo: 0TX: 40...
分类:
其他好文 时间:
2015-08-16 21:10:42
阅读次数:
94
1005: 【2012四川省热身赛】Problem B. How Many Roads?Time Limit: 1 SecMemory Limit: 32 MBDescriptionAs a director of cities transportation construction, Elfnes...
分类:
其他好文 时间:
2015-08-16 21:10:11
阅读次数:
264
1.直接调用函数void fun(int x); //此处的声明也可写成:void fun( int );int main(int argc, char* argv[]){ fun(10); //调用函数 return 0;}/*定义*/void fun(int x){ print...
分类:
其他好文 时间:
2015-08-16 21:08:08
阅读次数:
92
最大上升子序列Description The world financial crisis is quite a subject. Some people are more relaxed while others are quite anxious. John is one of them....
分类:
其他好文 时间:
2015-08-16 21:09:45
阅读次数:
103
E -LISTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionThe world financial crisis is quite a subject. Some peo...
分类:
其他好文 时间:
2015-08-16 21:07:48
阅读次数:
138
leetcode - String to Integer (atoi)Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a chal...
分类:
其他好文 时间:
2015-08-16 21:06:40
阅读次数:
88
这篇博客我记录在了http://segmentfault.com/a/1190000003101351
分类:
其他好文 时间:
2015-08-16 21:08:59
阅读次数:
162
主题链接:点击打开链接题意见白书P248思路:先把读入的y值都扩大2倍变成整数然后离散化一下用线段树来维护y轴 区间上每一个点的 城市数量和联通块数量。然后用并查集维护每一个联通块及联通块的最大最小y值。还要加并查集的秩来记录每一个联通块的点数然后就是模拟搞。。T^T绝杀失败题。。似乎数组开小了一点...
分类:
其他好文 时间:
2015-08-16 21:07:43
阅读次数:
121
DescriptionThe people ofMohammadpurhave decided to paint each of their houses red, green, or blue. They've also decided that no two neighboring houses...
分类:
其他好文 时间:
2015-08-16 21:07:14
阅读次数:
136
1.TortoiseSVN的介绍 TortoiseSVN是Subversion版本控制系统的一个免费开源客户端,可以超越时间的管理文件和目录。 2.TortoiseSVN的安装 下载地址:http://tortoisesvn.net/downloads.html 点击next 点击next 点击ne...
分类:
其他好文 时间:
2015-08-16 21:04:37
阅读次数:
347
在OC中我们可以通过指令@property定义属性。OC对属性封装了许多方法,同时也会自动实现一些方法,相比实例变量,感觉更加面向对象些。一般定义属性的方法如下,在Class Test中定义属性int a。@interface Test:NSObject@property int a;-(void)...
分类:
其他好文 时间:
2015-08-16 21:06:37
阅读次数:
179
Java自带的zip压缩工具,可以让我们方便的压缩与解压缩,但是就是默认编码UTF-8没法改(至少我没找到,如果谁找到了,别忘记告诉我,我也不想用第三方的Jar包),无法解决中文乱码问题,最后我采用了Ant包中的压缩功能,由于只需要用到zip压缩功能,故删除了org.apache.tools.zip...
分类:
其他好文 时间:
2015-08-16 21:06:21
阅读次数:
110
题意:有n个时钟,只能顺时针拨,问使所有时间相同的最小代价是多少思路:将时间排序,枚举拨动到每一个点的时间就好了,容易证明最终时间一定是其中之一 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #in...
分类:
其他好文 时间:
2015-08-16 21:04:23
阅读次数:
87