Codeforces Round 614 (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
1292 Codeforces Round 614 (Div. 1) FINISHED False 7200 157911911 Jan. 19, 2020, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 879 ) D Chaotic V. PROGRAMMING dp graphs greedy math number theory trees 2700

B'"Everything has been planned out. No more hidden concerns. The condition of Cytus is also perfect. The time right now...... 00:01:12...... It 's time." The emotion samples are now sufficient. After almost 3 years, it 's time for Ivy to awake her bonded sister, Vanessa. The system inside A.R.C. 's Library core can be considered as an undirected graph with infinite number of processing nodes, numbered with all positive integers ( 1, 2, 3, ldots ). The node with a number x ( x > 1 ), is directly connected with a node with number frac{x}{f(x)} , with f(x) being the lowest prime divisor of x . Vanessa 's mind is divided into n fragments. Due to more than 500 years of coma, the fragments have been scattered: the i -th fragment is now located at the node with a number k_i! (a factorial of k_i ). To maximize the chance of successful awakening, Ivy decides to place the samples in a node P , so that the total length of paths from each fragment to P is smallest possible. If there are multiple fragments located at the same node, the path from that node to P needs to be counted multiple times. In the world of zeros and ones, such a requirement is very simple for Ivy. Not longer than a second later, she has already figured out such a node. But for a mere human like you, is this still possible? For simplicity, please answer the minimal sum of paths ' lengths from every fragment to the emotion samples ' assembly node P . The first line contains an integer n ( 1 <= n <= 10^6 ) -- number of fragments of Vanessa 's mind. The second line contains n integers: k_1, k_2, ldots, k_n ( 0 <= k_i <= 5000 ), denoting the nodes where fragments of Vanessa 's mind are located: the i -th fragment is at the node with a number k_i! . Print a single integer, denoting the minimal sum of path from every fragment to the node with the emotion samples (a.k.a. node P ). As a reminde'...

Tutorials

