自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 hdu1241(dfs连通块)

#include #include #include #include using namespace std;char ma[105][105];int n,m,ct;void dfs(int x,int y){    ma[x][y]='*';    for(int dx = -1; dx         for(int dy = -1; d

2016-04-17 16:29:43 153

转载 50道hdu基础搜索总结

Dfs:大部分是直接递归枚举,即求满足约束条件下的解,虽不用剪枝,但也需要代码能力。练习递归枚举的题目:1241       Oil Deposits (dfs的连通块个数)1016       Prime Ring Problem1584       蜘蛛牌(简单dfs,简单的剪枝,还有人用DP做(???))1426       Sudoku Ki

2016-04-17 15:58:00 226

原创 hdu1005(规律)

Runtime Error(INTEGER_DIVIDE_BY_ZERO)代码:#include #include #include #include using namespace std;int a,b,n,c;int s[50005];int main(){    while(~scanf("%d%d%d",&a,&b,&n)&&(a||b

2016-04-17 11:45:05 194

原创 hdu1004(map容器)

#include #include #include #include #include using namespace std;int n,maxnum;string a,maxstr;map m;int main(){    while(cin >> n&&n){        m.clear();        fo

2016-04-17 09:25:41 171

原创 hdu1003(DP基础)

#include #include #include #include using namespace std;int t,n,a[100005],b[100005],ma,x,y;int main(){    while(~scanf("%d",&t)){        for(int ii= 0; ii             memset(

2016-04-17 09:01:21 206

原创 hdu1002

import java.math.BigInteger;import java.util.Scanner;public class Main {public static void main(String args[]){BigInteger a,b;int t;Scanner in = new Scanner(System.in);t=in.nextInt

2016-04-12 21:41:33 176

原创 hdu1001

#include #include using namespace std;int n,s;int main(){    while(~scanf("%d",&n)){        if(n%2==0)            s=(1+n)*(n/2);        else            s=(1+n)/2*n;

2016-04-12 21:06:12 232

空空如也

空空如也

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

TA关注的人

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