自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(94)
  • 资源 (3)
  • 收藏
  • 关注

原创 zoj 3583 simple path

Simple PathTime Limit: 2 Seconds      Memory Limit: 65536 KBA path with no repeated vertices of an undirected graph is called a simple path. Given an undirected graph and two verteices S and

2012-03-30 17:51:26 705

原创 zoj 3590 -3+1

-3+1Time Limit: 2 Seconds      Memory Limit: 65536 KBZOJ is 10 years old! For celebrating, we are offering the easiest problem in the world to you.Recently we received a long sequence. We ca

2012-03-27 21:18:52 709

原创 zoj 3578 matrix

MatrixTime Limit: 10 Seconds      Memory Limit: 131072 KBA N*M coordinate plane ((0, 0)~(n, m)). Initially the value of all N*M grids are 0.An operation T(a, b, h, x, y) is defined as foll

2012-03-07 17:22:22 777 2

原创 zoj 3580 angry birds 愤怒的小鸟(zoj 的题目就是与时俱进啊)

Angry BirdsTime Limit: 4 Seconds      Memory Limit: 65536 KBIn the famous game Angry Birds, players can choose a direction to shoot a blue bird, which can be spilt into three birds to hit th

2012-03-07 15:45:11 717

原创 uva 10042 smith numbers

Problem D: Smith Numbers Background While skimming his phone directory in 1982, Albert Wilansky, a mathematician of Lehigh University , noticed that the telephone number of his broth

2012-01-19 17:37:56 479

原创 uva 10168 summation of four primes

Problem ASummation of Four PrimesInput: standard inputOutput: standard outputTime Limit: 4 seconds Euler proved in one of his classic theorems that prime numbers are infinite in number. Bu

2012-01-19 16:42:25 524

原创 uva 10139 factovisors

Problem D: FactovisorsThe factorial function, n! is defined thus for n a non-negative integer: 0! = 1 n! = n * (n-1)! (n > 0)We say that a divides b if there exists an integer k such tha

2012-01-19 13:00:55 589

原创 uva 10049 self describing sequence

Problem C: Self­describing Sequence Solomon Golomb's self­describing sequence  is the only non­decreasing sequence of positive integers with the property that it contains exactly f(k)

2012-01-18 21:47:06 715

原创 uva 10254 the priest mathematician

Problem IThe Priest MathematicianInput: standard inputOutput: standard outputTime Limit: 10 seconds The ancient folklore behind the "Towers of Hanoi" puzzle invented by E. Lucas in 1883 is

2012-01-18 16:17:52 463

原创 uva 10247 complete tree labeling

Problem BComplete Tree Labeling!Input: standard inputOutput: standard outputTime Limit: 45 secondsMemory Limit: 32 MB A complete k-ary tree is a k-ary tree in which all leaves have same

2012-01-18 11:20:18 434

原创 uva 10157 expressions

Problem A: EXPRESSIONS Let X be the set of correctly built parenthesis expressions. The elements of X are strings consisting only of the characters �(� and �)�. The set X is defined as follo

2012-01-17 20:11:02 679

原创 uva 107 the cat in the hat

The Cat in the Hat Background(An homage to Theodore Seuss Geisel)The Cat in the Hat is a nasty creature,But the striped hat he is wearing has a rather nifty feature.With one flic

2012-01-13 15:05:02 1249

原创 uva 439 knight moves

BFS Knight Moves 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

2012-01-10 16:24:04 1034

原创 uva 294 divisors

Divisors Mathematicians love all sorts of odd properties of numbers. For instance, they consider 945 to be an interesting number, since it is the first odd number for which the sum of its

2012-01-09 23:57:46 984

原创 uva 568 just the facts

Just the Facts The expression N!, read as ``N factorial," denotes the product of the first N positive integers, where N is nonnegative. So, for example,NN!01

2012-01-09 18:34:04 799

原创 strassen矩阵乘法

出处: http://www.ahhf45.com/info/data_structures_and_algorithms/algorithm/commonalg/misc/strassen/strassen.htm上一页 | 返回目录 | 下一页Strassen矩阵乘法矩阵乘法是线性代数中最常见的运算之一,它在数值计算中有广

2011-11-07 16:22:32 476

原创 hdu 3363 ice sugar gourd

Ice-sugar GourdTime Limit: 5000/2000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 568    Accepted Submission(s): 207Problem DescriptionIce-sugar go

2011-11-05 20:32:00 924

原创 hdu 1799

循环多少次?Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1343    Accepted Submission(s): 485Problem Description  我们知道,在编程中,我们时常需要考虑

2011-11-05 11:48:16 845

原创 hdu 1716

排列2Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1853    Accepted Submission(s): 717Problem DescriptionRay又对数字的列产生了兴趣:现有四张卡片

2011-11-05 10:12:40 654

原创 hdu 1521

