Limak is an old brown bear. He often plays poker with his friends. Today they went to a casino. There are n players (including Limak
himself) and right now all of them have bids on the table. i-th o...
分类:
其他好文 时间:
2015-08-31 13:39:18
阅读次数:
172
原文地址:https://github.com/robbiehanson/CocoaAsyncSocket/wiki/Intro_GCDAsyncSocket
GCDAsyncSocket is a TCP library. It’s built atop Grand Central Dispatch.
This page provides an introduction to the lib...
分类:
其他好文 时间:
2015-08-31 13:39:20
阅读次数:
207
------------------------------------------------------------------------人生总是需要我们不断受挫,不断总结。然后继续前行!
回顾我的大学,我没有一般同学那么“幸运”,有长长的假期,可以去做自己想做的事。我选择是另一条路,一条我当初自己也望不到的未来方向的路,但我是一个不服输的人,我不想,自己决定的事,因为...
分类:
其他好文 时间:
2015-08-31 13:38:43
阅读次数:
415
题目链接:点击打开链接
题意描述:给一个字符串,求这个字符串中每个前缀自身是否有周期性?
解题思路:kmp即可
代码:
#include
#include
#define MAXN 1000010
using namespace std;
void getNext(char* str,int len,int* next){
int i,j;
j=next[0]=...
分类:
其他好文 时间:
2015-08-31 13:40:06
阅读次数:
87
题意:N个学生安排到M个宿舍,每个学生对宿舍有个评价,正数,0,负数,现在评价是负数的,不能让这个学生去这个房间,问怎么安排让所有的学生都住进宿舍且评价最大。
思路:建立图的权重时,筛选掉负数边。
#include
#include
#include
#include
#include
#include
#...
分类:
其他好文 时间:
2015-08-31 13:39:35
阅读次数:
172
题目:
CRB and Candies
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 652 Accepted Submission(s): 324
Problem Description
CRB has N...
分类:
其他好文 时间:
2015-08-31 13:37:48
阅读次数:
145
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique BST's. 1 3 3 2 1
\ /...
分类:
其他好文 时间:
2015-08-31 13:38:37
阅读次数:
123
题目:
CRB and His Birthday
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 748 Accepted Submission(s): 395
Problem Description
Toda...
分类:
其他好文 时间:
2015-08-31 13:36:18
阅读次数:
150
hihocoder1224 赛车(树的深度相关)hihoCoder挑战赛14...
分类:
其他好文 时间:
2015-08-31 13:37:41
阅读次数:
120
Count Color
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 39905
Accepted: 12034
Description
Chosen Problem Solving and Program design as an optional course...
分类:
其他好文 时间:
2015-08-31 13:36:53
阅读次数:
137
1. 下载
可以从官网 http://www.sublimetext.com/3 下载。
2. Windows下安装与使用
2.1 安装
1. Win7 64位系统,可以下载 Windows 64 bit来安装。
2. 安装时,注意勾选Add to explorer context menu,这样Sublime Text可以被添加到右键中,在右键单击文件时,可以直接使用S...
分类:
其他好文 时间:
2015-08-31 13:37:53
阅读次数:
148
原文转自:http://www.tqcto.com/article/recommend/132.html一、dom4j介绍dom4j是一个Java的XML API,类似于jdom,用来读写XML文件的。dom4j是一个非常非常优秀的Java XML API,具有性能优异、功能强大和极端易用使用的特点,同时它也是一个开放源代码的软件,可以在SourceForge上找到它。在IBM developer...
分类:
其他好文 时间:
2015-08-31 13:36:01
阅读次数:
276
题意:字典序排序子串,找出子串中的第n大。
做法:因为最多让你找第100000大,所以可以用优先队列。先放入单个的。然后不断取出最小的,然后添加一个 其后面的字母,然后再放回队列。 队列里len个串,最多放n次,所以复杂度 log(len)*n。
但是vs2010 的优先队列好像很慢。 另外一题有次也用到优先队列,vs2010跑好几分钟跑不出来的数据,CB可以秒跑。 所以这题不要交vs2010,不然会超时。...
分类:
其他好文 时间:
2015-08-31 13:36:27
阅读次数:
226
题意:告诉任意两个鱼之间的关系,然后,两条有关系的鱼的权值异或就是 spawn的值,求所有新的值和的最大值。
思路:预处理好任意两条鱼的spawn的值,KM匹配一下即可。
#include
#include
#include
#include
#include
#include
#include<strin...
分类:
其他好文 时间:
2015-08-31 13:34:47
阅读次数:
136
Add Digits
Given a non-negative integer num, repeatedly add all its digits until the
result has only one digit.
For example:
Given num = 38, the process is like: 3
+ 8 = 11, 1 + 1 = 2. ...
分类:
其他好文 时间:
2015-08-31 13:36:38
阅读次数:
168
在中国,如果 40 岁了还在写代码,是一种幸福,还是一种悲哀?
一个大公司程序员的牢骚从360来百度已经一年了,期间经历过很多的需求开发,也带领小伙伴做过Android插件方向的研发与通宵上线。没有经历过的小伙伴可能想不到,一个拥有快30个Android开发的团队,我们的任务需求依然开发不完,加班到11~12点是常事。没办法,pm需要按kpi做事,都是伪需求害的。薪资待遇很多小伙伴都问我,你在狼厂工...
分类:
其他好文 时间:
2015-08-31 13:34:22
阅读次数:
159
管理是什么呢?我曾经参加过一个培训,老师说,简单说,就是分工派活定规矩。大家对于自己这块工作的必要性、目标、内容都清楚了,去做就是了。借用这个标题,其实我不是很懂,只是想分享在线软件公司Zoho的一些具体做法,供参考。
Zoho的CEO貌似不太忙,看新闻、看业界动态、发发帖子,他说,我的一块主要工作是和团队、员工谈话。那么全球这3000多名员工,Zoho是怎么管的呢?
各司其职
CE...
分类:
其他好文 时间:
2015-08-31 13:35:42
阅读次数:
261