解题思路:
给出空间内的n个点,找出覆盖这n个点的最小球的半径。用模拟退火来做。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define LL long long
using namespace std;
const int MAXN ...
分类:
其他 时间:
2015-04-07 17:45:44
收藏:
0 评论:
0 赞:
0 阅读:
193
项目遇到jsp页面显示的效果需要修改,通过.css修改.jsp
需求是把grid panel往下移,这样美观一点。修改成下面这样:
通过审查元素确定这部分是。新建.css文件。
@CHARSET "UTF-8";
#topic-grid {
padding-top:36px;
}
在jsp文件中加上这句话,配置css文件路径。
这样css文件中的代码就会起效果了...
分类:
Web开发 时间:
2015-04-07 17:45:34
收藏:
0 评论:
0 赞:
0 阅读:
153
Description
An anagram of a string is any string that can be formed using the same letters as the original. (We consider the original string an anagram of itself as well.) For example, the string...
分类:
其他 时间:
2015-04-07 17:45:24
收藏:
0 评论:
0 赞:
0 阅读:
286
1,下载xig工具,xml-xig-0.1.1.jar可以到一下链接下载
2.编写schema文件,如下:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://my.soa.com"
targetNamespace="http://my.soa.com"
elementForm...
分类:
其他 时间:
2015-04-07 17:45:14
收藏:
0 评论:
0 赞:
0 阅读:
200
摘要:Spring的核心容器实现了Ioc,其目 的是提供一种无侵入式的框架。在本文中,首先讲解了Spring的基础bean的相关知识,然后介绍了Spring是如何对bean进行管理的。...
分类:
编程语言 时间:
2015-04-07 17:45:05
收藏:
0 评论:
0 赞:
0 阅读:
357
1,安装jdk,
去甲骨文网站下载jdk1.7.0_71.tar.gz
展开到/opt目录下
2,安装git-core
3,安装maven
下载链接:http://maven.apache.org/download.cgi
下载apache-maven-3.3.1-bin.tar.gz
展开到/usr/local下
4,配置路径
修改/etc/profile文件(sudo ged...
分类:
其他 时间:
2015-04-07 17:44:54
收藏:
0 评论:
0 赞:
0 阅读:
447
lua中的正则表达式,规则如图:
常用示例,代码如下:
-- 去掉首尾所有空格
function trim(s)
return (string.gsub(s, "^%s*(.-)%s*$", "%1"))
end
local s = " space "
local txt = trim(s)
print(string.len(s), string.len(txt))...
分类:
其他 时间:
2015-04-07 17:44:44
收藏:
0 评论:
0 赞:
0 阅读:
135
手机卫士-09
课1
回顾高级工具的短信备份 ToolsActivity.java(前台界面) smsBackupparser.java(后台逻辑) 备份短信是一个很耗时的操作,可能需要很长的时间 修改activity_tool.xml的进度条progressBar
<!-- <ProgressBar
android:id="@+id/pb"
style="?andr...
分类:
移动平台 时间:
2015-04-07 17:44:34
收藏:
0 评论:
0 赞:
0 阅读:
299
视频录像
根据两边轮子转动的速率不同,推算出转动的角度。包括原地旋转。
计算的原理和代码可以查看文章 ROS 教程之 navigation : 用 move_base 控制自己的机器人(2)...
分类:
其他 时间:
2015-04-07 17:44:24
收藏:
0 评论:
0 赞:
0 阅读:
943
模拟加简单的动态规划。...
分类:
其他 时间:
2015-04-07 17:44:14
收藏:
0 评论:
0 赞:
0 阅读:
132
NSOperationQueue的使用...
分类:
编程语言 时间:
2015-04-07 17:44:04
收藏:
0 评论:
0 赞:
0 阅读:
171
HDU4407Sum ( 容斥原理)...
分类:
其他 时间:
2015-04-07 17:43:54
收藏:
0 评论:
0 赞:
0 阅读:
98
(1) rewind() 函数
该函数将文件handle的指针设为文件流的开头,语法如下:
bool rewind(resource handle)
(2)fseek() 函数
fseek()函数实现文件指针的定位,语法如下:
int fseek(resource handle,int offset[,int whence])
handle 参数为要打开的文件
offset为指针位...
分类:
Web开发 时间:
2015-04-07 17:43:44
收藏:
0 评论:
0 赞:
0 阅读:
193
Description
A word cloud (or tag cloud) is a visual representation of textual data based on a weighted metric. In the above cloud (which is based on this year's list of Mid-Central teams), the fo...
分类:
其他 时间:
2015-04-07 17:43:34
收藏:
0 评论:
0 赞:
0 阅读:
386
今天,在开发过程中发现一个问题,在提交form表单时,有一个input一直不能被提交,后台一直报错!究其原因,是因为该input上设置了disabled属性。然而,有时我们又不得不设置某些元素为不可操作的,建议使用readonly替之。
一、readonly & disabled区别
readonly和disabled是用在表单中的两个属性,它们都能够做到使用户不能够更改表单域中的内容。
...
分类:
其他 时间:
2015-04-07 17:43:25
收藏:
0 评论:
0 赞:
0 阅读:
101
背景:wa~Tl~看来背包还是很欠缺啊~
思路1(1500ms):变形的01背包。把题目改为:选择一组HP和大于等于所需血量且这组物品的分数之和最小,即可。这里把HP看做cost,score看做weight。但是这个题有个特点是最后选择HP必须大于等于k,容易想到,最多我们会有k+10000(10000为单个物品的最大HP值)的HP值,所以我们有这样的转移方程:
for i 0....n
...
分类:
其他 时间:
2015-04-07 17:43:14
收藏:
0 评论:
0 赞:
0 阅读:
255
onFinishInflate() 当View中所有的子控件 均被映射成xml后触发
onMeasure(int, int) 确定所有子元素的大小
onLayout(boolean, int, int, int, int) 当View分配所有的子元素的大小和位置时触发
onSizeChanged(int, int, int, int) 当view的大小发生变化时触发
onD...
分类:
移动平台 时间:
2015-04-07 17:43:05
收藏:
0 评论:
0 赞:
0 阅读:
238
mysql> set password for root@localhost=password('12'); ----将主机地址为localhost用户名为root的密码改为12
Query OK, 0 rows affected (0.02 sec)...
分类:
其他 时间:
2015-04-07 17:42:54
收藏:
0 评论:
0 赞:
0 阅读:
190
把svn中的分支(branch)合并到主分支(trunk)
branch 和 trunk的代码同步至最新
选中trunk项目需要合并的代码(可以项目根目录、也可以是子目录或文件)
选择合并操作 ( team-->合并)
选择合并一个分支(reintegrate a branch)
填写需要合并的分支目录(reintegrate a branch)...
分类:
其他 时间:
2015-04-07 17:42:44
收藏:
0 评论:
0 赞:
0 阅读:
796
输入一个整数矩阵,计算位于矩阵边缘的元素之和.所谓矩阵边缘的元素,就是第一行和最后一行的元素以及第一列和最后一列的元素。
源代码:
#include
#include
int main()
{
int m,n;//矩阵的长和宽
int sum = 0;
printf("输入矩阵的长和宽\n");
scanf("%d%d",&m,&n);
int a[m][n];//存储矩阵的值...
分类:
其他 时间:
2015-04-07 17:42:34
收藏:
0 评论:
0 赞:
0 阅读:
738