Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at wh...
分类:
其他好文 时间:
2014-10-27 17:29:51
阅读次数:
170
HDU 1815, POJ 2749 Building roads
题目链接HDU
题目链接POJ
题意:
有n个牛棚, 还有两个中转站S1和S2, S1和S2用一条路连接起来。 为了使得任意牛棚两个都可以有道路联通,现在要让每个牛棚都连接一条路到S1或者S2。
有a对牛棚互相有仇恨,所以不能让他们的路连接到同一个中转站。还有b对牛棚互相喜欢,所以他们的路必须连到同一个中专站。
...
分类:
其他好文 时间:
2014-10-26 11:46:02
阅读次数:
399
这道题构造出的结果很妙,考察思维能力。就两层,每层都n*n个格子,第一层第i行都放国家i,第二层第j列都放国家j。需要注意的是ASCII中A至Z在a至z的前面(数字小),而且它们两组不挨着。所以需要char c(int i)这个函数。#include#include#include#include#...
分类:
其他好文 时间:
2014-10-25 22:49:30
阅读次数:
213
Building Fire Stations
Time Limit: 5 Seconds
Memory Limit: 131072 KB Special Judge
Marjar University is a beautiful and peaceful place. There are N buildings and
N - 1 bidirection...
分类:
其他好文 时间:
2014-10-24 20:45:46
阅读次数:
258
Building Roads
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9360
Accepted: 2690
Description
Farmer John had just acquired several new farms! He wants to...
分类:
其他好文 时间:
2014-10-24 12:59:25
阅读次数:
224
本文翻译自:https://developer.android.com/training/basics/firstapp/index.html构建你的第一个应用(app)欢迎来到安卓开发!这个类别教你如何构建你的第一个应用。你讲会学到如何去创建一个安卓工程和启动一个可以调试的应用的版本。你将会学到一...
分类:
移动开发 时间:
2014-10-23 23:57:47
阅读次数:
406
题意 有n个空间站 接下n行依次输入n个空间站的x,y,z坐标和半径 求连接所有空间站总共至少要修多长的桥
也是裸的最小生成树 注意距离不会小于0 就是两个空间站相交的时候
#include
#include
#include
#include
using namespace std;
const int N = 105, M = 10050;
int par[N], n, m;
d...
分类:
其他好文 时间:
2014-10-23 12:37:36
阅读次数:
283
1.导出Xcode工程File->Building and setting,导出IOS工程(有错误会失败)2.运行Xcode工程,在Classes文件夹的UI文件夹里,早到UnityAppController+ViewHanding.mm3.在ShowGameUI()函数里进行编辑,这是个界面创建的...
分类:
其他好文 时间:
2014-10-22 17:30:21
阅读次数:
167
裸的凸包。。。(和旋转卡壳有什么关系吗。。。蒟蒻求教T T)话说忘了怎么写了。。。(我以前都是先做上凸壳再做下凸壳的说)于是看了下hzwer的写法,用了向量的点积,方便多了,于是果断学习(Orz)了!竟然比原作者要快T T 1 /***********************************...
分类:
其他好文 时间:
2014-10-22 12:24:17
阅读次数:
166
Imagine that you are in a building that has exactly n floors. You can move between the floors in a lift. Let's number the floors from bottom
to top with integers from 1 to n.
Now you're on the flo...
分类:
其他好文 时间:
2014-10-22 01:07:40
阅读次数:
217