自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Step by step

一点一点积累,耐心不放弃。(未能及时回复,QQ1018810506)

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

原创 vjudge 之#回家了

problem A: Light OJ 1007

2014-08-31 16:56:12 957

转载 最近公共祖先LCA Tarjan算法

个人觉得十分不错的

2014-08-30 10:50:58 497

原创 Light OJ 1035 Intelligent Factorial Factorization

题目

2014-08-22 23:05:51 1428

原创 Light OJ 1165 Digit Dancing

1165 - Digit Dancing Digits like to dance. One day, 1, 2, 3, 4, 5, 6, 7 and 8stand in a line to have a wonderful party. Each time, a male digit can ask afemale digit to dance with him, or a female d

2014-08-22 22:42:26 1123

转载 博弈问题,sg函数初步学习例题解析

UVALive/LA 5059 Play with Stones 组合游戏/SG定理

2014-08-22 10:42:07 836

转载 博弈问题的初步学习

例子:     甲乙两人面对若干堆石子,其中每一堆石子的数目可以任意确定。例如图1所示的初始局面:共n=3堆,其中第一堆的石子数a1=3,第二堆石子数a2=3,第三堆石子数a3=1。两人轮流按下列规则取走一些石子,游戏的规则如下: 每一步应取走至少一枚石子; 每一步只能从某一堆中取走部分或全部石子; 如果谁无法按规则取子,谁就是输家。

2014-08-20 23:10:15 725

原创 Codeforces Round #261 (Div. 2) D题

感觉自己的做法比较奇葩。

2014-08-20 00:08:27 585

原创 Light OJ 1175 Jane and the Frost Giants

变形

2014-08-15 16:59:24 1438

转载 UVALive 5964 LCM Extreme(数论 欧拉函数)

/* 2 题目大意:求lcm(1,2)+lcm(1,3)+lcm(2,3)+....+lcm(1,n)+....+lcm(n-2,n)+lcm(n-1,n) 3 设sum(n)为sum(lcm(i,j))(1<=i<j<=n)之间最小公倍数的和,f(n)为sum(i*n/gcd(i,n))(1<=i<n) 4 那么sum(n)=sum(n-1)+f(n)。可以用线性欧拉筛选+递推来做。 *

2014-08-04 17:48:34 920

原创 UVALive 5968 Blade and Sword(搜索)

1) '.' represents an empty space. The player can move through it.        2) '#' represents wall, and the player cannot move through it. You can assume that the boundaries            of the grid will

2014-08-04 15:42:46 747

转载 UVAlive 5971 Permutation Counting(数论 dp)

Permutation Counting Dexter considers a permutation of first N natural numbers good if it doesn't have x and x+1 appearing cons ecutively, where (1 ≤ x 1.{1, 3, 2} 2.{2, 1, 3} 3.{3, 2, 1} Input

2014-08-04 15:27:35 529

原创 ZOJ 2972(背包dp)

#include #include #include using namespace std; const int INF=1e9; int dp[120][120]; int t1[120],t2[120],t3[120],f1[120],f3[120]; int main() { int n,T,i,j,m; cin>>T; while(T--) {

2014-08-04 15:04:43 614

原创 UVA 12377(dfs选N个数)

觉得

2014-08-04 14:31:27 479

【中文高清版全】数据挖掘导论

【中文高清版】数据挖掘导论,含所有章节内容,希望对大家有所帮助!

2018-09-17

空空如也

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

TA关注的人

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