Codeforces Round 317 [AimFund Thanks-Round] (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
571 Codeforces Round 317 [AimFund Thanks-Round] (Div. 1) FINISHED False 7200 291562199 Aug. 22, 2015, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2655 ) B Minimization PROGRAMMING dp greedy sortings 2300

B"You've got array A, consisting of n integers and a positive integer k. Array A is indexed by integers from 1 to n. You need to permute the array elements so that value The first line contains two integers n, xe2 x80 x89k (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893 xc2 xb7105, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89min(5000, xe2 x80 x89n xe2 x80 x89- xe2 x80 x891)). The second line contains n integers A[1], xe2 x80 x89A[2], xe2 x80 x89..., xe2 x80 x89A[n] ( xe2 x80 x89- xe2 x80 x89109 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89A[i] xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109), separate by spaces -- elements of the array A. Print the minimum possible value of the sum described in the statement. In the first test one of the optimal permutations is 1 4 2. In the second test the initial order is optimal. In the third test one of the optimal permutations is 2 3 4 4 3 5."...

Tutorials

Codeforces Round #317 [AimFund Thanks-Round] Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
65894724 ruo B Nov. 28, 2019, 5:30 a.m. OK Clang++17 Diagnostics TESTS 52 1341 201420800 2300
12655757 Gassa B Aug. 22, 2015, 5:29 p.m. OK D TESTS 52 421 12800000 2300
12675685 ruban B Aug. 23, 2015, 4:56 p.m. OK Delphi TESTS 52 1122 218112000 2300
13302178 vuathegioi99 B Sept. 29, 2015, 5:06 p.m. OK FPC TESTS 52 171 146841600 2300
18752758 water235 B June 27, 2016, 1:10 p.m. OK FPC TESTS 52 187 101888000 2300
12685613 ANT1711 B Aug. 24, 2015, 2:55 p.m. OK FPC TESTS 52 187 201830400 2300
13290703 GYC B Sept. 29, 2015, 3:35 a.m. OK FPC TESTS 52 202 201932800 2300
13290626 vuathegioi99 B Sept. 29, 2015, 3:27 a.m. OK FPC TESTS 52 202 204185600 2300
12658653 Alex_2oo8 B Aug. 22, 2015, 5:52 p.m. OK FPC TESTS 52 202 204185600 2300
15461816 ghostriderhp99 B Jan. 21, 2016, 3:14 a.m. OK FPC TESTS 52 249 227020800 2300
12668143 _The_Mastermind_ B Aug. 23, 2015, 4:44 a.m. OK FPC TESTS 52 280 201728000 2300
20089002 Gray_58 B Aug. 23, 2016, 3:29 p.m. OK FPC TESTS 52 296 211660800 2300
12792215 Valerich B Aug. 31, 2015, 5:14 p.m. OK FPC TESTS 52 373 104345600 2300
12659884 CyberQuantum B Aug. 22, 2015, 6:03 p.m. OK GNU C TESTS 52 296 202342400 2300
12852992 yanice B Sept. 5, 2015, 12:28 p.m. OK GNU C++ TESTS 52 62 1228800 2300
22218656 zhanglexing B Nov. 15, 2016, 8:33 a.m. OK GNU C++ TESTS 52 77 26009600 2300
12675707 yeahpeng B Aug. 23, 2015, 4:58 p.m. OK GNU C++ TESTS 52 77 101785600 2300
18712718 qzqzzsh B June 25, 2016, 2:53 a.m. OK GNU C++ TESTS 52 78 101478400 2300
18712597 qzqzzsh B June 25, 2016, 2:37 a.m. OK GNU C++ TESTS 52 78 101478400 2300
40986244 ReaLNero1 B July 30, 2018, 8:26 p.m. OK GNU C++ TESTS 52 78 101785600 2300
12823706 cctt B Sept. 3, 2015, 5:12 a.m. OK GNU C++ TESTS 52 78 102809600 2300
33917836 lijiamu B Jan. 5, 2018, 8:19 a.m. OK GNU C++ TESTS 52 78 103628800 2300
12790832 jugal_sahu B Aug. 31, 2015, 3:37 p.m. OK GNU C++ TESTS 52 78 104345600 2300
20652695 vjudge4 B Sept. 16, 2016, 5 a.m. OK GNU C++ TESTS 52 93 1126400 2300
60393963 rainboy B Sept. 11, 2019, 2:15 p.m. OK GNU C11 TESTS 52 155 101478400 2300
12680186 zeref_dragoneel B Aug. 24, 2015, 6:05 a.m. OK GNU C++11 TESTS 52 77 103014400 2300
56883473 _Teemo B July 12, 2019, 11:31 a.m. OK GNU C++11 TESTS 52 78 101376000 2300
18765682 qzqzgfy B June 28, 2016, 10:19 a.m. OK GNU C++11 TESTS 52 78 102400000 2300
42603147 Ithea_Myse_Valgulious B Sept. 7, 2018, 6:11 a.m. OK GNU C++11 TESTS 52 92 101888000 2300
42603137 vjudge5 B Sept. 7, 2018, 6:11 a.m. OK GNU C++11 TESTS 52 93 101888000 2300
35806550 yasugongshang B March 1, 2018, 8:55 a.m. OK GNU C++11 TESTS 52 93 104857600 2300
12655610 -XraY- B Aug. 22, 2015, 5:28 p.m. OK GNU C++11 TESTS 52 109 1228800 2300
12728657 qsqx B Aug. 28, 2015, 8:23 a.m. OK GNU C++11 TESTS 52 109 1228800 2300
12657620 yao11617 B Aug. 22, 2015, 5:43 p.m. OK GNU C++11 TESTS 52 109 1945600 2300
56884998 Bowence B July 12, 2019, 12:12 p.m. OK GNU C++11 TESTS 52 109 101376000 2300
32999030 platypus179 B Dec. 7, 2017, 11:30 a.m. OK GNU C++14 TESTS 52 78 110592000 2300
21814746 Xin-Jie B Oct. 27, 2016, 8:12 a.m. OK GNU C++14 TESTS 52 124 26316800 2300
21814638 Xin-Jie B Oct. 27, 2016, 8:05 a.m. OK GNU C++14 TESTS 52 139 26316800 2300
26896332 Pluto.syah B May 6, 2017, 8:22 a.m. OK GNU C++14 TESTS 52 139 101580800 2300
30899372 BackOnTrack B Oct. 1, 2017, 5:39 a.m. OK GNU C++14 TESTS 52 139 145920000 2300
21717694 elatedcello933 B Oct. 23, 2016, 4:58 p.m. OK GNU C++14 TESTS 52 140 1228800 2300
21697314 elatedcello933 B Oct. 23, 2016, 3:26 a.m. OK GNU C++14 TESTS 52 140 26214400 2300
30936887 ITer B Oct. 2, 2017, 8:09 a.m. OK GNU C++14 TESTS 52 140 101580800 2300
31115427 Markellonchik B Oct. 7, 2017, 12:58 p.m. OK GNU C++14 TESTS 52 155 101478400 2300
61039309 icecuber B Sept. 21, 2019, 10:14 p.m. OK GNU C++14 TESTS 52 155 101478400 2300
56877837 vjudge2 B July 12, 2019, 9:01 a.m. OK GNU C++17 TESTS 52 140 101478400 2300
68339946 vjudge3 B Jan. 7, 2020, 2:33 a.m. OK GNU C++17 TESTS 52 140 102195200 2300
53426364 AryaKnight B April 27, 2019, 1:49 p.m. OK GNU C++17 TESTS 52 155 27545600 2300
68315921 Amireza B Jan. 6, 2020, 1:12 p.m. OK GNU C++17 TESTS 52 155 101580800 2300
45890297 vjudge4 B Nov. 17, 2018, 6:16 p.m. OK GNU C++17 TESTS 52 171 1228800 2300
45890267 lookas2001 B Nov. 17, 2018, 6:15 p.m. OK GNU C++17 TESTS 52 171 1228800 2300
48054667 Jatana B Jan. 7, 2019, 11:32 a.m. OK GNU C++17 TESTS 52 171 27852800 2300
49157034 crathva B Jan. 29, 2019, 2:06 p.m. OK GNU C++17 TESTS 52 186 201932800 2300
61201528 denis2111 B Sept. 24, 2019, 7:57 a.m. OK GNU C++17 TESTS 52 186 202035200 2300
68313008 vjudge3 B Jan. 6, 2020, 12:04 p.m. OK GNU C++17 TESTS 52 186 204595200 2300
12666353 utkarshl B Aug. 23, 2015, 12:03 a.m. OK Haskell TESTS 52 1014 23244800 2300
14057605 DukeOfYork B Nov. 4, 2015, 12:53 p.m. OK Java 7 TESTS 52 233 14438400 2300
12663851 trilis B Aug. 22, 2015, 7:17 p.m. OK Java 7 TESTS 52 264 23142400 2300
12648463 Petr B Aug. 22, 2015, 4:47 p.m. OK Java 7 TESTS 52 265 12390400 2300
13904633 paresh B Oct. 27, 2015, 7:45 p.m. OK Java 7 TESTS 52 280 142028800 2300
13896241 anandpatel9998 B Oct. 27, 2015, 4:57 p.m. OK Java 7 TESTS 52 296 53964800 2300
12663895 pi37 B Aug. 22, 2015, 7:18 p.m. OK Java 7 TESTS 52 312 12390400 2300
12663537 pi37 B Aug. 22, 2015, 7:08 p.m. OK Java 7 TESTS 52 327 12390400 2300
12653534 ika B Aug. 22, 2015, 5:15 p.m. OK Java 7 TESTS 52 343 74240000 2300
12745575 Javanochka B Aug. 29, 2015, 3:38 p.m. OK Java 7 TESTS 52 343 98406400 2300
12828091 KNIGHT0X300 B Sept. 3, 2015, 12:12 p.m. OK Java 7 TESTS 52 358 67276800 2300
12733716 NikitaMikhaylov B Aug. 28, 2015, 4:50 p.m. OK Java 8 TESTS 52 249 101990400 2300
12656315 uwi B Aug. 22, 2015, 5:33 p.m. OK Java 8 TESTS 52 264 67276800 2300
12675814 akorzun B Aug. 23, 2015, 5:09 p.m. OK Java 8 TESTS 52 265 52531200 2300
12652306 ilyakor B Aug. 22, 2015, 5:09 p.m. OK Java 8 TESTS 52 280 47616000 2300
12677030 holeguma B Aug. 23, 2015, 7:42 p.m. OK Java 8 TESTS 52 296 47616000 2300
12733902 marcose18 B Aug. 28, 2015, 5:07 p.m. OK Java 8 TESTS 52 311 45568000 2300
23516307 rahulkhairwar B Jan. 3, 2017, 12:33 p.m. OK Java 8 TESTS 52 311 61030400 2300
12648811 mmaxio B Aug. 22, 2015, 4:49 p.m. OK Java 8 TESTS 52 327 52736000 2300
45433560 Jeel_Vaishnav B Nov. 8, 2018, 6:21 a.m. OK Java 8 TESTS 52 327 79769600 2300
12668411 hiro116s B Aug. 23, 2015, 5:23 a.m. OK Java 8 TESTS 52 342 64512000 2300
16469569 zerenopus B March 2, 2016, 5:09 p.m. OK Mono C# TESTS 52 342 66969600 2300
12664766 azukun B Aug. 22, 2015, 8:09 p.m. OK MS C# TESTS 52 312 91443200 2300
12694638 Sippy B Aug. 25, 2015, 10:59 a.m. OK MS C# TESTS 52 420 68812800 2300
12653291 Aliquando B Aug. 22, 2015, 5:14 p.m. OK MS C# TESTS 52 545 232448000 2300
24252599 og.kostya B Jan. 29, 2017, 5:09 p.m. OK MS C# TESTS 52 592 13312000 2300
12663710 ALWAYSWANNAFLY B Aug. 22, 2015, 7:12 p.m. OK MS C++ TESTS 52 124 1228800 2300
12657464 AnnKats93 B Aug. 22, 2015, 5:42 p.m. OK MS C++ TESTS 52 124 1331200 2300
56878400 vjudge5 B July 12, 2019, 9:15 a.m. OK MS C++ TESTS 52 140 101785600 2300
12958151 915507430 B Sept. 11, 2015, 12:02 p.m. OK MS C++ TESTS 52 140 101785600 2300
13716886 scorpiowf B Oct. 18, 2015, 5:14 p.m. OK MS C++ TESTS 52 140 105574400 2300
56885075 vjudge3 B July 12, 2019, 12:14 p.m. OK MS C++ TESTS 52 155 101580800 2300
56877243 vjudge5 B July 12, 2019, 8:47 a.m. OK MS C++ TESTS 52 155 101785600 2300
12705381 vjudge2 B Aug. 26, 2015, 8:44 a.m. OK MS C++ TESTS 52 155 101785600 2300
12653350 TonySnark B Aug. 22, 2015, 5:14 p.m. OK MS C++ TESTS 52 155 204800000 2300
12654210 vadym_doroshenko B Aug. 22, 2015, 5:19 p.m. OK MS C++ TESTS 52 156 1228800 2300
12989265 mrthefakeperson B Sept. 13, 2015, 7:28 p.m. OK PyPy 2 TESTS 52 499 104960000 2300
19532728 Yash_ B July 31, 2016, 7:33 a.m. OK PyPy 2 TESTS 52 857 84070400 2300
12697806 rpy3cpp B Aug. 25, 2015, 3:53 p.m. OK PyPy 3 TESTS 52 701 26316800 2300
12665740 Denzed B Aug. 22, 2015, 10:19 p.m. OK PyPy 3 TESTS 52 951 96460800 2300
12983854 Vosatorp B Sept. 13, 2015, 12:42 p.m. OK PyPy 3 TESTS 52 966 96460800 2300
15915457 not_bot_but_POT B Feb. 9, 2016, 2:06 p.m. OK PyPy 3 TESTS 52 1029 96460800 2300
35883596 ______h______ B March 3, 2018, 12:56 p.m. OK PyPy 3 TESTS 52 1294 198144000 2300
35900479 _____i_____ B March 3, 2018, 7:31 p.m. OK PyPy 3 TESTS 52 1294 198144000 2300
35894032 _____k_____ B March 3, 2018, 4:13 p.m. OK PyPy 3 TESTS 52 1294 198144000 2300
35888876 ______n______ B March 3, 2018, 2:30 p.m. OK PyPy 3 TESTS 52 1294 198144000 2300
35888596 ______u______ B March 3, 2018, 2:25 p.m. OK PyPy 3 TESTS 52 1294 198144000 2300
35883475 ______k______ B March 3, 2018, 12:56 p.m. OK PyPy 3 TESTS 52 1294 198144000 2300
12688675 limed B Aug. 24, 2015, 8:05 p.m. OK Scala TESTS 52 779 85196800 2300

remove filters

Back to search problems