自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 OpenMesh+Qt+vs2010

计算机图形课需要的一些工具。 本来已经装好qt5了,然而舒大大的例子都是QT4, QT5好像变了好多。。。改了一个又一个错。。。。终于放弃了…..=。= 先把步骤记下来,不然估计老是又回去看舒大大的视频。。。1.OpenMesh源代码, 批生成 libOpenMeshCore.lib libOpenMeshCored.lib libOpenMeshTools.lib libOpenMes

2015-09-19 10:04:26 1902 4

原创 1024. Palindromic Number (25)

老是忘了特判!!本身就是回文数忘了,俩个测试点没过还有k==0的时候,好像这个测试点没测出来?不过我写的代码还是特判一下,不然出错了#include #include #include #include #include #include #include using namespace std;void slove();int main(){ slove(

2015-08-17 19:55:18 389 1

原创 linux命令 ps 列出进程

Linux中的ps命令是Process Status的缩写。ps命令用来列出系统中当前运行的那些进程。如果想对进程时间监控,应该用 top 工具。kill 命令用于杀死进程。ps工具标识进程的5种状态码: D 不可中断 uninterruptible sleep (usually IO) R 运行 runnable (on run queue) S 中断 sleep

2015-07-23 21:46:37 604

原创 linux命令 删除文件

直接 rm -rf 目录名字-r 就是向下递归,不管有多少级目录,一并删除-f 就是直接强行删除,不作任何提示的意思cmt@cmt-Lenovo-Y430P:~$ rm --help用法:rm [选项]... 文件...Remove (unlink) the FILE(s).  -f, --force           ignore nonexistent

2015-07-23 01:05:54 643

原创 利用hexo+github pages 搭了一个博客

去年暑假买了俩个域名,用wordpress搭了个博客网站,几乎把所有代码都放那里了...然而前几日淘宝空间商跑了,服务器挂了,由于重装了系统,网站也没有备份....天哪噜....还有我是服务器小白。。。先好好练算法了啦...= =, 还有安卓方面的也想学,什么时候安卓不想玩了再自学下服务器好了...在机智的学长的启发下,打算利用github pages+hexo搭个静态博客

2015-07-11 19:58:47 722 2

原创 hdu 2275 Kiki & Little Kiki 1

第一篇SET~~STL果真很强大~~~其中也借鉴了不少网上的代码,但是大家都没有

2014-07-08 22:16:16 527

原创 Codeforces Rounds #254 div2:A,B,C

7.6日2014 codeforces round #254

2014-07-07 10:35:20 758

原创 hdu 1035 Robot Motion

题意: 给出行,列,和开始在第一列列

2014-07-02 17:09:53 428

原创 小游戏"猫捉老鼠"

if(n!=2 && b[j][i+1]==' ') { i++; n=0; } if(rand()%2) f=3; else f=1; break;

2014-05-23 15:13:35 860 1

原创 hdu 2952Counting Sheep

#include int d[4][2]={1,0,-1,0,0,1,0,-1};char field[101][101];int n,m;void dfs(int x, int y){ int i,xx,yy; for(i=0; i<4; i++) { xx=x+d[i][0]; yy=y+d[i][1]; if(xxn||yy>m||fiel

2014-05-18 23:56:20 677

原创 hdu 1047Integer Inquiry

#include #include int sum[110];void add(char *str){ int len=strlen(str), i; int z=0; for(i=len-1; i>-1; i--) { sum[z]+=str[i]-'0'; sum[z+1]+=sum[z]/10; sum[z]%=10; z++; }}in

2014-05-18 15:00:09 501

原创 poj 1775&&zoj 2358 Sum of Factorials

#include int fac[10];int main(){ fac[0]=1; int i, n; for(i=1; i<11; i++) fac[i]=fac[i-1]*i; while(scanf("%d", &n)&&n>=0) { if(n==0) {puts("NO"); continue;} for(i=10

2014-05-18 14:30:29 562

原创 小游戏“盗宝奇侠”

//编写小游戏"盗宝奇侠"程序,2.在藏宝区入口处有一"奇侠"@。按键可操作@的移动。按键功能如下:// l右移// j左移// i爬梯// k向下打洞、下跳// p向右平跳// 注:当@踩空时会掉到地面上。#include #include #include #include void gotoxy(int x, int y);char b[25]

2014-05-16 21:39:17 637

原创 hdu 1175 连连看

#include #include int n, m, d, q;int x1,x2,y1,y2;int field[1001][1001];bool vis[1001][1001], flag;void dfs(int x,int y, int d, int step){ if(flag) return; if(xn||ym) return ; if(step>2) ret

2014-05-15 23:24:05 508

原创 poj 2386lake counting(水水的dfs)

