会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Assassin_poi君
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
32
下一页
2018年5月17日
HDU - 1540——Tunnel Warfare (线段树区间合并)
摘要: During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. General...
阅读全文
posted @ 2018-05-17 11:05 Assassin_poi君
阅读(145)
评论(0)
推荐(0)
2018年5月16日
hdu3911——Black And White (线段树区间合并)
摘要: Time limit3000 msMemory limit32768 kBThere are a bunch of stones on the beach; Stone color is white or black. Little Sheep has a magic...
阅读全文
posted @ 2018-05-16 18:57 Assassin_poi君
阅读(212)
评论(0)
推荐(2)
swap(a,b)值交换的4种方法
摘要: 方法一:int tmp = 0; tmp = b; b = a; a = tmp; 方法二:a = a+b;b = a-b;a = a-b;方法三:a ^= b ^= a^= b;方法四:a = a+b-(b=a);
阅读全文
posted @ 2018-05-16 16:43 Assassin_poi君
阅读(582)
评论(0)
推荐(0)
2018年5月15日
POJ3264——Balanced Lineup(线段树查询区间最大最小值)
摘要: Time limit5000 msCase time limit2000 msMemory limit65536 kBFor the daily milking, Farmer John's N cows (1 ≤ N ≤ 50,000) always line up...
阅读全文
posted @ 2018-05-15 21:46 Assassin_poi君
阅读(190)
评论(0)
推荐(0)
HDU1698——Just a Hook(线段树区间修改,区间求和)
摘要: In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several cons...
阅读全文
posted @ 2018-05-15 20:36 Assassin_poi君
阅读(133)
评论(0)
推荐(0)
POJ3468——A Simple Problem with Integers (线段树区间加值,区间求和)
摘要: Time limit5000 msCase time limit2000 msMemory limit131072 kBYou have N integers, A1, A2, ... , AN. You need to deal with two kinds of ...
阅读全文
posted @ 2018-05-15 20:13 Assassin_poi君
阅读(120)
评论(0)
推荐(0)
2018年5月14日
HDU - 5023——A Corrupt Mayor's Performance Art(线段树+位运算压缩)
摘要: Time limit1000 msMemory limit100000 kBCorrupt governors always find ways to get dirty money. Paint something, then sell the worthless ...
阅读全文
posted @ 2018-05-14 21:03 Assassin_poi君
阅读(115)
评论(0)
推荐(0)
线段树模板
摘要: 首先是建树:const int MAXN = 1005;//定义 MAXM 为线段最大长度int Tree[4*MAXN];// Data数组为 main 函数中读入的内容,Tree数组为需要查询的数的信息(如和、最值等),树的空间大小为线段最大长度的四倍!四倍!四倍...
阅读全文
posted @ 2018-05-14 19:33 Assassin_poi君
阅读(133)
评论(0)
推荐(0)
CodeForces - 888C——K-Dominant Character(思维题)
摘要: You are given a string s consisting of lowercase Latin letters. Character c is called k-dominant iff each substring of s with length a...
阅读全文
posted @ 2018-05-14 16:40 Assassin_poi君
阅读(166)
评论(0)
推荐(0)
CodeForces - 855E—Salazar Slytherin's Locket(数位DP)
摘要: Time limit2000 msMemory limit262144 kBHarry came to know from Dumbledore that Salazar Slytherin's locket is a horcrux. This locket was...
阅读全文
posted @ 2018-05-14 16:04 Assassin_poi君
阅读(221)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
32
下一页
公告