Codeforces Round 601 (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
1255 Codeforces Round 601 (Div. 2) FINISHED False 7200 157649099 Nov. 19, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11985 ) B Fridge Lockers PROGRAMMING graphs implementation 1200

B"Hanh lives in a shared apartment. There are n people (including Hanh) living there, each has a private fridge. n fridges are secured by several steel chains. Each steel chain connects two different fridges and is protected by a digital lock. The owner of a fridge knows passcodes of all chains connected to it. A fridge can be open only if all chains connected to it are unlocked. For example, if a fridge has no chains connected to it at all, then any of n people can open it. The weights of these fridges are a_1, a_2, ldots, a_n . To make a steel chain connecting fridges u and v , you have to pay a_u + a_v dollars. Note that the landlord allows you to create multiple chains connecting the same pair of fridges. Hanh's apartment landlord asks you to create exactly m steel chains so that all fridges are private. A fridge is private if and only if, among n people living in the apartment, only the owner can open it (i.e. no other person acting alone can do it). In other words, the fridge i is not private if there exists the person j ( i ne j ) that the person j can open the fridge i . For example, in the picture all the fridges are private. On the other hand, if there are n=2 fridges and only one chain (which connects them) then both fridges are not private (both fridges can be open not only by its owner but also by another person). Of course, the landlord wants to minimize the total cost of all steel chains to fulfill his request. Determine whether there exists any way to make exactly m chains, and if yes, output any solution that minimizes the total cost. Each test contains multiple test cases. The first line contains the number of test cases T ( 1 <= T <= 10 ). Then the descriptions of the test cases follow. The first line of each test case contains two integers n , m ( 2 <= n <= 1000 , 1 <= m <= n ) -- the number of people livin"...

Tutorials

