Codeforces Round 276 (Div. 1)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
484 Codeforces Round 276 (Div. 1) FINISHED False 9000 322407004 Nov. 5, 2014, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2706 ) D Kindergarten PROGRAMMING data structures dp greedy 2400

B"In a kindergarten, the children are being divided into groups. The teacher put the children in a line and associated each child with his or her integer charisma value. Each child should go to exactly one group. Each group should be a nonempty segment of consecutive children of a line. A group's sociability is the maximum difference of charisma of two children in the group (in particular, if the group consists of one child, its sociability equals a zero). The teacher wants to divide the children into some number of groups in such way that the total sociability of the groups is maximum. Help him find this value. The first line contains integer n -- the number of children in the line (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106). The second line contains n integers ai -- the charisma of the i-th child ( xe2 x80 x89- xe2 x80 x89109 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Print the maximum possible total sociability of all groups. In the first test sample one of the possible variants of an division is following: the first three children form a group with sociability 2, and the two remaining children form a group with sociability 1. In the second test sample any division leads to the same result, the sociability will be equal to 0 in each group."...

Tutorials

Codeforces Round #276 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
9069278 greatsaiyanman D Dec. 10, 2014, 7:35 a.m. OK FPC TESTS 71 202 12185600 2400
10488393 WindRider D March 27, 2015, 11:30 a.m. OK FPC TESTS 71 217 12185600 2400
10488419 WindRider D March 27, 2015, 11:32 a.m. OK FPC TESTS 71 217 12185600 2400
9069544 _The_Mastermind_ D Dec. 10, 2014, 8:09 a.m. OK FPC TESTS 71 218 12185600 2400
8644766 greatsaiyanman D Nov. 11, 2014, 1:50 a.m. OK FPC TESTS 71 218 12185600 2400
8597922 hoangtheanhhp D Nov. 7, 2014, 2:12 a.m. OK FPC TESTS 71 218 12185600 2400
10488441 WindRider D March 27, 2015, 11:34 a.m. OK FPC TESTS 71 218 12185600 2400
9073823 phankhai D Dec. 10, 2014, 4:05 p.m. OK FPC TESTS 71 218 12185600 2400
10042390 FrostStar D Feb. 27, 2015, 9:20 a.m. OK FPC TESTS 71 233 60108800 2400
9376251 nielswiles D Jan. 7, 2015, 1:36 a.m. OK FPC TESTS 71 234 28057600 2400
11089716 Memory120 D May 13, 2015, 2:22 p.m. OK GNU C++ TESTS 71 78 0 2400
8900278 Al.Cash D Nov. 30, 2014, 6:36 p.m. OK GNU C++ TESTS 71 78 0 2400
8899723 Al.Cash D Nov. 30, 2014, 5:20 p.m. OK GNU C++ TESTS 71 78 0 2400
8586016 Pudge123 D Nov. 6, 2014, 8:13 a.m. OK GNU C++ TESTS 71 78 0 2400
8899896 Al.Cash D Nov. 30, 2014, 5:46 p.m. OK GNU C++ TESTS 71 78 102400 2400
13872960 Lightning34 D Oct. 26, 2015, 1:22 p.m. OK GNU C++ TESTS 71 78 20070400 2400
8900268 Al.Cash D Nov. 30, 2014, 6:35 p.m. OK GNU C++ TESTS 71 93 0 2400
40987717 ReaLNero1 D July 30, 2018, 9:26 p.m. OK GNU C++ TESTS 71 93 0 2400
8900284 Al.Cash D Nov. 30, 2014, 6:37 p.m. OK GNU C++ TESTS 71 93 0 2400
8900263 Al.Cash D Nov. 30, 2014, 6:35 p.m. OK GNU C++ TESTS 71 93 0 2400
10226982 Remilia-Scarlet D March 10, 2015, 1:39 p.m. OK GNU C++0x TESTS 71 78 24064000 2400
8628050 whn6325689 D Nov. 10, 2014, 3:50 a.m. OK GNU C++0x TESTS 71 93 12083200 2400
8612237 zck921031 D Nov. 8, 2014, 7:31 a.m. OK GNU C++0x TESTS 71 93 16076800 2400
8705048 atablash D Nov. 15, 2014, 4:31 p.m. OK GNU C++0x TESTS 71 109 23756800 2400
8596942 mruxim D Nov. 6, 2014, 10:25 p.m. OK GNU C++0x TESTS 71 170 0 2400
8775540 toi333 D Nov. 21, 2014, 3:36 p.m. OK GNU C++0x TESTS 71 171 0 2400
8629396 Rayn D Nov. 10, 2014, 8:58 a.m. OK GNU C++0x TESTS 71 171 11980800 2400
9092668 jetoyrico D Dec. 12, 2014, 3:41 p.m. OK GNU C++0x TESTS 71 171 11980800 2400
8769651 k0st1a D Nov. 20, 2014, 11:18 p.m. OK GNU C++0x TESTS 71 171 11980800 2400
8584314 skrydg D Nov. 6, 2014, 6:11 a.m. OK GNU C++0x TESTS 71 171 11980800 2400
61286662 rainboy D Sept. 25, 2019, 6:44 p.m. OK GNU C11 TESTS 71 202 3993600 2400
64223308 spsicio D Nov. 4, 2019, 1:42 p.m. OK GNU C++11 TESTS 71 77 13926400 2400
60520338 vjudge5 D Sept. 14, 2019, 8:07 a.m. OK GNU C++11 TESTS 71 78 11980800 2400
48450300 luogu_bot3 D Jan. 16, 2019, 9:55 a.m. OK GNU C++11 TESTS 71 78 11980800 2400
60520287 vjudge3 D Sept. 14, 2019, 8:06 a.m. OK GNU C++11 TESTS 71 78 11980800 2400
67166989 luogu_bot4 D Dec. 18, 2019, 3:54 p.m. OK GNU C++11 TESTS 71 78 11980800 2400
51164033 luogu_bot1 D March 11, 2019, 1:36 p.m. OK GNU C++11 TESTS 71 78 12083200 2400
48931587 AyoAyowei D Jan. 25, 2019, 12:44 p.m. OK GNU C++11 TESTS 71 78 16076800 2400
57009648 luogu_bot1 D July 14, 2019, 8:33 a.m. OK GNU C++11 TESTS 71 93 11980800 2400
57009980 tabbbbbb D July 14, 2019, 8:43 a.m. OK GNU C++11 TESTS 71 93 12083200 2400
67451575 Demon-Cyborg D Dec. 23, 2019, 4:36 a.m. OK GNU C++11 TESTS 71 93 16076800 2400
22151440 I_Love_Tina D Nov. 10, 2016, 4:03 p.m. OK GNU C++14 TESTS 71 62 84684800 2400
58828937 tbzard D Aug. 14, 2019, 5:04 p.m. OK GNU C++14 TESTS 71 280 11980800 2400
56865724 ccsu_cat_love_jiejie D July 12, 2019, 2:55 a.m. OK GNU C++14 TESTS 71 280 12083200 2400
50098799 Mirbek_aka D Feb. 18, 2019, 1:59 p.m. OK GNU C++14 TESTS 71 280 12083200 2400
47815472 tbzard D Jan. 1, 2019, 2:07 p.m. OK GNU C++14 TESTS 71 280 12083200 2400
69442752 alyx D Jan. 23, 2020, 11:21 p.m. OK GNU C++14 TESTS 71 280 12083200 2400
47815130 tbzard D Jan. 1, 2019, 1:55 p.m. OK GNU C++14 TESTS 71 280 19353600 2400
47297328 TiChuot97 D Dec. 20, 2018, 12:36 p.m. OK GNU C++14 TESTS 71 280 20070400 2400
45857360 T.V_N D Nov. 17, 2018, 3:02 a.m. OK GNU C++14 TESTS 71 280 20070400 2400
59899629 Yuki726 D Sept. 2, 2019, 1:15 p.m. OK GNU C++14 TESTS 71 280 28672000 2400
48358020 lyh1999 D Jan. 13, 2019, 5:13 p.m. OK GNU C++17 TESTS 71 280 12288000 2400
49601251 Iskalibur D Feb. 7, 2019, 5:13 p.m. OK GNU C++17 TESTS 71 280 20275200 2400
60303568 igba D Sept. 9, 2019, 1:02 p.m. OK GNU C++17 TESTS 71 295 12083200 2400
69434498 ChrisT D Jan. 23, 2020, 6:27 p.m. OK GNU C++17 TESTS 71 295 28057600 2400
61299367 eHHHhjw D Sept. 26, 2019, 3:58 a.m. OK GNU C++17 TESTS 71 296 20070400 2400
61299417 vjudge5 D Sept. 26, 2019, 4 a.m. OK GNU C++17 TESTS 71 296 20070400 2400
60245297 ffern D Sept. 8, 2019, 2:03 a.m. OK GNU C++17 TESTS 71 311 0 2400
60279982 ffern D Sept. 8, 2019, 8:08 p.m. OK GNU C++17 TESTS 71 311 0 2400
49553412 IIeJlMeHb D Feb. 7, 2019, 7:53 a.m. OK GNU C++17 TESTS 71 311 12288000 2400
61453307 ruo D Sept. 29, 2019, 4:47 a.m. OK GNU C++17 TESTS 71 311 26419200 2400
12577749 utkarshl D Aug. 17, 2015, 4:18 p.m. OK Haskell TESTS 71 889 227123200 2400
65451829 its_aks_ulure D Nov. 20, 2019, 6:26 p.m. OK Java 11 TESTS 71 529 39321600 2400
9142048 vjudge3 D Dec. 15, 2014, 2:22 p.m. OK Java 6 TESTS 71 1793 11468800 2400
8710605 kunawat D Nov. 16, 2014, 11:45 a.m. OK Java 6 TESTS 71 1934 12185600 2400
8592913 ixxa D Nov. 6, 2014, 3:52 p.m. OK Java 7 TESTS 71 311 58368000 2400
9944463 emo D Feb. 21, 2015, 3:14 a.m. OK Java 7 TESTS 71 343 58777600 2400
8872133 adityaluky2 D Nov. 27, 2014, 4:39 p.m. OK Java 7 TESTS 71 374 92672000 2400
8871665 dferz D Nov. 27, 2014, 3:51 p.m. OK Java 7 TESTS 71 374 92774400 2400
8871570 dellafbudiono D Nov. 27, 2014, 3:41 p.m. OK Java 7 TESTS 71 374 92774400 2400
8870837 Wheny D Nov. 27, 2014, 2:37 p.m. OK Java 7 TESTS 71 374 92774400 2400
8872162 mutiaraauliya D Nov. 27, 2014, 4:42 p.m. OK Java 7 TESTS 71 389 92774400 2400
8871754 mauliaharjono D Nov. 27, 2014, 3:59 p.m. OK Java 7 TESTS 71 389 92774400 2400
8870732 PuruhitaMP D Nov. 27, 2014, 2:28 p.m. OK Java 7 TESTS 71 389 92774400 2400
8870242 maxgrin D Nov. 27, 2014, 1:51 p.m. OK Java 7 TESTS 71 389 92774400 2400
14105822 Code.coding D Nov. 6, 2015, 12:14 p.m. OK Java 8 TESTS 71 218 22835200 2400
14212557 Sumeet.Varma D Nov. 12, 2015, 11:42 a.m. OK Java 8 TESTS 71 280 12697600 2400
8567125 Egor D Nov. 5, 2014, 5:13 p.m. OK Java 8 TESTS 71 296 409600 2400
8594239 AndreiNet D Nov. 6, 2014, 5:33 p.m. OK Java 8 TESTS 71 342 716800 2400
11183245 hama-du D May 20, 2015, 11:52 p.m. OK Java 8 TESTS 71 373 48435200 2400
59256288 hongquanntct D Aug. 22, 2019, 6:48 a.m. OK Java 8 TESTS 71 390 78540800 2400
41400859 aminul D Aug. 9, 2018, 1:34 p.m. OK Java 8 TESTS 71 405 14131200 2400
8871957 aristianlutfi D Nov. 27, 2014, 4:19 p.m. OK Java 8 TESTS 71 421 50790400 2400
9791621 mukeshmit D Feb. 10, 2015, 5:30 p.m. OK Java 8 TESTS 71 421 92262400 2400
9406494 Tyuguy D Jan. 12, 2015, 6:40 a.m. OK Java 8 TESTS 71 436 119500800 2400
8593231 AnnKats93 D Nov. 6, 2014, 4:16 p.m. OK MS C++ TESTS 71 217 3993600 2400
8630683 olage D Nov. 10, 2014, 12:03 p.m. OK MS C++ TESTS 71 218 12083200 2400
8575062 WHITE2302 D Nov. 5, 2014, 6:43 p.m. OK MS C++ TESTS 71 218 12083200 2400
61311617 vjudge5 D Sept. 26, 2019, 9:28 a.m. OK MS C++ TESTS 71 218 16076800 2400
44346143 vjudge4 D Oct. 15, 2018, 7:26 a.m. OK MS C++ TESTS 71 218 16486400 2400
9508468 ZYSRJXCN D Jan. 23, 2015, 6:15 a.m. OK MS C++ TESTS 71 218 20070400 2400
11132104 vjudge5 D May 18, 2015, 6:46 a.m. OK MS C++ TESTS 71 218 20172800 2400
9509191 vjudge5 D Jan. 23, 2015, 8:02 a.m. OK MS C++ TESTS 71 218 20275200 2400
8621978 zzb619 D Nov. 9, 2014, 10:16 a.m. OK MS C++ TESTS 71 218 20275200 2400
8628157 pacu D Nov. 10, 2014, 4:30 a.m. OK MS C++ TESTS 71 233 3993600 2400
8584803 ngochai94 D Nov. 6, 2014, 6:51 a.m. OK Python 2 TESTS 71 1684 53760000 2400
8577403 nwi D Nov. 5, 2014, 7:46 p.m. OK Python 2 TESTS 71 1731 53760000 2400

remove filters

Back to search problems