CodeCraft-21 and Codeforces Round 711 (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
1498 CodeCraft-21 and Codeforces Round 711 (Div. 2) FINISHED False 7200 120237863 March 29, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17835 ) B Box Fitting PROGRAMMING binary search bitmasks data structures greedy

B"You are given n rectangles, each of height 1 . Each rectangle's width is a power of 2 (i. xe2 x80 x89e. it can be represented as 2^x for some non-negative integer x ). You are also given a two-dimensional box of width W . Note that W may or may not be a power of 2 . Moreover, W is at least as large as the width of the largest rectangle. You have to find the smallest height of this box, such that it is able to fit all the given rectangles. It is allowed to have some empty space left in this box after fitting all the rectangles. You cannot rotate the given rectangles to make them fit into the box. Moreover, any two distinct rectangles must not overlap, i. xe2 x80 x89e., any two distinct rectangles must have zero intersection area. See notes for visual explanation of sample input. The first line of input contains one integer t ( 1 <= t <= 5 cdot 10^3 ) -- the number of test cases. Each test case consists of two lines. For each test case: The sum of n over all test cases does not exceed 10^5 . Output t integers. The i -th integer should be equal to the answer to the i -th test case -- the smallest height of the box. For the first test case in the sample input, the following figure shows one way to fit the given five rectangles into the 2D box with minimum height: In the figure above, the number inside each rectangle is its width. The width of the 2D box is 16 (indicated with arrow below). The minimum height required for the 2D box in this case is 2 (indicated on the left). In the second test case, you can have a minimum height of three by keeping two blocks (one each of widths eight and two) on each of the three levels. "...

Tutorials

