自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 lua学习(2)_____lua的注释和全局变量、局部变量

经过上节的介绍想必大家已经成功运行过lua代码了。下面我们真正的来接触lua基本语法了。1.注释语法Lua语言有自己独特的注释语法,同样分为行注释和块注释。行注释:和C语言很像,以--开头,那么这行之后的字符会被当做注释处理。(--等同于c语言的//)块注释:以--[[ 开头,以 ]] 结尾,在这之间的所有字符(可以跨多行)会被当做注释处

2016-08-31 21:03:13 10622

原创 lua学习(1)_____配置lua运行环境

Lua脚本的用途我就不多说了吧,都开始学Lua了一定知道它的用途首先我先介绍一下如何配置Lua脚本编译环境吧。1.可以去这里下载Lua的库:      链接: http://pan.baidu.com/s/1qXSfyQo 密码: 83eg下载好了之后解压到你喜欢的一个位置。比如我就放在了:  E:\Yzl\   这里。然后配置环境变量加上 [你的位置]\lua.    

2016-08-30 23:04:41 1450

原创 概率DP_____ATM Mechine( hdu 5781 2016多校第五场)

Problem DescriptionAlice is going to take all her savings out of the ATM(Automatic Teller Machine). Alice forget how many deposit she has, and this strange ATM doesn't support query deposit. The o

2016-08-28 19:26:05 842

原创 中国剩余定理+容斥_____Lucky7( hdu 5768 2016多校第四场 )

Problem DescriptionWhen ?? was born, seven crows flew in and stopped beside him. In its childhood, ?? had been unfortunately fall into the sea. While it was dying, seven dolphins arched its body a

2016-08-28 16:47:48 817

原创 树形DP______Tree Cutting( POJ 2378 )

DescriptionAfter Farmer John realized that Bessie had installed a "tree-shaped" network among his N (1 Bessie, feeling vindictive, decided to sabotage Farmer John's network by cutting power to

2016-08-25 08:17:56 623

原创 树形DP____AllenLSY( POJ 2378 )

DescriptionAfter Farmer John realized that Bessie had installed a "tree-shaped" network among his N (1 Bessie, feeling vindictive, decided to sabotage Farmer John's network by cutting power to

2016-08-24 23:31:07 584

原创 微分方程_______Rower Bo( HDU 5761 2016多校第三场)

Problem DescriptionThere is a river on the Cartesian coordinate system,the river is flowing along the x-axis direction.Rower Bo is placed at (0,a) at first.He wants to get to origin (0,0) by

2016-08-24 21:39:16 590

原创 map+组合数学_____Eureka( POJ 5738 2016多校第二场)

roblem DescriptionProfessor Zhang draws n points on the plane, which are conveniently labeled by 1,2,...,n. The i-th point is at (xi,yi). Professor Zhang wants to know the number of best set

2016-08-24 19:57:06 578

原创 树形DP______TELE( POJ 1155 )

DescriptionA TV-network plans to broadcast an important football match. Their network of transmitters and users can be represented as a tree. The root of the tree is a transmitter that emits the f

2016-08-24 14:29:53 538

原创 树形DP______Apple Tree( POJ 2486 )

DescriptionWshxzt is a lovely girl. She likes apple very much. One day HX takes her to an apple tree. There are N nodes in the tree. Each node has an amount of apples. Wshxzt starts her happy trip

2016-08-24 01:06:35 450

原创 树形DP_______Anniversary party( POJ 2342 )

DescriptionThere is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical structure of employees. It means that the supervisor rela

2016-08-21 23:00:38 526

原创 sg函数+数学_________Stone game( hdu 5865 2016多校第十场 )

Problem DescriptionBirdstorm and hahaha are playing a game. Given a DAG (Directed acyclic graph) with n nodes and m edges. There are total k stones on the nodes and each node can contains more tha

2016-08-21 17:24:07 1117

转载 博弈论!!!

没事扯两句虽然在OI界好像博弈题并不是很多(显然是我见识少),然而在ACM中似乎是很常见的…刷多校看题典什么的都会遇到,然后题解又往往只有简略的一句话:”暴力dp即可”“暴力维护SG函数即可”这种. 所以还是花了一个多星期学习了一下这个玄学的东西… 其实严格来说博弈论完全不能算是算法对吧…算法资料《由感性认识到理性认识——透析一类搏弈游戏的解答过程》 by

2016-08-21 13:45:25 1158

原创 树形DP______Rebuilding Roads( POJ 1947 )

DescriptionThe cows have reconstructed Farmer John's farm, with its N barns (1 <= N <= 150, number 1..N) after the terrible earthquake last May. The cows didn't have time to rebuild any extra road

2016-08-21 13:28:15 445

原创 树形DP_____Party at Hali-Bula( POJ 3342 )

DescriptionDear Contestant,I'm going to have a party at my villa at Hali-Bula to celebrate my retirement from BCM. I wish I could invite all my co-workers, but imagine how an employee can enjoy

2016-08-21 02:08:35 566

原创 树形DP_______Strategic game( POJ 1463 )

DescriptionBob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is very sad. Now he has the following problem. He must d

2016-08-20 23:54:50 444

原创 树形DP______Bribing FIPA( POJ 3345 )

DescriptionThere is going to be a voting at FIPA (Fédération Internationale de Programmation Association) to determine the host of the next IPWC (International Programming World Cup). Benjamin Ben

2016-08-20 14:49:12 503

原创 nim博弈_______Crazy Calendar( lightoj 1393 )

Description2011 was a crazy year. Many people all over the world proposed on 11-11-11, married on 11-11-11, some even went through surgery only to have 11-11-11 as their child's birth date. How cr

2016-08-20 00:30:24 831

原创 帕斯卡公式+Lucas定理______DP?( hdu 3944 )

Problem DescriptionFigure 1 shows the Yang Hui Triangle. We number the row from top to bottom 0,1,2,…and the column from left to right 0,1,2,….If using C(n,k) represents the number of row n,

2016-08-18 01:41:46 3520

原创 数学推导______Different Sums( hdu 5847 2016多校第九场)

Problem DescriptionA subsum of the sequence is sum of one or more consecutive integers of it. You are given an integer N(1≤N≤2000 ). Your task is to make a sequence of integers which are less th

2016-08-18 00:25:28 1160

原创 行列式求值+逆元_____Intersection is not allowed!( hdu 5852 2016多校第九场)

Problem DescriptionThere are K pieces on the chessboard.The size of the chessboard is N*N.The pieces are initially placed on the top cells of the board.A piece located on (r, c) can be

2016-08-17 00:21:18 1607

原创 树形dp____Magic boy Bi Luo with his excited tree( hdu 5834 2016ccpc网络赛)

Problem DescriptionBi Luo is a magic boy, he also has a migic tree, the tree has N nodes , in each node , there is a treasure, it's value is V[i], and for each edge, there is a cost C[i], wh

2016-08-16 01:37:43 813

原创 奇计淫巧______bitset优化

bitset可以当作一个bool型数组考虑,bitset bs;  可以考虑成一个数组bool bs[N]。相关操作:bs.set(); 全部置1,bs.reset()全部置0;bs.set(pos);等价于bs[pos]=1,bs.reset(pos)等价于bs[pos]=0;最重点的来了,bitset a, b;!a //

2016-08-14 08:39:39 2554

原创 dp+bitset优化______La Vie en rose( hdu 5745 2016多校第二场)

Problem DescriptionProfessor Zhang would like to solve the multiple pattern matching problem, but he only has only one pattern string p=p1p2...pm. So, he wants to generate as many as possible pa

2016-08-14 08:36:23 1119

原创 贪心______Keep On Movin( hdu 5744 2016多校第二场 )

DescriptionProfessor Zhang has kinds of characters and the quantity of the i-th character is ai. Professor Zhang wants to use all the characters build several palindromic strings. He also wants

2016-08-13 22:23:14 563

原创 数学+贪心_____It's All In The Mind( hdu 5742 2016多校第二场)

Problem Description Professor Zhang has a number sequence a1,a2,...,an. However, the sequence is not complete and some elements are missing. Fortunately, Professor Zhang remembers some properties of

2016-08-13 22:04:19 502

原创 数学向量推导______Acperience( hdu 5734 2016多校 )

Problem DescriptionDeep neural networks (DNN) have shown significant improvements in several application domains including computer vision and speech recognition. In computer vision, a particular

2016-08-13 21:52:33 486

原创 四面体内接圆_______tetrahedron( hdu 5733 2016多校第一场 )

Problem DescriptionGiven four points ABCD, if ABCD is a tetrahedron, calculate the inscribed sphere of ABCD. InputMultiple test cases (test cases ≤100).Each test cases contains a

2016-08-13 20:53:36 938

原创 暴力_______Rikka with Parenthesis II( hdu 5831 2016多校第八场)

Problem DescriptionAs we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is one of them:Correct parentheses sequences c

2016-08-12 09:01:23 631

原创 组合_____Game( hdu 5725 2016多校第一场)

Problem Description  Sea5 and wzh are playing games.  There are some guards on an n × m chessboard. Every guard can attack eight cells around him and release shockwave to attack the whole row

2016-08-12 00:44:03 955

原创 sg函数_____WNim( HOJ 2645 )

Recently Xiao Ming is quite interested in stones. So you can imagine how happy he is when he finds a stone game called nim! If you don't know how to play nim, he is glad to teach you.The game of n

2016-08-09 19:05:25 714

原创 博弈______Euclid's Game( poj 2348 )

DescriptionTwo players, Stan and Ollie, play, starting with two natural numbers. Stan, the first player, subtracts any positive multiple of the lesser of the two numbers from the greater of the tw

2016-08-09 10:26:33 654

原创 Anti_SG博弈,SJ定理_______John( POJ 3480 )

DescriptionLittle John is playing very funny game with his younger brother. There is one big box filled with M&Ms of different colors. At first John has to eat several M&Ms of the same color. Then

2016-08-09 09:22:38 790

原创 dp博弈______Nim( poj 2068 )

DescriptionLet's play a traditional game Nim. You and I are seated across a table and we have a hundred stones on the table (we know the number of stones exactly). We play in turn and at each turn

2016-08-09 09:11:53 660

原创 nim博弈_______Georgia and Bob( poj 1704 )

DescriptionGeorgia and Bob decide to play a self-invented game. They draw a row of grids on paper, number the grids from left to right by 1, 2, 3, ..., and place N chessmen on different grids, as

2016-08-08 19:37:20 655

原创 sg函数_____S-Nim( poj 2960 )

DescriptionArthur and his sister Caroll have been playing a game called Nim for some time now. Nim is played as follows:The starting position has a number of heaps, all containing some, not ne

2016-08-08 18:26:49 548

原创 sg函数_____A Chess Game( hdu 2425 )

DescriptionLet's design a new chess game. There are N positions to hold M chesses in this game. Multiple chesses can be located in the same position. The positions are constituted as a topological

2016-08-08 16:54:20 579

原创 博弈,找规律_______A Funny Game(poj 2484)

DescriptionAlice and Bob decide to play a funny game. At the beginning of the game they pick n(1 6) coins in a circle, as Figure 1 shows. A move consists in removing one or two adjacent coins, lea

2016-08-08 15:58:20 530

原创 博弈,枚举必胜区间______A multiplication game( poj 2505)

DescriptionStan and Ollie play the game of multiplication by multiplying an integer p by one of the numbers 2 to 9. Stan always starts with p = 1, does his multiplication, then Ollie multiplies th

2016-08-08 15:22:22 712

原创 sg函数_______A Funny Stone Game(uva 1378)

The funny stone game is coming. There are n piles of stones, numbered with 0, 1, 2,..., n - 1. Two persons pick stones in turn. In every turn, each person selects three piles of stones numbered i, j, 

2016-08-08 13:02:40 692

Unity3D火焰粒子特效

使用Unity3D自带的粒子系统制作的火焰粒子特效。。。。

2018-05-18

LitJson.dll

LitJson库,用于json的序列化和反序列化

2016-09-15

基于Opencv植物大战僵尸游戏源码

基于opencv\C++语言实现的植物大战僵尸游戏部分源码.

2015-08-09

空空如也

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

TA关注的人

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