考察DFS的应用,判断两个数的因子。 1 #include 2 3 int f1,f2; 4 5 void DFS(int m,int n,int k){ 6 if(n==1){ 7 f2=1; 8 if(m==1) 9 f1=1...
分类:
其他好文 时间:
2014-09-29 23:59:11
阅读次数:
146
1.被简化之前对已LogHelper,形如:public static void WriteError(string className,string methodName,string message){ //...}public static void WriteDebug(string ...
分类:
其他好文 时间:
2014-09-29 22:58:31
阅读次数:
179
经典入门题中文题...题意略...数据小 可以单点更新 区间求和 1 #define lson l, m, rt>1;16 build(lson);17 build(rson);18 pushup(rt);19 }20 void update(int p, int add, ...
分类:
其他好文 时间:
2014-09-29 22:36:31
阅读次数:
202
直接上代码Filter.javapublic interface Filter { //过滤器 public void doFilter(Request request,Response response,FilterChain chain);}FilterChain.javapubli...
分类:
其他好文 时间:
2014-09-29 20:44:01
阅读次数:
163
1、隐藏软键盘1 private void hideSoftInput(){2 // 隐藏软键盘3 InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_...
分类:
其他好文 时间:
2014-09-29 20:00:52
阅读次数:
159
using System;using System.Collections.Generic; class Program{ static void Main(string[] args) { string[] floors ={ "第3楼", "第2楼", "第11楼" }...
分类:
其他好文 时间:
2014-09-29 20:00:12
阅读次数:
169
第一步,上次文件并保存到服务器目录下 /// /// 上传压缩文件 /// protected void UploadZip() { //定义上传文件暂存目录 string uploadDic = @"C:\Test\"; /...
分类:
其他好文 时间:
2014-09-29 19:55:51
阅读次数:
188
一、桶排序(1)算法描述:假设数组元素值的范围是0~n-1。我们需要N个标记为0,1,2,...,n的桶。如果元素的值是i,那么就将该元素放入桶i中。然后将0~n-1号桶中的元素放回原数组,即可得到从小到大的序列。public static void bucketSort(E[] list){//l...
分类:
其他好文 时间:
2014-09-29 19:42:52
阅读次数:
225
插空法 大组合数取余
#include
#include
using namespace std;
typedef long long LL;
//求整数x和y,使得ax+by=d, 且|x|+|y|最小。其中d=gcd(a,b)
void gcd(LL a, LL b, LL& d, LL& x, LL& y)
{
if(!b)
{
d = a;
x = 1;
y = ...
分类:
其他好文 时间:
2014-09-29 19:37:31
阅读次数:
218
———Java培训、Android培训、iOS培训、.Net培训、期待与您交流! ———使用多态的好处 如果函数\方法的参数是父类类型,那么父类、子类对象都可以传入。 1 #import 2 //Animal类 3 @interface Animal : NSObject 4 - (void)e.....
分类:
其他好文 时间:
2014-09-29 19:22:58
阅读次数:
217