In Django parlance, a project is the final product,
and it assembles one or more applications together.Manage.py is a pointer back
to Django-admin.py ...
分类:
其他好文 时间:
2014-05-10 07:56:19
阅读次数:
480
/** * Created by rabbit on 2014-5-9. */ class
ArrayTest2 { public static void BubbleSort(int [] arr) //创建冒泡排序方法 { for (int
x=0;x<arr.length-1;x++) ...
分类:
编程语言 时间:
2014-05-10 06:39:45
阅读次数:
355
1、后台连接数据库,取到数据string sql =
".......................................";string one =
OracleHelperTools.ExecuteScalar(sql); //这里图省事用的oraclehelperstring fl...
分类:
Web程序 时间:
2014-05-10 06:15:07
阅读次数:
405
原题地址:http://www.cnblogs.com/x1957/p/3373994.html题意:Given
an array of integers, every element appearstwiceexcept for one. Find that single
one.要求:线性时间复...
分类:
编程语言 时间:
2014-05-10 05:22:27
阅读次数:
408
int BubbleSort(int a[]){ int length =
sizeof(a)/sizeof(int); int i,j; int temp; for(i = 0;i i;j--) { if(a[j] <
a[j-1]) { ...
分类:
其他好文 时间:
2014-05-10 03:24:40
阅读次数:
233
获取api的时候,获取回来的特殊对象
$eBayTime = $responseDoc->getElementsByTagName('Timestamp');
object(DOMNodeList) $eBayTime
这种对象,取长度 $eBayTime->length
取值 $eBayTime->item(0)
取值的对象是 object(DOMElement) $eBay...
分类:
其他好文 时间:
2014-05-09 22:07:07
阅读次数:
288
题意:
题意好复杂。。。
给定n个人,从左到右排好队。
他们依次从左到右离开队伍。
每个人有个权值d
当某个人是第k-th离开队伍的,那么不开心值为 d*(k-1)
有一个操作,对于一个子序列,可以把前面一段翻转。
问最小的不开心值和。
#include
#include
#include
#include
#include
#include
using namespace...
分类:
其他好文 时间:
2014-05-09 20:45:04
阅读次数:
288
/** * Created by rabbit on 2014-5-9. */ class
ArrayTest2 { public static void SelectSort(int [] arr) //定义选择排序的方法 { for (int
x=0;x<arr.length;x++) { .....
分类:
编程语言 时间:
2014-05-09 19:49:37
阅读次数:
236
a b
ab a ba
MDL(minimum description length,最小描述长度) 原理是 Rissane 在研究通用编码时提出的。其基本原理是对于一组给定的实例数据 D , 如果要对其进行保存 ,为了节省存储空间, 一般采用某种模型对其进行编码压缩,然后再保存压缩后的数据。同时, 为了以后正确恢复这些实例数据,将所用的模型也保存起来。所以需要保存的数据长度(...
分类:
其他好文 时间:
2014-05-09 15:03:18
阅读次数:
415
题目:
Description
People in Silverland use coins.They have coins of value A1,A2,A3...An Silverland dollar.One day Tony opened his money-box and found there were some coins.He decided to buy a very n...
分类:
其他好文 时间:
2014-05-09 15:00:55
阅读次数:
345