自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

计算机图形编程

现在就是考验你的信念时候了!!!!!

  • 博客(17)
  • 资源 (2)
  • 收藏
  • 关注

原创 HDU1728:逃离迷宫(BFS)

Problem Description   给定一个m × n (m行, n列)的迷宫,迷宫中有两个位置,gloria想从迷宫的一个位置走到另外一个位置,当然迷宫中有些地方是空地,gloria可以穿越,有些地方是障碍,她必须绕行,从迷宫的一个位置,只能走到与它相邻的4个位置中,当然在行走过程中,gloria不能走到迷宫外面去。令人头痛的是,gloria是个没什么方向感的人,因此,她在行走过程

2014-05-31 21:56:53 462

原创 HDU1495:非常可乐(BFS)

Problem Description 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S   Input 三个整数 : S 可乐的体积 ,

2014-05-31 10:36:35 683

原创 HDU2717:Catch That Cow(BFS)

Problem Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a

2014-05-28 23:30:09 515

原创 HDU1372:Knight Moves(BFS)

Problem Description A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves that visits each square of a given set of

2014-05-25 13:26:50 471

原创 HDU1253:胜利大逃亡(BFS)

Problem Description Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会. 魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,B-1,C-1)的位置,现在知道魔王将在T分钟后回到城堡,Ignatius每分钟能从一个坐标走到相邻的六个

2014-05-25 11:19:06 360

原创 HDU2952:Counting Sheep(BFS)

#include char map[110][110]; int dir[4][2]={{1,0},{-1,0},{0,1},{0,-1}}; int w,h; void bfs(int x,int y) { int xx,yy; for(int i=0;i { xx=x+dir[i][0]; yy=y+dir[i][1]; if(xx=h||yy>=w||map[xx][y

2014-05-24 23:08:55 649

原创 HDU2521:反素数

Problem Description 反素数就是满足对于任意i(0   Input 第一行输入n,接下来n行测试数据 输入包括a,b, 1   Output 输出为一个整数,为该区间因子最多的数.如果满足条件有多个,则输出其中最小的数.   Sample Input 3 2 3 1 10 47 35

2014-05-24 22:24:59 817

原创 HDU1181:变形课(DFS)

Problem Description 呃......变形课上Harry碰到了一点小麻烦,因为他并不像Hermione那样能够记住所有的咒语而随意的将一个棒球变成刺猬什么的,但是他发现了变形咒语的一个统一规律:如果咒语是以a开头b结尾的一个单词,那么它的作用就恰好是使A物体变成B物体.  Harry已经将他所会的所有咒语都列成了一个表,他想让你帮忙计算一下他是否能完成老师的作业,将一个B(

2014-05-24 19:57:22 460

原创 HDU1258:Sum It Up(DFS)

Problem Description Given a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For example, if t=4, n=6, and the list is [4,3,2,2,1,1],

2014-05-24 17:26:35 383

原创 HDU2952:Counting Sheep(DFS)

Problem Description A while ago I had trouble sleeping. I used to lie awake, staring at the ceiling, for hours and hours. Then one day my grandmother suggested I tried counting sheep after I'd gone

2014-05-24 12:21:51 401

原创 HDU1312:Red and Black(DFS)

Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adja

2014-05-24 11:26:21 553

原创 HDU1518:Square(DFS)

Problem Description Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square?   Input The first line of input contains N, the number of test ca

2014-05-24 10:25:03 400

原创 HDU1241:Oil Deposits(DFS)

Problem Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates

2014-05-23 23:21:38 390

原创 HDU1175:连连看(DFS)

Problem Description “连连看”相信很多人都玩过。没玩过也没关系,下面我给大家介绍一下游戏规则:在一个棋盘中,放了很多的棋子。如果某两个相同的棋子,可以通过一条线连起来(这条线不能经过其它棋子),而且线的转折次数不超过两次,那么这两个棋子就可以在棋盘上消去。不好意思,由于我以前没有玩过连连看,咨询了同学的意见,连线不能从外面绕过去的,但事实上这是错的。现在已经酿成大祸,就只

2014-05-17 16:25:21 530

原创 SDL_第二课 优化表面的加载和Blit

SDL中文教程:http://tjumyk.github.io/sdl-tutorial-cn/contents.html 第er课:http://tjumyk.github.io/sdl-tutorial-cn/lessons/lesson02/index.html

2014-05-17 14:05:48 911

原创 总结:SDL_第一课 在屏幕上显示一张图片

#include "SDL.h" int main( int argc, char* args[] ) { //The images SDL_Surface* hello = NULL; SDL_Surface* screen = NULL; //Start SDL SDL_Init( SDL_INIT_EVERYTHING ); //Set up s

2014-05-16 22:29:53 3108

原创 当你想放弃时,请放声读一次!

你要继续向前 我们走 不要放弃直到你精疲力尽 就是这样 继续前进 继续前进 继续向前走 保存这样 继续向前 用尽你的全力 用你的全力 用你的全力 继续向前 就是这样 就是这样 就是这样 继续向前 不要放弃 继续向前 用你的全力 不要放弃 用你的全力 继续向前 继续向前 就是这样 就是这样 就是这样 继续向前 不要放弃知道你精疲力尽 继续向前 就是这样 就是这样 就是这样 继

2014-05-15 21:57:11 780

BOX2D 物理游戏编程初学者指南_扫描版

书用ActionScript介绍的, 可配合,网上有C++介绍来看,只是对应的版本有点旧 http://ohcoder.com/blog/categories/box2d-tutorials/

2018-12-19

【数学部分解题集】Introduction to 3D Game Programming with DirectX 11

Introduction to 3D Game Programming with DirectX 11 中的数学部分解题集,随原书附送的光盘中的文档,英文版

2015-11-21

空空如也

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

TA关注的人

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