https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=475题意:求点1到2所有路径上最大边的最小值。解法:Kruskal按边值排序。直到1,2联通。代码:#include
#include
#include <algor...
分类:
其他好文 时间:
2015-08-08 19:58:43
阅读次数:
112
注册机下载
IntelliJ IDEA 14 注册机及源代码
程序源代码
IDEAKeyGen.java
FXMLDocumentController.java
FXMLDocument.fxml
参考文章
IntelliJ IDEA 14 注册码...
分类:
其他好文 时间:
2015-08-08 19:56:15
阅读次数:
168
HDU 4095 Y (树上计数问题)...
分类:
其他好文 时间:
2015-08-08 19:58:11
阅读次数:
85
/*
* 题目:题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,
问每个月的兔子总数为多少?
* 时间:2015年7月27日08:47:08
* 文件:lianxi01.cpp
* 作者:cutter_point
*/
#include
#include
using namespace std;
int...
分类:
其他好文 时间:
2015-08-08 19:55:43
阅读次数:
108
Pretty Poem
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Poetry is a form of literature that uses aesthetic and rhythmic qualities of language. There are many famous poets in the contem...
分类:
其他好文 时间:
2015-08-08 19:57:28
阅读次数:
120
三种常见模式:工厂模式,构造函数模式,原型模式
Object
创建对象常见的三种方式
window.onload=function(){
//工厂模式
function oj(){
var lio=new Object();
lio.name='lio';
...
分类:
Web程序 时间:
2015-08-08 19:56:22
阅读次数:
133
HDU - 3584
Cube
Time Limit: 1000MS
Memory Limit: 65536KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
Given an N*N*N cube A, whose elements are either ...
分类:
编程语言 时间:
2015-08-08 19:57:29
阅读次数:
131
一直对设计模式有一种敬畏之心,每次想要看设计模式的时候就会想到Erich Gamma,Richard Helm , Ralph Johnson, John Vlissides的黑皮《设计模式》,基本都望而止步,要把那本书看完可不是一时半会的,而且在没有项目经验的情况下,个人感觉基本都是纸上谈兵。今天在IBM Developerworks上看到一篇文章将PHP中常用的五种设计模式,感觉还不错,而且只有...
分类:
其他好文 时间:
2015-08-08 19:57:07
阅读次数:
131
写一个函数trans();
1 能够进行十进制转二进制
2 能够进行十进制转八进制
3 能够进行十进制转十六进制
4 封装函数
代码实现:
class ArraryTest {
public static void main(String[] args) {
int num=60;
String str_Bin=toBinary(num);
Str...
分类:
编程语言 时间:
2015-08-08 19:56:39
阅读次数:
142
There are a total of n courses you have to take, labeled from 0 to n
- 1.
Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as ...
分类:
其他好文 时间:
2015-08-08 19:54:17
阅读次数:
106
题目:数组中有一个数字出现的次数超过数组长度的一半,请找出这个数字。例如输入一个长度为9的数组{1,2,3,2,2,2,5,4,2}。由于数字2在数组中出现5次,超过数组长度的一半,因此输出2....
分类:
编程语言 时间:
2015-08-08 19:54:07
阅读次数:
134
HDU - 1556
Color the ball
Time Limit: 3000MS
Memory Limit: 32768KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a ...
分类:
编程语言 时间:
2015-08-08 19:54:39
阅读次数:
137
官网下载地址(30天免费试用):http://revealapp.com/作用:在 iOS 开发中,我们有时很希望有一款类似 Web 开发中的 UI Debug 工具(例如:Firebug),让我们能够实时查看 UI 的结构,还可以实时更改某个 UIView 的位置和大小的相关属性值查看效果。这里我...
分类:
其他好文 时间:
2015-08-08 19:54:42
阅读次数:
160
欢迎参加——每周六晚的BestCoder(有米!)欧拉回路Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10544Accepted Submiss...
分类:
其他好文 时间:
2015-08-08 19:55:43
阅读次数:
167
在自定义导航条左按钮的时候发现按钮的位置向右偏移,下面给出了解决方法// 设置导航条的左按钮 UIButton *leftButton = [UIButton buttonWithType:UIButtonTypeCustom]; leftButton.frame = CGRectMake(0,.....
分类:
其他好文 时间:
2015-08-08 19:52:53
阅读次数:
89
去官方网站下载Jar包:http://simplecaptcha.sourceforge.net/Javadocs:http://simplecaptcha.sourceforge.net/javadocs/index.html自己书写工具类:/** To change this license h...
分类:
编程语言 时间:
2015-08-08 19:54:38
阅读次数:
131
1、where型子查询(把内层查询结果当作外层查询的比较条件)#不用order by 来查询最新的商品select goods_id,goods_name from goods where goods_id = (select max(goods_id) from goods);#取出每个栏目下最新...
分类:
数据库 时间:
2015-08-08 19:54:32
阅读次数:
160