码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
Depth-first Search(DFS)
There are generally two methods to write DFS algorithm, one is using recursion, another one is using stack. (reference from Wiki Pedia)Pseudocode for ...
分类:其他好文   时间:2014-06-13 08:39:34    阅读次数:218
SQL 专题实验
mergemerge into copy_emp ce using emp eon (ce.empno = e.empno)when matched then update set ename = e.enamewhen not matched then insert (em...
分类:数据库   时间:2014-06-13 07:05:32    阅读次数:207
NET调用Com组件事例
http://blog.csdn.net/shizhiyingnj/article/details/1507948在程序设计中,往往通过键盘的某个按键来完成相关操作! 下面就来说明如何实现:1.引入名称空间;using System.Runtime.InteropServices;(由于使用到API...
分类:Web程序   时间:2014-06-13 06:00:00    阅读次数:669
silverlight 的oob模式下,重启自身进程 killself
silverlight目前开发的应用,想做到系统内注销后自动重新启动下sllauncher.exe,实现方式是通过WMI的COM接口,获取到当前应用的执行命令行(CommandLine);并通过shell运行;代码如下:#region Using Sectionusing System;using ...
分类:Web程序   时间:2014-06-13 00:51:48    阅读次数:306
关于“Some characters cannot be mapped using "GB2312" character encoding. ”的问题
今天在做项目时,遇到了一个问题。因为是在别人做好的基础上改东西,所以,一些东西不能按照自己的变成习惯来。就比如,我创建项目习惯刚建完就设置字符的编码集为UTF-8,而人家的项目就未必是那样了。好了,废话不多了。问题如下:一个jsp页面(里面有Java代码)的编码集为GB2312,而我修改里面东西时死活不让我保存,一保存就提示“Some characters cannot be mapped usi...
分类:移动开发   时间:2014-06-10 19:26:26    阅读次数:538
poj-1151-Atlantis-线段树求面积并
很裸的线段树求面积并。 坐标需要离散化一下。 #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:1024000000,1024000000") using namespace std; #define maxn 11000 #define...
分类:其他好文   时间:2014-06-10 19:23:46    阅读次数:200
ACM:DAG上的动态规划------硬币问题
题目:有n种硬币,面值分别为V1,V2,...Vn,每种都有无限多。给定非负整数S,可以选用多少个硬币,使得面值之和恰好为S?输出硬币数目的最小值和最大值! 分析:我们把每种面值看作一个点!表示“还需要凑足的面值”,初始状态为S,目标状态为0。那么若当前状态在i,每使用一个硬币j,状态便转移到i-Vj。   代码: 记忆化搜索: #include #include using n...
分类:其他好文   时间:2014-06-10 18:45:32    阅读次数:315
银行卡的数字检测
业余瞎搞,废话少说,上代码:#pragma comment(lib, "libtesseract302.lib") #pragma comment(lib, "liblept.lib") #include #include #include #include #include #include using namespace std; cv::Mat image; stri...
分类:其他好文   时间:2014-06-10 18:17:02    阅读次数:376
Light 1289 LCM from 1 to n 素数筛选位优化
题目来源:Light 1289 LCM from 1 to n 题意:。。 思路:从1到n 打过某个数是以一个素数的几次方 那么答案就乘以这个素数 主要是筛选素数 存不下 位优化 一个整数32位标记32个数 内存缩小32倍 是学习别人的 #include #include #include #include using namespace std; const int maxn ...
分类:其他好文   时间:2014-06-10 18:05:45    阅读次数:250
Codeforces Round #249 (Div. 2) A - Queue on Bus Stop
水题#include #include #include using namespace std;int main(){ int n,m; cin >> n >> m; int cnt = 0, sum = 0; for(int i = 0 ; i > a; i...
分类:其他好文   时间:2014-06-10 16:38:18    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!