首页 > 其他
SPOJ #453. Sums in a Triangle (tutorial)
It is a small fun problem to solve. Since only a max sum is required (no need to print path), we can only keep track of the max value at each line. Ba...
分类:其他   时间:2014-02-09 16:33:46    收藏:0  评论:0  赞:0  阅读:457
对easyui datagrid组件的一个小改进
#对easyui datagrid组件的一个小改进##问题在实际项目中使用datagrid时,受版面限制,有时候表格不能太大,这时候表格里面的内容就不能完全显示,用户需要经常拖动调整列宽才能看完整![长度不足](http://images.cnitblog.com/blog/84053/201402...
分类:其他   时间:2014-02-09 16:33:36    收藏:0  评论:0  赞:0  阅读:417
Uva 11384 Help is needed for Dexter
给定一个1….n的正整数序列,每次操作可以从序列寻找出一个或多个正整数,然后同时减去一个相同的正整数。通过画图可以发现只要把后一半都减去n/2就和前一半一样了,所以有递推式 f(n )=f(n/2) + 1#include using namespace std;int f(int n) { ret...
分类:其他   时间:2014-02-09 16:33:26    收藏:0  评论:0  赞:0  阅读:336
IOS入门
http://blog.csdn.net/developer_jiangqq/article/details/12130799http://www.cocoachina.com/special/fornew.html
分类:其他   时间:2014-02-09 16:33:21    收藏:0  评论:0  赞:0  阅读:314
正则表达式
类:Regexhttp://msdn.microsoft.com/zh-cn/library/system.text.regularexpressions.regex%28v=vs.100%29.aspx命名空间:System.Text.RegularExpressions构造函数:Regex(st...
分类:其他   时间:2014-02-09 16:33:16    收藏:0  评论:0  赞:0  阅读:447
HDU 1195 Open the Lock
广搜……#include #include #include #include using namespace std; struct node { int num[4],step; }; node start,end; bool visit[10][10][10][10],flag; void b...
分类:其他   时间:2014-02-09 16:33:11    收藏:0  评论:0  赞:0  阅读:343
HDU 1983 Kaitou Kid - The Phantom Thief (2)
神题,搜索太差,来自网络的题解与程序思路: 封锁出口或者入口周围的格子.最多需要4个封锁点.所以我们可以采取这样的策略:1.寻找一条盗贼的可行路线,如果没有,返回0.2.计算封锁出口和入口四周需要的封锁点数量,取小的一个,假设是k,k #include #include #define FOR(i,...
分类:其他   时间:2014-02-09 16:33:06    收藏:0  评论:0  赞:0  阅读:367
visual studio更改文件编码
在用Visual Studio 2013做node.js开发时,遇到中文乱码问题,需要将GBK编码转成utf-8编码,之前一直用UltraEdit更改文件编码,但是每次改完,原本的中文变成了乱码,要手工改回来,太麻烦了,在网上找了下,发现可以直接在Visual Studio里面直接更改文件的编码,而...
分类:其他   时间:2014-02-09 16:33:01    收藏:0  评论:0  赞:0  阅读:298
UML类图基本元素符号
UML类图基本元素符号
分类:其他   时间:2014-02-09 16:32:56    收藏:0  评论:0  赞:0  阅读:358
HDU 1728 逃离迷宫
题解:记录转弯次数,直接广搜即可#include#includeusing namespace std;char map[102][102];int n,m,bx,by,ex,ey,k,mark[102][102];int dir1[4][2]={{1,0},{-1,0},{0,1},{0,-1}}...
分类:其他   时间:2014-02-09 16:32:51    收藏:0  评论:0  赞:0  阅读:312
poj 1986(LCA tarjan算法)
题目:给一棵带权树,然后让你求任意两点之间的距离。思路:tarjan一边dfs求出dis[i]每个点到根的距离,ans[i]第i组查询的lca。ans = dis[u]+dis[v]-2*dis[lca]。代码如下: 1 /**************************************...
分类:其他   时间:2014-02-09 16:32:41    收藏:0  评论:0  赞:0  阅读:350
JAVA排序算法
一、冒泡排序packagesort.bubble; importjava.util.Random; /** *依次比较相邻的两个数,将小数放在前面,大数放在后面 *冒泡排序,具有稳定性 *时间复杂度为O(n^2) *不及堆排序,快速排序O(nlogn,底数为2) *@authorliangge * ...
分类:其他   时间:2014-02-09 16:32:36    收藏:0  评论:0  赞:0  阅读:453
Event Handling Guide for iOS--(一)--About Events in iOS
About Events in iOSUsers manipulate their iOS devices in a number of ways, such as touching the screen or shaking the device. iOS interprets when and ...
分类:其他   时间:2014-02-09 16:32:26    收藏:0  评论:0  赞:0  阅读:406
环境配置与JBoss安装-EJB3.0入门经典学习笔记(1)
1. JDK的安装 1) 下载JDK 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html 2) 安装JDK 略;亦可拷贝已有的JDK安装目录到相关目录,再进行配置。 3) 配置环境变量 新建JAVA_HOME...
分类:其他   时间:2014-02-09 16:32:16    收藏:0  评论:0  赞:0  阅读:403
leetcode--Anagrams
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.public class Solution { public ArrayL...
分类:其他   时间:2014-02-09 16:32:01    收藏:0  评论:0  赞:0  阅读:301
wsdl中的数组类型
数组类型不属于xml schema的内置数据类型,在wsdl中,如果你要使用数组类型时,可以通过 "soapenc:Array"实现数组的使用.但是不能直接写,你的创建一个自定义的complex typehttp://www.phpeveryday.com/articles/Web-Services...
分类:其他   时间:2014-02-09 16:31:56    收藏:0  评论:0  赞:0  阅读:300
车牌号
1 /*描述 2 茵茵很喜欢研究车牌号码,从车牌号码上可以看出号码注册的早晚,据研究发现,车牌号码是按字典序发放的, 3 现在她收集了很多车牌号码,请你设计程序帮她判断注册较早的号码。车牌号码由5个字母或数字组成 4 输入 5 第一行是n,代表有n组数据,第二行是m,以下m行是m个车牌号码 6 其中...
分类:其他   时间:2014-02-09 16:31:46    收藏:0  评论:0  赞:0  阅读:408
C# XML 文档注释
原文链接:http://www.shinater.com/DocsBuilder/help.htmldescription描述类型或类型成员。description:对象的摘要。description添加有关某个类型的信息,从而补充由 所指定的信息。description:成员的说明。descrip...
分类:其他   时间:2014-02-09 16:31:41    收藏:0  评论:0  赞:0  阅读:278
Java利用while循环计算1+1/2!+1/3!……+1/20!
编写程序,用while语句计算1+1/2!+1/3!……+1/20!,并在控制泰山输出计算结果。要求1+1/2!+1/3!……+1/20!,其实就是求1+1*1/2+1*1/2*1/3+……+1*1/2*1/3*……*1/20。import java.math.BigDecimal;public c...
分类:其他   时间:2014-02-09 16:31:36    收藏:0  评论:0  赞:0  阅读:554
面试时如何做好5分钟自我介绍?
有简历,为何还要自我介绍?一个常规的面试,寒暄之后面试官提出的第一个问题几乎千篇一律:“请您简单地做一下自我介绍”。有些被面试者都会问:简历中情况已经写得很清楚了,这是否多此一举?要回答这个问题,首先搞清楚为什么面试官要请你做自我介绍?面试官通过自我介绍想考察被面试者什么?只有了解面试官的目的,被面...
分类:其他   时间:2014-02-09 16:31:31    收藏:0  评论:0  赞:0  阅读:305
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!