Codeforces Round 608 (Div. 2)

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
1271 Codeforces Round 608 (Div. 2) FINISHED False 7200 160778663 Dec. 15, 2019, 9:15 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15043 ) A Suits PROGRAMMING brute force greedy math 900

B"A new delivery of clothing has arrived today to the clothing store. This delivery consists of a ties, b scarves, c vests and d jackets. The store does not sell single clothing items -- instead, it sells suits of two types: Each suit of the first type costs e coins, and each suit of the second type costs f coins. Calculate the maximum possible cost of a set of suits that can be composed from the delivered clothing items. Note that one item cannot be used in more than one suit (though some items may be left unused). The first line contains one integer a (1 <= a <= 100 ,000) -- the number of ties. The second line contains one integer b (1 <= b <= 100 ,000) -- the number of scarves. The third line contains one integer c (1 <= c <= 100 ,000) -- the number of vests. The fourth line contains one integer d (1 <= d <= 100 ,000) -- the number of jackets. The fifth line contains one integer e (1 <= e <= 1 ,000) -- the cost of one suit of the first type. The sixth line contains one integer f (1 <= f <= 1 ,000) -- the cost of one suit of the second type. Print one integer -- the maximum total cost of some set of suits that can be composed from the delivered items. It is possible to compose three suits of the second type in the first example, and their total cost will be 6 . Since all jackets will be used, it's impossible to add anything to this set. The best course of action in the second example is to compose nine suits of the first type and eleven suits of the second type. The total cost is 9 cdot 4 + 11 cdot 6 = 102 . "...

Tutorials