Codeforces Round #601 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
65369452 daut-dlang B Nov. 19, 2019, 3:25 p.m. OK D TESTS 12 46 4198400 1200
65392849 ruban B Nov. 19, 2019, 5:59 p.m. OK Delphi TESTS 12 15 102195200 1200
65392124 ruban B Nov. 19, 2019, 5:49 p.m. OK Delphi TESTS 12 31 102195200 1200
65607036 melery_kin B Nov. 23, 2019, 9:29 p.m. OK FPC TESTS 12 46 0 1200
65375403 quan.v0008212 B Nov. 19, 2019, 3:46 p.m. OK FPC TESTS 12 46 0 1200
65435787 patilc125 B Nov. 20, 2019, 1:22 p.m. OK GNU C11 TESTS 12 46 0 1200
66811304 LaZy_BaD_bOy B Dec. 14, 2019, 2:43 a.m. OK GNU C11 TESTS 12 46 0 1200
66189809 rityad B Dec. 2, 2019, 3:58 p.m. OK GNU C11 TESTS 12 46 0 1200
66044755 -Griffin- B Nov. 30, 2019, 2:45 p.m. OK GNU C11 TESTS 12 46 0 1200
65880892 notYourAvgJoe B Nov. 27, 2019, 6:57 p.m. OK GNU C11 TESTS 12 46 0 1200
67173325 fenofista B Dec. 18, 2019, 6:10 p.m. OK GNU C11 TESTS 12 46 0 1200
65717891 ArmU B Nov. 25, 2019, 5:28 p.m. OK GNU C11 TESTS 12 46 0 1200
65564270 2kunagisa B Nov. 23, 2019, 5:04 a.m. OK GNU C11 TESTS 12 46 0 1200
65459745 Flowey B Nov. 21, 2019, 12:38 a.m. OK GNU C11 TESTS 12 46 0 1200
65453044 Rockarya_IIITH B Nov. 20, 2019, 6:59 p.m. OK GNU C11 TESTS 12 46 0 1200
65377634 unistd B Nov. 19, 2019, 3:55 p.m. OK GNU C++11 TESTS 12 15 0 1200
65375979 graveness B Nov. 19, 2019, 3:48 p.m. OK GNU C++11 TESTS 12 15 0 1200
65371161 zwu_2018010621 B Nov. 19, 2019, 3:30 p.m. OK GNU C++11 TESTS 12 15 0 1200
65367946 shark162799 B Nov. 19, 2019, 3:20 p.m. OK GNU C++11 TESTS 12 15 0 1200
65367894 lzoi.win B Nov. 19, 2019, 3:20 p.m. OK GNU C++11 TESTS 12 15 0 1200
66266516 Overclocking B Dec. 4, 2019, 10:42 a.m. OK GNU C++11 TESTS 12 15 0 1200
65392250 ASIB B Nov. 19, 2019, 5:51 p.m. OK GNU C++11 TESTS 12 15 0 1200
65380981 HaoxuanXIE B Nov. 19, 2019, 4:07 p.m. OK GNU C++11 TESTS 12 15 0 1200
65379791 YEKOAM B Nov. 19, 2019, 4:03 p.m. OK GNU C++11 TESTS 12 15 0 1200
65479752 Mcggvc B Nov. 21, 2019, 11:18 a.m. OK GNU C++11 TESTS 12 15 102400 1200
68061570 vamsicool007 B Jan. 2, 2020, 4:37 a.m. OK GNU C++14 TESTS 12 15 0 1200
68072666 Dilemma27 B Jan. 2, 2020, 11:05 a.m. OK GNU C++14 TESTS 12 15 0 1200
68895926 _Deku B Jan. 16, 2020, 4:26 a.m. OK GNU C++14 TESTS 12 15 0 1200
69201826 prajjwal07 B Jan. 20, 2020, 4:48 p.m. OK GNU C++14 TESTS 12 15 0 1200
69649378 firiexp B Jan. 28, 2020, 4:10 a.m. OK GNU C++14 TESTS 12 15 0 1200
67938058 Agla_Sem_Phodungi B Dec. 29, 2019, 9:40 p.m. OK GNU C++14 TESTS 12 15 0 1200
67259089 vjudge2 B Dec. 20, 2019, 1:49 a.m. OK GNU C++14 TESTS 12 15 0 1200
67012760 Do_Re_Mi B Dec. 16, 2019, 10:27 a.m. OK GNU C++14 TESTS 12 15 0 1200
66311737 w20181112 B Dec. 5, 2019, 11:41 a.m. OK GNU C++14 TESTS 12 15 0 1200
66818270 hemant1729 B Dec. 14, 2019, 6:35 a.m. OK GNU C++14 TESTS 12 15 0 1200
69497386 QFYNH B Jan. 25, 2020, 4:55 a.m. OK GNU C++17 TESTS 12 15 0 1200
69886473 vjudge3 B Jan. 31, 2020, 8:24 a.m. OK GNU C++17 TESTS 12 15 0 1200
69883046 AkritiG B Jan. 31, 2020, 7:07 a.m. OK GNU C++17 TESTS 12 15 0 1200
68901400 Dup4 B Jan. 16, 2020, 6:05 a.m. OK GNU C++17 TESTS 12 15 0 1200
68304125 himanshugarg1703 B Jan. 6, 2020, 8:14 a.m. OK GNU C++17 TESTS 12 15 0 1200
68018433 Darc_horse B Dec. 31, 2019, 8:20 p.m. OK GNU C++17 TESTS 12 15 0 1200
67967042 thehuntbegins B Dec. 30, 2019, 1:42 p.m. OK GNU C++17 TESTS 12 15 0 1200
67954150 vjudge5 B Dec. 30, 2019, 8:55 a.m. OK GNU C++17 TESTS 12 15 0 1200
67259626 Nabil_Alhanif B Dec. 20, 2019, 2:20 a.m. OK GNU C++17 TESTS 12 15 0 1200
67252699 Antygenius B Dec. 19, 2019, 7:56 p.m. OK GNU C++17 TESTS 12 15 0 1200
65415158 synapse B Nov. 20, 2019, 6:32 a.m. OK Go TESTS 12 31 0 1200
65691275 vector9x B Nov. 25, 2019, 5:04 a.m. OK Go TESTS 12 46 0 1200
65402858 stumble B Nov. 20, 2019, 12:23 a.m. OK Go TESTS 12 46 0 1200
65368968 maguroguma B Nov. 19, 2019, 3:23 p.m. OK Go TESTS 12 62 0 1200
65450851 fau42 B Nov. 20, 2019, 6:02 p.m. OK Go TESTS 12 202 0 1200
65612585 pilusx B Nov. 24, 2019, 12:42 a.m. OK Haskell TESTS 12 46 102400 1200
66519032 Laurens B Dec. 8, 2019, 8:46 p.m. OK Haskell TESTS 12 62 102400 1200
65403248 Garett B Nov. 20, 2019, 12:50 a.m. OK Java 11 TESTS 12 202 0 1200
65397064 Anonymous B Nov. 19, 2019, 7:34 p.m. OK Java 11 TESTS 12 202 0 1200
65444540 machhra B Nov. 20, 2019, 3:29 p.m. OK Java 11 TESTS 12 217 0 1200
65419315 Anonymous B Nov. 20, 2019, 8:19 a.m. OK Java 11 TESTS 12 217 0 1200
65391903 osama.bmaq B Nov. 19, 2019, 5:47 p.m. OK Java 11 TESTS 12 217 0 1200
65382395 its_aks_ulure B Nov. 19, 2019, 4:13 p.m. OK Java 11 TESTS 12 217 0 1200
65382067 altay13 B Nov. 19, 2019, 4:11 p.m. OK Java 11 TESTS 12 217 0 1200
65372385 lpls1 B Nov. 19, 2019, 3:34 p.m. OK Java 11 TESTS 12 217 0 1200
65397809 ankyy_0103 B Nov. 19, 2019, 7:57 p.m. OK Java 11 TESTS 12 218 0 1200
65379684 Azakarka B Nov. 19, 2019, 4:03 p.m. OK Java 11 TESTS 12 218 0 1200
65922910 vjudge1 B Nov. 28, 2019, 5:01 p.m. OK Java 8 TESTS 12 108 0 1200
65679622 xwchen B Nov. 24, 2019, 7:17 p.m. OK Java 8 TESTS 12 108 0 1200
65397375 Witless_Deer B Nov. 19, 2019, 7:44 p.m. OK Java 8 TESTS 12 108 0 1200
67703882 igor_kz B Dec. 27, 2019, 2:46 p.m. OK Java 8 TESTS 12 109 0 1200
66526967 insane_28 B Dec. 9, 2019, 5:31 a.m. OK Java 8 TESTS 12 109 0 1200
66005903 ikagotso B Nov. 29, 2019, 9:41 p.m. OK Java 8 TESTS 12 109 0 1200
65398835 mTvTm B Nov. 19, 2019, 8:31 p.m. OK Java 8 TESTS 12 109 0 1200
65387362 Aabhas99 B Nov. 19, 2019, 4:30 p.m. OK Java 8 TESTS 12 109 0 1200
67770817 adzi B Dec. 28, 2019, 6:42 a.m. OK Java 8 TESTS 12 124 0 1200
67189698 Mann_27__ B Dec. 19, 2019, 6:33 a.m. OK Java 8 TESTS 12 124 0 1200
65403881 Spheniscine B Nov. 20, 2019, 1:32 a.m. OK Kotlin TESTS 12 140 512000 1200
65396152 Differum B Nov. 19, 2019, 7:11 p.m. OK Kotlin TESTS 12 186 1331200 1200
65536576 Glebik8 B Nov. 22, 2019, 2:23 p.m. OK Kotlin TESTS 12 233 307200 1200
65536418 yudedako B Nov. 22, 2019, 2:19 p.m. OK Kotlin TESTS 12 233 307200 1200
65379899 songsinger B Nov. 19, 2019, 4:04 p.m. OK Kotlin TESTS 12 234 1228800 1200
65496165 nastya1199 B Nov. 21, 2019, 4:40 p.m. OK Mono C# TESTS 12 62 1843200 1200
66052499 vedroboev B Nov. 30, 2019, 5:56 p.m. OK Mono C# TESTS 12 77 1945600 1200
65382420 ansergeyg B Nov. 19, 2019, 4:13 p.m. OK Mono C# TESTS 12 77 2150400 1200
65368043 Tan42 B Nov. 19, 2019, 3:20 p.m. OK Mono C# TESTS 12 93 2252800 1200
65396576 Metwally92 B Nov. 19, 2019, 7:20 p.m. OK Mono C# TESTS 12 93 3276800 1200
65382491 hyzhangzhy B Nov. 19, 2019, 4:13 p.m. OK Mono C# TESTS 12 109 5939200 1200
65372347 dev8546 B Nov. 19, 2019, 3:34 p.m. OK Mono C# TESTS 12 109 6860800 1200
66624584 vjudge1 B Dec. 11, 2019, 8:25 a.m. OK MS C++ TESTS 12 15 0 1200
65613596 vjudge1 B Nov. 24, 2019, 1:42 a.m. OK MS C++ TESTS 12 15 0 1200
65465064 vjudge4 B Nov. 21, 2019, 5:23 a.m. OK MS C++ TESTS 12 15 0 1200
65613901 vjudge5 B Nov. 24, 2019, 1:56 a.m. OK MS C++ TESTS 12 15 409600 1200
69902799 vjudge2 B Jan. 31, 2020, 1:26 p.m. OK MS C++ TESTS 12 30 0 1200
65615702 vjudge5 B Nov. 24, 2019, 3:27 a.m. OK MS C++ TESTS 12 30 0 1200
65699312 vjudge2 B Nov. 25, 2019, 9:58 a.m. OK MS C++ TESTS 12 30 0 1200
65708296 vjudge4 B Nov. 25, 2019, 1:23 p.m. OK MS C++ TESTS 12 30 0 1200
65708312 vjudge2 B Nov. 25, 2019, 1:24 p.m. OK MS C++ TESTS 12 30 0 1200
69881975 vjudge3 B Jan. 31, 2020, 6:43 a.m. OK MS C++ TESTS 12 30 0 1200
65366111 c.u B Nov. 19, 2019, 3:14 p.m. OK MS C++ 2017 TESTS 12 15 0 1200
65527577 RONGER B Nov. 22, 2019, 11:02 a.m. OK MS C++ 2017 TESTS 12 30 0 1200
65439129 vjudge5 B Nov. 20, 2019, 1:48 p.m. OK MS C++ 2017 TESTS 12 30 0 1200
65371692 IronArt B Nov. 19, 2019, 3:32 p.m. OK MS C++ 2017 TESTS 12 30 0 1200
65700031 vjudge2 B Nov. 25, 2019, 10:20 a.m. OK MS C++ 2017 TESTS 12 30 0 1200
65412090 vjudge4 B Nov. 20, 2019, 4:54 a.m. OK MS C++ 2017 TESTS 12 30 307200 1200
65437096 vjudge1 B Nov. 20, 2019, 1:42 p.m. OK MS C++ 2017 TESTS 12 30 7270400 1200
66312644 vjudge5 B Dec. 5, 2019, 11:58 a.m. OK MS C++ 2017 TESTS 12 31 0 1200
68952277 Uj_chief B Jan. 16, 2020, 6:25 p.m. OK MS C++ 2017 TESTS 12 31 0 1200
66226832 vjudge1 B Dec. 3, 2019, 12:56 p.m. OK MS C++ 2017 TESTS 12 31 0 1200
65378129 shivam1420 B Nov. 19, 2019, 3:57 p.m. OK Node.js TESTS 12 295 5939200 1200
65369014 l-_-l B Nov. 19, 2019, 3:23 p.m. OK PascalABC.NET TESTS 12 685 102400 1200
65410699 nds92 B Nov. 20, 2019, 3:59 a.m. OK PHP TESTS 12 61 409600 1200
66464272 mayakin B Dec. 7, 2019, 3:57 p.m. OK PHP TESTS 12 62 0 1200
65378734 bcollet B Nov. 19, 2019, 3:59 p.m. OK PyPy 2 TESTS 12 140 1024000 1200
65369611 rkstalker B Nov. 19, 2019, 3:25 p.m. OK PyPy 2 TESTS 12 140 2355200 1200
65367488 Mukundan314 B Nov. 19, 2019, 3:18 p.m. OK PyPy 2 TESTS 12 155 819200 1200
65554166 yumtam B Nov. 22, 2019, 8:26 p.m. OK PyPy 2 TESTS 12 155 1945600 1200
65377695 iamprayush B Nov. 19, 2019, 3:55 p.m. OK PyPy 2 TESTS 12 186 2560000 1200
65512897 iamprayush B Nov. 22, 2019, 5:15 a.m. OK PyPy 2 TESTS 12 187 2560000 1200
65396910 hritik3878 B Nov. 19, 2019, 7:29 p.m. OK PyPy 2 TESTS 12 233 2150400 1200
65414055 aaa_bbb_ccc B Nov. 20, 2019, 6 a.m. OK PyPy 2 TESTS 12 343 3686400 1200
65378359 a11b11c11 B Nov. 19, 2019, 3:58 p.m. OK PyPy 2 TESTS 12 343 3686400 1200
65409996 Mukundan314 B Nov. 20, 2019, 3:28 a.m. OK PyPy 3 TESTS 12 170 3072000 1200
65385359 gaidash B Nov. 19, 2019, 4:23 p.m. OK PyPy 3 TESTS 12 171 2355200 1200
66219489 vjudge2 B Dec. 3, 2019, 10:20 a.m. OK PyPy 3 TESTS 12 171 3584000 1200
65372075 jim800121 B Nov. 19, 2019, 3:33 p.m. OK PyPy 3 TESTS 12 171 3891200 1200
65467801 makedonsk1i B Nov. 21, 2019, 6:58 a.m. OK PyPy 3 TESTS 12 171 4505600 1200
65374193 rashmijhunjhunwala068 B Nov. 19, 2019, 3:41 p.m. OK PyPy 3 TESTS 12 171 4710400 1200
65466660 vjudge4 B Nov. 21, 2019, 6:21 a.m. OK PyPy 3 TESTS 12 171 5017600 1200
69044136 _viru_ B Jan. 18, 2020, 10:42 a.m. OK PyPy 3 TESTS 12 171 5120000 1200
65660202 ElectricR B Nov. 24, 2019, 12:04 p.m. OK PyPy 3 TESTS 12 171 5632000 1200
65464891 CN_zwang2002 B Nov. 21, 2019, 5:17 a.m. OK PyPy 3 TESTS 12 171 5632000 1200
65399165 elistark B Nov. 19, 2019, 8:42 p.m. OK Python 2 TESTS 12 186 0 1200
65380217 bromanz B Nov. 19, 2019, 4:05 p.m. OK Python 2 TESTS 12 187 614400 1200
65524998 shubhankarsharma00 B Nov. 22, 2019, 10:01 a.m. OK Python 2 TESTS 12 202 0 1200
65373494 daniel.carlos B Nov. 19, 2019, 3:39 p.m. OK Python 2 TESTS 12 202 102400 1200
65929905 atarw B Nov. 28, 2019, 8:19 p.m. OK Python 2 TESTS 12 280 5324800 1200
65378251 ashashwat B Nov. 19, 2019, 3:58 p.m. OK Python 2 TESTS 12 280 5324800 1200
65510223 mantoun B Nov. 22, 2019, 3:05 a.m. OK Python 3 TESTS 12 109 921600 1200
68379100 mike.shvets B Jan. 7, 2020, 10:20 p.m. OK Python 3 TESTS 12 124 512000 1200
68211525 Firsov62121 B Jan. 4, 2020, 7:37 p.m. OK Python 3 TESTS 12 124 614400 1200
68028669 leaflowave B Jan. 1, 2020, 7:47 a.m. OK Python 3 TESTS 12 124 614400 1200
65746132 kacisfriend B Nov. 26, 2019, 12:19 p.m. OK Python 3 TESTS 12 124 614400 1200
65367786 Vaapler B Nov. 19, 2019, 3:19 p.m. OK Python 3 TESTS 12 124 614400 1200
67394857 zhukovdm B Dec. 21, 2019, 10:01 p.m. OK Python 3 TESTS 12 124 921600 1200
66853139 sritha B Dec. 14, 2019, 12:04 p.m. OK Python 3 TESTS 12 124 921600 1200
66604600 harishsanaka B Dec. 10, 2019, 5:55 p.m. OK Python 3 TESTS 12 124 921600 1200
65503945 PJdan B Nov. 21, 2019, 8:42 p.m. OK Python 3 TESTS 12 124 921600 1200
65397780 WillToPower B Nov. 19, 2019, 7:56 p.m. OK Rust TESTS 12 124 0 1200
65395101 WillToPower B Nov. 19, 2019, 6:46 p.m. OK Rust TESTS 12 124 0 1200
65374632 alleycat-at-git B Nov. 19, 2019, 3:43 p.m. OK Rust TESTS 12 124 614400 1200
65384797 techaddict B Nov. 19, 2019, 4:21 p.m. OK Scala TESTS 12 499 0 1200

remove filters

Back to search problems