1.package test;
import java.util.Hashtable;
import java.util.Map;
public class test {
public static String change(String param){
param=null;
return param;
}
public static void main(String[] a...
分类:
编程语言 时间:
2014-07-24 23:11:24
阅读次数:
285
# include
# include
# include
using namespace std;
struct node
{
int t;
int v;
int yy;
};
struct node a[100010],b[100010];
bool cmp(node a1,node a2)
{
if(a1.t==a2.t)//先按时间从大到小
return a1.v>a2....
分类:
其他好文 时间:
2014-07-24 23:10:33
阅读次数:
238
http报错之return error code:401 unauthorized
根据HTTP返回码所表示的意思应该是未授权,没有输入账号和密码,因此解决方法就直接在HTTP包里面携带密码。
先利用shell产生user and password 的base64编码
将账号为admin,密码为admin的信息经base64编码为YWRtaW46YWRtaW4=。
$ ec...
分类:
其他好文 时间:
2014-07-24 23:03:23
阅读次数:
178
Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".算法思路:模拟二进制加法,跟十进制木有区别,将a,b转置(不转置的话,倒着...
分类:
其他好文 时间:
2014-07-24 22:57:23
阅读次数:
216
1.计算阶乘 通常你是这样写: def myfunc(n): i = 1 if n>1: i = n return n*myfunc(n-1) return n 当然也可以这么写:reduce (lambda x,y:x*y,rang...
分类:
其他好文 时间:
2014-07-24 22:46:43
阅读次数:
148
Two Sum Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of t...
分类:
其他好文 时间:
2014-07-24 22:32:52
阅读次数:
194
Angular对directive的定义是一段代码片段,你 可以用它来操作DOM使用directive可以实现事件的绑定module.directive( "addBookButton", [ 'Book', function( Book ) { return { restric...
分类:
其他好文 时间:
2014-07-24 22:17:12
阅读次数:
193
最大公约数:代码: 1 #include 2 #include 3 long long gcd(int x,int y ) 4 { 5 return (y==0)?x:gcd(y,x%y); 6 } 7 8 int main() 9 {10 int m,n;11 whi...
分类:
其他好文 时间:
2014-07-24 22:08:12
阅读次数:
178
Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m...
分类:
其他好文 时间:
2014-07-24 21:36:52
阅读次数:
172
一:主视图中调用子视图 在没有使用母版页的主视图中(也就是设置了layout为null的视图中),使用 Html.RenderPartial 可以调用分部视图(只调用视图,不调用action),并且使用 ViewData 来从主Action里面传值到主视图,或者是分布视图 最后生成的html如下 二...
分类:
Web程序 时间:
2014-07-24 21:20:53
阅读次数:
312