首页 > 全部
CUGB图论专场:J - Transfer water(最小树形图)
这题和D题都是最小树形图,主要会处理数据,把所有的边的可能加入树形图,然后求出最小值。在输入数据处理的时候刚开始处理得不好,T了几发,然后改用初始化列表水过了,虽然还是1587ms这么多的时间…… #include #include #include #include #include #include #include #include #include #include...
分类:其他   时间:2014-02-05 00:42:11    收藏:0  评论:0  赞:0  阅读:386
将Intel集成显卡GMA HD4000驱动安装到FreeBSD系统
FreeBSD9.2下安装Intel GMA HD 4000集成显卡驱动。...
分类:其他   时间:2014-02-05 01:03:01    收藏:0  评论:0  赞:0  阅读:655
Android自定义View—滑动控件
MainActivity如下: package cc.testview4; import cc.testview4.SlideView.SwitchChangedListener; import android.app.Activity; import android.os.Bundle; /** * Demo描述: * 自定义滑动控件 * * 参考资料: * http://blog...
分类:移动平台   时间:2014-02-05 01:01:21    收藏:0  评论:0  赞:0  阅读:454
Android自定义View—滑动开关
MainActivity如下: package cc.testview3; import cc.testview3.SwitchView.SwitchChangedListener; import android.os.Bundle; import android.widget.Toast; import android.app.Activity; /** * Demo描述: * 自定义V...
分类:移动平台   时间:2014-02-05 01:40:31    收藏:0  评论:0  赞:0  阅读:541
图解redis
内容主要摘自redis设计与实现一书 图为visio所作,如若想要原vsd文件以便编辑,可留言留下邮箱...
分类:其他   时间:2014-02-05 01:18:51    收藏:0  评论:0  赞:0  阅读:326
Android自定义View—带有删除按钮的EditText
MainActivity如下: package cc.textview5; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; impo...
分类:移动平台   时间:2014-02-05 01:17:11    收藏:0  评论:0  赞:0  阅读:508
设计模式(9) 装饰器模式(DECORATOR)
问题聚焦: 有时候,希望某个类增加新功能的时候,往往会生成一个子类。 但是,这种方式有时候略显臃肿,其次,这种方法是静态的,不够灵活。 因此,针对这种给对象动态添加功能的需求,大牛们给出了本节的装饰器模式。...
分类:其他   时间:2014-02-05 01:42:11    收藏:0  评论:0  赞:0  阅读:338
topcoder srm607 div2
250pt: 题目: Problem Statement   Andrew drew a bunch of points on a sheet of graph paper. You are given the coordinates of these points in two vector s: X and Y. That is, for eac...
分类:其他   时间:2014-02-05 00:38:51    收藏:0  评论:0  赞:0  阅读:375
USACO Sorting a Three-Valued Sequence
Sorting a Three-Valued Sequence  IOI'96 - Day 2 Sorting is one of the most frequently performed computational tasks. Consider the special sorting problem in which the records to be sorted have at ...
分类:其他   时间:2014-02-05 01:37:11    收藏:0  评论:0  赞:0  阅读:426
HreoWinGauge2.0组件集应用示例----数据输入输出
HreoWinGauge2.0 试用版下载地址:http://download.csdn.net/source/6896899          HreoWinGauge中包含一个功能齐全的数据处理模块,具有对数据进行输入输出、记录、回放、数学计算等处理功能。具体介绍参考《HreoWinGauge2.0组件集使用手册》。本示例将演示如何应用数据处理模块的输入输出、数学计算功能。   (1)...
分类:Windows开发   时间:2014-02-05 00:59:41    收藏:0  评论:0  赞:0  阅读:501
设计模式之简单工厂模式
所谓简单工厂模式其实就是把一些类进行包装,封装在一起,用到哪一个类的时候在实例化哪一个类。举个简单的例子就像家中的电视机,电视机上面有很多按钮,其中有菜单,有调节屏幕明亮程度的,有调节音量大小的。这些每一个按钮都会完成一个功能,而将这些封装起来的就是电视机,利用函数,通过参数的不同而返回不同的实例化对象。用代码表示则如下: //功能选择类 ClassFunctionChoice { Publi...
分类:其他   时间:2014-02-05 00:45:31    收藏:0  评论:0  赞:0  阅读:338
在mybatis中遇到奇怪的问题
用mybatis执行 SQL 语句,没有用参数绑定: update t_user set name='demo' where id=1 竟然报错: Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE value: 'f4a8ce9f-8546-43ad-9133-9f...
分类:其他   时间:2014-02-05 01:36:21    收藏:0  评论:0  赞:0  阅读:388
HreoWinGauge2.0组件集应用示例----数据处理
HreoWinGauge2.0 试用版下载地址:http://download.csdn.net/source/6896899          HreoWinGauge中包含一个功能齐全的数据处理模块,具有对数据进行输入输出、记录、回放、数学计算等处理功能。具体介绍参考《HreoWinGauge2.0组件集使用手册》。本示例将在上一节数据输入输出示例的基础上,演示如何应用数据处理模块的记录、...
分类:Windows开发   时间:2014-02-05 01:49:41    收藏:0  评论:0  赞:0  阅读:446
UiButton操作
UIButton继承自UIView,虽然界面上的组件都继承自UIView,如果这个组件拥有丰富的事件那么肯定就要继承自UiView的一个子类UIControl,那么像UILable、UIImage这些轻量级组件都没有继承这个类,所以他们拥有的事件操作很少。 初始化一个Button -(void) initWithRedBlock{     //初始化块    ...
分类:其他   时间:2014-02-05 00:44:41    收藏:0  评论:0  赞:0  阅读:426
POJ 2486 经典树形dp
Apple Tree Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 6654   Accepted: 2197 Description Wshxzt is a lovely girl. She likes apple very much. One day HX tak...
分类:其他   时间:2014-02-05 00:53:51    收藏:0  评论:0  赞:0  阅读:366
欧几里得算法
x*a=1(mod n) , 转换成x*a + n * y  = 1的形式,进行求解即可 // File Name: 1092.cpp // Author: bo_jwolf // Created Time: 2014年02月04日 星期二 15时30分26秒 #include #include #include #include #include #include #include #inc...
分类:其他   时间:2014-02-05 00:43:51    收藏:0  评论:0  赞:0  阅读:373
USACO Ordered Fractions
就是法雷数列。。。 Ordered Fractions Consider the set of all reduced fractions between 0 and 1 inclusive with denominators less than or equal to N. Here is the set when N = 5: 0/1 1/5 1/4 1/3 2/5 1/2...
分类:其他   时间:2014-02-05 00:57:11    收藏:0  评论:0  赞:0  阅读:352
UML—交互图
一,交互图   交互图用来描述系统中的对象是如何进行相互作用的。即一组对象是如何进行消息传递的。   交互图可用两种方式描述: 强调消息的时间顺序。 强调发送和接受消息的对象的结构组织。  交互图包括:        顺序图:强调消息的事件顺序 合作图:强调对象之间的交互关系 二,顺序图 1,什么是顺序图?   顺序...
分类:其他   时间:2014-02-05 00:56:21    收藏:0  评论:0  赞:0  阅读:441
vector的简单用法
vector是C++中容器的一种,与普通的数组相比,它可以动态的增长,而且还有封装了用于顺序表的操作的方法。 使用vector定义了容器之后,如果定义了容器的大小,则可以在大小范围之内直接使用数组的方式进行访问。 #include #include using namespace std; int main() { vector a(10); for(int i=0;i<10;i++)...
分类:其他   时间:2014-02-05 01:03:51    收藏:0  评论:0  赞:0  阅读:355
UML之用例图
1、用例图简介     在UML实践中,用例图(Usecasediagrams)就是软件外部特性描述的视图,是以用户的角度、以一种可视化的方式来描述软件产品的需求,分析软件的功能和行为;用例图强调系统“是什么”。 2、用例图设计三要素   参与者(Actor)、用例(UseCase)、关系。      (1)、参与者(Actor)                表示与你的应...
分类:其他   时间:2014-02-05 01:15:31    收藏:0  评论:0  赞:0  阅读:385
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!