题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5305Problem DescriptionThere arenpeople andmpairs of friends. For every pair of friends, they can choos...
分类:
其他好文 时间:
2015-08-30 17:26:09
阅读次数:
147
看到map这里,都不知道它主要是干嘛的,你有没有这样的疑问。map的主要作用:提供对T类型的数据进行快速和高效的检索。C++ STL中标准关联容器set, multiset, map, multimap内部采用的就是一种非常高效的平衡检索二叉树:红黑树,也成为RB树(Red-Black Tree)。...
分类:
其他好文 时间:
2015-08-30 17:24:52
阅读次数:
210
呐,Masonry 是用来布局的!CocoaPods上下载!呐,来吧!开始鸟语......下面是从View+MASAdditions.h中抽出来的方法。 1 /** 2 * Creates a MASConstraintMaker with the callee view. 3 * Any ...
分类:
其他好文 时间:
2015-08-30 17:25:11
阅读次数:
252
#include int main(void) { int n,sum; int a,b,c; //a:beforeP,b:betweenPandT,c:afterT int j = 0; scanf("%d",&n); char input[n][101]; ...
分类:
其他好文 时间:
2015-08-30 17:23:53
阅读次数:
176
在第一次尝试 Semantic UI 后,发现其 css 中第一行,就引用了 fonts.googleapis.com 中的字体。 不知道为什么要这么做,也许在国外,google 的服务已经是一种互联网的基础设施了? 但是在中国,都懂的,这会大大的拖慢网站的加载速度,甚至加载出错。 其实还有一种情况...
分类:
其他好文 时间:
2015-08-30 17:25:06
阅读次数:
204
2015-08-30 16:53PM
分类:
其他好文 时间:
2015-08-30 17:22:20
阅读次数:
188
概述在iOS中,有2个框架可以访问用户的通讯录。从iOS6开始,需要得到用户的授权才能访问通讯录,因此在使用之前,需要检查用户是否已经授权ABAddressBookGetAuthorizationStatus()授权状态kABAuthorizationStatusNotDetermined 用户还没...
分类:
其他好文 时间:
2015-08-30 17:23:49
阅读次数:
202
单例模式 Singleton Pattern确保某一个类只有一个实例, 且自行实例化并向整个系统提供这个实例.相信这个很多人都会,直接代码:class Program { static void Main(string[] args) { Test t = Test.getInstance(); T...
分类:
其他好文 时间:
2015-08-30 17:21:12
阅读次数:
126
最近在找一个功能比较丰富的前端框架,之前一直使用的Bootstrap,感觉组件还是不够丰富,很多东西都需要不少自定义。于是就发现了 Semantic UI。 不过感觉网上相关的中文资料好少,官方网站(http://www.semantic-ui.cn/)倒是有小部分汉化,但是大部分内容还是都是英文的...
分类:
其他好文 时间:
2015-08-30 17:19:47
阅读次数:
1238
Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example,[1,1,2] have the following unique pe...
分类:
其他好文 时间:
2015-08-30 17:20:35
阅读次数:
187
using System;using System.Collections.ObjectModel;using System.Linq;namespace ConsoleApplication1{ class Program { private static void Ma...
分类:
其他好文 时间:
2015-08-30 17:19:57
阅读次数:
499
一、git简介什么是git?git是一款开源的分布式版本控制工具在世界上所有的分布式版本控制工具中,git是最快、最简单、最流行的git的起源作者是Linux之父:Linus Benedict Torvalds当初开发git仅仅是为了辅助Linux内核的开发(管理源代码)git的现状在国外已经非常普...
分类:
其他好文 时间:
2015-08-30 17:20:00
阅读次数:
417
最近碰到的题不是水题就是坑题,实在没意思,听说神犇们都在Topcoder上刷SRM,于是我决定将SRM的DIV 1刷个遍。由于是系列博客,所以我就不贴代码了,只写做法。哎。。好多转博客不注明出处的,这里给出本博客的出处:http://www.cnblogs.com/HarryGuo2012/p/47...
分类:
其他好文 时间:
2015-08-30 17:20:31
阅读次数:
143
软体工程的方法有很多方面的意义。包括专案管理,分析,设计,程序的编写,测试和质量控制。软体设计方法可以区别为重量级的方法和轻量级的方法。重量级的方法中产生大量的正式文档。著名的重量级开发方法包括ISO9000,CMM,和统一软体开发过程(RUP)。轻量级的开发过过程没有对大量正式文档的要求。着名的轻...
分类:
其他好文 时间:
2015-08-30 17:19:14
阅读次数:
144
string strPath = HttpContext.Current.Server.MapPath("/开放式DLL"); DirectoryInfo df = new DirectoryInfo(strPath); System....
分类:
其他好文 时间:
2015-08-30 17:18:37
阅读次数:
158
题目:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / ...
分类:
其他好文 时间:
2015-08-30 17:17:29
阅读次数:
140
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5363Problem Descriptionsoda has a setSwithnintegers{1,2,…,n}. A set is called key set if the sum of int...
分类:
其他好文 时间:
2015-08-30 17:17:08
阅读次数:
135