题目地址:Building a Space Station题目大意: 在一个三维的空间里有若干个球体,求从走过所有球花费最少,题目要求两个球体接触就不需要建桥意为花费为0,实力给吃的n行, 其中包括 球的X,Y,Z的坐标,r为球的半径。这里就清晰了,意思就是求无向图最小生成树,val就为两个求圆心....
分类:
其他好文 时间:
2014-07-30 23:40:45
阅读次数:
299
The Settlers of Catan Within Settlers of Catan, the 1995 German game of the year, players attempt to dominate an island by building roads, settlements...
分类:
其他好文 时间:
2014-07-29 16:57:12
阅读次数:
253
题目来源:http://acm.uestc.edu.cn/#/problem/show/4分析:就是一个很普通的区间修改,单点查询的树状数组,但是今天忘记吃药了,一直写不对,中午迷迷糊糊地,直接把数据读入到数组里而不是update,然后又总是考虑后面的数被减到0以下要怎么处理,其实根本不用考虑,直接...
分类:
其他好文 时间:
2014-07-27 23:27:59
阅读次数:
251
问题一:提示出错:cannot load such file -- mysql/mysql_api (LoadError)此时我们回来看gem install mysql 时提示At the time of building this gem, the necessary DLL files whe...
分类:
数据库 时间:
2014-07-27 22:18:29
阅读次数:
289
Moving TablesThe famous ACM (Advanced Computer Maker) Company has rented a floor of a building who...
分类:
其他好文 时间:
2014-07-26 14:22:30
阅读次数:
263
1.‘Building workspace’ has encountered a problem. Errors occurred during the build.解决方案:这样的错误,主要是由于JavaScript Validator校验工程文件所导致,解决方法是:Project → Prope...
分类:
其他好文 时间:
2014-07-26 01:31:46
阅读次数:
191
A decorative fence
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 6489
Accepted: 2363
Description
Richard just finished building his new house. Now the ...
分类:
其他好文 时间:
2014-07-24 23:16:33
阅读次数:
540
virtualbox安装fedora时,安装增强功能包时会报错解决Building the main GuestAdditions module [失败]安装前需要先安装下面几个包才可以避免这个问题,并把增强功能完整安装上去。安装软件时,按照本教程给出的顺序可以尽量少下载文件内容。1.切换到root...
分类:
其他好文 时间:
2014-07-24 22:10:02
阅读次数:
184
** Building terminfo database, please wait...
Running tic to install /usr/share/terminfo ...
You may see messages regarding extended capabilities, e.g., AX.
These are extended t...
分类:
其他好文 时间:
2014-07-23 13:40:16
阅读次数:
468
In one embodiment, a local node in a communication network determines a set of its neighbor nodes, and determines a respective occurrence frequency at...
分类:
移动开发 时间:
2014-07-23 11:37:16
阅读次数:
373