码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
POJ1836 Alignment 【LIS(二分)+枚举】
a1,a2,a3,a4,a5,a6...an 对ai求出a1到ai的lis,ai+1到an的lds 取所有ai对应的lis+lds最大值 输出n-lis-lds #include #include #include #include #include #include using namespace std; int n; double num[1111]; double up...
分类:其他好文   时间:2014-06-09 23:29:00    阅读次数:249
HDU 1754 I hate it 分段树Segment Tree题解
给出一段数据,然后要更新单个数据,会询问一段数据中的最大值。 又是一道分段树操作。渐渐熟手了。 #pragma once #include #include using namespace std; class IHateIt_1754_1 { static const int SIZE = 200001; int *segTree; //不要使用segTree[SIZE<<2]...
分类:其他好文   时间:2014-06-08 15:40:21    阅读次数:208
Light OJ 1278 Sum of Consecutive Integers N拆分成连续整数和
题目来源:Light OJ 1278 Sum of Consecutive Integers 题意:N拆分成连续整数和的方案数 思路:奇因数的个数 #include #include #include #include using namespace std; //筛素数 const int maxn = 10000010; bool vis[maxn]; int prime[10...
分类:其他好文   时间:2014-06-08 15:34:09    阅读次数:295
Recover Binary Search Tree
题目 Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straight forward. Cou...
分类:其他好文   时间:2014-06-08 15:32:45    阅读次数:245
iOS开发- 蓝牙后台接收数据(BLE4.0)
最近在做一个蓝牙相关的项目, 需要在应用进入后台, 或者手机属于锁屏状态的情况下, 仍然保持蓝牙连接, 并且能正常接收数据。本来以后会很麻烦, 但是学习了下..发现就2步而已。简单的不能再简单了。好了。下面是具体实现办法。1.在xxx-info.plist文件中, 新建一行  Required background modes  , 加入下面两项。App shares data using Cor...
分类:移动开发   时间:2014-06-08 15:12:13    阅读次数:310
刨根问底:C++中浮点型变量(float, double)的比较问题。
首先,让我们先来看一段代码: #include #include int main() { using namespace std; cout<<setprecision(17); float num1 = 1.1; double num2 = 1.1; if (num1 == num2) cout << "yes"<<endl; else cout <<...
分类:编程语言   时间:2014-06-08 15:07:36    阅读次数:250
Codeforces 439D Devu and his Brother 三分
题目链接:点击打开链接 = - =以前的三分姿势不正确居然没有被卡掉,,,太逗。。 #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define M 200004 #define N ...
分类:其他好文   时间:2014-06-08 15:04:12    阅读次数:338
微软企业库5.0 调用 MySql 分页存储过程
1.需要完成两个前置条件后才可以使用 微软企业库5.0 调用 MySql 存储过程 微软企业库5.0 支持 MySql MySql 分页存储过程 2.需要添加一个继承 IParameterMapper 接口的类分配查询参数 using System.Data; using System.Data.Common; using Microsoft.Practices.E...
分类:数据库   时间:2014-06-08 10:04:46    阅读次数:462
Spring MVC JSON自定义类型转换
类型有很多,这里只用日期为例说明。 在Spring MVC中存在两大类的类型转换,一类是Json,一个是带@RequestBody注解的转换。 JSON: 使用Json转换时,可以如下使用: public class Test { private Date createdate; @JsonSerialize(using = DateYMDHMS...
分类:编程语言   时间:2014-06-08 08:22:52    阅读次数:305
电子邮件的发送与接收实例
这个就不写很多不同类的属性和方法了。其中涉及的类有MailMessage类,SmtpClient类 其实可有还有相关的Attachment类:表示电子邮件的附件 以下就直接贴实例代码了: 一共三个窗体:Form1,frmSend,frmReceive 首先是Form1窗体: 后台代码: using System; using System.Collections...
分类:其他好文   时间:2014-06-08 05:02:33    阅读次数:160
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!