ICPC WF Moscow Invitational Contest - Online Mirror (Unrated, ICPC Rules, Teams Preferred)

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
1578 ICPC WF Moscow Invitational Contest - Online Mirror (Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 104172863 Oct. 1, 2021, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3868 ) E Easy Scheduling PROGRAMMING implementation math

B'Eonathan Eostar decided to learn the magic of multiprocessor systems. He has a full binary tree of tasks with height h . In the beginning, there is only one ready task in the tree -- the task in the root. At each moment of time, p processes choose at most p ready tasks and perform them. After that, tasks whose parents were performed become ready for the next moment of time. Once the task becomes ready, it stays ready until it is performed. You shall calculate the smallest number of time moments the system needs to perform all the tasks. The first line of the input contains the number of tests t ( 1 <= q t <= q 5 cdot 10^5 ). Each of the next t lines contains the description of a test. A test is described by two integers h ( 1 <= q h <= q 50 ) and p ( 1 <= q p <= q 10^4 ) -- the height of the full binary tree and the number of processes. It is guaranteed that all the tests are different. For each test output one integer on a separate line -- the smallest number of time moments the system needs to perform all the tasks. Let us consider the second test from the sample input. There is a full binary tree of height 3 and there are two processes. At the first moment of time, there is only one ready task, 1 , and p_1 performs it. At the second moment of time, there are two ready tasks, 2 and 3 , and the processes perform them. At the third moment of time, there are four ready tasks, 4 , 5 , 6 , and 7 , and p_1 performs 6 and p_2 performs 5 . At the fourth moment of time, there are two ready tasks, 4 and 7 , and the processes perform them. Thus, the system spends 4 moments of time to perform all the tasks. '...

Tutorials

