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 |
---|---|---|---|---|---|---|
868 | Codeforces Round 438 by Sberbank and Barcelona Bootcamp (Div. 1 + Div. 2 combined) | FINISHED | False | 10800 | 230338524 | Oct. 5, 2017, 7:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 3971 ) | F | Yet Another Minimization Problem | PROGRAMMING | divide and conquer dp | 2500 |
B"You are given an array of n integers a1... an. The cost of a subsegment is the number of unordered pairs of distinct indices within the subsegment that contain equal elements. Split the given array into k non-intersecting non-empty subsegments so that the sum of their costs is minimum possible. Each element should be present in exactly one subsegment. The first line contains two integers n and k (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89min (n, xe2 x80 x8920)) -- the length of the array and the number of segments you need to split the array into. The next line contains n integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) -- the elements of the array. Print single integer: the minimum possible total cost of resulting subsegments. In the first example it's optimal to split the sequence into the following three subsegments: [1], [1, xe2 x80 x893], [3, xe2 x80 x893, xe2 x80 x892, xe2 x80 x891]. The costs are 0, 0 and 1, thus the answer is 1. In the second example it's optimal to split the sequence in two equal halves. The cost for each half is 4. In the third example it's optimal to split the sequence in the following way: [1, xe2 x80 x892, xe2 x80 x892, xe2 x80 x892, xe2 x80 x891], [2, xe2 x80 x891, xe2 x80 x891, xe2 x80 x891, xe2 x80 x892], [2, xe2 x80 x891, xe2 x80 x891]. The costs are 4, 4, 1. "... |
55046 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
32067141 | fffmatch | F | Nov. 5, 2017, 3:29 a.m. | OK | FPC | TESTS | 22 | 405 | 2457600 | 2500 | |
31056693 | sweeth | F | Oct. 6, 2017, 6:48 a.m. | OK | GNU C++ | TESTS | 22 | 218 | 2457600 | 2500 | |
31051935 | sweeth | F | Oct. 6, 2017, 3:27 a.m. | OK | GNU C++ | TESTS | 22 | 218 | 2457600 | 2500 | |
34190053 | vjudge1 | F | Jan. 15, 2018, 6:40 a.m. | OK | GNU C++ | TESTS | 22 | 218 | 4505600 | 2500 | |
40473692 | vjudge5 | F | July 17, 2018, 10:46 a.m. | OK | GNU C++ | TESTS | 22 | 234 | 2457600 | 2500 | |
31134794 | OX_louis | F | Oct. 8, 2017, 6:36 a.m. | OK | GNU C++ | TESTS | 22 | 234 | 2457600 | 2500 | |
40473686 | vjudge2 | F | July 17, 2018, 10:46 a.m. | OK | GNU C++ | TESTS | 22 | 249 | 2457600 | 2500 | |
39809879 | vjudge3 | F | July 1, 2018, 12:35 a.m. | OK | GNU C++ | TESTS | 22 | 249 | 2457600 | 2500 | |
31164255 | massimodong | F | Oct. 9, 2017, 10:18 a.m. | OK | GNU C++ | TESTS | 22 | 249 | 2457600 | 2500 | |
32716774 | FoolPerson | F | Nov. 27, 2017, 1:50 p.m. | OK | GNU C++ | TESTS | 22 | 249 | 4300800 | 2500 | |
31066623 | wh2001_ZY | F | Oct. 6, 2017, 1:12 p.m. | OK | GNU C++ | TESTS | 22 | 249 | 20889600 | 2500 | |
62105887 | xzsawq | F | Oct. 8, 2019, 10:45 a.m. | OK | GNU C++11 | TESTS | 22 | 140 | 2457600 | 2500 | |
51812532 | ZUTTER_ | F | March 25, 2019, 6:57 a.m. | OK | GNU C++11 | TESTS | 22 | 140 | 6656000 | 2500 | |
48204948 | was_n | F | Jan. 11, 2019, 8:11 a.m. | OK | GNU C++11 | TESTS | 22 | 156 | 3993600 | 2500 | |
68425459 | Roal_L | F | Jan. 9, 2020, 2:51 a.m. | OK | GNU C++11 | TESTS | 22 | 171 | 2457600 | 2500 | |
67016768 | ddytxdy | F | Dec. 16, 2019, 11:42 a.m. | OK | GNU C++11 | TESTS | 22 | 171 | 2457600 | 2500 | |
62057228 | Vexoben | F | Oct. 7, 2019, 12:29 p.m. | OK | GNU C++11 | TESTS | 22 | 171 | 2457600 | 2500 | |
57926283 | luogu_bot4 | F | July 29, 2019, 7:13 a.m. | OK | GNU C++11 | TESTS | 22 | 171 | 2457600 | 2500 | |
68426953 | CYJian | F | Jan. 9, 2020, 4:16 a.m. | OK | GNU C++11 | TESTS | 22 | 171 | 2662400 | 2500 | |
68426687 | CYJian | F | Jan. 9, 2020, 4 a.m. | OK | GNU C++11 | TESTS | 22 | 171 | 17920000 | 2500 | |
68426639 | CYJian | F | Jan. 9, 2020, 3:57 a.m. | OK | GNU C++11 | TESTS | 22 | 171 | 17920000 | 2500 | |
68144165 | ZUTTER_ | F | Jan. 4, 2020, 2:44 a.m. | OK | GNU C++14 | TESTS | 22 | 171 | 36864000 | 2500 | |
47834493 | consecutivelimit | F | Jan. 2, 2019, 9:18 a.m. | OK | GNU C++14 | TESTS | 22 | 202 | 2355200 | 2500 | |
58655504 | lxrtxdy | F | Aug. 12, 2019, 8:56 a.m. | OK | GNU C++14 | TESTS | 22 | 202 | 2457600 | 2500 | |
57106563 | vjudge1 | F | July 15, 2019, 3:31 p.m. | OK | GNU C++14 | TESTS | 22 | 218 | 2457600 | 2500 | |
31062786 | sahedsohel | F | Oct. 6, 2017, 10:45 a.m. | OK | GNU C++14 | TESTS | 22 | 218 | 4915200 | 2500 | |
31269193 | I_Love_Umirzhanova_Amina | F | Oct. 13, 2017, 8:49 a.m. | OK | GNU C++14 | TESTS | 22 | 233 | 2457600 | 2500 | |
31617993 | Hossam | F | Oct. 23, 2017, 2:31 a.m. | OK | GNU C++14 | TESTS | 22 | 233 | 20377600 | 2500 | |
31030591 | woqja125 | F | Oct. 5, 2017, 11:32 a.m. | OK | GNU C++14 | TESTS | 22 | 233 | 25600000 | 2500 | |
62165382 | pikmike | F | Oct. 8, 2019, 7:57 p.m. | OK | GNU C++14 | TESTS | 22 | 234 | 2457600 | 2500 | |
31064539 | blowUpTheStonySilence | F | Oct. 6, 2017, 11:56 a.m. | OK | GNU C++14 | TESTS | 22 | 234 | 2457600 | 2500 | |
45913543 | Silly_Bee | F | Nov. 18, 2018, 12:56 p.m. | OK | GNU C++17 | TESTS | 22 | 202 | 2662400 | 2500 | |
56275257 | haj_lemon | F | June 29, 2019, 1:55 p.m. | OK | GNU C++17 | TESTS | 22 | 217 | 2457600 | 2500 | |
68017551 | mrboorger | F | Dec. 31, 2019, 7:42 p.m. | OK | GNU C++17 | TESTS | 22 | 218 | 58572800 | 2500 | |
40517846 | vjudge4 | F | July 18, 2018, 2:14 p.m. | OK | GNU C++17 | TESTS | 22 | 233 | 2457600 | 2500 | |
66782293 | C20193618 | F | Dec. 13, 2019, 12:27 p.m. | OK | GNU C++17 | TESTS | 22 | 233 | 20787200 | 2500 | |
68017694 | mrboorger | F | Dec. 31, 2019, 7:48 p.m. | OK | GNU C++17 | TESTS | 22 | 233 | 22425600 | 2500 | |
68017600 | mrboorger | F | Dec. 31, 2019, 7:44 p.m. | OK | GNU C++17 | TESTS | 22 | 233 | 22425600 | 2500 | |
39431055 | Ali_Pi | F | June 20, 2018, 9:06 a.m. | OK | GNU C++17 | TESTS | 22 | 234 | 2457600 | 2500 | |
68017704 | mrboorger | F | Dec. 31, 2019, 7:48 p.m. | OK | GNU C++17 | TESTS | 22 | 234 | 20480000 | 2500 | |
40517806 | vjudge3 | F | July 18, 2018, 2:13 p.m. | OK | GNU C++17 | TESTS | 22 | 249 | 2457600 | 2500 | |
33251672 | filo | F | Dec. 14, 2017, 10:50 p.m. | OK | Go | TESTS | 22 | 607 | 42086400 | 2500 | |
42701921 | xodiac | F | Sept. 9, 2018, 11 a.m. | OK | Java 8 | TESTS | 22 | 639 | 17408000 | 2500 | |
31146349 | Aemon | F | Oct. 8, 2017, 2:09 p.m. | OK | Java 8 | TESTS | 22 | 654 | 17715200 | 2500 | |
31040762 | alexrcoleman | F | Oct. 5, 2017, 4:25 p.m. | OK | Java 8 | TESTS | 22 | 686 | 0 | 2500 | |
31042794 | I_Need_Alex_R_Coleman | F | Oct. 5, 2017, 5:35 p.m. | OK | Java 8 | TESTS | 22 | 701 | 17510400 | 2500 | |
31027509 | Petr | F | Oct. 5, 2017, 9:40 a.m. | OK | Java 8 | TESTS | 22 | 701 | 17817600 | 2500 | |
44680713 | I_love_Harpae | F | Oct. 22, 2018, 6:11 a.m. | OK | Java 8 | TESTS | 22 | 717 | 0 | 2500 | |
34100578 | I_love_Harpae | F | Jan. 12, 2018, 7:09 a.m. | OK | Java 8 | TESTS | 22 | 717 | 45158400 | 2500 | |
34098021 | barakraganosungam | F | Jan. 12, 2018, 12:12 a.m. | OK | Java 8 | TESTS | 22 | 748 | 36352000 | 2500 | |
34952235 | alexrcoleman | F | Feb. 5, 2018, 6:23 p.m. | OK | Java 8 | TESTS | 22 | 795 | 20684800 | 2500 | |
34952224 | alexrcoleman | F | Feb. 5, 2018, 6:23 p.m. | OK | Java 8 | TESTS | 22 | 795 | 20684800 | 2500 | |
66782496 | vjudge3 | F | Dec. 13, 2019, 12:31 p.m. | OK | MS C++ | TESTS | 22 | 202 | 20889600 | 2500 | |
44993725 | vjudge1 | F | Oct. 28, 2018, 2:16 p.m. | OK | MS C++ | TESTS | 22 | 218 | 2355200 | 2500 | |
44002155 | vjudge5 | F | Oct. 8, 2018, 2:12 p.m. | OK | MS C++ | TESTS | 22 | 343 | 2764800 | 2500 | |
66037491 | vjudge5 | F | Nov. 30, 2019, 12:19 p.m. | OK | MS C++ 2017 | TESTS | 22 | 327 | 180326400 | 2500 | |
66037468 | maneatingmonkey | F | Nov. 30, 2019, 12:19 p.m. | OK | MS C++ 2017 | TESTS | 22 | 342 | 180326400 | 2500 | |
66037231 | maneatingmonkey | F | Nov. 30, 2019, 12:13 p.m. | OK | MS C++ 2017 | TESTS | 22 | 421 | 180326400 | 2500 |
Back to search problems