引用贴:http://www.cnblogs.com/csyisong/archive/2009/01/09/1372363.html首先#define为预处理,与typedef是完全不同的机制。详细机制尚未完全明了。请参考前人文章。用法一:指针变量代替。char* pa, pb;//这多数不符合我...
分类:
其他好文 时间:
2014-12-15 12:00:18
阅读次数:
171
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2014-12-14 00:38:30
阅读次数:
161
接口测试根据接口文档接口进行可用性破坏性测试,实际接口通过fiddler抓取jenkins + ant + jmeter搭建持续集成的接口测试平台mac常用工具:Xcode5.x和INSTRUMENTSUIAUTOMATION/TERMINALJAVA学习资料:第一部分:第二部分:http://pa...
分类:
编程语言 时间:
2014-12-13 23:13:02
阅读次数:
240
题目大意:有n个玩具,都放在架子上,地板上能放k个,要玩p次玩具,如果不在地板上就要去架子上拿,地板满了要放回去,求最少操作次数
贪心思想:每次放回玩具时选择下次玩的时间最靠后的玩具放回去
可以用堆来模拟这一贪心过程
#include
#include
#include
#include
#define M 500500
using namespace std;
typedef pa...
分类:
其他好文 时间:
2014-12-12 13:21:33
阅读次数:
167
jsp注释有两种:1.显式注释:语法:,这个注释客户端是允许看见的,另一个注释则是与其对应的 2.隐式注释:(1)从java风格继承而来的注释,(2)语法:(这个为jsp注释),客户端都是不允许看见的1 2 8 9 jsp执行的时候必须有Web支持,需要启动Tomact结果如下图:pa...
分类:
编程语言 时间:
2014-12-11 06:45:04
阅读次数:
182
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2014-12-09 13:44:16
阅读次数:
210
一、思路 ?????迷宫出逃不知道还记得不? ???? 只不过这里的迷宫有进口和出口了。 ???? 递归解题,但是数据过大就超时了 import java.util.Stack;
public class UniquePath {
public int[][] pa...
分类:
其他好文 时间:
2014-12-09 02:06:05
阅读次数:
187
#include#include#define LL long long#define inf 0x7ffffff#define pa pair#define pi 3.1415926535897932384626433832795028841971using namespace std;inlin...
分类:
其他好文 时间:
2014-12-09 01:51:59
阅读次数:
241
无标题文档.div1{ width:420px;}.div1 li { list-style: none; float:left; border:1px solid #EAF3FA; background:#FBFCFF; margin:10px; width:120px; height:40px; line-height:40px; padding-left:10px;}.div span{pa...
分类:
Web程序 时间:
2014-12-08 17:44:19
阅读次数:
206
先来张效果图: ?? layout布局设置: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_pa...
分类:
移动开发 时间:
2014-12-08 02:09:21
阅读次数:
219