http://poj.org/problem?id=2299
给出n个数,每次只能交换两个相邻的数,问使得n个数有序最少需要交换多少次。
归并排序的模板,重在理解,小白书p144.
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include...
分类:
其他好文 时间:
2014-08-06 10:38:41
阅读次数:
234
给一个n,输出一个长度为n的字符串,使得串中任意相连四个字符组成的串不重复N (1 ≤ N ≤ 500000)...
分类:
其他好文 时间:
2014-08-06 10:38:31
阅读次数:
258
Python要想调用C语言写的动态连接库,不仅要兼容C接口的调用习惯,还需要兼容C语言的数据类型。幸运的是ctypes库已经做了这两方面的工作,以便调用动态连接库是非常方便的。在Hello World的程序里,这行代码编写如下:MessageBox = windll.user32.MessageBoxW从这行代码的简洁程度来看,是非常优美的。这种优美是由于ctypes库在背后做了非常多的工作,比如...
Description
In a few months the European Currency Union will become a reality. However, to join the club, the Maastricht criteria must be fulfilled, and this is not a trivial task for the countries...
分类:
其他好文 时间:
2014-08-06 10:38:11
阅读次数:
270
Inversion
Time Limit: 2000/1000 MS (Java/Others) Memory Limit:
131072/131072 K (Java/Others)
Problem Description
...
分类:
其他好文 时间:
2014-08-06 10:38:01
阅读次数:
211
Description
Linda is a teacher in ACM kindergarten. She is in charge of n kids. Because the dinning hall is a little bit far away from the classroom, those n kids have to walk in line to the dinnin...
分类:
其他好文 时间:
2014-08-06 10:37:51
阅读次数:
257
Description
Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.
The shores of Rellau Creek in central Loowater had always been a prime breeding ground for g...
分类:
其他好文 时间:
2014-08-06 10:37:41
阅读次数:
257
经常在PLSQL Developer的SQL窗口编写各种语句,当需要保存这些语句时,可以另存为文本文件,也可以复制后粘贴到Word文件中,放在Word文件中的好处是语句保留原来的格式,可以清楚的区分关键字、常数等,不过当语句中包含汉字时,粘贴到Word中语句汉字却显示不出来...
分类:
数据库 时间:
2014-08-06 10:37:31
阅读次数:
250
Description
In the German Lotto you have to select 6 numbers from the set {1,2,...,49}. A popular strategy to play Lotto - although it doesn't increase your chance of winning - is to select a subse...
分类:
其他好文 时间:
2014-08-06 10:37:11
阅读次数:
358
crm使用soap创建下拉框,crm创建下拉框...
分类:
其他好文 时间:
2014-08-06 10:37:01
阅读次数:
355
Nearest Common Ancestors
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 17818
Accepted: 9455
Description
A rooted tree is a well-known data structure in c...
分类:
其他好文 时间:
2014-08-06 10:36:41
阅读次数:
252
这个我就直接上代码了,最开始把“abc123“也算作合法的了,后来查了一下atoi的定义,把这种去掉了。
public class Solution {
public static int atoi(String inStr) {
long result = 0L;
/*
* 网上查了一下,atoi函数的定义是如果第一个非空格字符存在,是数字或者正负号则开始做类型转换,
*...
分类:
其他好文 时间:
2014-08-06 10:36:31
阅读次数:
193
从左向右扫一遍左括号的最大值,与最小值。
从右向左扫一遍右括号的最大值,与最小值。
比较最大值中的最小数与最小中的最大数看能否有交集,0个,1个或者多个。
Parenthese sequence
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total S...
分类:
其他好文 时间:
2014-08-06 10:36:21
阅读次数:
219
序:
本系列是以NeuralNetwork and Deep Learning书为基础,加上自己的见解写得,第一次写系列,不好之处,请指出哦!接下来我们会先对神经网络有一个介绍,好让大家明白神经网络是一个什么东西。为了更好的进行学习,在后面会以识别数字为引导,让我们循序渐进学习吧!
先说些有的没的吧!有时候你会不会觉得人的视觉系统在这个世界上,是多么伟大的杰...
分类:
其他好文 时间:
2014-08-06 10:36:01
阅读次数:
294