原题链接在这里:https://leetcode.com/problems/partition-equal-subset-sum/description/ 题目: Given a non-empty array containing only positive integers, find if t ...
分类:
其他好文 时间:
2017-09-29 09:56:03
阅读次数:
153
<html><head><title>会员信息登记表</title></head> <body> <div align="center"> <center> <table border="1" cellspacing="1" width="760" height="146"> <tr> <td wi ...
分类:
其他好文 时间:
2017-09-29 01:47:42
阅读次数:
161
package bianchengti; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; /* * 复制一个文件 */ public class FileCopy... ...
分类:
其他好文 时间:
2017-09-29 01:46:00
阅读次数:
189
题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=1626 题意: 有n个农场,坐标为(x[i],y[i])。 有m条原先就修好的路,连接农场(a[i],b[i])。 现在要修一些路(首尾连接两个农场,长度为欧几里得距离),使得所有农场互相连通 ...
分类:
其他好文 时间:
2017-09-29 01:44:31
阅读次数:
211
我们这里主要讲最常用的基于域名的虚拟主机的配置。 1.记事本打开hosts文件,该文件在:C:\ Windows\ System32\ drivers\etc这个文件夹下, 在文件内容的末尾写入如下内容: [plain] view plain copy 127.0.0.1(不可改) www.fang ...
遍历完V 1 后: [0 1 4 8 6 1000 1000 1000 1000]遍历完V 2 后: [0 1 4 8 5 11 1000 1000 1000]遍历完V 3 后: [0 1 4 7 5 8 11 14 1000]遍历完V 4 后: [0 1 4 7 5 8 10 14 1000]遍历 ...
分类:
其他好文 时间:
2017-09-28 22:23:09
阅读次数:
204
一对多关联(多对一): 数据库中customer表和order表的关系: 创建实体类: 创建映射文件: 创建配置文件: 查看并分析SQL语句: ...
分类:
Web程序 时间:
2017-09-28 22:21:36
阅读次数:
315
1.重定向是什么? 这里说的重定向是由http协议规定的一种机制。其工作流程如下所述。 (1)客户端发起http请求,访问服务器端组件。 (2)服务器端返回一个状态代码为302的响应结果。该代码的意思是让浏览器再访问另一个组件,响应结果中包含着访问新组件的url地址。新的访问组件可能在同一个应用中也 ...
分类:
其他好文 时间:
2017-09-28 21:37:59
阅读次数:
228
题目:http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1305 统计1和2的数量 1-1是2 1-x(不为1)是1 2-2是1 时间复杂度O(n) ...
分类:
其他好文 时间:
2017-09-28 21:37:32
阅读次数:
227
linux文件路径分隔符为 / ,windows的文件路径分隔符为 \ ,在开发项目过程中不确定用户使用何种操作系统,就需要自动适配路径。 目前已知java提供两种方法获取文件路径分割符: File.separator System.getProperty("file.separator") ...
分类:
编程语言 时间:
2017-09-28 20:48:55
阅读次数:
246