![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
-----Codeforces-----
文章平均质量分 88
CrossDolphin
青春看起来如此完美,没空闲去浪费时间。
展开
-
CROC 2016 - Elimination Round B 树状数组处理逆序对个数
链接:戳这里B. Mischievous Mess Makerstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt is a balmy spring afternoon, and Farmer John原创 2016-03-30 23:49:53 · 430 阅读 · 0 评论 -
CROC 2016 - Elimination Round C 二分
链接:戳这里C. Enduring Exodustime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn an attempt to escape the Mischievous Mess Makers' a原创 2016-03-30 23:55:44 · 348 阅读 · 0 评论 -
Educational Codeforces Round 9 A B C D F
链接:戳这里A. Grandma Laura and Applestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputGrandma Laura came to the market to sell some apples原创 2016-03-18 22:12:27 · 672 阅读 · 0 评论 -
Codeforces Round #334 (Div. 2) B C D
B. More Cowbell题意:给定N表示铃铛的个数,和k表示箱子的个数,牛铃铛要放在箱子里运输,要求每个箱子放1个或者2个牛铃铛,且每个箱子都要放铃铛,箱子的大小相等,老板为了省钱,希望箱子越小越好( smallest ),求满足条件的箱子的尺寸。给定的n个铃铛的尺寸依次从小到大。样例:6 41 2 3 101 102 103{1 101} {2 3}原创 2016-03-16 21:14:14 · 327 阅读 · 0 评论 -
BestCoder Round #65 B C D || HDU 5591 5592 5593
B 题意:ZYB在远足中,和同学们玩了一个“数字炸弹”游戏:由主持人心里想一个在[1,N][1,N]中的数字XX,然后玩家们轮流猜一个数字,如果一个玩家恰好猜中XX则算负,否则主持人将告诉全场的人当前的数和XX比是偏大还是偏小,然后猜测的范围就会相应减小,一开始的范围是[1,N][1,N].每个玩家只能在合法的范围中猜测. 现在假设只有两个人在玩这个游戏,并且两个人都已经知道了最后的XX,若两个人原创 2016-03-16 21:10:43 · 365 阅读 · 0 评论 -
codeforces #345(div2)
链接:戳这里A. Joystickstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFriends are going to play原创 2016-03-10 21:57:33 · 592 阅读 · 0 评论 -
Codeforces Round #346 (Div. 2) A B C D E
链接:戳这里A. Round Housetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya lives in a round building, whose entrances are number原创 2016-03-31 19:05:56 · 926 阅读 · 0 评论 -
Codeforces Round #346 (Div. 2) F bfs+并查集
链接:戳这里F. Polycarp and Haytime limit per test4 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputThe farmer Polycarp has a warehouse with hay, which c原创 2016-03-31 21:51:41 · 386 阅读 · 0 评论 -
Codeforces Round #343 (Div. 2) A B C D
链接:戳这里A. Far Relative’s Birthday Caketime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDoor's family is going celebrate Famil Doors's原创 2016-03-20 22:05:25 · 671 阅读 · 0 评论 -
IndiaHacks 2016 - Online Edition (Div. 1 + Div. 2) A B C
链接:戳这里A. Bear and Three Ballstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLimak is a little polar bear. He has n balls, the i-t原创 2016-03-21 22:11:39 · 1274 阅读 · 0 评论 -
VK Cup 2016 - Round 1 (Div. 2 Edition) A B
链接:戳这里A. Bear and Reverse Radewooshtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLimak and Radewoosh are going to compete ag原创 2016-04-05 16:23:18 · 423 阅读 · 0 评论 -
hdu 1711 && Codeforces Round #344 (Div. 2) D 【KMP】
链接:戳这里Number SequenceTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 18633 Accepted Submission(s): 8073Probl原创 2016-03-24 19:34:24 · 479 阅读 · 0 评论 -
VK Cup 2016 - Round 1 (Div. 2 Edition) C D
链接:戳这里C. Bear and Forgotten Tree 3time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA tree is a connected undirected graph consi原创 2016-04-06 23:09:19 · 365 阅读 · 0 评论 -
Codeforces Round #346 (Div. 2) G 递推
链接:戳这里G. Fence Divercitytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLong ago, Vasily built a good fence at his country hou原创 2016-04-07 21:20:03 · 429 阅读 · 0 评论 -
CROC 2016 - Elimination Round D 二分+拓扑序+bfs
链接:戳这里D. Robot Rapping Results Reporttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile Farmer John rebuilds his farm in an原创 2016-04-07 22:27:27 · 451 阅读 · 0 评论 -
Codeforces Round #348 (VK Cup 2016 Round 2, Div. 2 Edition) A B C D 模拟
链接:戳这里A. Little Artem and Presentstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Artem got n stones on his birthday and原创 2016-04-25 23:02:34 · 703110 阅读 · 0 评论 -
Codeforces Round #348 (VK Cup 2016 Round 2, Div. 1 Edition) C 离散化+树状数组+map D 数学
链接:戳这里C. Little Artem and Random Variabletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Artyom decided to study probab原创 2016-04-28 21:41:25 · 451 阅读 · 0 评论 -
Codeforces Round #352 (Div. 2) A B C
链接:戳这里A. Summer Camptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputEvery year, hundreds of people come to summer camps, they l原创 2016-05-12 21:11:11 · 708 阅读 · 0 评论 -
Codeforces Round #349 (Div. 2) A B C[dp] D[spfa] +vector
链接:戳这里A + B 就不写了吧C. Reberland Linguisticstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFi原创 2016-05-02 17:40:28 · 682 阅读 · 0 评论 -
BestCoder Round #82 (div.2) A B
链接:戳这里ztr loves math Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)问题描述ztr喜欢研究数学,一天,他在思考直角三角形方程组的Lower版,即n=x^2-y^2 他想知道,对于给出的n,是否会有正整数解。输入描述有原创 2016-05-02 22:20:04 · 339 阅读 · 0 评论 -
Codeforces Round #352 (Div. 2) D 二分
链接:戳这里D. Robin Hoodtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWe all know the impressive story of Robin Hood. Robin Hood u原创 2016-05-13 21:19:36 · 385 阅读 · 0 评论 -
Codeforces Round #350 (Div. 2) A B C D E STL (list map stack)
链接:戳这里A. Holidaystime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOn the planet Mars a year lasts exactly n days (there are no l原创 2016-05-07 14:09:16 · 1150 阅读 · 0 评论 -
Codeforces Beta Round #2 A map B dp C 模拟退火
链接:戳这里A. Winnertime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputThe winner of the card game popular in Berland "Berlogging" is de原创 2016-05-07 22:44:13 · 1078 阅读 · 0 评论 -
Codeforces Round #351 (VK Cup 2016 Round 3, Div. 2 Edition) A B C D 构造
链接:戳这里A. Bear and Gametime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBear Limak likes watching sports on TV. He is going to w原创 2016-05-08 14:35:58 · 826 阅读 · 0 评论 -
Codeforces Round #354 (Div. 2) A B C
链接:戳这里A. Nicholas and Permutationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputNicholas has an array a that contains n distin原创 2016-06-03 00:03:32 · 462 阅读 · 0 评论 -
Codeforces Round #355 (Div. 2) A B C D vector + map spfa
链接:戳这里A. Vanya and Fencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVanya and his friends are walking along the fence of he原创 2016-06-03 00:14:45 · 874 阅读 · 0 评论 -
Codeforces Round #353 (Div. 2) A B C D map迭代器
链接:戳这里A. Infinite Sequencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya likes everything infinite. Now he is studying t原创 2016-05-21 22:26:20 · 680 阅读 · 0 评论 -
Codeforces Round #353 (Div. 2) E 线段树+dp
链接:戳这里E. Trains and Statistictime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya commutes by train every day. There are n tr原创 2016-05-23 20:36:54 · 457 阅读 · 0 评论 -
Codeforces Round #325 (Div. 2) B 递推
链接:戳这里B. Laurenty and Shoptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA little boy Laurenty has been playing his favourite原创 2016-07-09 19:41:27 · 330 阅读 · 0 评论 -
Codeforces Round #325 (Div. 2) C 模拟
链接:戳这里C. Gennady the Dentisttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputGennady is one of the best child dentists in Berlan原创 2016-07-09 19:49:04 · 288 阅读 · 0 评论 -
Codeforces Round #325 (Div. 2) D bfs
链接:戳这里D. Phillip and Trainstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe mobile application store has a new game called "原创 2016-07-09 19:54:23 · 222 阅读 · 0 评论 -
Codeforces Round #325 (Div. 2) E 数论
链接:戳这里E. Alice, Bob, Oranges and Applestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice and Bob decided to eat some fruit.原创 2016-07-09 21:52:39 · 383 阅读 · 0 评论 -
Codeforces Round #321 (Div. 2) B 二分
链接:戳这里B. Kefa and Companytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKefa wants to celebrate his first big salary by going原创 2016-07-11 13:38:16 · 294 阅读 · 0 评论 -
Codeforces Round #321 (Div. 2) C DFS
链接:戳这里C. Kefa and Parktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKefa decided to celebrate his first big salary by going原创 2016-07-11 13:43:35 · 246 阅读 · 0 评论 -
Codeforces Round #321 (Div. 2) D 状压dp
链接:戳这里D. Kefa and Dishestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhen Kefa came to the restaurant and sat at a table, t原创 2016-07-11 13:49:31 · 307 阅读 · 0 评论 -
Codeforces Round #303 (Div. 2) E 最短路迪杰斯特拉(小根堆实现)
链接:戳这里E. Paths and Treestime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle girl Susie accidentally found her elder brother原创 2016-07-22 17:29:26 · 763 阅读 · 0 评论 -
Codeforces Round #303 (Div. 2) D 贪心
链接:戳这里D. Queuetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle girl Susie went shopping with her mom and she wondered how原创 2016-07-22 17:34:22 · 527 阅读 · 0 评论 -
Codeforces Round #303 (Div. 2) C dp
链接:戳这里C. Woodcutterstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Susie listens to fairy tales before bed every day. T原创 2016-07-22 17:43:08 · 345 阅读 · 0 评论 -
Codeforces Round #320 (Div. 2) [Bayan Thanks-Round] C 数学
链接:戳这里C. A Problem about Polylinetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a polyline going through points (0, 0)原创 2016-07-12 14:35:57 · 230 阅读 · 0 评论 -
Codeforces Round #364 (Div. 2) C 尺取法
链接:戳这里C. They Are Everywheretime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSergei B., the young coach of Pokemons, has found原创 2016-07-23 14:12:06 · 318 阅读 · 0 评论