Codeforces Round 393 (Div. 2) (8VC Venture Cup 2017 - Final Round Div. 2 Edition)

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
760 Codeforces Round 393 (Div. 2) (8VC Venture Cup 2017 - Final Round Div. 2 Edition) FINISHED False 7200 252416723 Jan. 22, 2017, 6:15 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6736 ) B Frodo and pillows PROGRAMMING binary search greedy 1500

B"n hobbits are planning to spend the night at Frodo's house. Frodo has n beds standing in a row and m pillows (n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m). Each hobbit needs a bed and at least one pillow to sleep, however, everyone wants as many pillows as possible. Of course, it's not always possible to share pillows equally, but any hobbit gets hurt if he has at least two pillows less than some of his neighbors have. Frodo will sleep on the k-th bed in the row. What is the maximum number of pillows he can have so that every hobbit has at least one pillow, every pillow is given to some hobbit and no one is hurt? The only line contain three integers n, m and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) -- the number of hobbits, the number of pillows and the number of Frodo's bed. Print single integer -- the maximum number of pillows Frodo can have so that no one is hurt. In the first example Frodo can have at most two pillows. In this case, he can give two pillows to the hobbit on the first bed, and one pillow to each of the hobbits on the third and the fourth beds. In the second example Frodo can take at most four pillows, giving three pillows to each of the others. In the third example Frodo can take three pillows, giving two pillows to the hobbit in the middle and one pillow to the hobbit on the third bed. "...

Tutorials

