自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(40)
  • 收藏
  • 关注

转载 datatable 在表格内容添加超链接

aocolumeDef.这个里面去定义.return返回的字符串会代替原来cell里面的内容// 列默认参数 "aoColumnDefs": [ { "bVisible": false, "aTargets": [ 0 ] }, //隐藏第一列 第一列的值用于编辑或者删除 { "bSortable": false, "aTargets": [...

2015-08-15 10:12:00 469

转载 str.length() 与 str.getBytes().length

做项目的时候从后台去Str字符串,刚开始用的是str.length(),发现得不到完整的字符串,该用str.getBytes().length 才得到了完整的字符串,原因是两个函数计算含有中文字符串的长度是不一样的。转载于:https://www.cnblogs.com/T8023Y/p/4692610.html...

2015-07-31 16:55:00 160

转载 JS 解析服务端返回的json数组

从服务器端返回的json如下:{"idcNodeList":[{"nodeType":0,"nodeName":"测试节点1","nodeId":"BG1f3KrE-oKI0XSQI~~~","createTime":"2015-07-21 14:39:58.000+0800","updateTime":"2015-07-21 14:39:58.000+0800","changeTi...

2015-07-21 18:02:00 394

转载 JQuery 选择器处理特殊字符

在使用JS 选择器的时候,如果含有特殊字符,则选择器选择不了,比如:元素的Id为:QW~~,$("#QW~~"),这样是选择不了的,所以就要对特殊字符进行转义。JS转义函数如下:function escapeJquery(srcString) { // 转义之后的结果 var escapseResult = srcString; // javascript正则表达式...

2015-07-20 18:50:00 126

转载 opencv cvLoadImage()函数加载的时候,路径问题

//char* tem = (char*)pathOfImg.GetBuffer(pathOfImg.GetLength());opencv cvLoadImage()函数加载的时候。。。。。。。。。试了各种转化的函数什么的,都没有把路径弄对。最后下面的才正确。CString类型转化为const char*:CString filename;const char* ...

2014-07-02 21:15:00 298

转载 C++ 使用Json时,VS2010添加jsoncpp

一编译链接1在相应官网下载jsoncpp2解压得到jsoncpp-src-0.5.0文件3打开jsoncpp-src-0.5.0->makefiles->vs71->jsoncpp.sln4转换项目为VS2010格式5选择debug模式6在“解决方案资源管理器”中右击lib_json选择->仅...

2014-06-24 15:57:00 120

转载 JDK配置

        a.新建 JAVA_HOME          C:\Program Files\Java\j2sdk1.5.0(JDK的安装路径)        b.新建PATH           %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin        c.新建 CLASSPATH           .;%JAVA_...

2014-03-28 15:30:00 53

转载 搭建Android开发平台

最新基于adt-bundle-windows-x86的android开发环境搭建某系统要配套做一个android客户端,来一次android开发环境快速搭建,系统Win7,具体步骤如下:1、下载jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.html安装jdk,我的安装目录是C:\Java\j...

2014-03-04 23:05:00 57

转载 搭建好Android平台之后

这个目录下的png是在手机显示的图标这里目录下的有一张图片是安装包apk的图标。更换图标的时候,手机如果一直没有更新,需要重启。转载于:https://www.cnblogs.com/T8023Y/p/3579458.html...

2014-03-03 23:17:00 63

转载 Uva 11538 Chess Queen

DescriptionProblem AChess QueenInput:Standard InputOutput:Standard OutputYou probably know how the game of chess is played and how chess queen operates. Two chess qu...

2013-08-15 16:58:00 89

转载 poj 3080 Blue Jeans

DescriptionThe Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds of thousands of contributors to map how ...

2013-08-15 10:20:00 81

转载 字典树

又称单词查找树,Trie树,是一种树形结构,是一种哈希树的变种。典型应用是用于统计,排序和保存大量的字符串(但不仅限于字符串),所以经常被搜索引擎系统用于文本词频统计。它的优点是:利用字符串的公共前缀来节约存储空间,最大限度地减少无谓的字符串比较,查询效率比哈希表高。字典树与字典很相似,当你要查一个单词是不是在字典树中,首先看单词的第一个字母是不是在字典...

2013-08-13 14:50:00 96

转载 HDOJ 1671 Phone List

DescriptionGiven a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let's say the phone catalogue listed these numbers:...

2013-08-13 14:47:00 120

转载 UVA 11401 - Triangle Counting

DescriptionProblem GTriangle CountingInput:Standard InputOutput:Standard OutputYou are givennrods of length 1, 2…, n. You have to pick any 3 of them & buil...

2013-08-13 10:07:00 92

转载 CodeForces 236B Easy Number Challenge

DescriptionLet's denoted(n)as the number of divisors of a positive integern. You are given three integersa,bandc. Your task is to calculate the following sum:Find the...

2013-08-10 16:53:00 92

转载 poj 2955 Brackets

DescriptionWe give the following inductive definition of a “regular brackets” sequence:the empty sequence is a regular brackets sequence,ifsis a regular brackets sequence, then (s...

2013-08-10 15:57:00 70

转载 HDU 3790 最短路径问题

Description给你n个点,m条无向边,每条边都有长度d和花费p,给你起点s终点t,要求输出起点到终点的最短距离及其花费,如果最短距离有多条路线,则输出花费最少的。Input输入n,m,点的编号是1~n,然后是m行,每行4个数 a,b,d,p,表示a和b之间有一条边,且其长度为d,花费为p。最后一行是两个数 s,t;起点s,终点。n和m为0时输入...

2013-08-07 15:00:00 73

转载 畅通工程续

Description某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。现在,已知起点和终点,请你计算出要从起点到终点,最短需要行走多少距离。Input本题目包含多组数据,请处理到文件结束...

2013-08-07 14:01:00 54

转载 HDU 1896 六度分离

Description1967年,美国著名的社会学家斯坦利・米尔格兰姆提出了一个名为“小世界现象(small world phenomenon)”的著名假说,大意是说,任何2个素不相识的人中间最多只隔着6个人,即只用6个人就可以将他们联系在一起,因此他的理论也被称为“六度分离”理论(six degrees of separation)。虽然米尔格兰姆的理论屡屡应验,一直也有很...

2013-08-06 16:55:00 198

转载 HDU - 2544 最短路

Description在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?Input输入包括多组数据。每组数据第一行是两个整数N、M(N<=100,M<=10000),N表示成都的大街上有几...

2013-08-06 14:53:00 70

转载 Robberies

DescriptionThe aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because they become too greedy. He has decided to...

2013-08-05 16:30:00 69

转载 Big Event in HDU

DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College had ever been split into Computer College and Softwa...

2013-08-05 12:40:00 96

转载 UVA 562 Dividing coins

Dividing coinsIt's commonly known that the Dutch have invented copper-wire. Two Dutch men were fighting over a nickel, which was made of copper. They were both so eager to...

2013-08-05 11:04:00 98

转载 Little Rooks

DescriptionInspired by a "Little Bishops" problem, Petya now wants to solve problem for rooks.A rook is a piece used in the game of chess which is played on a board of square grids. A rook...

2013-08-03 16:02:00 67

转载 Bone Collector

DescriptionMany years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s , also he went to the grave...

2013-08-02 16:14:00 72

转载 Piggy-Bank

DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound Money (IBM). The...

2013-08-02 15:29:00 72

转载 0-1背包问题之——饭卡

电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售,每种菜可购买一次。已知每种菜的价格以及卡上的余额,问最少可使卡上的余额为多少。In...

2013-08-01 14:53:00 107

转载 Monkey and Banana

DescriptionA group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time, provide the monkey with some...

2013-07-30 16:17:00 81

转载 The Triangle

Description7 3 8 8 1 0 2 7 4 4 4 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route th...

2013-07-30 10:04:00 64

转载 Burning Midnight Oil

DescriptionOne day a highly important task was commissioned to Vasya — writing a program in a night. The program consists ofnlines of code. Vasya is already exhausted, so he works like ...

2013-07-29 16:18:00 100

转载 4 Values whose Sum is 0

DescriptionThe SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A x B x C x D are such that a + b + c + d...

2013-07-29 11:12:00 111

转载 Expanding Rods

When a thin rod of length L is heated n degrees, it expands to a new length L'=(1+n*C)*L, where C is the coefficient of heat expansion.When a thin rod is mounted on two solid walls and then ...

2013-07-29 09:41:00 71

转载 Radar Installation

DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar instal...

2013-07-27 17:00:00 58

转载 poj 2183 Bovine Math Geniuses

DescriptionFarmer John loves to help the cows further their mathematical skills. He has promised them Hay-flavored ice cream if they can solve various mathematical problems.He said to Bess...

2013-07-25 10:42:00 87

转载 Programmer, Rank Thyself

虽然没有A过去,但是自己学会了结构体的排序与运用。#include <iostream>#include <string>#include <algorithm>#include <iomanip>#include <cmath>using namespace std;structTeam{ in...

2013-07-25 09:41:00 81

转载 ZOJ 2165 Red and Black

1.采用dfs:#include <iostream>#include <cstdio>#include <cstring>#include <string>using namespace std;char map[25][25];int count = 1;int r,c;int dx[4] = {1,-1,0,0};int dy[4...

2013-07-24 14:17:00 82

转载 Maya Calendar

学会用字符数组来存。还有读取数据的细节。两个年对应的关系。#include <iostream>#include <cstring>#include <cstdio>#include <string.h>char Haab[20][10] = {"pop", "no", "zip", "zotz", "tzec", "xul...

2013-07-22 22:32:00 69

转载 ZOJ 1709 Oil Deposits

最主要的是分清楚从一个点遍历到周围的点,并且将遍历过的点做好标记。还有就是弄清楚分界。#include <iostream>using namespace std;char map[105][105];int n,m;int dy[10] = {-1,-1,-1,0,0,1,1,1};int dx[10] = {-1,0,1,-1,1,-1,0,1};int judge...

2013-07-21 21:06:00 72

转载 ACM:Protecting the Flowers

Farmer John went to cut some wood and leftN(2 ≤N≤ 100,000) cows eating the grass, as usual. When he returned, he found to his horror that the cluster of cows was in his garden eating ...

2013-07-19 09:02:00 78

转载 2013-7-18

Many graduate students of Peking University are living in Wanliu Campus, which is 4.5 kilometers from the main campus - Yanyuan. Students in Wanliu have to either take a bus or ride a bike to...

2013-07-18 09:08:00 68

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除