排列组合Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 811    Accepted Submission(s): 325Problem Description有n种物品,并且知道每种物品的数量。要求从中选

2011-11-05 01:15:41 766

原创 hdu 1465

不容易系列之一Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7296    Accepted Submission(s): 2967Problem Description大家常常感慨,要做好一件事情真的不容

2011-11-04 21:53:25 737

原创 hdu 1261

字串数Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1430    Accepted Submission(s): 257Problem Description一个A和两个B一共可以组成三种字符串:"ABB

2011-11-04 20:49:52 1249

原创 hdu 1510 white rectangles

#include #include #include #define SZ_MAX 110#define max(x, y) ((x) > (y) ? (x) : (y))int left_whites[SZ_MAX][SZ_MAX]; // including the itselfchar board[SZ_MAX][SZ_MAX];int sz;int main ()

2011-11-04 14:59:00 736

原创 C语言里面struct的位分配

去小米笔试,遇到一道题:对于 32 位操作系统, 不考虑边界对齐, sizeof (A) = __struct A{    char t:4;    char k:4;    unsigned short i:8;    unsigned long m;};想起来这只有在大一的时候看老谭的书才见过,细节已经

2011-11-04 10:32:09 783

原创 hdu 1492 the numbers of divisors about humble numbers

The number of divisors(约数) about Humble NumbersTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total

2011-10-17 12:17:02 655

原创 hdu 1294 rooted trees problem

Rooted Trees ProblemTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 337    Accep

2011-10-16 21:51:02 996

原创 hdu 1171 big event in hdu

Big Event in HDUTime Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9282    Accepte

2011-10-16 10:15:02 1240

原创 hdu 1153 magic bitstrings

Magic BitstringsTime Limit: 20000/10000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 51    Accepted

2011-10-15 23:41:49 1262 3

原创 hdu 1100 trees made to order

Trees Made to OrderTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 362    Accept

2011-10-15 20:39:58 1367

原创 hdu 1027 ignatius and the princess ii

Ignatius and the Princess IITime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1862

2011-10-15 13:52:49 806

原创 acm/icpc live archive regional 1998 europe central problem d, spoj 45 commedia dell arte

Commedia dell' arte So called commedia dell' arte is a theater genre first played at Italy in the beginning of the sixteenth c

2011-10-15 00:46:36 860

原创 acm/icpc live archive 2481, world final 2002 problem h. silly sort

Your younger brother has an assignment and needs some help. His teacher gave him a sequence of numbers to be sorted in ascending order. Duri

2011-10-14 20:58:40 658

原创 hdu 1099 lottery

LotteryTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1086    Accepted Submissi

2011-10-14 16:47:21 2622

原创 uva 10237 bishops

Problem BBishopsInput: standard inputOutput: standard outputTime Limit: 4 secondsMemory Limit: 32 MB A bishop is a

2011-10-14 13:35:45 1094

原创 hdu 4069 squiggly sudoku

Squiggly SudokuTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 691    Accepted S

2011-10-13 16:54:53 1054

原创 uva 864 scheme pretty printing

Scheme Pretty-Printing Scheme is an expression language. This means that everything that is entered to the Scheme interpreter/

2011-10-12 09:44:43 550

原创 百度 PC客户端研发工程师 笔试题目

简答1.C++指针参数与引用参数的差异;2.windows装载DLL在哪搜寻;3.多线程如何优雅地退出线程;算法1.写树非递归的先根遍历;2.书架上最多放十本书,写算法:(1)每次拿最后一次使用时间最小的替换新书,若多本书时间相同,拿最后一本;

2011-10-09 18:03:13 1448

原创 zoj 3500 island communication

Island CommunicationTime Limit: 2 Seconds      Memory Limit: 65536 KB Once upon a time, human have not invented boats and planes,

2011-10-05 20:33:32 362

原创 uva 648 steps

StepsPC/UVa IDs: 110608/846, Popularity: A, Success rate: high Level: 2Consider the process of stepping from integer x to integer y alon

2011-10-04 14:16:10 341

原创 uva 10213 how many pieces of land

Problem GHow Many Pieces of Land?Input: Standard InputOutput: Standard OutputTime Limit: 3 seconds You are given an elliptical

2011-10-04 01:23:59 596

利用赫夫曼树做的简单文件压缩程序

利用赫夫曼书做的简单文件压缩程序,字符界面,英文提示。

2010-06-17

有自动游戏功能的俄罗斯方块

一个俄罗斯方块游戏,可以让电脑自动游戏,开发环境codeblocks8.02 + wxwidgets2.8.10 + mingw

2010-03-03

3D游戏编程大师技巧(中)

3D游戏编程大师技巧,想学游戏编程必看。 3D游戏编程大师技巧,想学游戏编程必看。

2009-03-17

空空如也

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

TA关注的人

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