自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(112)
  • 收藏
  • 关注

转载 Eclipse上安装GIT插件EGit及使用

转载:http://yufenfei.iteye.com/blog/1750124转载于:https://www.cnblogs.com/ghostTao/p/4607765.html

2015-06-29 16:24:00 176

转载 微信开发资料

site:pan.baidu.com 指定的网盘http://blog.csdn.net/yijincoldplay/article/details/9289335 开发接入http://www.daxueit.com/book-12/85-194/content.html 教学资源下载http://www.cnblogs.com/xishuai/p/3625859....

2015-06-03 08:42:00 155

转载 .NET微信公共平台开发总结

转载:http://jingyan.baidu.com/article/d3b74d64abc16b1f77e609bb.htmlhttp://fhx900808.blog.163.com/blog/static/2099660212013423113226312/转载于:https://www.cnblogs.com/ghostTao/p/4546122.html...

2015-06-02 12:53:00 177

转载 微信公众帐号消息帐号

转载:http://blog.csdn.net/hougelou/article/details/8462364http://zhidao.baidu.com/link?url=JUeVPezJ992XFaDTlc2K9MMTOodjn6MNbl0S8EMfAytOJz0biqRAwgjfz4qwZmgqMPh6rKfZQXKBX9PzkjEC0K转载于:https://w...

2015-06-02 12:52:00 80

转载 申请微信公众平台接口测试帐号

转载:http://jingyan.baidu.com/article/1e5468f92b2d09484961b7c4.html转载于:https://www.cnblogs.com/ghostTao/p/4525946.html

2015-05-24 15:56:00 152

转载 C#第一个简单小程序——计算机

1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text;...

2015-05-03 20:29:00 463

转载 C#连接数据库的三种方法

第一种方法:直接通过数据库的用户名、密码等连接到数据库进行数据库连接。第二种方法:通过ConfigurationManager.ConnectionString获取数据库的配置信息。进行数据库的连接。第三种方法:用工厂方法。转载:http://blog.csdn.net/shadowyelling/article/details/6606973转载于:https://ww...

2015-05-03 13:41:00 162

转载 远程控制mysql出现的问题

转载:http://blog.csdn.net/zhengnz/article/details/6308773转载于:https://www.cnblogs.com/ghostTao/p/4423366.html

2015-04-13 21:39:00 62

转载 DFS_子集

1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cstdlib> 5 #include <algorithm> 6 #include <vector> 7 #define sc(x)...

2015-04-10 18:59:00 77

转载 DFS_全排列

1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cstdlib> 5 #include <algorithm> 6 #include <vector> 7 #define sc(x)...

2015-04-10 18:39:00 62

转载 DFS_组合序列

1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cstdlib> 5 #include <algorithm> 6 #include <vector> 7 #define sc(x)...

2015-04-10 18:29:00 184

转载 DFS 注意点

1、打表问题 1 //1364495 2009-05-13 20:42:44 Time Limit Exceeded 2212 2000MS 232K 426 B C++ Wpl 2 3 //1364655 2009-05-13 21:03:44 Accepted 2212 0MS 204K 299 B C++ Wpl 4 5 /*For exampl...

2015-04-09 16:28:00 96

转载 DP3_最长公共子序列

