分治/优化
文章平均质量分 89
红鲤鱼遇绿鲤鱼
只要思想不滑坡,办法总比困难多~
展开
-
hdoj 1043 && poj 1077 eight
原题:EightTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 43121 Accepted: 17543 Special JudgeDescriptionThe 15-puzzle has been around for over 100 years; even if you don’t know it by that name, you’ve seen it. It is constructed with 15 slid原创 2021-01-31 12:56:48 · 167 阅读 · 0 评论 -
cf Educational Codeforces Round 61 C. Painting the Fence
原题:C. Painting the Fencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a long fence which consists of n sections. Unfortunately, i...原创 2019-06-30 19:52:46 · 276 阅读 · 0 评论 -
cf Educational Codeforces Round 60 D. Magic Gems
原题:D. Magic Gemstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputReziba has many magic gems. Each magic gem can be split into M normal gems. ...原创 2019-05-19 11:15:40 · 298 阅读 · 0 评论 -
cf Educational Codeforces Round 55 E. Increasing Frequency
原题:E. Increasing Frequencytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given array a of length n. You can choose one segment [l,r...原创 2019-01-31 21:48:41 · 186 阅读 · 0 评论 -
cf Educational Codeforces Round 55 C. Multi-Subject Competition
原题:C. Multi-Subject Competitiontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA multi-subject competition is coming! The competition has m ...原创 2019-01-31 20:24:59 · 244 阅读 · 0 评论 -
cf Educational Codeforces Round 53 D. Berland Fair
原题:D. Berland Fairtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputXXI Berland Annual Fair is coming really soon! Traditionally fair consists...原创 2018-11-29 22:19:48 · 390 阅读 · 0 评论 -
poj 3276 Face The Right Way
原题: Face The Right Way Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 6751 Accepted: 3141 DescriptionFarmer John has arranged his N (1 ≤ N ≤ 5,000) cows in a row and many of...原创 2018-09-02 19:17:58 · 172 阅读 · 0 评论 -
poj 3061 Subsequence
原题: Subsequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 18219 Accepted: 7791 DescriptionA sequence of N positive integers (10 < N < 100 000), each of them le...原创 2018-03-01 22:17:10 · 155 阅读 · 0 评论 -
uva 11093 Just Finish it up
原题: Along a circular track, there are N gas stations, which are numbered clockwise from 1 up to N. At station i, there are p i gallons of petrol available. To race from station i to its clockwise ne...原创 2018-02-10 15:46:07 · 235 阅读 · 0 评论 -
Educational Codeforces Round 34 E. Swapping Characters
codeforcesEducational Codeforces Round 34 E. Swapping Characters原创 2018-02-03 00:20:59 · 305 阅读 · 0 评论 -
Educational Codeforces Round 34 D. Almost Difference
codeforcesEducational Codeforces Round 34 Almost Difference原创 2018-02-02 23:58:35 · 194 阅读 · 0 评论 -
uva 10599 Robots(II)
uva 10599 Robots(II)原创 2017-12-02 12:42:58 · 422 阅读 · 0 评论 -
uva 1151 Buy or Build
uva 1151 Buy or Build原创 2017-10-02 19:37:16 · 309 阅读 · 0 评论 -
uva 10125 Sumsets
uva 10125 Sumsets原创 2017-01-20 21:59:05 · 396 阅读 · 0 评论 -
uva 11129 An antiarithmetic permutation
uva 11129 An antiarithmetic permutation原创 2016-09-24 17:54:47 · 382 阅读 · 0 评论 -
uva 140 Bandwidth
uva 140 Bandwidth原创 2016-08-22 11:47:03 · 262 阅读 · 0 评论 -
uva 11572 Unique Snowflakes
uva 11572 Unique Snowflakes原创 2016-04-15 23:23:37 · 791 阅读 · 0 评论 -
uva 10245 The Closest Pair Problem
uva 10245 The Closest Pair Problem原创 2016-04-04 21:05:29 · 813 阅读 · 0 评论