[root@192_168_1.79magent-0.5]$makegcc-Wall-O2-g-c-omagent.omagent.cgcc-Wall-O2-g-c-oketama.oketama.cgcc-Wall-O2-g-omagentmagent.oketama.o-leventketama.o:Infunction`create_ketama‘:/opt/root/magent-0.5/ketama.c:399:undefinedreferenceto`floorf‘collect2:ldretur..
分类:
其他好文 时间:
2015-06-02 20:19:39
阅读次数:
201
题意:建围墙将n个点围起来,围墙与点的距离不小于L,求围墙长度;思路:凸包周长+L为半径的圆周长;凸包即为覆盖一个点集所有点的最小区域;#include#include#include#includeusing namespace std;const double epsi=1e-10;const ...
分类:
其他好文 时间:
2015-05-31 01:17:23
阅读次数:
127
Repair the WallTime Limit : 5000/1000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 8Accepted Submission(s) : 3Font: Tim...
分类:
其他好文 时间:
2015-05-30 16:31:40
阅读次数:
111
Problem Description
Sakura has a very magical tool to paint walls. One day, kAc asked Sakura to paint a wall that looks like an M×N matrix. The wall has M×N squares in all. In the whole problem we den...
分类:
其他好文 时间:
2015-05-28 14:08:27
阅读次数:
89
1:新建文件 G++.sublime-build ,放置到 C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Packages 中,文件中的内容为:{
"cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}","-Wall" ],
"file_re...
分类:
编程语言 时间:
2015-05-28 09:38:13
阅读次数:
279
Perl 是 Practical Extraction and Report Language的缩写,它是由Larry Wall设计的,并由他不断更新和维护。
Perl 是解释运行的。一般Perl程序的第一行需注明自己是个Perl程序而不是shell程序
。
一般将下面的一行作为文件的第一行#!/usr/bin/perl可以在终端敲入 prel -v 查看是否有安装prel 。 wher...
分类:
其他好文 时间:
2015-05-25 22:33:24
阅读次数:
115
Problem Description
A number of rectangular posters, photographs and other pictures of the same shape are pasted on a wall. Their sides are all vertical or horizontal. Each rectangle can be partial...
分类:
其他好文 时间:
2015-05-25 16:42:55
阅读次数:
110
poj1113-Wall
Wall
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 31394
Accepted: 10610
Description
Once upon a time there was a greedy King w...
分类:
其他好文 时间:
2015-05-25 10:07:39
阅读次数:
147
Painter's ProblemTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 4839Accepted: 2350DescriptionThere is a square wall which is made of n*n sma...
分类:
其他好文 时间:
2015-05-22 10:57:52
阅读次数:
110
对于每个点有四个方向可以走,把墙两边的点对应墙的方向能不能走给预处理一下,用vis[x][y][0..3]表示点(x,y)的该方向可不可以走。
然后bfs就好了,记录路径就把每个结点的前一个点记录下来,递归输出就可以了。
#include
#include
#include
using namespace std;
int dx[]={0,0,1,-1};
int dy[]=...
分类:
其他好文 时间:
2015-05-18 22:59:33
阅读次数:
185