CodeForces
文章平均质量分 81
Snakeflute
鲜血与雷鸣
展开
-
HDU 4027 - Can you answer these queries?(线段树)
Can you answer these queries?Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others) Total Submission(s): 15043 Accepted Submission(s): 3529Problem Description A lot of原创 2017-03-15 14:55:16 · 364 阅读 · 0 评论 -
Codeforces 602B - Approximating a Constant Range(DP)
B. Approximating a Constant Range time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output When Xellos was doing a practice course in university, h原创 2017-01-24 01:30:36 · 516 阅读 · 0 评论 -
Codeforces 544B - Sea and Islands(构造)
B. Sea and Islands time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output A map of some object is a rectangular field consisting of n rows and n c原创 2017-02-13 14:29:23 · 679 阅读 · 0 评论 -
Codeforces 551C - GukiZ hates Boxes(贪心二分)
C. GukiZ hates Boxes time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Professor GukiZ is concerned about making his way to school, because原创 2017-03-01 21:22:03 · 399 阅读 · 0 评论 -
Codeforces 548C - Mike and Frog(暴力循环节)
C. Mike and Frog time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Mike has a frog and a flower. His frog is named Xaniar and his flower is n原创 2017-02-21 18:03:09 · 777 阅读 · 0 评论 -
CodeForces 593B - Anton and Lines(思维)
B. Anton and Lines time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output The teacher gave Anton a large geometry homework, but he didn’t do it (a原创 2017-01-18 22:25:07 · 412 阅读 · 0 评论 -
CodeForces 593A - 2Char(暴力)
A. 2Char time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Andrew often reads articles in his favorite magazine 2Char. The main feature of t原创 2017-01-18 15:25:46 · 315 阅读 · 0 评论 -
CodeForces 588C - Duff and Weight Lifting(思维)
C. Duff and Weight Lifting time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Recently, Duff has been practicing weight lifting. As a hard pra原创 2017-01-18 00:09:37 · 393 阅读 · 0 评论 -
CodeForces 581C - Developing Skills(模拟)
C. Developing Skills time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Petya loves computer games. Finally a game that he’s been waiting for原创 2017-01-15 21:55:12 · 367 阅读 · 0 评论 -
CodeForces 584D - Dima and Lisa(数论)
D. Dima and Lisa time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Dima loves representing an odd number as the sum of multiple primes, and L原创 2017-01-15 20:28:45 · 539 阅读 · 1 评论 -
CodeForces 584C - Marina and Vasya(构造)
C. Marina and Vasya time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Marina loves strings of the same length and Vasya loves when there is a原创 2017-01-15 18:28:43 · 348 阅读 · 0 评论 -
CodeForces 581C - GCD Table(思维)
C. GCD Table time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output The GCD table G of size n × n for an array of positive integers a of length n原创 2017-01-14 12:37:41 · 477 阅读 · 0 评论 -
Codeforces 667B - Coat of Anticubism(思维)
B. Coat of Anticubism time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard outputAs some of you know, cubism is a trend in art, where the problem of con原创 2017-02-05 12:46:20 · 507 阅读 · 0 评论 -
CodeForces 673D - Bear and Two Paths(构造)
D. Bear and Two Paths time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Bearland has n cities, numbered 1 through n. Cities are connected vi原创 2016-12-09 17:47:51 · 408 阅读 · 0 评论 -
CodeForces 611B - New Year and Old Property(搜索)
B. New Year and Old Property time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output The year 2015 is almost over.Limak is a little polar bear. He原创 2016-12-09 16:05:07 · 429 阅读 · 0 评论 -
Codeforces 604B - Alan Wake(二分)
B. More Cowbell time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Kevin Sun wants to move his precious collection of n cowbells from Naperth原创 2017-01-24 22:44:41 · 363 阅读 · 0 评论 -
Codeforces 604C - Alternative Thinking(思维)
C. Alternative Thinking time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Kevin has just recevied his disappointing results on the USA Ident原创 2017-01-24 23:03:51 · 640 阅读 · 0 评论 -
Codeforces 367B - Sereja ans Anagrams(map)
B. Sereja ans Anagrams time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Sereja has two sequences a and b and number p. Sequence a consists o原创 2017-03-13 16:00:19 · 363 阅读 · 0 评论 -
POJ 3186 - Treats for the Cows(DP)
Treats for the Cows Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5729 Accepted: 2963 DescriptionFJ has purchased N (1 <= N <= 2000) yummy treats for the cows who get money for原创 2017-03-13 14:27:42 · 357 阅读 · 0 评论 -
Codeforces 367A - Sereja and Algorithm(前缀和)
A. Sereja and Algorithm time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Sereja loves all sorts of algorithms. He has recently come up with原创 2017-03-10 18:21:17 · 319 阅读 · 0 评论 -
Codeforces 366D - Dima and Trap Graph(DFS)
D. Dima and Trap Graph time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output Dima and Inna love spending time together. The problem is, Seryozha原创 2017-03-10 15:36:58 · 327 阅读 · 0 评论 -
Codeforces 366C - Dima and Salad(DP)
C. Dima and Salad time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Dima, Inna and Seryozha have gathered in a room. That’s right, someone’s原创 2017-03-09 19:42:03 · 542 阅读 · 0 评论 -
Codeforces 450D - Jzzhu and Cities(最短路)
D. Jzzhu and Cities time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Jzzhu is the president of country A. There are n cities numbered from原创 2017-03-06 13:13:20 · 488 阅读 · 0 评论 -
Codeforces 550D - Regular Bridge(构造)
D. Regular Bridge time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output An undirected graph is called k-regular, if the degrees of all its verti原创 2017-02-26 21:36:08 · 343 阅读 · 0 评论 -
Codeforces 550C - Divisibility by Eight(思维)
C. Divisibility by Eight time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given a non-negative integer n, its decimal representatio原创 2017-02-25 15:00:14 · 394 阅读 · 0 评论 -
Codeforces 362D - Fools and Foolproof Roads(并查集+优先队列)
D. Fools and Foolproof Roads time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You must have heard all about the Foolland on your Geography l原创 2017-03-03 17:35:34 · 422 阅读 · 0 评论 -
Codeforces 363D - Renting Bikes(贪心二分)
D. Renting Bikes time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output A group of n schoolboys decided to ride bikes. As nobody of them has a bik原创 2017-02-24 14:47:07 · 745 阅读 · 0 评论 -
Codeforces 552C - Vanya and Scales(数学)
C. Vanya and Scales time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vanya has a scales for weighing loads and weights of masses w0, w1, w2,原创 2017-03-02 17:56:41 · 380 阅读 · 0 评论 -
Codeforces 552B - Vanya and Books(数学)
B. Vanya and Books time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vanya got an important task — he should enumerate books in the library a原创 2017-03-02 17:46:27 · 541 阅读 · 0 评论 -
Codeforces 621B - Wet Shark and Bishops(思维)
B. Wet Shark and Bishops time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Today, Wet Shark is given n bishops on a 1000 by 1000 grid. Both原创 2017-01-30 10:30:43 · 397 阅读 · 0 评论 -
Codeforces 615B - Longtail Hedgehog(DP)
B. Longtail Hedgehog time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output This Christmas Santa gave Masha a magic picture and a pencil. The pic原创 2017-01-27 11:43:10 · 337 阅读 · 0 评论 -
CodeForce 659A - Round House(水题)
A. Round House time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vasya lives in a round building, whose entrances are numbered sequentially b原创 2016-12-09 15:59:23 · 437 阅读 · 0 评论 -
CodeForces 357C - Knight Tournament(模拟)
C. Knight Tournament time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output Hooray! Berl II, the king of Berland is making a knight tournament. T原创 2016-12-09 15:54:17 · 561 阅读 · 0 评论 -
CodeForces 359B - Permutation(思维)
B. Permutation time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output A permutation p is an ordered group of numbers p1, p2, …, pn, consisti原创 2016-11-27 15:46:45 · 502 阅读 · 0 评论 -
CodeForces 698B - Fix a Tree(并查集)
B. Fix a Tree time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output A tree is an undirected connected graph without cycles.Let’s consider a root原创 2016-11-08 21:03:28 · 299 阅读 · 0 评论 -
CodeForces 734C - Anton and Making Potions(枚举)
C. Anton and Making Potions time limit per test4 seconds memory limit per test256 megabytes inputstandard input outputstandard output Anton is playing a very interesting computer game, but now he原创 2016-11-16 18:07:49 · 383 阅读 · 0 评论 -
CodeForces 735D - Taxes(数论)
D. Taxes time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Mr. Funt now lives in a country with a very specific tax laws. The total income o原创 2016-11-28 20:57:53 · 487 阅读 · 0 评论 -
CodeForces 735C - Tennis Championship(递推)
C. Tennis Championship time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Famous Brazil city Rio de Janeiro holds a tennis tournament and Ost原创 2016-11-28 20:53:17 · 322 阅读 · 0 评论 -
CodeForces 735B - Urbanization(贪心)
B. Urbanization time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Local authorities have heard a lot about combinatorial abilities of Ostap原创 2016-11-28 20:47:10 · 302 阅读 · 0 评论 -
CodeForces 735A - Ostap and Grasshopper(思维)
A. Ostap and Grasshopper time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output On the way to Rio de Janeiro Ostap kills time playing with a gras原创 2016-11-28 20:44:08 · 400 阅读 · 0 评论