Codeforces Round 612 (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
1286 Codeforces Round 612 (Div. 1) FINISHED False 7200 153590099 Jan. 5, 2020, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 247 ) F Harry The Potter PROGRAMMING brute force constructive algorithms dp fft implementation math 3200

B'To defeat Lord Voldemort, Harry needs to destroy all horcruxes first. The last horcrux is an array a of n integers, which also needs to be destroyed. The array is considered destroyed if all its elements are zeroes. To destroy the array, Harry can perform two types of operations: Note that x does not have to be positive. Harry is in a hurry, please help him to find the minimum number of operations required to destroy the array and exterminate Lord Voldemort. The first line contains a single integer n -- the size of the array a ( 1 <= n <= 20 ). The following line contains n integers a_1, a_2, ldots, a_n -- array elements ( -10^{15} <= a_i <= 10^{15} ). Output a single integer -- the minimum number of operations required to destroy the array a . In the first example one can just apply the operation of the first kind three times. In the second example, one can apply the operation of the second kind two times: first, choose i = 2, j = 1, x = 4 , it transforms the array into (0, -1, -2) , and then choose i = 3, j = 2, x = -2 to destroy the array. In the third example, there is nothing to be done, since the array is already destroyed. '...

Tutorials

Codeforces Round #612 - Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
68593980 cuizhuyefei F Jan. 11, 2020, 1:30 p.m. OK GNU C++11 TESTS 89 607 37785600 3200
68432936 WZYYN F Jan. 9, 2020, 7:42 a.m. OK GNU C++11 TESTS 89 686 21094400 3200
68432800 WZYYN F Jan. 9, 2020, 7:39 a.m. OK GNU C++11 TESTS 89 702 21094400 3200
69221514 _twilight F Jan. 21, 2020, 4:59 a.m. OK GNU C++11 TESTS 89 2636 93696000 3200
68480580 panole F Jan. 10, 2020, 7:35 a.m. OK GNU C++11 TESTS 89 3603 22118400 3200
68430648 WZYYN F Jan. 9, 2020, 6:39 a.m. OK GNU C++11 TESTS 89 5288 20992000 3200
68669163 LJC00118 F Jan. 12, 2020, 4:14 p.m. OK GNU C++11 TESTS 89 5319 12595200 3200
69219615 Karry5307 F Jan. 21, 2020, 3:40 a.m. OK GNU C++11 TESTS 89 5381 58880000 3200
68474883 Lagoon_ F Jan. 10, 2020, 4:54 a.m. OK GNU C++11 TESTS 89 6489 25190400 3200
68634552 Isonan F Jan. 12, 2020, 5:10 a.m. OK GNU C++11 TESTS 89 6520 12390400 3200
68284858 Benq F Jan. 5, 2020, 6:07 p.m. OK GNU C++14 TESTS 88 2511 4505600 3200
68284592 Benq F Jan. 5, 2020, 6:02 p.m. OK GNU C++14 TESTS 88 2636 4505600 3200
69285034 meret F Jan. 22, 2020, 7:47 a.m. OK GNU C++14 TESTS 89 3852 9420800 3200
68445408 little_misfortune F Jan. 9, 2020, 12:30 p.m. OK GNU C++14 TESTS 89 4570 33587200 3200
68549787 17wh1a0577 F Jan. 10, 2020, 4:06 p.m. OK GNU C++14 TESTS 89 4976 20992000 3200
68442512 little_misfortune F Jan. 9, 2020, 11:28 a.m. OK GNU C++14 TESTS 89 5038 20992000 3200
68545230 17wh1a0577 F Jan. 10, 2020, 3:51 p.m. OK GNU C++14 TESTS 89 5131 20992000 3200
69261579 furious_beast F Jan. 21, 2020, 5:13 p.m. OK GNU C++14 TESTS 89 5132 27340800 3200
68905778 newbiegcz F Jan. 16, 2020, 6:47 a.m. OK GNU C++14 TESTS 89 5865 17920000 3200
68479369 srividya_0103 F Jan. 10, 2020, 7:05 a.m. OK GNU C++14 TESTS 89 6130 25190400 3200
68298870 kczno1 F Jan. 6, 2020, 5:11 a.m. OK GNU C++17 TESTS 88 312 14028800 3200
69401190 gongsuidashen F Jan. 23, 2020, 8:54 a.m. OK GNU C++17 TESTS 89 592 37785600 3200
68298821 neal F Jan. 6, 2020, 5:09 a.m. OK GNU C++17 TESTS 88 2527 10240000 3200
68299554 neal F Jan. 6, 2020, 5:42 a.m. OK GNU C++17 TESTS 88 2604 10240000 3200
68298716 neal F Jan. 6, 2020, 5:03 a.m. OK GNU C++17 TESTS 88 2901 10854400 3200
68288717 ecnerwala F Jan. 5, 2020, 7:46 p.m. OK GNU C++17 TESTS 88 4040 450048000 3200
68298554 neal F Jan. 6, 2020, 4:56 a.m. OK GNU C++17 TESTS 88 4742 10854400 3200
68836907 includehdhd F Jan. 15, 2020, 3:44 a.m. OK GNU C++17 TESTS 89 4789 37785600 3200
68486181 hjk1030 F Jan. 10, 2020, 9:49 a.m. OK GNU C++17 TESTS 89 5023 33587200 3200
68387897 mohamedkhalil101055 F Jan. 8, 2020, 7:01 a.m. OK GNU C++17 TESTS 89 5101 27340800 3200

remove filters

Back to search problems