自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

华章

当你凝望深渊,深渊说“你滚,我要吐了!”

  • 博客(27)
  • 收藏
  • 关注

原创 Burnside引理和Polya定理

参考: 第14-15讲 Burnside引理与Polya定理 Burnside引理和Polya定理

2016-09-15 19:44:50 517

原创 莫比乌斯反演定理证明

莫比乌斯反演定理形式一: F(n)=∑d|nf(d)=>f(n)=∑d|nμ(d)F(nd) 证明: 恒等变形得: f(n)=∑d|nμ(d)F(nd)=∑d|nμ(d)∑k|ndf(k)=∑k|nf(k)∑d|nkμ(d) 因为之前证明的这个定理: ∑d|nμ(d)={10n==1n>1 所以当且仅当nk=1,即n=k时,∑d|nkμ(d)=1,其余时候等于

2016-09-09 11:28:01 1044 1

原创 POJ 3687 Labeling Balls

Description Windy has N balls of distinct weights from 1 unit to N units. Now he tries to label them with 1 to N in such a way that: No two balls share the same label.The labeling satisfie

2016-08-20 20:17:24 540

转载 图的割点、桥与双连通分支

转载自:https://www.byvoid.com/blog/biconnect [点连通度与边连通度] 在一个无向连通图中,如果有一个顶点集合,删除这个顶点集合,以及这个集合中所有顶点相关联的边以后,原图变成多个连通块,就称这个点集为割点集合。一个图的点连通度的定义为,最小割点集合中的顶点数。 类似的,如果有一个边集合,删除这个边集合以后,原图变成多个连通块,

2016-08-17 16:50:35 444

原创 欧拉道路

判断的条件不必多说了。 关键点在于在dfs输出欧拉道路的时候要倒着输出。 sgu 101 Description Dominoes – game played with small, rectangular blocks of wood or other material, each identified by a number of dots, or pips, on

2016-08-16 10:23:34 431

转载 阶梯博弈学习

转自http://blog.csdn.net/kk303/article/details/6692506 今天在POJ做了一道博弈题..进而了解到了阶梯博弈...下面阐述一下我对于阶梯博弈的理解..  首先是对阶梯博弈的阐述...博弈在一列阶梯上进行...每个阶梯上放着自然数个点..两个人进行阶梯博弈...每一步则是将一个集体上的若干个点( >=1 )移到前面去..最后没有点可以移动的

2016-08-12 20:36:52 589

转载 关于博弈基础知识的总结:巴什博弈(Bash Game)、威佐夫博奕(Wythoff Game)、尼姆博奕(Nim Game)

转载自http://www.aiuxian.com/article/p-942548.html 博弈论是二人或多人在平等的对局中各自利用对方的策略变换自己的对抗策略,达到取胜目标的理论。 基础的基础 a) 当前执行者想赢。这个是必要的,有时候题目中判别胜负的条件会与平时练习的恰好相反,此时你就应该按照题目要求思考,即在经典模型中思考当前执行者想输的策略

2016-08-12 19:28:59 1016

原创 三分查找的一些细节

I - Devu and his Brother Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u SubmitStatusPracticeCodeForces 439D Description Devu and his brother love each other a lot. As

2016-07-11 17:42:46 387

原创 Nim 游戏和 SG 函数

Nim游戏Nim游戏定义Nim游戏是组合游戏(Combinatorial Games)的一种,准确来说,属于“Impartial Combinatorial Games”(以下简称ICG)。满足以下条件的游戏是ICG(可能不太严谨):1、有两名选手;2、两名选手交替对游戏进行移动(move),每次一步,选手可以在(一般而言)有限的合法移动集合中任选一种进行移动;3、对于游戏的任何一种可能的局面,合法

2016-04-30 23:12:25 1429 3

原创 二分查找中的精度问题

方法1while(r-l > EPS) {…} (EPS ~= 1e-8)方法2for(int i=1;i<=LIMIT;i++) {…} (LINIT ~=50)Remark上面的两种方法理论上均可行。但是由于浮点数存在精度问题,所以在实际操作中最好使用方法二。

2016-03-08 15:20:47 992

原创 HDU2577 How to Type

Description Pirates have finished developing the typing software. He called Cathy to test his typing software. She is good at thinking. After testing for several days, she finds that if she types a st

2016-02-17 14:20:29 342

原创 HDU1506 Largest Rectangle in a Histogram

Description A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have different heights. For example, the figure on the

2016-02-17 14:17:39 458

原创 HDU2955 Robberies

Description The aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because they become too greedy. He has decided to work in t

2016-02-17 14:10:01 275

原创 单调队列学习

单调队列这个名字听起来很唬人,其实就是一个单调上升(下降)的队列的意思。 以单调下降队列为例,要点就是在每次插入元素的时候,不断和队尾元素比较,若队尾元素小于等于当前元素,则删除队尾元素,直到队尾元素大于当前元素,把当前元素插入。可以参考POJ 2823这道题。 本题只需要维护一个单调队列,同时在队首元素不在当前窗中时将其删除即可。参考了这篇文章单调队列初步。

2016-01-31 12:59:11 806

原创 POJ 2823 Sliding Window

Description An array of size n ≤ 10 6 is given to you. There is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the wind

2016-01-31 11:28:32 454

转载 什么是离散化?

转自Matrix67 。 如果说今年这时候OIBH问得最多的问题是二分图,那么去年这时候问得最多的算是离散化了。对于“什么是离散化”,搜索帖子你会发现有各种说法,比如“排序后处理”、“对坐标的近似处理”等等。哪个是对的呢?哪个都对。关键在于,这需要一些例子和不少的讲解才能完全解释清楚。     离散化是程序设计中一个非常常用的技巧,它可以有效的降低时间复杂度。其基本思想就是在众多可能的

2016-01-29 23:28:55 543

原创 HDU 5419 Victor and Toys

Problem Description Victor has n toys, numbered from 1 to n. The beauty of the i-th toy is wi.Victor has a sense of math and he generates m intervals, the i-th interval is [li,ri]. He randomly picks 3

2016-01-29 16:50:47 458

原创 UVA 12096 The SetStack Computer

Given this importance of sets, being the basis of mathematics, a set of eccentric theorist set off to construct a supercomputer operating on sets instead of numbers. The initial SetStack Alpha is under

2016-01-25 11:59:00 584

原创 POJ 1164 The Castle

Description 1 2 3 4 5 6 7 #############################1 # | # | # | | ######—#####—#—#####—#2 # # | # # # # ##—#####—#####—#####—#3 # | | # # # #

2016-01-22 16:10:56 695

原创 POJ 3273 Monthly Expense

DescriptionFarmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of money (1 ≤ moneyi ≤ 10,0

2016-01-22 16:06:02 281

原创 POJ 3104 Drying

DescriptionIt is very hard to wash and especially to dry clothes in winter. But Jane is a very smart girl. She is not afraid of this boring process. Jane has decided to use a radiator to make drying fa

2016-01-22 16:02:49 515

原创 POJ 3122 Pie

DescriptionMy birthday is coming up and traditionally I’m serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to my party an

2016-01-22 15:57:52 380

原创 POJ 2709 Painter

Description杂货店出售一种由N(3<=N<=12)种不同颜色的颜料,每种一瓶(50ML),组成的颜料套装。你现在需要使用这N种颜料;不但如此,你还需要一定数量的灰色颜料。杂货店从来不出售灰色颜料——也就是它不属于这N种之一。幸运的是,灰色颜料是比较好配置的,如果你取出三种不同颜色的颜料各x ml,混合起来就可以得到x ml的灰色颜料(注意不是3x)。现在,你知道每种颜料各需要多少ml。你决

2016-01-22 15:51:53 568

原创 POJ 1328 Radar Installation

DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation, locati

2016-01-22 15:43:27 565

原创 POJ 1753 Flip Game

DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying eith

2016-01-22 15:36:23 559

原创 POJ 2586 Y2K Accounting Bug

DescriptionAccounting for Computer Machinists (ACM) has sufferred from the Y2K bug and lost some vital data for preparing annual report for MS Inc. All what they remember is that MS Inc. posted a sur

2016-01-22 15:30:31 262

原创 POJ 1032 Parliament

DescriptionNew convocation of The Fool Land’s Parliament consists of N delegates. According to the present regulation delegates should be divided into disjoint groups of different sizes and every day e

2016-01-22 15:27:01 357

空空如也

空空如也

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

TA关注的人

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