Codeforces Round #614 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
69527621 s_r_f D Jan. 25, 2020, 3:43 p.m. OK GNU C++11 TESTS 110 46 409600 2700
69280530 11235813213455 D Jan. 22, 2020, 5:39 a.m. OK GNU C++11 TESTS 110 46 4608000 2700
69279958 caeious D Jan. 22, 2020, 5:21 a.m. OK GNU C++11 TESTS 110 46 4608000 2700
69287436 11235813213455 D Jan. 22, 2020, 8:48 a.m. OK GNU C++11 TESTS 110 61 819200 2700
69192548 Lagoon_ D Jan. 20, 2020, 1:56 p.m. OK GNU C++11 TESTS 110 62 204800 2700
69280389 wang639026 D Jan. 22, 2020, 5:35 a.m. OK GNU C++11 TESTS 110 62 35225600 2700
69166291 yajnun D Jan. 20, 2020, 3:58 a.m. OK GNU C++11 TESTS 109 77 28672000 2700
69188836 stal_xy23z7b8 D Jan. 20, 2020, 12:52 p.m. OK GNU C++11 TESTS 110 93 54988800 2700
69175550 xay5421 D Jan. 20, 2020, 7:57 a.m. OK GNU C++11 TESTS 109 139 51916800 2700
69135573 ljf0O7 D Jan. 19, 2020, 3:01 p.m. OK GNU C++11 TESTS 105 140 74240000 2700
69132527 Egor D Jan. 19, 2020, 2:50 p.m. OK GNU C++14 TESTS 105 124 13516800 2700
69602901 nandonathaniel D Jan. 27, 2020, 8:32 a.m. OK GNU C++14 TESTS 110 171 819200 2700
69254494 natsugiri D Jan. 21, 2020, 3:15 p.m. OK GNU C++14 TESTS 110 187 512000 2700
69256713 Benq D Jan. 21, 2020, 3:51 p.m. OK GNU C++14 TESTS 110 187 5017600 2700
69456945 Weeeee D Jan. 24, 2020, 9:02 a.m. OK GNU C++14 TESTS 110 218 102400 2700
69630810 MegaOwIer D Jan. 27, 2020, 5:08 p.m. OK GNU C++14 TESTS 110 233 1228800 2700
69176967 GodTe D Jan. 20, 2020, 8:29 a.m. OK GNU C++14 TESTS 109 234 204800 2700
69151079 nhho D Jan. 19, 2020, 5:39 p.m. OK GNU C++14 TESTS 109 234 1126400 2700
69161315 wucstdio D Jan. 20, 2020, 12:03 a.m. OK GNU C++14 TESTS 109 234 16384000 2700
69447989 BThero D Jan. 24, 2020, 4:31 a.m. OK GNU C++14 TESTS 110 248 100761600 2700
69286634 RiverHamster D Jan. 22, 2020, 8:28 a.m. OK GNU C++17 TESTS 110 46 4812800 2700
69157568 Egor.Lifar D Jan. 19, 2020, 8:23 p.m. OK GNU C++17 TESTS 109 124 43315200 2700
69132809 yosupo D Jan. 19, 2020, 2:51 p.m. OK GNU C++17 TESTS 105 140 38604800 2700
69215872 LightInShadow D Jan. 21, 2020, 12:32 a.m. OK GNU C++17 TESTS 110 186 1433600 2700
69149673 heno239 D Jan. 19, 2020, 5:17 p.m. OK GNU C++17 TESTS 109 218 4915200 2700
69127012 TLE D Jan. 19, 2020, 2:34 p.m. OK GNU C++17 TESTS 105 233 131584000 2700
69191163 bgrm D Jan. 20, 2020, 1:33 p.m. OK GNU C++17 TESTS 110 234 102400 2700
71041597 ftiasch D Feb. 14, 2020, 7:05 a.m. OK GNU C++17 TESTS 110 234 204800 2700
69141120 OnionPringles D Jan. 19, 2020, 3:20 p.m. OK GNU C++17 TESTS 105 234 200601600 2700
70258232 ceerRep D Feb. 4, 2020, 2:59 p.m. OK GNU C++17 TESTS 110 249 307200 2700
69283908 dalt D Jan. 22, 2020, 7:16 a.m. OK Java 8 TESTS 110 311 47718400 2700
69134743 uwi D Jan. 19, 2020, 2:58 p.m. OK Java 8 TESTS 105 421 17510400 2700
69279604 gouh9qn D Jan. 22, 2020, 5:09 a.m. OK Java 8 TESTS 110 451 78950400 2700
69153077 Akikaze D Jan. 19, 2020, 6:18 p.m. OK Java 8 TESTS 109 1590 137625600 2700
69139178 Harpae D Jan. 19, 2020, 3:13 p.m. OK Java 8 TESTS 105 1652 528793600 2700
69164912 Tlatoani D Jan. 20, 2020, 3:02 a.m. OK Kotlin TESTS 109 592 38400000 2700
69162168 Tlatoani D Jan. 20, 2020, 12:57 a.m. OK Kotlin TESTS 109 733 41062400 2700
69177834 Spheniscine D Jan. 20, 2020, 8:48 a.m. OK Kotlin TESTS 109 950 121958400 2700
70961115 Spheniscine D Feb. 13, 2020, 2:14 p.m. OK Kotlin TESTS 110 982 115200000 2700
69208594 darnley D Jan. 20, 2020, 6:57 p.m. OK Kotlin TESTS 110 1699 307200000 2700
69209567 darnley D Jan. 20, 2020, 7:21 p.m. OK Kotlin TESTS 110 1700 307200000 2700
69209234 darnley D Jan. 20, 2020, 7:12 p.m. OK Kotlin TESTS 110 1700 307200000 2700
69207697 darnley D Jan. 20, 2020, 6:35 p.m. OK Kotlin TESTS 110 1716 304640000 2700
69141641 darnley D Jan. 19, 2020, 3:21 p.m. OK Kotlin TESTS 105 1778 311500800 2700
69158982 AlexanderL D Jan. 19, 2020, 9:22 p.m. OK MS C++ 2017 TESTS 109 717 14233600 2700
69842763 wp32pw D Jan. 30, 2020, 1:35 p.m. OK MS C++ 2017 TESTS 110 826 21504000 2700
69843190 wp32pw D Jan. 30, 2020, 1:42 p.m. OK MS C++ 2017 TESTS 110 857 21401600 2700
69842581 wp32pw D Jan. 30, 2020, 1:33 p.m. OK MS C++ 2017 TESTS 110 857 21504000 2700
69394550 AppledoreM D Jan. 23, 2020, 5:36 a.m. OK MS C++ 2017 TESTS 110 1169 132608000 2700
69822555 zqx1392 D Jan. 30, 2020, 8:18 a.m. OK PyPy 3 TESTS 110 748 78950400 2700
69153090 Akikaze D Jan. 19, 2020, 6:18 p.m. OK PyPy 3 TESTS 109 1715 143462400 2700
69231280 sansen D Jan. 21, 2020, 9:35 a.m. OK Rust TESTS 110 93 36044800 2700
69202370 sansen D Jan. 20, 2020, 4:58 p.m. OK Rust TESTS 110 389 36044800 2700

remove filters

Back to search problems