在android studio中新建android gradle project的时候connect refused:connect或者卡在building project...或Refreshing xxx gradle project
===
原因是:
gradle在创建时需要联网,不然的话会失败,我虽然可以联网,但是不能访问gradle网站或者下载不了,所以不行。
感谢伟大的GFW,...
分类:
移动开发 时间:
2014-08-07 19:14:50
阅读次数:
215
题意:有n个绝对值各不相同的非0整数,选出尽量多的数,排成一个序列,使得正负号交替,且绝对值递增。输出最长序列长度。
思路:其实按照绝对值排序后,只要选出正负号交替最长的序列就可以了。用一个标记来表示下一个要选的是正号还是负号。
#include
#include
#include
#include
#include
using namespace std;
co...
分类:
其他好文 时间:
2014-08-06 23:02:42
阅读次数:
219
Game Description:
1. In a closed door, there will be a circle, and 30 numbers in the circle.
2. Each team (about 10 people) need to take number out of the circle by ascend order.
3. Each team has...
分类:
其他好文 时间:
2014-08-06 19:06:02
阅读次数:
359
/*Elevator
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It...
分类:
其他好文 时间:
2014-08-05 19:23:40
阅读次数:
209
当我们在开发spring项目时,一般会将jar包放到webInf/lib下,这样是myeclipse自动将jar包加载到tomcat中webapps下,但是当我们新建一个lib文件夹的情况下,我们add building Path时就会出错,这时候我们有个技巧供使用。1.项目上点击右键搜索de,找到...
分类:
编程语言 时间:
2014-08-05 18:59:39
阅读次数:
179
我比较好奇的是uva后台是怎么测这题的没什么可说的,那些不想敲但还是想直接交这题的直接copy过去吧#include #include #include #include #include #define maxn 100000using namespace std;int main(){ i...
分类:
其他好文 时间:
2014-08-01 15:45:41
阅读次数:
186
《Windows 8应用开发:C#和XAML卷》主要讲解如何运用C#、XAML、Windows Runtime和.NET框架开发Windows 8应用程序,也即Windows应用商店应用(Windows Store App)。在讲解的过程中,《Windows 8应用开发:C#和XAML卷》从头至尾穿...
分类:
移动开发 时间:
2014-08-01 15:37:31
阅读次数:
334
Problem Description
Bob is a strategy game programming specialist. In his new city building game the gaming environment is as follows: a city is built up by areas, in which there are streets, trees...
分类:
其他好文 时间:
2014-08-01 10:54:28
阅读次数:
315
题目链接:Building a Space Station
最小生成树的模板题,prim和kuruskal都可以,但是要注意精度损失。
题意:给定一个三维坐标系,给定一些圆的圆心坐标,和半径,求出所有圆心构成的最小生成树;
特别注意:两个圆如果相交在一起,算做联通,距离为0;
C++提交
#include
#include
#include
#include
#include
...
分类:
其他好文 时间:
2014-07-31 17:06:56
阅读次数:
215
本文介绍在centos7上面通过hadoop2.4.1源码构建hadoop distribution 版本,即hadoop的运行版本。 为何要自己building,而不用Apache的distribution 【bin】版本,因为hadoop涉及到Linux系统的底层实现,如: hado...
分类:
其他好文 时间:
2014-07-30 23:41:25
阅读次数:
284