#include char map[101][101];int dx[8]={-1,-1,-1,0,0,1,1,1};int dy[8]={-1,0,1,-1,1,-1,0,1};int n, m;void dfs(int x, int y){ int i, j; int rx, ry; map[x][y]='.'; for(i=0; i<8; i++)

2014-05-15 19:32:23 533

原创 poj 1852 ants

比较有意思的题目~~假装蚂蚁不转向就好做了~~

2014-05-15 19:29:28 548

原创 hdu 1072Nightmare(bfs)

#include #include #include using namespace std;int n,m,sx,sy;int dir[4][2]={{0,1},{0,-1},{1,0},{-1,0}};int maze[10][10];struct node{ int x,y,step,time;}pre,rear;int isok(int x,int y){

2014-05-12 22:09:26 462

原创 hdu 1045 Fire Net(dfs)

The goal is to place as many blockhouses in a city as possible so that no two can destroy each other. A configuration of blockhouses is legal provided that no two blockhouses are on the same horizonta

2014-05-12 20:14:42 534

转载 大数相乘

在论坛看到的,巨巨Or2

2014-05-12 18:34:32 534

原创 hdu 1015Safecracker(dfs)

#include #include #include int vis[15], in[15];char str[15], ans[15];int   chen, len;int cmp(const void *a, const void *b){    return *(char *)b-*(char *)a;}int dfs(int num){ 

2014-05-11 22:54:38 451

转载 qsort中几种常见的cmp函数

一、对int类型数组排序 int num[100];int cmp ( const void *a , const void *b ){return *(int *)a - *(int *)b;}qsort(num,100,sizeof(num[0]),cmp); 二、对char类型数组排序(同int类型) char word[100];int cmp(

2014-05-11 09:38:50 1475

原创 hdu 1010 Tempter of the Bone(dfs)

题意:狗狗在S位置,门在D位置,让狗狗走到门那里要刚好yong'sh

2014-05-10 10:00:18 477

转载 bfs及dfs模版

DFS:/*该DFS框架以2D坐标范围为例,来体现DFS算法的实现思想。*/#include#include#includeusing namespace std;const int maxn=100;bool vst[maxn][maxn]; // 访问标记int map[maxn][maxn]; // 坐标范围int dir[4][2]={0,1,0,-1

2014-05-09 21:05:02 538 1

原创 c11_3.老鼠在菜园出口处遇见一只猫"¤",吓得往回逃,沿着阶梯状路线逃到入口处。

//3.老鼠在菜园出口处遇见一只猫"¤",吓得往回逃,沿着阶梯状路线逃到入口处。#include #include #include #include void gotoxy(int x, int y);void main(){ //菜园 8行 26列 起点(2.1) char garden[10][31]={ {"┏━━━━━━━━━━━━━┓"},

2014-05-09 20:12:22 721

原创 html 基础代码

一、HTML各种命令的代码:  1、文本标签(命令)  内容         创建预格式化文本  内容          创建最大的标题  内容          创建最小的标题  内容           创建黑体字  内容           创建斜体字  内容          创建打字机风格的字体  内容        创建一个引用,通常是斜体 

2014-05-07 21:43:25 1681 1

原创 hdu 1049

题目大意:有一只蜗牛,在一个深为n英尺的井里,它每分钟可以向上爬行u英尺,但是怕一分钟就必须休息一分钟,在休息的这一分钟内,它将会下滑d 的距离求时间

2014-05-04 21:09:35 535

原创 hdu 1009FatMouse' Trade

#include #include using namespace std;struct node{ double j, f; double r;}s[1001];bool cmp(node a, node b){ return a.r>b.r;}int main(){ int n, m, i; whi

2014-05-04 20:37:22 510

转载 hdu 题目分类

注:网上搜的第一篇 1001 这个就不用说了吧1002 简单的大数1003 DP经典问题,最大连续子段和1004 简单题1005 找规律(循环点)1006 感觉有点BT的题,我到现在还没过1007 经典问题,最近点对问题,用分治1008 简单题1009 贪心1010 搜索题,剪枝很关键1011 1012 简单题1013 简单题(有个小陷阱)1014 简单题10

2014-05-03 21:10:36 613

原创 树状数组模版

C1 = A1C2 = A1 + A2C3 = A3C4 = A1 + A2 + A3 + A4C5 = A5C6 = A5 + A6C7 = A7C8 = A1 + A2 + A3 + A4 + A5 + A6 + A7 + A8...C16 = A1 + A2 + A3 + A4 + A5 + A6 + A7 + A8 + A9 + A10 + A11 +

2014-04-30 22:23:48 517

原创 hdu 1003 MAX SUM(最大连续子序列和)

#include int main(){    int n, i, t, k, cc, sum;    int a,b, A, B;    scanf("%d", &t);    for(cc=1; cc    {        scanf("%d", &n);        int max=-1001;        sum=-11001;     

2014-04-30 22:20:04 610

空空如也

空空如也

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

TA关注的人

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