1799:最短前缀总时间限制:1000ms内存限制:65536kB描述一个字符串的前缀是从该字符串的第一个字符起始的一个子串。例如 "carbon"的字串是: "c", "ca", "car", "carb", "carbo", 和 "carbon"。注意到这里我们不认为空串是字串, 但是每个非空串...
分类:
其他好文 时间:
2015-11-05 22:16:59
阅读次数:
441
1 Two Sum Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of...
分类:
其他好文 时间:
2015-11-05 22:15:12
阅读次数:
254
在ubuntu下安装并编译成功NS3之后,考虑到在命令行下实在是不方便进行开发工作,于是考虑使用集成开发环境Eclipse。在nsnam官网上给出了一个相关的配置方案,阅读之后,总结为如下步骤:PS:前提是NS3建议先安装好,不然会出现很多其他的问题。1. 下载eclipse环境,如果没有安装jdk...
分类:
系统相关 时间:
2015-11-05 22:16:53
阅读次数:
959
练下线段树。。。明天加油(准确的说是后天吧。。。) 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define inc(i,l,r) for(i=l;i=r;i--) 8 #define inf 1e9 9 #define mem...
分类:
其他好文 时间:
2015-11-05 22:14:43
阅读次数:
285
1:VMware上虚拟机MAC安装前VMware上安装Xcode之后2:安装Xcode过程:把Xcode复制到虚拟机桌面上3:复制完成之后,双击Xcode_6.4.dmg 文件4:把Xcode.app 拖拽到Applications5:安装完成后,点击Finder,找到应用程序Xcode.app6:...
分类:
移动开发 时间:
2015-11-05 22:14:44
阅读次数:
351
1. E[attr]只使用属性名,但没有确定任何属性值例:p[miao]z1z22. E[attr=value]指定属性名,并指定了该属性的值例:p[miao=Kevin] 3. E[attr~=value]指定属性名,并且具有属性值,此属性值是一个词列表,并且以空格隔开,其中词列表包行了一个...
分类:
Web程序 时间:
2015-11-05 22:17:25
阅读次数:
257
Nasty HacksTime Limit:1000MSMemory Limit:65536KTotal Submissions:13136Accepted:9077DescriptionYou are the CEO of Nasty Hacks Inc., a company that crea...
分类:
其他好文 时间:
2015-11-05 22:14:08
阅读次数:
253
1.lin语句 int[] nums = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0, 3 }; DataTable table = new DataTable("Numbers"); table.Columns.Add(...
分类:
其他好文 时间:
2015-11-05 22:15:59
阅读次数:
264
artDialog首页>文档与示例artDialog —— 经典的网页对话框组件,内外皆用心雕琢。支持普通与 12 方向气泡状对话框完善的焦点处理,自动焦点附加与回退支持 ARIA 标准面向未来:基于 HTML5 Dialog 的 API支持标准与模态对话框丰富且友好的编程接口能自适应内容尺寸仅 4...
分类:
Web程序 时间:
2015-11-05 22:15:35
阅读次数:
339
给你足够多的1,2,5面值的钱币,输入一个钱数n,设计一个程序使能够计算出所有的组合! 1 #include 2 using namespace std; 3 int main() 4 { 5 int N; 6 cin>>N; 7 int a=N/5,b=N/2; 8 ...
分类:
其他好文 时间:
2015-11-05 22:13:57
阅读次数:
132
今天有人要求tomcat服务器的访问地址不能带端口访问, 也就是说只能用80端口访问网站.那么问题来了, Ubuntu系统禁止root用户以外的用户访问1024以下的商品, 因此tomcat默认为8080也是有原因的.因此,多才多艺的网友提供了普遍的两种方案:1, 修改conf/server.xml...
分类:
其他好文 时间:
2015-11-05 22:13:52
阅读次数:
259
Implementint sqrt(int x).Compute and return the square root ofx.简单的二分法,注意mid应该选为long,否则容易溢出: 1 class Solution { 2 public: 3 int mySqrt(int x) { 4 ...
分类:
其他好文 时间:
2015-11-05 22:13:44
阅读次数:
191
class Program { //函数多个返回值 //输入参数前加Out就变成输出参数 public int jisuan(int a, int b, out int c) { c = a - b; return a + b; }public int jiefangcheng(int a, i.....
分类:
其他好文 时间:
2015-11-05 22:13:53
阅读次数:
148
参考:http://www.cnblogs.com/tanky_woo/archive/2010/09/24/1833717.html#include#includeusing namespace std;const int MAX=26;struct Trie{ Trie *next[MAX...
分类:
其他好文 时间:
2015-11-05 22:11:36
阅读次数:
189
GCD (Grand Central Dispatch) 是Apple公司开发的一种技术,它旨在优化多核环境中的并发操作并取代传统多线程的编程模式。 在Mac OS X 10.6和IOS 4.0之后开始支持GCD。什么是 GCDGCD 是 libdispatch 的市场名称,而 libdispatc...
分类:
移动开发 时间:
2015-11-05 22:12:18
阅读次数:
233
Xcode6.0以后不会自动创建全局引用文件pch,1>New file--->Other--->pch文件 2.>Build Phases--->Prefix Header把路径改为相对路径-->
分类:
其他好文 时间:
2015-11-05 22:11:30
阅读次数:
120