首页 > 其他
hdu 4815 Little Tiger vs. Deep Monkey
概率dp,有点像背包的做法;dp[i][j]代表前i个数组成的j数的概率为多少#include#include#define maxn 40009using namespace std;double dp[45][maxn];int s;double sco;int main(){ int t,n;...
分类:其他   时间:2014-02-19 18:44:57    收藏:0  评论:0  赞:0  阅读:359
15 things to talk about in a healthy relationship
15 things to talk about in a healthy relationship男女交往中可以谈论的15个话题 1. Your Daily Activities 1. 你的日常活动 All of your conversations don’t have to be earth s...
分类:其他   时间:2014-02-19 18:41:48    收藏:0  评论:0  赞:0  阅读:434
代码的抽象三原则
来源:阮一峰的博客软件开发是“抽象化”原则(Abstraction)的一种体现。所谓”抽象化”,就是指从具体问题中,提取出具有共性的模式,再使用通用的解决方法加以处理。开发软件的时候,一方面,我们总是希望使用别人已经写好的代码,另一方面,又希望自己写的代码尽可能重用,以求减少工作量。要做到这两个目标...
分类:其他   时间:2014-02-19 18:39:37    收藏:0  评论:0  赞:0  阅读:341
Delphi XE5教程9:基本语法元素
内容源自Delphi XE5 UPDATE 2官方帮助《Delphi Reference》,本人水平有限,欢迎各位高人修正相关错误!也欢迎各位加入到Delphi学习资料汉化中来,有兴趣者可QQ:34484690@qq.comFundamental Syntactic Elements第三章 基本语法...
分类:其他   时间:2014-02-19 18:37:48    收藏:0  评论:0  赞:0  阅读:339
[转]dip,px,pt,sp 的区别
dip: device independent pixels(设备独立像素).不同设备有不同的显示效果,这个和设备硬件有关,一般我们为了支持WVGA、HVGA和QVGA 推荐使用这个,不依赖像素。 px: pixels(像素).不同设备显示效果相同,一般我们HVGA代表320x480像素,这个用的比...
分类:其他   时间:2014-02-19 18:34:11    收藏:0  评论:0  赞:0  阅读:290
Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened tree should look like: 1 \ 2 \ 3 \ 4 \ ...
分类:其他   时间:2014-02-19 18:32:22    收藏:0  评论:0  赞:0  阅读:194
Best Time to Buy and Sell Stock III
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他   时间:2014-02-19 18:31:51    收藏:0  评论:0  赞:0  阅读:262
Best Time to Buy and Sell Stock II
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他   时间:2014-02-19 18:31:02    收藏:0  评论:0  赞:0  阅读:306
打开WIFI
其实打开WIFI和打开蓝牙差不多,只不过是在得到周围的WIFI于得到周围的蓝牙可不一样了,这里会用到ScanfReslut。代码其实没有什么多少: 首先是几个写着控件的布局文件: - 接下来就是他的java类:package cn.android.app;import android.app.Act...
分类:其他   时间:2014-02-19 18:30:38    收藏:0  评论:0  赞:0  阅读:283
Binary Tree Postorder Traversal
1 public class Solution { 2 public ArrayList postorderTraversal(TreeNode root) { 3 ArrayList res = new ArrayList(); 4 if(root==null) return res; 5 Tre...
分类:其他   时间:2014-02-19 18:28:27    收藏:0  评论:0  赞:0  阅读:210
Binary Tree Preorder Traversal
1 public class Solution { 2 public ArrayList preorderTraversal(TreeNode root) { 3 ArrayList res = new ArrayList(); 4 if(root==null) return res; 5 Tree...
分类:其他   时间:2014-02-19 18:28:51    收藏:0  评论:0  赞:0  阅读:323
Best Time to Buy and Sell Stock
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:其他   时间:2014-02-19 18:27:30    收藏:0  评论:0  赞:0  阅读:196
java模拟银行排队系统思路
有三种对应类型的客户:VIP客户,普通客户,快速客户 ,异步随机生成各种类型的客户,各类型客户在其对应窗口按顺序依次办理业务 。本系统一共要产生三个号码管理器对象,各自管理一类用户的排队号码。这三个号码管理器对象统一由一个号码机器进行管理,这个号码机器在整个系统中始终只能有一个,所以,它要被设计成单...
分类:其他   时间:2014-02-19 18:25:42    收藏:0  评论:0  赞:0  阅读:375
如何在 ETL 项目中统一管理上百个 SSIS 包的日志和包配置框架
一直准备写这么一篇有关 SSIS 日志系统的文章,但是发现很难一次写的很完整。因为这篇文章的内容可扩展的性太强,每多扩展一部分就意味着需要更多代码,示例和理论支撑。因此,我选择我觉得比较通用的 LOG 部分,在这里分享一下给大家,希望对大家在设计 ETL 的日志系统时有所启发和帮助。当然在这里要区分...
分类:其他   时间:2014-02-19 18:25:11    收藏:0  评论:0  赞:0  阅读:511
Word Break
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:其他   时间:2014-02-19 18:24:47    收藏:0  评论:0  赞:0  阅读:285
C# 面试宝典
1、简述private、protected、public、internal修饰符的访问权限。 private 私有成员 只有类成员才能访问 protected 保护成员 只有该类及该类的继承类才能访问 public 公共成员 没有访问限制 internal 只有当前程序集内才能访问2、ADO.NET...
分类:其他   时间:2014-02-19 18:23:30    收藏:0  评论:0  赞:0  阅读:551
C程序的存储空间布局
C程序在内存中由以下几部分组成:正文段:这是由CPU执行的机器指令部分,通常情况下,正文段是可以共享的,子进程和父进程会共同维护内存中的一个副本;另外,正文段一般也是只读的,以防止程序由于意外而修改其本身;同时其中包含了只读的常量,比如字符串常量等。初始化数据段,即数据段:它包含了程序中已初始化的全...
分类:其他   时间:2014-02-19 18:23:01    收藏:0  评论:0  赞:0  阅读:333
SELECT LOCK IN SHARE MODE and FOR UPDATE
Baronwrotenice article comparing locking hints in MySQL and SQL Server.In MySQL/Innodb LOCK IN SHARE MODE and SELECT FOR UPDATE are more than hints. B...
分类:其他   时间:2014-02-19 18:22:09    收藏:0  评论:0  赞:0  阅读:396
循环添加label并获取上传文件名字的扩展名和文件大小(后台只要获取的值只要传给label都可以正常显示)
前台 个数 获取的数值只要是传给label都可以正常显示 后台 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Session["demo"] ...
分类:其他   时间:2014-02-19 18:21:13    收藏:0  评论:0  赞:0  阅读:441
linux下改变文件的字符编码
首先确定文件的原始字符编码:$ file -bi test.txt然后用 iconv 转换字符编码$ iconv -f from-encoding -t to-encoding file > new-file如果上面的步骤更改不成功,可以使用 vim 来更改文件的字符编码先打开文件,然后设置文件的字...
分类:其他   时间:2014-02-19 18:20:42    收藏:0  评论:0  赞:0  阅读:421
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!