8VC Venture Cup 2017 — Final Round and Codeforces Round #393 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
49833026 vjudge4 B Feb. 12, 2019, 2:47 p.m. OK Clang++17 Diagnostics TESTS 69 46 0 1500
50520022 vjudge4 B Feb. 26, 2019, 8:53 a.m. OK Clang++17 Diagnostics TESTS 69 61 0 1500
24046135 ruban B Jan. 22, 2017, 7:18 p.m. OK Delphi TESTS 69 15 2560000 1500
24040242 daniil-eshkin B Jan. 22, 2017, 6:37 p.m. OK Delphi TESTS 69 30 2560000 1500
24051163 metalopocalipsis B Jan. 22, 2017, 8:02 p.m. OK Delphi TESTS 69 31 2560000 1500
31191797 kartoha B Oct. 10, 2017, 2:02 p.m. OK FPC TESTS 69 15 0 1500
29637806 Grom9941 B Aug. 21, 2017, 7:39 a.m. OK FPC TESTS 69 15 0 1500
24097201 anda09tt B Jan. 24, 2017, 6:02 p.m. OK FPC TESTS 69 15 1638400 1500
24086871 KiberGraf B Jan. 24, 2017, 7:37 a.m. OK FPC TESTS 69 15 1638400 1500
24251364 Vakhan B Jan. 29, 2017, 3:58 p.m. OK FPC TESTS 69 15 1638400 1500
24156275 MonGOL B Jan. 26, 2017, 7:23 p.m. OK FPC TESTS 69 30 1638400 1500
24155913 MonGOL B Jan. 26, 2017, 6:57 p.m. OK FPC TESTS 69 30 1638400 1500
45668114 chaorenhaha B Nov. 13, 2018, 8:54 a.m. OK FPC TESTS 69 31 0 1500
24062482 AnnSvistun B Jan. 23, 2017, 4:22 a.m. OK FPC TESTS 69 31 1638400 1500
24053785 Artemx B Jan. 22, 2017, 9:11 p.m. OK FPC TESTS 69 31 1638400 1500
24685448 kymani37299 B Feb. 15, 2017, 4:11 a.m. OK GNU C TESTS 69 15 1843200 1500
24677037 ahmed106 B Feb. 14, 2017, 5:22 p.m. OK GNU C TESTS 69 15 1843200 1500
24291066 OUC_ZhangHang_2016 B Jan. 31, 2017, 1:27 p.m. OK GNU C TESTS 69 15 1843200 1500
24215783 divakarprasadashish B Jan. 28, 2017, 6:34 a.m. OK GNU C TESTS 69 15 1843200 1500
24108876 nikhil_123 B Jan. 25, 2017, 10:07 a.m. OK GNU C TESTS 69 15 1843200 1500
24092506 shuafen B Jan. 24, 2017, 1:45 p.m. OK GNU C TESTS 69 15 1945600 1500
24043460 rainboy B Jan. 22, 2017, 6:57 p.m. OK GNU C TESTS 69 15 1945600 1500
24682597 ahmed106 B Feb. 14, 2017, 10:58 p.m. OK GNU C TESTS 69 30 1843200 1500
24094600 D_Silent B Jan. 24, 2017, 3:27 p.m. OK GNU C TESTS 69 30 1945600 1500
24074486 rainboy B Jan. 23, 2017, 3:43 p.m. OK GNU C TESTS 69 30 1945600 1500
31926428 vjudge4 B Oct. 31, 2017, 3:49 p.m. OK GNU C++ TESTS 69 15 0 1500
31295279 vjudge4 B Oct. 14, 2017, 8:36 a.m. OK GNU C++ TESTS 69 15 0 1500
31133746 SimpleY B Oct. 8, 2017, 5:46 a.m. OK GNU C++ TESTS 69 15 0 1500
31101019 Mike_Wasowski B Oct. 7, 2017, 5:53 a.m. OK GNU C++ TESTS 69 15 0 1500
30493905 south_coder B Sept. 19, 2017, 10:36 a.m. OK GNU C++ TESTS 69 15 0 1500
30486680 trong3997103 B Sept. 19, 2017, 2:08 a.m. OK GNU C++ TESTS 69 15 0 1500
30486662 giang.best.1 B Sept. 19, 2017, 2:06 a.m. OK GNU C++ TESTS 69 15 0 1500
30485918 actionboyvn B Sept. 19, 2017, 12:11 a.m. OK GNU C++ TESTS 69 15 0 1500
30485851 thtnqwe B Sept. 18, 2017, 11:59 p.m. OK GNU C++ TESTS 69 15 0 1500
30364467 vjudge4 B Sept. 15, 2017, 1:48 p.m. OK GNU C++ TESTS 69 15 0 1500
24143936 mouez292 B Jan. 26, 2017, 6:17 a.m. OK GNU C11 TESTS 69 15 1843200 1500
35463235 vjudge2 B Feb. 19, 2018, 6:27 a.m. OK GNU C11 TESTS 69 15 2048000 1500
54428226 pushpraj17307 B May 20, 2019, 8:02 p.m. OK GNU C11 TESTS 69 31 0 1500
24052060 psonjoy B Jan. 22, 2017, 8:09 p.m. OK GNU C11 TESTS 69 452 1945600 1500
24045568 Mahinr10 B Jan. 22, 2017, 7:14 p.m. OK GNU C11 TESTS 69 888 1945600 1500
48197903 vjudge2 B Jan. 11, 2019, 1:33 a.m. OK GNU C11 TESTS 69 904 0 1500
48197858 MarcoReusKross B Jan. 11, 2019, 1:29 a.m. OK GNU C11 TESTS 69 919 0 1500
31173328 Yizhachok B Oct. 9, 2017, 4:55 p.m. OK GNU C++11 TESTS 69 15 0 1500
32552676 ilikebarryallen B Nov. 22, 2017, 1:59 p.m. OK GNU C++11 TESTS 69 15 0 1500
32236643 aka.Sohieb B Nov. 12, 2017, 7:02 a.m. OK GNU C++11 TESTS 69 15 0 1500
32078639 xiaohhao B Nov. 5, 2017, 2:40 p.m. OK GNU C++11 TESTS 69 15 0 1500
31199027 MSteine B Oct. 10, 2017, 5:24 p.m. OK GNU C++11 TESTS 69 15 0 1500
31173183 Dusty_sky_ B Oct. 9, 2017, 4:47 p.m. OK GNU C++11 TESTS 69 15 0 1500
31173146 vera2005 B Oct. 9, 2017, 4:46 p.m. OK GNU C++11 TESTS 69 15 0 1500
31156072 DimonLavron B Oct. 8, 2017, 10:38 p.m. OK GNU C++11 TESTS 69 15 0 1500
31087594 DimonLavron B Oct. 6, 2017, 5:01 p.m. OK GNU C++11 TESTS 69 15 0 1500
31000161 papichtrapich B Oct. 4, 2017, 6:08 p.m. OK GNU C++11 TESTS 69 15 0 1500
32550252 cheetose B Nov. 22, 2017, 12:38 p.m. OK GNU C++14 TESTS 69 15 0 1500
30994216 Nazikk B Oct. 4, 2017, 2:16 p.m. OK GNU C++14 TESTS 69 15 0 1500
30975183 Dalgerok B Oct. 3, 2017, 6:08 p.m. OK GNU C++14 TESTS 69 15 0 1500
30994244 Markellonchik B Oct. 4, 2017, 2:17 p.m. OK GNU C++14 TESTS 69 15 0 1500
60235768 prince859 B Sept. 7, 2019, 6:22 p.m. OK GNU C++14 TESTS 69 15 0 1500
30994269 danya.smelskiy B Oct. 4, 2017, 2:18 p.m. OK GNU C++14 TESTS 69 15 0 1500
31120392 Kanna_19 B Oct. 7, 2017, 3:29 p.m. OK GNU C++14 TESTS 69 15 0 1500
31173192 De_Lord B Oct. 9, 2017, 4:48 p.m. OK GNU C++14 TESTS 69 15 0 1500
32282162 BThero B Nov. 13, 2017, 11:14 a.m. OK GNU C++14 TESTS 69 15 0 1500
32360487 gaporf B Nov. 16, 2017, 4:29 p.m. OK GNU C++14 TESTS 69 15 0 1500
35447391 ucrop B Feb. 18, 2018, 1:46 p.m. OK GNU C++17 TESTS 69 15 1945600 1500
54952834 dwai009 B June 1, 2019, 8:07 p.m. OK GNU C++17 TESTS 69 30 0 1500
56537468 jiang5ye B July 5, 2019, 2:16 a.m. OK GNU C++17 TESTS 69 30 0 1500
51955037 vjudge2 B March 29, 2019, 1:10 a.m. OK GNU C++17 TESTS 69 30 0 1500
69416579 AlexLuchianov B Jan. 23, 2020, 1:16 p.m. OK GNU C++17 TESTS 69 30 0 1500
64606424 codefresher B Nov. 9, 2019, 8:58 p.m. OK GNU C++17 TESTS 69 30 0 1500
63427235 Dilshod--Imomov B Oct. 26, 2019, 8:10 a.m. OK GNU C++17 TESTS 69 30 0 1500
58354420 vjudge5 B Aug. 5, 2019, 6:42 p.m. OK GNU C++17 TESTS 69 30 0 1500
48540318 vjudge4 B Jan. 18, 2019, 4:23 p.m. OK GNU C++17 TESTS 69 30 204800 1500
48066960 Mtaylor B Jan. 7, 2019, 6:44 p.m. OK GNU C++17 TESTS 69 30 307200 1500
36631102 vjudge2 B March 26, 2018, 3:25 a.m. OK GNU C++17 Diagnostics TESTS 69 951 97689600 1500
36707220 ciaocbr B March 29, 2018, 1:29 a.m. OK GNU C++17 Diagnostics TESTS 69 997 100864000 1500
24053677 smalex69 B Jan. 22, 2017, 9:08 p.m. OK Go TESTS 69 31 24883200 1500
24087796 goC B Jan. 24, 2017, 8:31 a.m. OK Go TESTS 69 46 23244800 1500
24870363 leukhhp_prrvd B Feb. 21, 2017, 12:04 p.m. OK Haskell TESTS 69 15 53248000 1500
24106783 odomontois B Jan. 25, 2017, 7:52 a.m. OK Haskell TESTS 69 30 53248000 1500
29596718 Ahmed.Shawky B Aug. 19, 2017, 11:26 a.m. OK Java 8 TESTS 69 109 0 1500
51809686 gonzalo.uribe B March 25, 2019, 4:08 a.m. OK Java 8 TESTS 69 109 0 1500
49632975 cribabby B Feb. 8, 2019, 5:08 p.m. OK Java 8 TESTS 69 109 0 1500
44604347 Sasuke-u B Oct. 20, 2018, 4:01 p.m. OK Java 8 TESTS 69 109 0 1500
30269205 zodiacleo B Sept. 11, 2017, 3:42 p.m. OK Java 8 TESTS 69 109 0 1500
27618780 hitesh.bothra B June 6, 2017, 5:07 p.m. OK Java 8 TESTS 69 109 0 1500
24432383 VerticesEdge B Feb. 4, 2017, 12:53 p.m. OK Java 8 TESTS 69 109 20172800 1500
26536929 martin3 B April 21, 2017, 12:15 p.m. OK Java 8 TESTS 69 109 20480000 1500
25117243 maitony B March 1, 2017, 7:37 a.m. OK Java 8 TESTS 69 109 20480000 1500
25482045 ekaanshkhosla B March 14, 2017, 4:50 p.m. OK Java 8 TESTS 69 109 20480000 1500
31185215 darkkcyan B Oct. 10, 2017, 9:10 a.m. OK JavaScript TESTS 69 31 0 1500
30792220 jemsz95 B Sept. 28, 2017, 12:27 a.m. OK Kotlin TESTS 69 997 1024000 1500
52338839 MinProph B April 5, 2019, 9:27 a.m. OK Mono C# TESTS 69 46 0 1500
25338853 Olga333 B March 8, 2017, 10:28 a.m. OK MS C# TESTS 69 46 9011200 1500
24066529 AnatolyTolstobrov B Jan. 23, 2017, 8:27 a.m. OK MS C# TESTS 69 61 9216000 1500
30785037 JuanCarlosGI B Sept. 27, 2017, 5:32 p.m. OK MS C# TESTS 69 62 2457600 1500
24073246 artsin666 B Jan. 23, 2017, 2:42 p.m. OK MS C# TESTS 69 62 9011200 1500
24095890 og.kostya B Jan. 24, 2017, 4:57 p.m. OK MS C# TESTS 69 62 9113600 1500
24102979 a_eita B Jan. 25, 2017, 2:26 a.m. OK MS C# TESTS 69 62 11468800 1500
24041915 mircea85 B Jan. 22, 2017, 6:47 p.m. OK MS C# TESTS 69 77 9113600 1500
24042195 renadeen B Jan. 22, 2017, 6:49 p.m. OK MS C# TESTS 69 77 9420800 1500
24052349 antuan3000 B Jan. 22, 2017, 8:11 p.m. OK MS C# TESTS 69 77 11468800 1500
24196975 m1_k3 B Jan. 27, 2017, 6:52 p.m. OK MS C# TESTS 69 78 9113600 1500
27778208 mshcherba B June 14, 2017, 6:17 p.m. OK MS C++ TESTS 69 15 102400 1500
28715694 marszed B July 20, 2017, 7:16 a.m. OK MS C++ TESTS 69 15 2048000 1500
31577474 Stawro-Walaa B Oct. 21, 2017, 2:26 p.m. OK MS C++ TESTS 69 15 2048000 1500
29481452 vjudge5 B Aug. 15, 2017, 12:38 p.m. OK MS C++ TESTS 69 15 2048000 1500
25576823 vjudge1 B March 17, 2017, 3:35 p.m. OK MS C++ TESTS 69 15 2048000 1500
25571138 vjudge4 B March 17, 2017, 11:56 a.m. OK MS C++ TESTS 69 15 2048000 1500
25565782 KOH B March 17, 2017, 7:04 a.m. OK MS C++ TESTS 69 15 2048000 1500
25451006 jslijin B March 13, 2017, 10:13 a.m. OK MS C++ TESTS 69 15 2048000 1500
25362158 Ally0729 B March 9, 2017, 2:25 p.m. OK MS C++ TESTS 69 15 2048000 1500
24715824 ALWAYSWANNAFLY B Feb. 16, 2017, 10:41 a.m. OK MS C++ TESTS 69 15 2048000 1500
62778448 felix412441 B Oct. 17, 2019, 12:18 p.m. OK MS C++ 2017 TESTS 69 31 0 1500
68730321 sphkemlane B Jan. 13, 2020, 7:46 p.m. OK MS C++ 2017 TESTS 69 31 0 1500
59374317 IbraheemJanajreh B Aug. 23, 2019, 8:44 p.m. OK MS C++ 2017 TESTS 69 31 0 1500
68730015 sphkemlane B Jan. 13, 2020, 7:36 p.m. OK MS C++ 2017 TESTS 69 31 0 1500
68735843 vjudge3 B Jan. 13, 2020, 8:09 p.m. OK MS C++ 2017 TESTS 69 31 0 1500
68827679 youneselarjouni B Jan. 14, 2020, 7:59 p.m. OK MS C++ 2017 TESTS 69 31 307200 1500
68933042 CygneNoir B Jan. 16, 2020, 11:56 a.m. OK MS C++ 2017 TESTS 69 31 307200 1500
68829577 vjudge1 B Jan. 14, 2020, 9:04 p.m. OK MS C++ 2017 TESTS 69 31 307200 1500
68735665 sphkemlane B Jan. 13, 2020, 8:03 p.m. OK MS C++ 2017 TESTS 69 31 307200 1500
67810946 vjudge1 B Dec. 28, 2019, 5:28 p.m. OK MS C++ 2017 TESTS 69 31 307200 1500
41628966 KAALIOSTRO B Aug. 15, 2018, 4:35 p.m. OK PascalABC.NET TESTS 69 46 0 1500
24042113 pedrosorio B Jan. 22, 2017, 6:49 p.m. OK PyPy 2 TESTS 69 92 22016000 1500
24068019 shashwataggarwal B Jan. 23, 2017, 9:50 a.m. OK PyPy 2 TESTS 69 93 22016000 1500
24111411 Your_dad B Jan. 25, 2017, 12:42 p.m. OK PyPy 2 TESTS 69 93 22016000 1500
24039395 NicolasK B Jan. 22, 2017, 6:32 p.m. OK PyPy 2 TESTS 69 108 22016000 1500
24094203 nealzane B Jan. 24, 2017, 3:08 p.m. OK PyPy 2 TESTS 69 109 22016000 1500
24075459 masonsbro B Jan. 23, 2017, 4:29 p.m. OK PyPy 2 TESTS 69 109 22016000 1500
49552703 luogu_bot1 B Feb. 7, 2019, 7:19 a.m. OK PyPy 2 TESTS 69 124 204800 1500
24089076 Yash_ B Jan. 24, 2017, 10:05 a.m. OK PyPy 2 TESTS 69 124 22220800 1500
24046374 xfce8888 B Jan. 22, 2017, 7:20 p.m. OK PyPy 2 TESTS 69 139 22016000 1500
24054331 har_vi B Jan. 22, 2017, 9:28 p.m. OK PyPy 2 TESTS 69 280 29900800 1500
24276262 ShockProof B Jan. 30, 2017, 7:41 p.m. OK PyPy 3 TESTS 69 124 23142400 1500
24276151 ShockProof B Jan. 30, 2017, 7:34 p.m. OK PyPy 3 TESTS 69 124 23142400 1500
25015973 yigitozen B Feb. 25, 2017, 3:04 p.m. OK PyPy 3 TESTS 69 124 23756800 1500
63917622 kaif_7 B Oct. 31, 2019, 10:37 a.m. OK PyPy 3 TESTS 69 140 0 1500
46895799 HeyLaCC B Dec. 11, 2018, 9:09 a.m. OK PyPy 3 TESTS 69 140 0 1500
40218426 homoeconomicus B July 12, 2018, 4:42 a.m. OK PyPy 3 TESTS 69 140 0 1500
24040261 ogo B Jan. 22, 2017, 6:37 p.m. OK PyPy 3 TESTS 69 140 23347200 1500
69879687 DeS1729 B Jan. 31, 2020, 5:50 a.m. OK PyPy 3 TESTS 69 155 0 1500
56451642 fahad17049 B July 2, 2019, 11:13 p.m. OK PyPy 3 TESTS 69 155 0 1500
24054178 Vosatorp B Jan. 22, 2017, 9:22 p.m. OK PyPy 3 TESTS 69 155 23347200 1500
25681657 yick B March 21, 2017, 7:03 a.m. OK Python 2 TESTS 69 61 4710400 1500
24445049 Sukeesh B Feb. 5, 2017, 5:06 a.m. OK Python 2 TESTS 69 62 4608000 1500
24238943 wa1 B Jan. 29, 2017, 2:23 a.m. OK Python 2 TESTS 69 62 4608000 1500
24044062 pkacprzak B Jan. 22, 2017, 7:02 p.m. OK Python 2 TESTS 69 62 4608000 1500
24043009 div24ever B Jan. 22, 2017, 6:54 p.m. OK Python 2 TESTS 69 62 4608000 1500
28730258 nishant15 B July 20, 2017, 5:08 p.m. OK Python 2 TESTS 69 62 4710400 1500
24456977 Butane B Feb. 5, 2017, 6:07 p.m. OK Python 2 TESTS 69 62 4915200 1500
24046083 dragon_ B Jan. 22, 2017, 7:18 p.m. OK Python 2 TESTS 69 77 4608000 1500
24043124 zensh B Jan. 22, 2017, 6:55 p.m. OK Python 2 TESTS 69 77 4608000 1500
24042693 coderbd B Jan. 22, 2017, 6:52 p.m. OK Python 2 TESTS 69 77 4608000 1500
30785863 davila.jose23 B Sept. 27, 2017, 6:01 p.m. OK Python 3 TESTS 69 62 0 1500
30785013 julio177 B Sept. 27, 2017, 5:31 p.m. OK Python 3 TESTS 69 62 0 1500
25827699 Zombarian B March 26, 2017, 8:55 p.m. OK Python 3 TESTS 69 62 4608000 1500
24460762 shangtai B Feb. 6, 2017, 12:55 a.m. OK Python 3 TESTS 69 62 4608000 1500
24255378 vjudge3 B Jan. 29, 2017, 8:10 p.m. OK Python 3 TESTS 69 62 4608000 1500
24098093 cactusson B Jan. 24, 2017, 6:46 p.m. OK Python 3 TESTS 69 62 4608000 1500
24062343 eddy1021 B Jan. 23, 2017, 4:07 a.m. OK Python 3 TESTS 69 62 4710400 1500
24042631 Martial B Jan. 22, 2017, 6:52 p.m. OK Python 3 TESTS 69 62 4710400 1500
35417688 wotafak B Feb. 17, 2018, 1:35 p.m. OK Python 3 TESTS 69 62 5632000 1500
32344787 mola.mola B Nov. 16, 2017, 2:42 a.m. OK Python 3 TESTS 69 77 0 1500
24334276 mio_h B Feb. 1, 2017, 6:21 a.m. OK Rust TESTS 69 31 1433600 1500
24054864 voxl B Jan. 22, 2017, 10:01 p.m. OK Rust TESTS 69 31 1536000 1500
24136375 a.k.kosarev91 B Jan. 25, 2017, 7:39 p.m. OK Scala TESTS 69 467 23552000 1500

remove filters

Back to search problems