Description 回答T组询问,有多少组gcd(x,y)=d,x 2 #include 3 #include 4 using namespace std; 5 const int maxn=5e4+5; 6 7 int flag[maxn],prime[maxn],cnt; 8 int m.....
分类:
其他好文 时间:
2015-06-24 01:56:15
阅读次数:
116
u Calculate eTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 35178Accepted Submission(s): 15843Pro...
分类:
其他好文 时间:
2015-06-24 01:58:44
阅读次数:
155
分布式系统设计理念下面详细阐述笔者理解的几个分布式系统设计理念:1. 分布式系统对服务器硬件要求很低这一点主要现在如下两个方面:对服务器硬件可靠性不做要求,允许服务器硬件发生故障,硬件的故障由软件来容错。所以分布式系统的高可靠性是由软件来保证。对服务器的性能不做要求,不要求使用高频CPU、大容量内存...
分类:
其他好文 时间:
2015-06-24 01:58:02
阅读次数:
117
import java.math.BigInteger;import java.security.MessageDigest;import java.security.NoSuchAlgorithmException;public class MD5Utils { /** * 使用md5的算法进行....
分类:
其他好文 时间:
2015-06-24 01:56:02
阅读次数:
87
Description:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint...
分类:
其他好文 时间:
2015-06-24 01:56:47
阅读次数:
117
原文:01-编写CMS注意事项1、将ThinkPHP核心文件放在项目目录,将下载的扩展包放在在ThinkPHP目录下的Extend文件夹中 2、设置整个项目的编码为utf-8 3、创建Public公共目录用于存放公用JS,CSS,Images,创建index.php 1 admin.php 1 4、...
分类:
其他好文 时间:
2015-06-24 01:53:47
阅读次数:
110
作为Web开发人员,我为什么喜欢Google Chrome浏览器【原文地址:http://www.cnblogs.com/QLeelulu/archive/2011/08/28/2156402.html】在Google Chrome浏览器出来之前,我一直使用FireFox,因为FireFox的插件非...
分类:
其他好文 时间:
2015-06-24 01:56:37
阅读次数:
124
2013-06-19 10:25?编辑:?suiling?分类:程序人生?来源:CocoaChina ?0?1594 ?上图为本文的作者Sasha Goldshtein,他是SELA Group公司的首席技术官,他是Microsoft C# MVP(最有价值技术人员),是《Intro...
分类:
其他好文 时间:
2015-06-24 00:54:15
阅读次数:
111
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move either down or right at any...
分类:
其他好文 时间:
2015-06-24 00:52:10
阅读次数:
107
程序的流程可以分为3种基本流程:顺序流程,分支流程和循环流程。其它程序流程都可以由这三种基本流程复合而成。顺序流程没什么可说的,分支流程是根据判断条件的结果来执行不同的流程分支,一般语言都有的ifelse,switch等。需要注意的是switch语句中的case语法,不同的语言有不同的处理方式,很多编程语言中,这种case分支间如果没有break中断,则会一次执行的。循环流程也没什么特别之处。与程...
分类:
其他好文 时间:
2015-06-24 00:52:39
阅读次数:
143
nvert a binary tree. 4
/ \
2 7
/ \ / \
1 3 6 9
to
4
/ \
7 2
/ \ / \
9 6 3 1
Trivia:
This problem was inspired by this original tweet by Max Howell:
Goo...
分类:
其他好文 时间:
2015-06-24 00:49:49
阅读次数:
126
大牛没有能做出来的题,我们要好好做一做
Invert a binary tree.
4
/ 2 7
/ \ / 1 3 6 9
to
4
/ 7 2
/ \ / 9 6 3 1
Trivia:
This problem was inspired...
分类:
其他好文 时间:
2015-06-24 00:49:34
阅读次数:
169
无论是做web还是桌面应用,相信大家对于界面的要求已经越来越高,界面趋于大图标,扁平化,要求不断提高用户体验度高,把握好人机交互。相应的技术也层出不穷,例如:Flex,JQuery,Ajax,HTML5+CSS3等等吧。...
分类:
其他好文 时间:
2015-06-24 00:49:13
阅读次数:
142
String to Integer (atoi)Total Accepted:
52232 Total Submissions:
401038
My Submissions
Question Solution
Implement atoi to convert a string to an integer.
Hint: Carefully conside...
分类:
其他好文 时间:
2015-06-24 00:47:23
阅读次数:
170
此篇描述如何在Datazen中使用自定义地图。...
分类:
其他好文 时间:
2015-06-24 00:46:52
阅读次数:
117
在官网http://redis.io/topics/protocol有对redis通信协议有做说明。
基于下面的一些原因,我想解析redis client protocol:
1、足够了解通信协议,有助于做出更好的系统设计。
2、学习RESP的设计思想,不仅能扩展我的思维,也许将来能应用于我的代码中。
3、因为有些人想将redis client直接并入自己已有的系统中;包括我在内。这个...
分类:
其他好文 时间:
2015-06-24 00:47:13
阅读次数:
169