72247

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
67059184 Dariush_M A Dec. 17, 2019, 8:19 a.m. OK Clang++17 Diagnostics TESTS 61 46 0 900
66950584 daut-dlang A Dec. 15, 2019, 9:51 a.m. OK D TESTS 61 46 0 900
66941264 ruban A Dec. 15, 2019, 9:22 a.m. OK Delphi TESTS 61 31 13721600 900
68427297 duydec1 A Jan. 9, 2020, 4:35 a.m. OK FPC TESTS 61 30 0 900
68155855 1942938446 A Jan. 4, 2020, 8:55 a.m. OK FPC TESTS 61 31 0 900
67009135 dblark A Dec. 16, 2019, 9:10 a.m. OK FPC TESTS 61 31 0 900
66939945 LaSWeeG A Dec. 15, 2019, 9:20 a.m. OK FPC TESTS 61 31 0 900
66943130 Dbvivi A Dec. 15, 2019, 9:26 a.m. OK FPC TESTS 61 31 102400 900
66989083 Just_Matvey A Dec. 15, 2019, 7:27 p.m. OK FPC TESTS 61 31 204800 900
67009894 minhquaningenious A Dec. 16, 2019, 9:26 a.m. OK FPC TESTS 61 31 307200 900
66978038 calonmaster A Dec. 15, 2019, 3:23 p.m. OK FPC TESTS 61 31 307200 900
66939523 dblark A Dec. 15, 2019, 9:19 a.m. OK FPC TESTS 61 46 0 900
66940466 Fidisk A Dec. 15, 2019, 9:21 a.m. OK FPC TESTS 61 46 102400 900
68679229 khasrulShihab A Jan. 12, 2020, 8:29 p.m. OK GNU C11 TESTS 61 31 0 900
69013079 pa163361 A Jan. 18, 2020, 4:26 a.m. OK GNU C11 TESTS 61 31 0 900
68965813 Heisenberg_41 A Jan. 17, 2020, 4:46 a.m. OK GNU C11 TESTS 61 31 0 900
68727023 amin1998 A Jan. 13, 2020, 6:18 p.m. OK GNU C11 TESTS 61 31 0 900
68689741 fabianmontes A Jan. 13, 2020, 5:32 a.m. OK GNU C11 TESTS 61 31 0 900
67689870 himanshu81023 A Dec. 27, 2019, 10:36 a.m. OK GNU C11 TESTS 61 31 0 900
67713016 Israt_Jahan_Nahin A Dec. 27, 2019, 3:01 p.m. OK GNU C11 TESTS 61 31 0 900
67952193 DrTrue A Dec. 30, 2019, 8:09 a.m. OK GNU C11 TESTS 61 31 0 900
68230440 Saimun666 A Jan. 5, 2020, 8:58 a.m. OK GNU C11 TESTS 61 31 0 900
69472059 sunzida A Jan. 24, 2020, 2:51 p.m. OK GNU C11 TESTS 61 31 0 900
66942685 Lenstar A Dec. 15, 2019, 9:25 a.m. OK GNU C++11 TESTS 61 30 0 900
69453858 Cipri A Jan. 24, 2020, 7:36 a.m. OK GNU C++11 TESTS 61 30 0 900
69183246 Wanghkkkkkkk A Jan. 20, 2020, 11:02 a.m. OK GNU C++11 TESTS 61 30 0 900
67175954 kujta1 A Dec. 18, 2019, 7:15 p.m. OK GNU C++11 TESTS 61 30 0 900
66957145 saurabhboi A Dec. 15, 2019, 10:26 a.m. OK GNU C++11 TESTS 61 30 0 900
69471788 Sarwar_450 A Jan. 24, 2020, 2:46 p.m. OK GNU C++11 TESTS 61 31 0 900
69595540 MYSNKS A Jan. 27, 2020, 4:25 a.m. OK GNU C++11 TESTS 61 31 0 900
69569016 XIXVORK A Jan. 26, 2020, 1:28 p.m. OK GNU C++11 TESTS 61 31 0 900
69556762 Reno_Jarrison A Jan. 26, 2020, 9:07 a.m. OK GNU C++11 TESTS 61 31 0 900
69522418 Lwen A Jan. 25, 2020, 1:49 p.m. OK GNU C++11 TESTS 61 31 0 900
67190401 Bill_Benation A Dec. 19, 2019, 6:50 a.m. OK GNU C++14 TESTS 61 15 0 900
67503871 realbe A Dec. 24, 2019, 6:16 a.m. OK GNU C++14 TESTS 61 15 0 900
68016346 wheres_my_fucking_luck A Dec. 31, 2019, 6:49 p.m. OK GNU C++14 TESTS 61 15 0 900
68155382 Terrylina A Jan. 4, 2020, 8:45 a.m. OK GNU C++14 TESTS 61 15 0 900
68314111 Sturdy A Jan. 6, 2020, 12:32 p.m. OK GNU C++14 TESTS 61 15 0 900
69174249 PROdigy_027 A Jan. 20, 2020, 7:26 a.m. OK GNU C++14 TESTS 61 15 0 900
67138399 the_gak A Dec. 18, 2019, 5:35 a.m. OK GNU C++14 TESTS 61 15 0 900
67047688 emptyboxs A Dec. 17, 2019, 12:39 a.m. OK GNU C++14 TESTS 61 15 0 900
67042044 A_M_Saiyef A Dec. 16, 2019, 7:46 p.m. OK GNU C++14 TESTS 61 15 0 900
67028572 wrong_answer A Dec. 16, 2019, 3:07 p.m. OK GNU C++14 TESTS 61 15 0 900
68639220 nongi A Jan. 12, 2020, 6:58 a.m. OK GNU C++17 TESTS 61 15 0 900
67310818 R_K_C A Dec. 21, 2019, 2:37 a.m. OK GNU C++17 TESTS 61 15 0 900
67062510 kittu2539 A Dec. 17, 2019, 9:44 a.m. OK GNU C++17 TESTS 61 15 0 900
67020624 bundibedu A Dec. 16, 2019, 12:51 p.m. OK GNU C++17 TESTS 61 15 0 900
66939999 NeverRegret A Dec. 15, 2019, 9:20 a.m. OK GNU C++17 TESTS 61 15 0 900
66940369 Orion A Dec. 15, 2019, 9:20 a.m. OK GNU C++17 TESTS 61 15 7987200 900
69275237 Black_berry A Jan. 22, 2020, 1:27 a.m. OK GNU C++17 TESTS 61 30 0 900
69276670 RAKESHGON A Jan. 22, 2020, 2:44 a.m. OK GNU C++17 TESTS 61 30 0 900
69244931 Marcuz_Coder A Jan. 21, 2020, 12:36 p.m. OK GNU C++17 TESTS 61 30 0 900
69242589 the_alien A Jan. 21, 2020, 11:55 a.m. OK GNU C++17 TESTS 61 30 0 900
67254379 Temurbek A Dec. 19, 2019, 8:53 p.m. OK Go TESTS 61 31 0 900
68365678 ktateish A Jan. 7, 2020, 3:52 p.m. OK Go TESTS 61 31 0 900
66942092 maguroguma A Dec. 15, 2019, 9:24 a.m. OK Go TESTS 61 46 0 900
66939627 caidodo0_0 A Dec. 15, 2019, 9:19 a.m. OK Go TESTS 61 46 0 900
67513289 SPatrik A Dec. 24, 2019, 9:56 a.m. OK Haskell TESTS 61 46 102400 900
66994799 Russell_Emerine A Dec. 15, 2019, 11:58 p.m. OK Haskell TESTS 61 46 102400 900
67435684 pushpraj17307 A Dec. 22, 2019, 5:02 p.m. OK Java 11 TESTS 61 186 0 900
66982575 its_aks_ulure A Dec. 15, 2019, 4:56 p.m. OK Java 11 TESTS 61 186 0 900
66944060 machhra A Dec. 15, 2019, 9:29 a.m. OK Java 11 TESTS 61 187 0 900
68946937 Tardimgg A Jan. 16, 2020, 4:31 p.m. OK Java 11 TESTS 61 187 0 900
67690076 rishabh1008 A Dec. 27, 2019, 10:42 a.m. OK Java 11 TESTS 61 187 0 900
67598422 Jainam_Sanghvi A Dec. 25, 2019, 11:03 a.m. OK Java 11 TESTS 61 187 0 900
67046942 enricogi A Dec. 16, 2019, 11:32 p.m. OK Java 11 TESTS 61 187 0 900
66960076 TheDarkKnight03 A Dec. 15, 2019, 10:45 a.m. OK Java 11 TESTS 61 187 0 900
66955076 ishantewari92 A Dec. 15, 2019, 10:14 a.m. OK Java 11 TESTS 61 187 0 900
69459507 HU_Geek A Jan. 24, 2020, 10:05 a.m. OK Java 11 TESTS 61 202 0 900
69437404 ParthChonkar A Jan. 23, 2020, 7:37 p.m. OK Java 8 TESTS 61 109 0 900
68870528 ArcadioN A Jan. 15, 2020, 3:01 p.m. OK Java 8 TESTS 61 109 0 900
68385537 Megabyte A Jan. 8, 2020, 5:38 a.m. OK Java 8 TESTS 61 109 0 900
68026286 cyberAce A Jan. 1, 2020, 6:03 a.m. OK Java 8 TESTS 61 109 0 900
67674104 fc-lib-xyz A Dec. 26, 2019, 11:08 p.m. OK Java 8 TESTS 61 109 0 900
67444850 gouh9qn A Dec. 22, 2019, 9:24 p.m. OK Java 8 TESTS 61 109 0 900
67314310 pink_codes A Dec. 21, 2019, 5:09 a.m. OK Java 8 TESTS 61 109 0 900
67163842 zekigurbuz A Dec. 18, 2019, 2:50 p.m. OK Java 8 TESTS 61 109 0 900
67017294 mathgix A Dec. 16, 2019, 11:52 a.m. OK Java 8 TESTS 61 109 0 900
66994405 wolf3000 A Dec. 15, 2019, 11:23 p.m. OK Java 8 TESTS 61 109 0 900
66947207 watarimaycry2 A Dec. 15, 2019, 9:39 a.m. OK JavaScript TESTS 61 31 102400 900
68304588 I.A.K.O.V A Jan. 6, 2020, 8:25 a.m. OK Kotlin TESTS 61 124 0 900
68100924 Spheniscine A Jan. 3, 2020, 2:53 a.m. OK Kotlin TESTS 61 124 0 900
67776502 abdurauf1997 A Dec. 28, 2019, 9:12 a.m. OK Kotlin TESTS 61 140 0 900
67024955 DmitriyT A Dec. 16, 2019, 2:04 p.m. OK Kotlin TESTS 61 140 0 900
66992157 agent-10 A Dec. 15, 2019, 9:11 p.m. OK Kotlin TESTS 61 140 0 900
66944653 butoff A Dec. 15, 2019, 9:31 a.m. OK Kotlin TESTS 61 140 0 900
66941415 wbars A Dec. 15, 2019, 9:22 a.m. OK Kotlin TESTS 61 155 0 900
66947541 sainageswar A Dec. 15, 2019, 9:40 a.m. OK Kotlin TESTS 61 155 0 900
66942269 AsuraPro A Dec. 15, 2019, 9:24 a.m. OK Kotlin TESTS 61 155 0 900
67448194 a11eca A Dec. 23, 2019, 12:54 a.m. OK Kotlin TESTS 61 186 0 900
66943685 Giangvp A Dec. 15, 2019, 9:28 a.m. OK Mono C# TESTS 61 61 0 900
67409500 nastya1199 A Dec. 22, 2019, 7:45 a.m. OK Mono C# TESTS 61 61 0 900
66949910 ansergeyg A Dec. 15, 2019, 9:49 a.m. OK Mono C# TESTS 61 61 0 900
67049274 kolokolo21kolo A Dec. 17, 2019, 2:35 a.m. OK Mono C# TESTS 61 62 0 900
66953334 igormaslov123 A Dec. 15, 2019, 10:05 a.m. OK Mono C# TESTS 61 62 0 900
66944941 Metwally92 A Dec. 15, 2019, 9:31 a.m. OK Mono C# TESTS 61 62 0 900
66942446 75number A Dec. 15, 2019, 9:25 a.m. OK Mono C# TESTS 61 62 0 900
66939489 mban259 A Dec. 15, 2019, 9:19 a.m. OK Mono C# TESTS 61 62 0 900
68211758 Igsh A Jan. 4, 2020, 7:44 p.m. OK Mono C# TESTS 61 62 0 900
67173182 djincs A Dec. 18, 2019, 6:06 p.m. OK Mono C# TESTS 61 62 0 900
68920102 vjudge2 A Jan. 16, 2020, 9:15 a.m. OK MS C++ TESTS 61 31 0 900
68770746 vjudge5 A Jan. 14, 2020, 11:46 a.m. OK MS C++ TESTS 61 31 0 900
68896236 vjudge2 A Jan. 16, 2020, 4:33 a.m. OK MS C++ TESTS 61 31 0 900
68889903 vjudge3 A Jan. 16, 2020, 1:38 a.m. OK MS C++ TESTS 61 31 0 900
68889809 vjudge1 A Jan. 16, 2020, 1:35 a.m. OK MS C++ TESTS 61 31 0 900
68859152 vjudge2 A Jan. 15, 2020, 11:32 a.m. OK MS C++ TESTS 61 31 0 900
68857630 vjudge1 A Jan. 15, 2020, 11:07 a.m. OK MS C++ TESTS 61 31 0 900
68851643 vjudge2 A Jan. 15, 2020, 9:09 a.m. OK MS C++ TESTS 61 31 0 900
68777327 vjudge3 A Jan. 14, 2020, 1:52 p.m. OK MS C++ TESTS 61 31 0 900
68774155 vjudge5 A Jan. 14, 2020, 12:53 p.m. OK MS C++ TESTS 61 31 0 900
67986933 qwx. A Dec. 30, 2019, 11:53 p.m. OK MS C++ 2017 TESTS 61 31 0 900
69057241 vjudge5 A Jan. 18, 2020, 2:59 p.m. OK MS C++ 2017 TESTS 61 31 0 900
69056602 vjudge4 A Jan. 18, 2020, 2:45 p.m. OK MS C++ 2017 TESTS 61 31 0 900
69045156 vjudge4 A Jan. 18, 2020, 10:53 a.m. OK MS C++ 2017 TESTS 61 31 0 900
68979693 hakobdilif A Jan. 17, 2020, 10:13 a.m. OK MS C++ 2017 TESTS 61 31 0 900
68700838 vjudge3 A Jan. 13, 2020, 9:23 a.m. OK MS C++ 2017 TESTS 61 31 0 900
68690027 vjudge3 A Jan. 13, 2020, 5:40 a.m. OK MS C++ 2017 TESTS 61 31 0 900
68489885 vjudge2 A Jan. 10, 2020, 11:18 a.m. OK MS C++ 2017 TESTS 61 31 0 900
68171654 Sama2 A Jan. 4, 2020, 12:21 p.m. OK MS C++ 2017 TESTS 61 31 0 900
68120891 ZA139 A Jan. 3, 2020, 1:17 p.m. OK MS C++ 2017 TESTS 61 31 0 900
67629808 vjudge5 A Dec. 26, 2019, 2:47 a.m. OK Node.js TESTS 61 155 2150400 900
67629802 vjudge5 A Dec. 26, 2019, 2:46 a.m. OK Node.js TESTS 61 186 2457600 900
67674252 fc-lib-xyz A Dec. 26, 2019, 11:19 p.m. OK Node.js TESTS 61 187 409600 900
66948732 theoldmoon A Dec. 15, 2019, 9:44 a.m. OK Node.js TESTS 61 187 409600 900
66942814 shivam1420 A Dec. 15, 2019, 9:26 a.m. OK Node.js TESTS 61 202 512000 900
66966976 Mariia_Bykova2302 A Dec. 15, 2019, 12:12 p.m. OK PascalABC.NET TESTS 61 311 102400 900
66954854 HideBehind A Dec. 15, 2019, 10:13 a.m. OK PascalABC.NET TESTS 61 312 102400 900
66953790 proassassin738 A Dec. 15, 2019, 10:07 a.m. OK PascalABC.NET TESTS 61 327 307200 900
66964382 TimSunduk A Dec. 15, 2019, 11:11 a.m. OK PascalABC.NET TESTS 61 343 102400 900
66955011 Kiral55 A Dec. 15, 2019, 10:14 a.m. OK PHP TESTS 61 46 409600 900
66942532 vaibhavsarda A Dec. 15, 2019, 9:25 a.m. OK PyPy 2 TESTS 61 124 0 900
68638662 anonymous0314 A Jan. 12, 2020, 6:47 a.m. OK PyPy 2 TESTS 61 124 0 900
67960067 vjudge3 A Dec. 30, 2019, 11:12 a.m. OK PyPy 2 TESTS 61 124 0 900
67184629 aaa_bbb_ccc A Dec. 19, 2019, 3:33 a.m. OK PyPy 2 TESTS 61 124 0 900
66942332 maksio A Dec. 15, 2019, 9:24 a.m. OK PyPy 2 TESTS 61 124 0 900
66947044 parasmehan123 A Dec. 15, 2019, 9:38 a.m. OK PyPy 2 TESTS 61 124 204800 900
66944336 bou7a26 A Dec. 15, 2019, 9:30 a.m. OK PyPy 2 TESTS 61 139 0 900
66940450 bigobigo A Dec. 15, 2019, 9:20 a.m. OK PyPy 2 TESTS 61 139 0 900
66938851 injust A Dec. 15, 2019, 9:17 a.m. OK PyPy 2 TESTS 61 139 0 900
66950873 11fingers A Dec. 15, 2019, 9:52 a.m. OK PyPy 2 TESTS 61 140 0 900
69520793 KirKhal A Jan. 25, 2020, 1:23 p.m. OK PyPy 3 TESTS 61 140 0 900
69001219 CryUnderRain A Jan. 17, 2020, 7:42 p.m. OK PyPy 3 TESTS 61 140 0 900
68998379 gvprudvitej A Jan. 17, 2020, 6:23 p.m. OK PyPy 3 TESTS 61 140 0 900
68991499 karthikeya619 A Jan. 17, 2020, 3:24 p.m. OK PyPy 3 TESTS 61 140 0 900
68953700 rsat1999 A Jan. 16, 2020, 7:04 p.m. OK PyPy 3 TESTS 61 140 0 900
68717226 tsyr8924503 A Jan. 13, 2020, 2:55 p.m. OK PyPy 3 TESTS 61 140 0 900
68356294 tchr A Jan. 7, 2020, 12:13 p.m. OK PyPy 3 TESTS 61 140 0 900
68324220 xintrigger A Jan. 6, 2020, 4:11 p.m. OK PyPy 3 TESTS 61 140 0 900
68084529 Mad_Andrei A Jan. 2, 2020, 3:41 p.m. OK PyPy 3 TESTS 61 140 0 900
68077534 essi A Jan. 2, 2020, 1:10 p.m. OK PyPy 3 TESTS 61 140 0 900
67076678 nitin_garg A Dec. 17, 2019, 2:43 p.m. OK Python 2 TESTS 61 171 0 900
67516790 vjudge3 A Dec. 24, 2019, 11:07 a.m. OK Python 2 TESTS 61 186 0 900
66987576 elistark A Dec. 15, 2019, 6:47 p.m. OK Python 2 TESTS 61 186 0 900
69240317 sorrapoln A Jan. 21, 2020, 11:10 a.m. OK Python 2 TESTS 61 187 0 900
67855757 tanay67 A Dec. 29, 2019, 6:01 a.m. OK Python 2 TESTS 61 187 0 900
67258910 khushboo.nasir A Dec. 20, 2019, 1:39 a.m. OK Python 2 TESTS 61 187 0 900
66996889 the_skinny_one A Dec. 16, 2019, 2:37 a.m. OK Python 2 TESTS 61 187 0 900
66953783 coderbd A Dec. 15, 2019, 10:07 a.m. OK Python 2 TESTS 61 187 0 900
68147332 _deep_m_ A Jan. 4, 2020, 5:12 a.m. OK Python 2 TESTS 61 202 0 900
66941433 lakshya16240 A Dec. 15, 2019, 9:22 a.m. OK Python 2 TESTS 61 202 0 900
69397420 chints11 A Jan. 23, 2020, 6:58 a.m. OK Python 3 TESTS 61 108 512000 900
68614671 cs1g A Jan. 11, 2020, 5:03 p.m. OK Python 3 TESTS 61 109 0 900
67455155 kavi_457 A Dec. 23, 2019, 6:31 a.m. OK Python 3 TESTS 61 109 0 900
67249099 Mehrdad_ravenS A Dec. 19, 2019, 6:20 p.m. OK Python 3 TESTS 61 109 0 900
67211195 DarkKnight117 A Dec. 19, 2019, 2:05 p.m. OK Python 3 TESTS 61 109 0 900
67210305 waAutomataMachine A Dec. 19, 2019, 1:48 p.m. OK Python 3 TESTS 61 109 0 900
67207272 amir_delshad A Dec. 19, 2019, 12:52 p.m. OK Python 3 TESTS 61 109 0 900
67206096 ghoshashis545 A Dec. 19, 2019, 12:28 p.m. OK Python 3 TESTS 61 109 0 900
67200592 shainkey98 A Dec. 19, 2019, 10:47 a.m. OK Python 3 TESTS 61 109 0 900
67188545 pinku_boss A Dec. 19, 2019, 6:02 a.m. OK Python 3 TESTS 61 109 0 900
67183159 nemi_zzz A Dec. 19, 2019, 2:01 a.m. OK Ruby TESTS 61 93 102400 900
67158798 gearjack A Dec. 18, 2019, 1:19 p.m. OK Rust TESTS 61 31 0 900
67029496 Kaa A Dec. 16, 2019, 3:25 p.m. OK Rust TESTS 61 46 0 900
66944279 sansen A Dec. 15, 2019, 9:29 a.m. OK Rust TESTS 61 46 0 900
66939703 terraformer A Dec. 15, 2019, 9:19 a.m. OK Rust TESTS 61 46 0 900
66941965 akiradeveloper A Dec. 15, 2019, 9:23 a.m. OK Rust TESTS 61 46 204800 900
66938902 yakamoto A Dec. 15, 2019, 9:18 a.m. OK Scala TESTS 61 483 0 900

remove filters

Back to search problems