Sneakers(线段树应用,单点、多点、最大、最小)(选拔赛毙的题)

摘要: SneakersDescription有一天喜欢买鞋的ppq和小伙伴来到了某一家球鞋店,球鞋店有n种球鞋,价格分别为ai,ppq在鞋店兜兜转转,发现鞋店老板会偶尔将某段区间内球鞋的价格增加或减少,或者将某双球鞋的价格由价格A修改至价格B,机智的ppq将这些信... 阅读全文
posted @ 2019-03-27 09:35 tomjobs 阅读(141) 评论(0) 推荐(0) 编辑

A“一个部族,一个民族,一个弗雷尔卓德。”(素数筛,逆序对,树状数组)

摘要: “一个部族,一个民族,一个弗雷尔卓德。”Description寒冰射手艾希新学会了一个技能,艾希通过这个技能成为了一名声名远扬的神箭手,从此再也无人敢侵犯弗雷尔卓德!这个技能的描述如下(假设英雄联盟内的每个人都有一个编号):假设艾希有x-1(x>=2)x−1... 阅读全文
posted @ 2019-03-27 09:29 tomjobs 阅读(135) 评论(0) 推荐(0) 编辑

C - Painting Fence CodeForces - 448C(dp或分治)

摘要: C. Painting Fencetime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard outputBizon the C... 阅读全文
posted @ 2019-03-27 09:25 tomjobs 阅读(136) 评论(0) 推荐(0) 编辑

L - Oil Deposits HDU - 1241(flood fill,dfs,基础搜索)

摘要: The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large r... 阅读全文
posted @ 2019-03-27 08:16 tomjobs 阅读(129) 评论(0) 推荐(0) 编辑

A - 棋盘问题 POJ - 1321(DFS,八皇后)

摘要: 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。每组数据的第一行是两个正整... 阅读全文
posted @ 2019-03-27 08:11 tomjobs 阅读(117) 评论(0) 推荐(0) 编辑

C - 哈密顿绕行世界问题 HDU - 2181(DFS)

摘要: 一个规则的实心十二面体,它的 20个顶点标出世界著名的20个城市,你从一个城市出发经过每个城市刚好一次后回到出发的城市。Input前20行的第i行有3个数,表示与第i个城市相邻的3个城市.第20行以后每行有1个数m,m=1.m=0退出.Output输出从第m... 阅读全文
posted @ 2019-03-27 01:15 tomjobs 阅读(102) 评论(0) 推荐(0) 编辑

B - Suffix Structures CodeForces - 448B(题意理解,构造,模拟)

摘要: Bizon the Champion isn’t just a bison. He also is a favorite of the “Bizons” team.At a competition the “Bizons” got the following... 阅读全文
posted @ 2019-03-26 23:28 tomjobs 阅读(139) 评论(0) 推荐(0) 编辑

A - Rewards CodeForces - 448A(按规则模拟)

摘要: Bizon the Champion is called the Champion for a reason.Bizon the Champion has recently got a present — a new glass cupboard with ... 阅读全文
posted @ 2019-03-26 21:57 tomjobs 阅读(139) 评论(0) 推荐(0) 编辑

A - Mike and Fax CodeForces - 548A(回文串)

摘要: A. Mike and Faxtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile Mike wa... 阅读全文
posted @ 2019-03-26 17:25 tomjobs 阅读(116) 评论(0) 推荐(0) 编辑

日记

摘要: 03261.不看QQ不看QQ不看QQ2.CF2小时读题,30分钟写题,我佛~~0327写博客好欢乐啊,只是为什么一天只能写10篇。。。 阅读全文
posted @ 2019-03-26 16:46 tomjobs 阅读(71) 评论(0) 推荐(0) 编辑