Tutorial (PDF)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
130500530 ruban E Oct. 1, 2021, 7:15 p.m. OK Delphi TESTS 3 421 38604800
130482490 chirs241097 E Oct. 1, 2021, 3:54 p.m. OK GNU C11 TESTS 3 1902 3686400
130466980 fmwviormv Reza_H MeHdi.KaZemI8 E Oct. 1, 2021, 1:31 p.m. OK GNU C11 TESTS 3 1918 3686400
130467883 Mohan0007 Bargav aalhadk E Oct. 1, 2021, 1:39 p.m. OK GNU C11 TESTS 3 1934 3686400
130471246 113113113aaasssddd E Oct. 1, 2021, 2:08 p.m. OK GNU C11 TESTS 3 1996 3686400
130466423 tokitsukaze winterzz1 bitetheDDDDt E Oct. 1, 2021, 1:26 p.m. OK GNU C++14 TESTS 3 93 102400
130466377 win10 E Oct. 1, 2021, 1:25 p.m. OK GNU C++14 TESTS 3 109 2150400
130465842 OguriCap E Oct. 1, 2021, 1:20 p.m. OK GNU C++14 TESTS 3 139 5427200
130475584 JerryDream E Oct. 1, 2021, 2:45 p.m. OK GNU C++14 TESTS 3 217 3788800
130471468 milan_s1 ur_456 Aditya_871 E Oct. 1, 2021, 2:10 p.m. OK GNU C++14 TESTS 3 218 0
130468499 dsbdsb E Oct. 1, 2021, 1:45 p.m. OK GNU C++14 TESTS 3 218 3686400
130475792 JerryDream E Oct. 1, 2021, 2:47 p.m. OK GNU C++14 TESTS 3 233 0
130464956 chenkuowen Suiseiseki RiverHamster E Oct. 1, 2021, 1:12 p.m. OK GNU C++14 TESTS 3 233 3686400
130467738 liankewei E Oct. 1, 2021, 1:38 p.m. OK GNU C++14 TESTS 3 233 3686400
130466688 litanghui0000 E Oct. 1, 2021, 1:28 p.m. OK GNU C++14 TESTS 3 233 3686400
130464937 Pyqe E Oct. 1, 2021, 1:11 p.m. OK GNU C++17 TESTS 3 233 3686400
130466925 zarathu E Oct. 1, 2021, 1:31 p.m. OK GNU C++17 TESTS 3 233 3686400
130473684 ousuimei_68 E Oct. 1, 2021, 2:29 p.m. OK GNU C++17 TESTS 3 233 3788800
130514011 yan_qiu_ynlchrz E Oct. 2, 2021, 1:53 a.m. OK GNU C++17 TESTS 3 234 3686400
130466412 skywalkert chitanda sd0061 E Oct. 1, 2021, 1:26 p.m. OK GNU C++17 TESTS 3 234 3788800
130516258 cuibst2 E Oct. 2, 2021, 2:57 a.m. OK GNU C++17 TESTS 3 234 3788800
130464766 4182_543_731 E Oct. 1, 2021, 1:10 p.m. OK GNU C++17 TESTS 3 248 3686400
130465545 zrt0704 zhang0617 Y25t E Oct. 1, 2021, 1:18 p.m. OK GNU C++17 TESTS 3 248 3788800
130466732 CandiMate NapSaq E Oct. 1, 2021, 1:29 p.m. OK GNU C++17 TESTS 3 249 0
130466987 LZHMmiao ykl LZDQ E Oct. 1, 2021, 1:31 p.m. OK GNU C++17 TESTS 3 249 0
130472329 yosupo E Oct. 1, 2021, 2:17 p.m. OK GNU C++17 (64) TESTS 3 31 102400
130465217 risujiroh E Oct. 1, 2021, 1:14 p.m. OK GNU C++17 (64) TESTS 3 46 4403200
130472645 trainwithoutpain E Oct. 1, 2021, 2:20 p.m. OK GNU C++17 (64) TESTS 3 155 4300800
130466090 Tomx heon E Oct. 1, 2021, 1:23 p.m. OK GNU C++17 (64) TESTS 3 155 4300800
130465697 suta kiyoshi0205 shiro53 E Oct. 1, 2021, 1:19 p.m. OK GNU C++17 (64) TESTS 3 155 4300800
130467722 SimonFallon19 martinius Scano E Oct. 1, 2021, 1:38 p.m. OK GNU C++17 (64) TESTS 3 170 0
130466017 lcyyy DHNB666 Time_JYF E Oct. 1, 2021, 1:22 p.m. OK GNU C++17 (64) TESTS 3 170 4300800
130469519 Stranger321 E Oct. 1, 2021, 1:53 p.m. OK GNU C++17 (64) TESTS 3 170 4300800
130517758 Zztrans E Oct. 2, 2021, 3:35 a.m. OK GNU C++17 (64) TESTS 3 170 4300800
130468667 t17 Alfeh jamil314 E Oct. 1, 2021, 1:46 p.m. OK GNU C++17 (64) TESTS 3 170 4300800
130466895 bobbilyking E Oct. 1, 2021, 1:30 p.m. OK Java 11 TESTS 3 405 25292800
130470015 syncAsync E Oct. 1, 2021, 1:57 p.m. OK Java 11 TESTS 3 452 25395200
130470753 Y_s_y_s E Oct. 1, 2021, 2:03 p.m. OK Java 8 TESTS 3 265 22016000
130465202 fetetriste E Oct. 1, 2021, 1:14 p.m. OK Java 8 TESTS 3 311 22016000
130466199 sajibcuet09 E Oct. 1, 2021, 1:24 p.m. OK Java 8 TESTS 3 342 0
130465289 learnjava E Oct. 1, 2021, 1:15 p.m. OK Java 8 TESTS 3 342 22016000
130492843 liheman E Oct. 1, 2021, 5:43 p.m. OK Java 8 TESTS 3 1840 22118400
130481059 procrastinate7 E Oct. 1, 2021, 3:40 p.m. OK Kotlin TESTS 3 779 25088000
130471264 mishgan E Oct. 1, 2021, 2:08 p.m. OK Mono C# TESTS 3 498 42803200
130477957 wangzhuoyue E Oct. 1, 2021, 3:07 p.m. OK MS C++ 2017 TESTS 3 327 3788800
130470580 Shiny_ruo E Oct. 1, 2021, 2:02 p.m. OK MS C++ 2017 TESTS 3 327 11776000
130469935 abdelrahman_rashed E Oct. 1, 2021, 1:56 p.m. OK MS C++ 2017 TESTS 3 389 3686400
130467876 UnHingedFrog E Oct. 1, 2021, 1:39 p.m. OK MS C++ 2017 TESTS 3 904 3686400
130493435 ryuflower E Oct. 1, 2021, 5:49 p.m. OK MS C++ 2017 TESTS 3 936 3788800
130468551 chronos19rus E Oct. 1, 2021, 1:45 p.m. OK MS C++ 2017 TESTS 3 1544 3686400
130473126 r57shell E Oct. 1, 2021, 2:24 p.m. OK MS C++ 2017 TESTS 3 1840 3686400
130483665 Het_Fadia E Oct. 1, 2021, 4:07 p.m. OK PyPy 3 TESTS 3 623 42291200
130525250 innocent_SINNER E Oct. 2, 2021, 5:35 a.m. OK PyPy 3 TESTS 3 685 180736000
130467268 skhan_org harpreet1237 mittal_prashant E Oct. 1, 2021, 1:34 p.m. OK PyPy 3 TESTS 3 686 43315200
130483945 Het_Fadia E Oct. 1, 2021, 4:10 p.m. OK PyPy 3 TESTS 3 842 23654400
130477004 hxu10 E Oct. 1, 2021, 2:58 p.m. OK PyPy 3 TESTS 3 920 35635200
130483416 Het_Fadia E Oct. 1, 2021, 4:04 p.m. OK PyPy 3 TESTS 3 966 20582400
130475080 Programmerryoki E Oct. 1, 2021, 2:41 p.m. OK PyPy 3 TESTS 3 1247 31232000
130477782 Pedantic E Oct. 1, 2021, 3:06 p.m. OK PyPy 3 TESTS 3 1247 42905600
130469624 batnik E Oct. 1, 2021, 1:54 p.m. OK PyPy 3 TESTS 3 1294 31232000
130477837 Pedantic E Oct. 1, 2021, 3:06 p.m. OK PyPy 3 TESTS 3 1372 43110400
130516616 Spheniscine E Oct. 2, 2021, 3:06 a.m. OK Rust TESTS 3 124 3891200
130472266 Spheniscine E Oct. 1, 2021, 2:17 p.m. OK Rust TESTS 3 124 3891200
130465222 sansen E Oct. 1, 2021, 1:14 p.m. OK Rust TESTS 3 139 20172800

remove filters

Back to search problems