![](https://img-blog.csdnimg.cn/2019091813595558.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
尺取法
小菜鸡加油
菜鸡
什么都能折磨
展开
-
B - Pair of Topics
CodeForces – 1324DThe next lecture in a high school requires two topics to be discussed. Theii-th topic is interesting byaiaiunits for the teacher and bybibiunits for the students.The pair of topicsiiandjj(i<ji<j) is calledgoodifai+a...原创 2020-08-07 10:51:45 · 183 阅读 · 0 评论 -
A - Books
CodeForces – 279BWhen Valera has got some free time, he goes to the library to read some books. Today he’s gottfree minutes to read. That’s why Valera tooknbooks in the library and for each book he estimated the time he is going to need to read it. L...原创 2020-08-06 18:44:41 · 249 阅读 · 0 评论 -
P1638 逛画展
题目描述博览馆正在展出由世上最佳的 M 位画家所画的图画。wangjy想到博览馆去看这几位大师的作品。可是,那里的博览馆有一个很奇怪的规定,就是在购买门票时必须说明两个数字,a和b,代表他要看展览中的第 a 幅至第 b 幅画(包含 a 和 b)之间的所有图画,而门票的价钱就是一张图画一元。为了看到更多名师的画,wangjy希望入场后可以看到所有名师的图画(至少各一张)。可是他又想节省金钱。。。作为wangjy的朋友,他请你写一个程序决定他购买门票时的 a 值和 b 值。输原创 2020-07-09 23:47:53 · 150 阅读 · 0 评论 -
C. ALICE, BOB AND CHOCOLATE
http://www.yyycode.cn/index.php/2020/05/20/c-alice-bob-and-chocolate/Alice and Bob like games. And now they are ready to start a new game. They have placednchocolate bars in a line. Alice starts to eat chocolate bars one by one from left to right, a...原创 2020-05-20 20:51:38 · 386 阅读 · 0 评论 -
A. KIRILL AND THE GAME
http://www.yyycode.cn/index.php/2020/05/20/a-kirill-and-the-game/Kirill plays a new computer game. He came to the potion store where he can buy any potion. Each potion is characterized by two integers— amount of experience and cost. The efficiency of a .原创 2020-05-20 17:34:15 · 182 阅读 · 0 评论 -
C. BALANCED TEAM[双头指针]
http://www.yyycode.cn/index.php/2020/05/19/c-balanced-team%e5%8f%8c%e5%a4%b4%e6%8c%87%e9%92%88/https://codeforces.com/problemset/problem/1133/CYou are a coach at your local university. There arennstudents under your supervision, the programming skill..原创 2020-05-19 16:26:39 · 233 阅读 · 0 评论 -
C. DOMINATED SUBARRAY[求最短的两个相同的数的子串长度]
http://www.yyycode.cn/index.php/2020/05/19/c-dominated-subarray%e6%b1%82%e6%9c%80%e7%9f%ad%e7%9a%84%e4%b8%a4%e4%b8%aa%e7%9b%b8%e5%90%8c%e7%9a%84%e6%95%b0%e7%9a%84%e5%ad%90%e4%b8%b2%e9%95%bf%e5%ba%a6/https://codeforces.com/problemset/problem/1257/C..原创 2020-05-19 09:29:09 · 216 阅读 · 0 评论 -
C. THREE PARTS OF THE ARRAY【双头指针+前缀和】
http://www.yyycode.cn/index.php/2020/05/18/c-three-parts-of-the-array%e3%80%90%e5%8f%8c%e5%a4%b4%e6%8c%87%e9%92%88%e5%89%8d%e7%bc%80%e5%92%8c%e3%80%91/You are given an arrayd1,d2,…,dnd1,d2,…,dnconsisting ofnninteger numbers.Your task is to split th...原创 2020-05-18 22:10:51 · 256 阅读 · 1 评论 -
B. BERSU BALL(双指针)
http://www.yyycode.cn/index.php/2020/05/18/b-bersu-ball/The Berland State University is hosting a ballroom dance in celebration of its 100500-th anniversary!nboys andmgirls are already busy rehearsing waltz, minuet, polonaise and quadrille moves.We...原创 2020-05-18 21:14:30 · 471 阅读 · 0 评论 -
B. TERNARY STRING
http://www.yyycode.cn/index.php/2020/05/17/b-ternary-string/You are given a stringsssuch that each its character is either1,2, or3. You have to choose the shortest contiguous substring ofsssuch that it contains each of these three characters at le...原创 2020-05-17 20:34:08 · 591 阅读 · 0 评论