1 using System; 2 namespace ConsoleApplication2 3 { 4 public class Program 5 { 6 static int[,] martix; 7 8 static string str1 = "cnblogs"; 9 ...

2015-04-09 13:33:00 103

转载 联想笔记本电脑怎么设置才能不要按功能键Fn

thinkpad E431是同时按住Fn和Esc(先Fn再Esc),就可以在按功能键时需要Fn和不需要Fn之间切换转载:http://zhidao.baidu.com/link?url=OFVL1bUt72q-xzZtdniFkX1qT3XQUivPdOi7mfm2nYzHkJdTmOZjfk2F_oHmlEKBF-uxs1fRtDw-9OiG5QI76a转载于:https://...

2015-04-08 14:11:00 851

转载 DP2_第K优解

转载:http://m.blog.csdn.net/blog/a511310132/13465985对于求次优解、第K优解类的问题,如果相应的最优解问题能写出状态转移方程、用动态规划解决,那么求次优解往往可以相同的复杂度解决,第K优解则比求最优解的复杂度上多一个系数K。其基本思想是将每个状态都表示成有序队列,将状态转移方程中的max/min转化成有序队列的合并。这里仍然以01背包为例...

2015-04-08 07:33:00 70

转载 DP1

View Code 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 using namespace std; 6 const int MAX = 1000; 7 int N, w...

2015-04-07 18:18:00 90

转载 算法第一讲_动态规划

转自follow your hearthttp://www.cnblogs.com/kkgreen/archive/2011/06/26/2090702.html练题场所:http://m.blog.csdn.net/blog/xiao_code_or_code/26282633转载:http://blog.csdn.net/woshioosm/article/details/7...

2015-04-07 16:04:00 79

转载 CodeForces 487A Fight the Monster

1 #include<iostream> 2 #include<cstdio> 3 using namespace std; 4 int judge(int hy,int ay,int dy,int hm,int am,int dm)//计算特定的攻击与防御之下,需要加多少hp 5 { 6 if(am <= dy) ...

2015-04-06 15:17:00 111

转载 HDU 2899 Strange fuction

1 #include <iostream> 2 #include <cstdio> 3 #include <cmath> 4 #define sc(x) scanf("%d",&(x)) 5 #define sc1(x) scanf("%lf",&(x)) 6 #define pf(x) printf("%...

2015-04-06 12:32:00 51

转载 lower_bound() 与 upper_bound()

#include <iostream>#include <algorithm>//必须包含的头文件using namespace std;int main(){int point[10] = {1,3,7,7,9};int tmp = upper_bound(point, point + 5, 7) - point;//按从小到大,7最多能插入数组poin...

2015-04-05 22:03:00 53

转载 CodeForces 484B Maximum Value

1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 #include <vector> 6 #define sc(x) scanf("%d", &x) 7 #de...

2015-04-05 22:00:00 98

转载 UVA 714 Copying Books

给你m本书,每本a[i]页(0<=i<m),把他们分成k个区间,使这k个区间和的最大值最小。。我们可以先找到这m本书的最大页数max, 和所有书的页数和sum,则这k个区间中 每个区间的区间和一定在[mmax,sum]中,(即分为m个区间,我们要的结果就是这m个数中的最大值,如果分为一个区间,结果就是所有数的页数和)我们可以用二分先找到这个值(最大值中最小的数),判定...

2015-04-05 16:38:00 80

转载 inline函数

比如 int g(int x) { return x + x; } int f() { return g(); } 这样f会调用g,然后g返回x + x给f,然后f继续把那个值返回给调用者。 如果g是inline的话。f会被直接编译成。 int f() { return x + x; } 相当于把g执行的操作直接融合到f里。这样减少了调用g消耗的时间,但同时也增大了f的尺寸。 这就是in...

2015-04-05 15:51:00 67

转载 vector

主要是对于动态数组vector的用法1 基本操作(1)头文件#include<vector>.(2)创建vector对象,vector<int> vec;(3)尾部插入数字:vec.push_back(a);(4)使用下标访问元素,cout<<vec[0]<<endl;记住下标是从0开始的。(5)使用迭代器访问元素....

2015-04-05 15:20:00 52

转载 UVA 10602 EDITOR NOTTOOBAD

1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 #include <vector> 6 #define sc(x) scanf("%d", &x) 7 #de...

2015-04-05 14:41:00 70

转载 UVA 10718 Bit Mask

1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 #define sc3(x,y,z) scanf("%lld%lld%lld", &x, &y, &z) 6 ...

2015-04-05 12:44:00 57

转载 UVA 10026 Shoemaker's Problem

1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #define sc(x) scanf("%d",&x) 5 #define sc2(x,y) scanf("%d%d", &x, &y) 6 #def...

2015-04-04 23:06:00 92

转载 UVA 10700 Camel trading

1 #include <iostream> 2 #include <cstdio> 3 #include <stack> 4 #define sc(x) scanf("%d",&x) 5 #define sc1(x) scanf("%lld",&x) 6 #define pf(x) pri...

2015-04-04 19:22:00 92

转载 优先队列

1 #include<iostream> 2 #include<cstdio> 3 #include<queue> 4 #include<vector> 5 using namespace std; 6 7 //定义比较结构 8 struct cmp1 9 { 10 ...

2015-04-04 19:02:00 96

转载 UVA 10954 Add All

1 #include <iostream> 2 #include <cstdio> 3 #include <vector> 4 #include <algorithm> 5 #define sc(x) scanf("%d",&x) 6 #define pf(x) printf("%d\n", x) ...

2015-04-04 16:43:00 67

转载 POJ 3069 Saruman's Army

1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #define sc(x) scanf("%d",&(x)) 5 #define sc2(x,y) scanf("%d%d", &(x), &(y)) 6 #defi...

2015-04-04 15:18:00 59

转载 UVA 10905 Children's Game

1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 1010 1111 1212 1313 1414 1515 1616 1717 1818 1919 2020 2121 2222 2323 2424 2525 #include <iostream>2...

2015-04-01 18:36:00 80

转载 sort

qsort():原型:_CRTIMP void __cdeclqsort(void*, size_t, size_t,int (*)(const void*, const void*));解释: qsort ( 数组名 ,元素个数,元素占用的空间(sizeof),比较函数)比较函数是一个自己写的函数 遵循 int com(const void *a,cons...

2015-04-01 18:16:00 67

转载 POJ 1852 Ants

1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #include <cstring> 5 #define sc(x) scanf("%d",&(x)) 6 #define sc2(x,y) scanf("%d%d", ...

2015-04-01 14:36:00 47

转载 JAVA之关于This的用法

用类名定义一个变量的时候,定义的应该只是一个引用,外面可以通过这个引用来访问这个类里面的属性和方法,那们类里面是够也应该有一个引用来访问自己的属性和方法纳?呵呵,JAVA提供了一个很好的东西,就是 this 对象,它可以在类里面来引用这个类的属性和方法。先来个简单的例子: 1 public class ThisDemo { 2 String name="Mic...

2015-03-21 10:32:00 53

转载 全排列(最快速next permutation)

#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>using namespace std;char a[210];int main(){ while(scanf("%s",a)!=EOF) {...

2015-03-20 21:02:00 363

转载 系统环境变量path删除后从注册表恢复

转载:http://wenku.baidu.com/link?url=M6cImkiMWljOCMyxjH7cDvpxQwhGobTM4ylnqnLQ6D0XwOkLgg-Qj_45Zd4_5aVpv1VNyJctBaPlPC85wPoyNrKlzSVRmkg162JhzdBu2zK转载于:https://www.cnblogs.com/ghostTao/p/4342956.html...

2015-03-16 21:34:00 296

转载 java 中继承时子类——重写父类方法

1. 普通类继承,并非一定要重写父类方法。2. 抽象类继承,如果子类也是一个抽象类,并不要求一定重写父类方法。如果子类不是抽象类,则要求子类一定要实现父类中的抽象方法。3. 接口类继承。如果是一个子接口,可以扩展父接口的方法;如果是一个子抽象类,可以部分或全部实现父接口的方法;如果子类不是抽象类,则要求子类一定要实现父接口中定义的所有方法。接口中的方法默认的是public abstrac...

2015-03-15 22:33:00 586

转载 java向上转型和向下转型

转型是在继承的基础上而言的,继承是面向对象语言中,代码复用的一种机制,通过继承,子类可以复用父类的功能,如果父类不能满足当前子类的需求,则子类可以重写父类中的方法来加以扩展。向上转型:子类引用的对象转换为父类类型称为向上转型。通俗地说就是是将子类对象转为父类对象。此处父类对象可以是接口向下转型:父类引用的对象转换为子类类型称为向下转型。前者是一个向上转型,Animal dog...

2015-03-15 21:38:00 62

转载 ZOJ 1136 Mutiple (同余定理判重)

1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 #include <queue> 6 #define sc(x) scanf("%d",&x) 7 #defin...

2015-03-13 20:57:00 98

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除