string的总结charat用法:n = String.charAt(string, index);传入的是一个字符串和一个数字;列:var a = String.charAt("world",2);var b = String.charAt("world",0);var c = String.c...
分类:
其他好文 时间:
2015-07-13 22:22:37
阅读次数:
100
题意:一个矩阵n*m,其中有k个房子和k个人,k个人分别必须走到任意一个房子中(匹配),但是权值就是长度(非欧拉距离),求匹配完的权之和。思路:我想做的只是简单的最小费用最大流,却搜到这个题,硬上吧。 建图方法是,首先将k个人和k个房子分别抽出来到集合X和Y中,计算两两之间的距离,X到Y有一条边,....
分类:
其他好文 时间:
2015-07-13 22:20:49
阅读次数:
179
list列表,list是一种有序的集合,可以随时添加和删除其中的元素,L=[]索引从0开始,第一个元素的索引是0,第二个是1,倒数第一个是-1,倒数第二个是-2,以此类推,使用索引,不要越界append()总是把新的元素添加到list的尾部,书写L.append()insert()接受两个参数,一是...
分类:
其他好文 时间:
2015-07-13 22:20:55
阅读次数:
120
Question:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ......
分类:
其他好文 时间:
2015-07-13 22:18:59
阅读次数:
103
//普通函数重载绑定void print1(){ std::cout fn = std::bind((void (*)())print1);fn();std::function fn1 = std::bind((void(*)(int v))print1, std::placeholders::_....
分类:
其他好文 时间:
2015-07-13 22:20:05
阅读次数:
119
题目描述: 给定一个包含多个正数的set容器和目标值target,从set中找出sum等于target的组合,同样的数可以使用多次。例如 set 为 [2,3,6,7]并且target为7,结果为 [7] [2,2,3].分析:我们先将集合排序,将sum初始化为0,从最小的数开始,将其加到sum上,...
分类:
其他好文 时间:
2015-07-13 22:18:47
阅读次数:
95
Set8087CWThis example accesses the Floating Point Unit (FPU) control register. Try turning floating point exceptions off and on and dividing a number ...
分类:
其他好文 时间:
2015-07-13 22:17:19
阅读次数:
195
微软官方例子地址:http://www.asp.net/signalr/overview/getting-started/tutorial-getting-started-with-signalr-and-mvc1、作用: 服务器端推送信息或数据到客户端,比如:你在数据库中新增了一条数据,如果客户....
分类:
其他好文 时间:
2015-07-13 22:16:41
阅读次数:
121
#include int newcoder(int n){ if (n==0) { return 7; }else if(n==1) { return 11; } else return newcoder(n-1)+newcoder(n-2)...
分类:
其他好文 时间:
2015-07-13 22:15:12
阅读次数:
93
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".public class Solution { public String addBin...
分类:
其他好文 时间:
2015-07-13 22:15:12
阅读次数:
114
选择文件夹,路径选择,SelectDirectory#include "FileCtrl.hpp" const SELDIRHELP = 1000;void __fastcall TForm1::Button1Click(TObject *Sender){ String Dir = "C:\\Pr....
分类:
其他好文 时间:
2015-07-13 22:14:36
阅读次数:
94
4之前听 陈越 的《绿野仙踪》 版权声明:本文博客原创文章,博客,未经同意,不得转载。
分类:
其他好文 时间:
2015-07-13 22:14:47
阅读次数:
100
安全性:有多项研究表明夏枯草能导致不良反应。夏枯草的乙醇提取液能抑制小鼠的细胞和体液免疫反应。皮下注射可使动物胸腺、脾脏明显萎缩,肾上腺明显增大;腹腔注射可使血浆皮质醇水平明显升高,外周血淋巴细胞数量明显减少。表明夏枯草可能是一种免疫抑制剂,长期或大量服用能使机体的免疫功能受到抑制。服用夏枯草水提物...
分类:
其他好文 时间:
2015-07-13 22:16:05
阅读次数:
168
.h//// MyFunction.h// C9_结构体指针//// Created by dllo on 15/7/10.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import // 结构体// 学生:姓名,年龄,性别,成...
分类:
其他好文 时间:
2015-07-13 22:13:55
阅读次数:
93
组合模式将对象组合成树形结构以表示部分整体的层次结构。组合模式使得用户对单个对象和组合对象的使用具有一致性。Componentpackage com.hml.combination;public abstract class Component { private String nam...
分类:
其他好文 时间:
2015-07-13 22:13:50
阅读次数:
111
SetEnumPropvoid __fastcall TForm2::Button1Click(TObject *Sender){ //Getting the current color of the workspace String currentPropColor = GetEnum...
分类:
其他好文 时间:
2015-07-13 22:14:01
阅读次数:
92
【了解】10-枚举类型介绍及定义 枚举类型: C语言提供了一个种类型,这种类型的变量的取值被限定在一定的范围之内了 枚举类型的定义: enum 枚举类型名{ 枚举值1,枚举值2,.... }; 举例: 定义一个变量,保存一周的...
分类:
其他好文 时间:
2015-07-13 22:13:40
阅读次数:
113