让世界球迷翘首以盼的世界杯,在热情的桑巴舞和全世界球迷的欢呼中如期而至。在此期间,无论是资深球迷还是伪球迷,甚至是压根不看球的普通人,对于世界杯,都必然提及一二,这俨然成为了世界的节日,一个万众期待的狂欢party。随着移动互联的高度普及和发展,“社交足球”似乎踢得比世界杯还火热,各种渠道,各种工具...
分类:
其他好文 时间:
2014-06-17 23:30:11
阅读次数:
290
HDU 2095 find your present (2)题目描述:Problem DescriptionIn the new year party, everybody will get a "special present".Now it's your turn to get your spe...
分类:
其他好文 时间:
2014-06-17 14:12:54
阅读次数:
217
经在这待了好一阵了。没错,现在我记起来了。这是公司同事的聚会,是Dan邀请我来的。是有人过40岁生日,也许是50。我记不清了。Dan是个不错的人,但我们的性格大相径庭,他是个话痨。估计他以前是卖保险的。还好,在这里,我不需要穿西装。而且也不需要穿的像电梯旁边的那个傻冒那样。真的,为什么要在Party...
分类:
其他好文 时间:
2014-06-12 00:41:00
阅读次数:
351
Halloween treats
和POJ2356差不多。
其实这样的数列可以有很多,也可以有不连续的,不过利用鸽巢原理就是方便找到了连续的数列,而且有这样的数列也必定可以找到。
#include
#include
#include
int main()
{
int c, n;
while (scanf("%d %d", &c, &n) && c)
{
int *nei...
分类:
其他好文 时间:
2014-06-10 06:02:58
阅读次数:
293
OpenResty (aka. ngx_openresty) is a
full-fledged web application server by bundling the standard Nginx core, lots of
3rd-party Nginx modules, as well ...
分类:
其他好文 时间:
2014-06-10 00:02:19
阅读次数:
384
点击打开链接
两次求最短路(第二次把边反向求)
1、spfa
//poj 3268 Silver Cow Party
//SPFA
#include
#include
#include
using namespace std;
const int M = 100000 + 100;
const int N = 1000 + 100;
const int inf = 1...
分类:
其他好文 时间:
2014-06-08 05:29:39
阅读次数:
241
裸dijkstra
思路:以x为源点,求到其他点的最短路,之后把邻接矩阵转置,再求一次x源
点的最短路,这样就一次是来的,一次是走的,相加迭代最大值即可
代码:
/*
poj 3268
8108K 47MS
*/
#include
#include
#define MAXN 1005
#define MAX_INT 2147483647
using namespace s...
分类:
其他好文 时间:
2014-06-04 23:32:57
阅读次数:
303
刚刚开始学cocos2-x,仅仅是按照教程把已经安了一般Android的开发环境的eclipse重新升级到安装好cdt和ndk就花了我几十小时,差点都要放弃了。
参考博客 D:\cocos2d-x\cocos2d-x-2.2.3\cocos2dx\platform\third_party\android\prebuilt
说说大概的过程:
下载ndk插件,ndk包,cdt插件。最开始我按照书...
分类:
移动开发 时间:
2014-06-02 07:00:28
阅读次数:
227
Children of the Candy Corn
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9108
Accepted: 3958
Description
The cornfield maze is a popular Halloween treat....
分类:
其他好文 时间:
2014-06-01 10:28:57
阅读次数:
292
使用Yeoman产生AngularJS的主要骨架使用Grunt加速开发和帮助执行使用Bower来加入第三方插件和框架——third party
plugins/frameworks一、准备工作安装好NodeJS和NPM(读者可自己去google)二、安装Yeoman, Grunt and
Bower...
分类:
Web程序 时间:
2014-05-30 11:13:07
阅读次数:
415