题目链接:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3769
Diablo III
Time Limit: 2 Seconds Memory Limit: 65536 KB
Diablo III is an action role-playing video game. A fe...
分类:
其他好文 时间:
2014-05-18 18:40:35
阅读次数:
345
工作流就是工作流程的计算机化,即将工作流程中的工作在计算机中以恰当的流程进行表示并且实施计算。
工作流主要解决的问题时:为实现某个业务目标,多个参与者利用计算机按预先定义好的规则传递文档、信息和任务。
就是说多个人在一起合作干完某件事情
jBPM:java business procee managerment
jbpm使用规则:
编写流程定义、部署流程定义、启动流程实例...
分类:
其他好文 时间:
2014-05-18 14:59:03
阅读次数:
216
Activities 在系统中是以 activity 栈的形式被管理的。当一个新的 activity 启动时,它将会被放到栈的顶部并变成 running activity——上一个activity 会被至于它的下面,在新 activity 存在期间它都不会到前端来。
一个 activity 有四个重要的状态:...
分类:
其他好文 时间:
2014-05-18 14:24:10
阅读次数:
318
A、Choosing Teams
水题
#include
#include
using namespace std;
int main()
{
int n, k, ans, i, x;
scanf("%d%d",&n,&k);
ans = 0;
for(i=0; i<n; ++i)
{
scanf("%d",&x);...
分类:
其他好文 时间:
2014-05-18 10:53:23
阅读次数:
262
编程实现求一棵二叉树的最短树路径和最长树路径...
分类:
其他好文 时间:
2014-05-18 10:26:44
阅读次数:
253
工厂方法和原型模式一样,也是属于创建对象的设计模式。
官方定义:
“Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.”
...
分类:
其他好文 时间:
2014-05-18 06:37:51
阅读次数:
257
3SumClosest
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly one solution....
分类:
其他好文 时间:
2014-05-18 05:57:48
阅读次数:
244
在网上看到一篇总结的比较好的文章,就借鉴下来共享:
定义:定义一个用于创建对象的接口,让子类决定实例化哪一个类,工厂方法使一个类的实例化延迟到其子类。
类型:创建类模式
类图:
工厂方法模式代码
[java] view
plaincopy
interface IProduct {
public void...
分类:
其他好文 时间:
2014-05-18 04:04:00
阅读次数:
293
工厂模式是简单工厂的升级版,抽象工厂是工厂模式的升级版,简单工厂+抽象工厂是抽象工厂的升级版。知道了它们之间的宏观关系,下面我带它们从一次次蜕变了解它们为什么是这样的关系。...
分类:
其他好文 时间:
2014-05-18 03:56:50
阅读次数:
233
首先创建一个三角形类
class Triangle//三角形类
{
public:
void Setabc(double x, double y, double z);//置三边的值,注意要能成三角形
void Getabc(double *x, double *y, double *z);//取三边的值
double Perimeter(void);//计算三角形的周长
double ...
分类:
其他好文 时间:
2014-05-18 03:30:15
阅读次数:
337