CodeCraft-21 and Codeforces Round #711 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
111421878 sonal781 B March 29, 2021, 9:15 p.m. OK Clang++17 Diagnostics TESTS 23 467 16793600
111422991 Cment__Mixer B March 29, 2021, 9:51 p.m. OK Clang++17 Diagnostics TESTS 23 467 16793600
111401746 ruban B March 29, 2021, 4:27 p.m. OK FPC TESTS 23 62 140697600
111396885 mukundm B March 29, 2021, 4:09 p.m. OK GNU C11 TESTS 23 46 0
111426403 rieul B March 30, 2021, 12:38 a.m. OK GNU C11 TESTS 23 46 0
111429415 prodipdatta7 B March 30, 2021, 2:29 a.m. OK GNU C++11 TESTS 23 30 0
111434714 Eason_AC B March 30, 2021, 4:41 a.m. OK GNU C++11 TESTS 23 30 409600
111434773 2018LZY B March 30, 2021, 4:42 a.m. OK GNU C++11 TESTS 23 30 1638400
111428518 FoXreign B March 30, 2021, 2:02 a.m. OK GNU C++11 TESTS 23 30 7987200
111397230 Kasiruto B March 29, 2021, 4:10 p.m. OK GNU C++11 TESTS 23 31 0
111435472 NickJerome B March 30, 2021, 4:55 a.m. OK GNU C++11 TESTS 23 31 0
111409996 asiseno B March 29, 2021, 5:48 p.m. OK GNU C++11 TESTS 23 31 0
111399693 liuyaningqwq B March 29, 2021, 4:19 p.m. OK GNU C++11 TESTS 23 31 0
111395466 future17 B March 29, 2021, 4:03 p.m. OK GNU C++11 TESTS 23 31 7987200
111425462 Ax_Dea B March 29, 2021, 11:53 p.m. OK GNU C++11 TESTS 23 31 8396800
111437776 akhandagrwl_19 B March 30, 2021, 5:34 a.m. OK GNU C++14 TESTS 23 46 0
111434946 akhandagrwl_19 B March 30, 2021, 4:45 a.m. OK GNU C++14 TESTS 23 46 0
111433177 sahil16082001 B March 30, 2021, 4:07 a.m. OK GNU C++14 TESTS 23 46 0
111427085 I_francis B March 30, 2021, 1:06 a.m. OK GNU C++14 TESTS 23 46 0
111426629 temp_handle_in B March 30, 2021, 12:45 a.m. OK GNU C++14 TESTS 23 46 0
111425139 Paradox512 B March 29, 2021, 11:36 p.m. OK GNU C++14 TESTS 23 46 0
111423764 itsmeshikhar B March 29, 2021, 10:24 p.m. OK GNU C++14 TESTS 23 46 0
111417071 ju_c_anik B March 29, 2021, 7:30 p.m. OK GNU C++14 TESTS 23 46 0
111415970 neat B March 29, 2021, 7:11 p.m. OK GNU C++14 TESTS 23 46 0
111438737 Ttube_lightT B March 30, 2021, 5:49 a.m. OK GNU C++14 TESTS 23 46 0
111436553 Nawaz19 B March 30, 2021, 5:14 a.m. OK GNU C++17 TESTS 23 46 0
111439560 helvetic4 B March 30, 2021, 6:02 a.m. OK GNU C++17 TESTS 23 46 0
111439212 Tanzim_bn B March 30, 2021, 5:56 a.m. OK GNU C++17 TESTS 23 46 0
111439134 Hulkido B March 30, 2021, 5:55 a.m. OK GNU C++17 TESTS 23 46 0
111438574 Parvej B March 30, 2021, 5:46 a.m. OK GNU C++17 TESTS 23 46 0
111437801 Saurabh8853 B March 30, 2021, 5:34 a.m. OK GNU C++17 TESTS 23 46 0
111436692 Nawaz19 B March 30, 2021, 5:17 a.m. OK GNU C++17 TESTS 23 46 0
111436595 Nawaz19 B March 30, 2021, 5:15 a.m. OK GNU C++17 TESTS 23 46 0
111436554 Fardinul_Hoque B March 30, 2021, 5:14 a.m. OK GNU C++17 TESTS 23 46 0
111434918 knoj014 B March 30, 2021, 4:44 a.m. OK GNU C++17 TESTS 23 46 0
111416808 TAHMID37 B March 29, 2021, 7:25 p.m. OK GNU C++17 (64) TESTS 23 31 0
111419293 ripper479 B March 29, 2021, 8:11 p.m. OK GNU C++17 (64) TESTS 23 31 0
111433725 over_flow B March 30, 2021, 4:21 a.m. OK GNU C++17 (64) TESTS 23 31 0
111410115 kwee B March 29, 2021, 5:50 p.m. OK GNU C++17 (64) TESTS 23 31 0
111400199 Narutobaco B March 29, 2021, 4:21 p.m. OK GNU C++17 (64) TESTS 23 31 0
111396096 l__ovish_Dua B March 29, 2021, 4:05 p.m. OK GNU C++17 (64) TESTS 23 31 0
111417668 ItayOtto B March 29, 2021, 7:40 p.m. OK GNU C++17 (64) TESTS 23 31 0
111415174 Ameliorate B March 29, 2021, 6:57 p.m. OK GNU C++17 (64) TESTS 23 31 409600
111431220 rgnerdplayer B March 30, 2021, 3:19 a.m. OK GNU C++17 (64) TESTS 23 31 409600
111423729 verigo B March 29, 2021, 10:23 p.m. OK GNU C++17 (64) TESTS 23 31 409600
111429039 Puru299792458 B March 30, 2021, 2:18 a.m. OK Go TESTS 23 78 0
111436609 nagabhushan B March 30, 2021, 5:15 a.m. OK Java 11 TESTS 23 202 0
111427603 bobbilyking B March 30, 2021, 1:25 a.m. OK Java 11 TESTS 23 202 0
111438629 typewriter999 B March 30, 2021, 5:47 a.m. OK Java 11 TESTS 23 217 0
111402532 Anuj_Panchal B March 29, 2021, 4:30 p.m. OK Java 11 TESTS 23 218 0
111437156 pathakbaba B March 30, 2021, 5:24 a.m. OK Java 11 TESTS 23 218 0
111407730 JatinYadav B March 29, 2021, 5:22 p.m. OK Java 11 TESTS 23 218 0
111434294 tushar_patil B March 30, 2021, 4:33 a.m. OK Java 11 TESTS 23 233 0
111424461 Is2ac B March 29, 2021, 10:57 p.m. OK Java 11 TESTS 23 233 0
111395704 pulkit0910 B March 29, 2021, 4:04 p.m. OK Java 11 TESTS 23 234 0
111410734 _merlin_ B March 29, 2021, 5:57 p.m. OK Java 11 TESTS 23 234 2764800
111408432 AhmedSoliman B March 29, 2021, 5:30 p.m. OK Java 8 TESTS 23 140 0
111412046 Vaibhav_patel19 B March 29, 2021, 6:14 p.m. OK Java 8 TESTS 23 140 0
111401878 CrazyDr B March 29, 2021, 4:27 p.m. OK Java 8 TESTS 23 155 0
111437279 megabit B March 30, 2021, 5:26 a.m. OK Java 8 TESTS 23 155 0
111406697 ahmad_mamdouh B March 29, 2021, 5:13 p.m. OK Java 8 TESTS 23 155 0
111398396 kunwar123 B March 29, 2021, 4:14 p.m. OK Java 8 TESTS 23 155 0
111435084 grivarvicky B March 30, 2021, 4:48 a.m. OK Java 8 TESTS 23 156 0
111409528 twoBit B March 29, 2021, 5:43 p.m. OK Java 8 TESTS 23 156 0
111396258 cpslayer B March 29, 2021, 4:06 p.m. OK Java 8 TESTS 23 170 0
111402616 blackhorse B March 29, 2021, 4:30 p.m. OK Java 8 TESTS 23 170 0
111411121 areniis B March 29, 2021, 6:02 p.m. OK Kotlin TESTS 23 218 0
111410878 areniis B March 29, 2021, 5:59 p.m. OK Kotlin TESTS 23 265 0
111421217 koper B March 29, 2021, 8:56 p.m. OK Kotlin TESTS 23 280 3379200
111401485 sheremi33 B March 29, 2021, 4:26 p.m. OK Kotlin TESTS 23 358 3174400
111412874 areniis B March 29, 2021, 6:25 p.m. OK Kotlin TESTS 23 607 0
111396133 Ursa123 B March 29, 2021, 4:06 p.m. OK Mono C# TESTS 23 109 9011200
111410846 DMN B March 29, 2021, 5:59 p.m. OK Mono C# TESTS 23 124 14438400
111405598 nik2005 B March 29, 2021, 5:06 p.m. OK MS C++ TESTS 23 93 0
111431212 Willemkmetsch B March 30, 2021, 3:19 a.m. OK MS C++ 2017 TESTS 23 46 409600
111425863 FLself B March 30, 2021, 12:13 a.m. OK MS C++ 2017 TESTS 23 46 4300800
111430200 lrb666 B March 30, 2021, 2:53 a.m. OK MS C++ 2017 TESTS 23 62 10035200
111396216 Infinite_King B March 29, 2021, 4:06 p.m. OK MS C++ 2017 TESTS 23 78 0
111401002 ryuflower B March 29, 2021, 4:24 p.m. OK MS C++ 2017 TESTS 23 93 307200
111398541 TheGoodest B March 29, 2021, 4:15 p.m. OK MS C++ 2017 TESTS 23 93 1228800
111430380 Archie98 B March 30, 2021, 2:57 a.m. OK MS C++ 2017 TESTS 23 93 1740800
111430469 Archie98 B March 30, 2021, 3 a.m. OK MS C++ 2017 TESTS 23 93 1843200
111427881 Imperium_ B March 30, 2021, 1:37 a.m. OK MS C++ 2017 TESTS 23 108 0
111430364 XieJiaXuan B March 30, 2021, 2:57 a.m. OK MS C++ 2017 TESTS 23 108 0
111411040 hkcsser2 B March 29, 2021, 6:01 p.m. OK .NET Core C# TESTS 23 265 14950400
111413089 rsFalse B March 29, 2021, 6:27 p.m. OK Perl TESTS 23 155 14540800
111411609 s_prateek26 B March 29, 2021, 6:08 p.m. OK PyPy 3 TESTS 23 171 8192000
111406735 ps_12 B March 29, 2021, 5:14 p.m. OK PyPy 3 TESTS 23 187 8499200
111415915 abhisheka950 B March 29, 2021, 7:11 p.m. OK PyPy 3 TESTS 23 202 7987200
111420512 Stephan B March 29, 2021, 8:38 p.m. OK PyPy 3 TESTS 23 202 10035200
111429958 Ilsa B March 30, 2021, 2:46 a.m. OK PyPy 3 TESTS 23 202 10342400
111415196 evoxtorm B March 29, 2021, 6:57 p.m. OK PyPy 3 TESTS 23 202 10342400
111410195 dutt_shouvik B March 29, 2021, 5:51 p.m. OK PyPy 3 TESTS 23 202 10342400
111418898 palashjhanwar10 B March 29, 2021, 8:04 p.m. OK PyPy 3 TESTS 23 202 10444800
111398605 skhan_org B March 29, 2021, 4:15 p.m. OK PyPy 3 TESTS 23 217 9318400
111419559 light_yagami52 B March 29, 2021, 8:16 p.m. OK PyPy 3 TESTS 23 218 10240000
111424202 denniswillie B March 29, 2021, 10:44 p.m. OK Python 3 TESTS 23 171 7475200
111423563 Kortery B March 29, 2021, 10:17 p.m. OK Python 3 TESTS 23 187 7475200
111414559 chepestb B March 29, 2021, 6:48 p.m. OK Python 3 TESTS 23 202 7680000
111408296 Dibyendu123 B March 29, 2021, 5:28 p.m. OK Python 3 TESTS 23 202 7782400
111397558 manuforms1321 B March 29, 2021, 4:11 p.m. OK Python 3 TESTS 23 217 7270400
111406020 ramzz B March 29, 2021, 5:08 p.m. OK Python 3 TESTS 23 217 7577600
111438996 thegreat_6459 B March 30, 2021, 5:53 a.m. OK Python 3 TESTS 23 217 7680000
111436611 sal_man_soori B March 30, 2021, 5:15 a.m. OK Python 3 TESTS 23 217 7680000
111411960 sh1194 B March 29, 2021, 6:13 p.m. OK Python 3 TESTS 23 217 7782400
111411798 Akhil_Gupta B March 29, 2021, 6:11 p.m. OK Python 3 TESTS 23 218 7475200

remove filters

Back to search problems