Nebius Welcome Round (Div. 1 + 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
1804 Nebius Welcome Round (Div. 1 + Div. 2) FINISHED False 7200 53191499 March 12, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4690 ) D Accommodation PROGRAMMING dp greedy

B'Annie is an amateur photographer. She likes to take pictures of giant residential buildings at night. She just took a picture of a huge rectangular building that can be seen as a table of n x m windows. That means that the building has n floors and each floor has exactly m windows. Each window is either dark or bright, meaning there is light turned on in the room behind it. Annies knows that each apartment in this building is either one-bedroom or two-bedroom. Each one-bedroom apartment has exactly one window representing it on the picture, and each two-bedroom apartment has exactly two consecutive windows on the same floor. Moreover, the value of m is guaranteed to be divisible by 4 and it is known that each floor has exactly frac{m}{4} two-bedroom apartments and exactly frac{m}{2} one-bedroom apartments. The actual layout of apartments is unknown and can be different for each floor. Annie considers an apartment to be occupied if at least one of its windows is bright. She now wonders, what are the minimum and maximum possible number of occupied apartments if judged by the given picture? Formally, for each of the floors, she comes up with some particular apartments layout with exactly frac{m}{4} two-bedroom apartments (two consecutive windows) and frac{m}{2} one-bedroom apartments (single window). She then counts the total number of apartments that have at least one bright window. What is the minimum and maximum possible number she can get? The first line of the input contains two positive integers n and m ( 1 <= q n cdot m <= q 5 cdot 10^5 ) -- the number of floors in the building and the number of windows per floor, respectively. It is guaranteed that m is divisible by 4 . Then follow n lines containing m characters each. The j -th character of the i -th line is "0" if the j -th window on the i -th floor is dark, and is "1" if thi'...

Tutorials

Nebius Welcome Round Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
197162647 rainboy D March 12, 2023, 9:20 p.m. OK GNU C11 TESTS 93 31 512000
197183259 Smallorange D March 13, 2023, 4:40 a.m. OK GNU C11 TESTS 93 31 614400
197179843 jyt0217 D March 13, 2023, 3:49 a.m. OK GNU C++14 TESTS 93 31 512000
197177272 lavanya_28 D March 13, 2023, 3:01 a.m. OK GNU C++14 TESTS 93 31 512000
197139137 DLUT_Zeratul D March 12, 2023, 5:49 p.m. OK GNU C++14 TESTS 93 31 512000
197125407 lgm9 D March 12, 2023, 4:25 p.m. OK GNU C++14 TESTS 93 31 512000
197182232 Martysss D March 13, 2023, 4:25 a.m. OK GNU C++14 TESTS 93 31 512000
197187616 2000031227 D March 13, 2023, 5:39 a.m. OK GNU C++14 TESTS 93 31 512000
197172294 mazihang2022 D March 13, 2023, 1:10 a.m. OK GNU C++14 TESTS 93 31 1024000
197171230 Luoxun_ D March 13, 2023, 12:42 a.m. OK GNU C++14 TESTS 93 31 1024000
197178033 lvvqiao D March 13, 2023, 3:16 a.m. OK GNU C++14 TESTS 93 31 1024000
197175954 Eclipse-IDE-for-Java D March 13, 2023, 2:34 a.m. OK GNU C++14 TESTS 93 31 1024000
197134381 nyaaaa D March 12, 2023, 5:25 p.m. OK GNU C++17 TESTS 93 30 1024000
197125791 batmend_kh D March 12, 2023, 4:26 p.m. OK GNU C++17 TESTS 93 30 1024000
197135057 Chrisedyong D March 12, 2023, 5:28 p.m. OK GNU C++17 TESTS 93 30 1536000
197134660 -.-Ache-.- D March 12, 2023, 5:26 p.m. OK GNU C++17 TESTS 93 31 409600
197145844 yash3101 D March 12, 2023, 6:32 p.m. OK GNU C++17 TESTS 93 31 512000
197139682 unbengable D March 12, 2023, 5:52 p.m. OK GNU C++17 TESTS 93 31 512000
197129331 MonkeyKing D March 12, 2023, 4:33 p.m. OK GNU C++17 TESTS 93 31 512000
197153234 Peacalm D March 12, 2023, 7:38 p.m. OK GNU C++17 TESTS 93 31 512000
197181034 imagine7 D March 13, 2023, 4:08 a.m. OK GNU C++17 TESTS 93 31 512000
197123470 zbit D March 12, 2023, 4:21 p.m. OK GNU C++17 TESTS 93 31 512000
197175945 stan23456 D March 13, 2023, 2:34 a.m. OK GNU C++17 (64) TESTS 93 30 1024000
197144617 Tainel. D March 12, 2023, 6:23 p.m. OK GNU C++17 (64) TESTS 93 31 102400
197177725 nitin_bisht291 D March 13, 2023, 3:11 a.m. OK GNU C++17 (64) TESTS 93 31 1024000
197174866 LiZnB_love_ZX D March 13, 2023, 2:11 a.m. OK GNU C++17 (64) TESTS 93 31 1024000
197173935 tarche D March 13, 2023, 1:48 a.m. OK GNU C++17 (64) TESTS 93 31 1024000
197163758 Giga_Cronos D March 12, 2023, 9:38 p.m. OK GNU C++17 (64) TESTS 93 31 1024000
197156385 codingsuju D March 12, 2023, 8:13 p.m. OK GNU C++17 (64) TESTS 93 31 1024000
197146231 Lucina D March 12, 2023, 6:35 p.m. OK GNU C++17 (64) TESTS 93 31 1024000
197179241 PCC D March 13, 2023, 3:38 a.m. OK GNU C++17 (64) TESTS 93 31 1024000
197184454 ChroneZU D March 13, 2023, 4:56 a.m. OK GNU C++17 (64) TESTS 93 31 1024000
197183336 zerofafa D March 13, 2023, 4:41 a.m. OK GNU C++20 (64) TESTS 93 15 512000
197184642 coderdhanraj D March 13, 2023, 4:58 a.m. OK GNU C++20 (64) TESTS 93 15 1024000
197184198 NekoYellow D March 13, 2023, 4:52 a.m. OK GNU C++20 (64) TESTS 93 15 1024000
197183058 sakuracopic D March 13, 2023, 4:37 a.m. OK GNU C++20 (64) TESTS 93 15 1024000
197178243 kkk20002 D March 13, 2023, 3:20 a.m. OK GNU C++20 (64) TESTS 93 15 1024000
197177489 SiRBruce D March 13, 2023, 3:05 a.m. OK GNU C++20 (64) TESTS 93 15 1024000
197177435 bnu20DT D March 13, 2023, 3:04 a.m. OK GNU C++20 (64) TESTS 93 15 1024000
197177320 tiagoshibata D March 13, 2023, 3:02 a.m. OK GNU C++20 (64) TESTS 93 15 1024000
197185749 zjdl D March 13, 2023, 5:14 a.m. OK GNU C++20 (64) TESTS 93 15 1024000
197188984 knhn1004 D March 13, 2023, 5:55 a.m. OK GNU C++20 (64) TESTS 93 15 1024000
197137960 RatkoSebez D March 12, 2023, 5:41 p.m. OK Java 11 TESTS 93 218 0
197177118 the_unseen D March 13, 2023, 2:58 a.m. OK Java 11 TESTS 93 218 0
197136426 merlin_ D March 12, 2023, 5:34 p.m. OK Java 11 TESTS 93 233 0
197134270 dzhi D March 12, 2023, 5:24 p.m. OK Java 11 TESTS 93 234 0
197157100 etian6795 D March 12, 2023, 8:21 p.m. OK Java 11 TESTS 93 249 716800
197134782 NewbiePupil D March 12, 2023, 5:26 p.m. OK Java 11 TESTS 93 249 1945600
197188826 zts2023 D March 13, 2023, 5:54 a.m. OK Java 17 TESTS 93 358 1536000
197136733 Aabhas99 D March 12, 2023, 5:35 p.m. OK Java 8 TESTS 93 109 0
197186939 Cromyl D March 13, 2023, 5:30 a.m. OK Java 8 TESTS 93 124 0
197142390 megaspazz D March 12, 2023, 6:09 p.m. OK Java 8 TESTS 93 124 0
197139948 megaspazz D March 12, 2023, 5:54 p.m. OK Java 8 TESTS 93 124 0
197149432 invincible777 D March 12, 2023, 7:01 p.m. OK Java 8 TESTS 93 139 0
197136869 megaspazz D March 12, 2023, 5:35 p.m. OK Java 8 TESTS 93 140 0
197126731 cc4414 D March 12, 2023, 4:28 p.m. OK Java 8 TESTS 93 140 0
197129126 harshsingla06 D March 12, 2023, 4:32 p.m. OK Java 8 TESTS 93 155 0
197170851 DylanSmith D March 13, 2023, 12:32 a.m. OK Java 8 TESTS 93 156 0
197150935 pavlo.liapota D March 12, 2023, 7:16 p.m. OK Kotlin 1.7 TESTS 93 483 49664000
197126068 aadrito D March 12, 2023, 4:26 p.m. OK MS C++ 2017 TESTS 93 31 2969600
197133876 Shkiper D March 12, 2023, 5:23 p.m. OK MS C++ 2017 TESTS 93 46 2867200
197175254 bvf D March 13, 2023, 2:20 a.m. OK PyPy 3 TESTS 93 202 5632000
197127393 hxu10 D March 12, 2023, 4:29 p.m. OK PyPy 3 TESTS 93 218 5529600
197171877 BigNerd24 D March 13, 2023, 12:59 a.m. OK PyPy 3 TESTS 93 327 11468800
197175636 park6 D March 13, 2023, 2:28 a.m. OK PyPy 3 TESTS 93 327 31846400
197164253 bpdolson D March 12, 2023, 9:47 p.m. OK PyPy 3 TESTS 93 935 7372800
197126756 Alarick D March 12, 2023, 4:28 p.m. OK PyPy 3 TESTS 93 1091 12288000
197156428 Dashk0 D March 12, 2023, 8:13 p.m. OK PyPy 3 TESTS 93 1091 36147200
197170662 RobinFromTheHood D March 13, 2023, 12:27 a.m. OK PyPy 3-64 TESTS 93 93 6553600
197165434 SoleProprietor D March 12, 2023, 10:08 p.m. OK PyPy 3-64 TESTS 93 93 10956800
197146578 GregStar D March 12, 2023, 6:38 p.m. OK PyPy 3-64 TESTS 93 93 11673600
197143945 mathiaswk D March 12, 2023, 6:19 p.m. OK PyPy 3-64 TESTS 93 108 6860800
197165133 SoleProprietor D March 12, 2023, 10:02 p.m. OK PyPy 3-64 TESTS 93 108 11468800
197176493 blue_ice_yj D March 13, 2023, 2:46 a.m. OK PyPy 3-64 TESTS 93 109 6553600
197142984 Aravind D March 12, 2023, 6:13 p.m. OK PyPy 3-64 TESTS 93 124 9728000
197178928 ZrjaK D March 13, 2023, 3:33 a.m. OK PyPy 3-64 TESTS 93 139 9625600
197151736 arT_ D March 12, 2023, 7:23 p.m. OK PyPy 3-64 TESTS 93 140 7680000
197157934 Remineva D March 12, 2023, 8:31 p.m. OK PyPy 3-64 TESTS 93 140 14131200
197142158 loop_invariant D March 12, 2023, 6:08 p.m. OK Python 3 TESTS 93 451 1638400
197139518 dmnewone D March 12, 2023, 5:51 p.m. OK Python 3 TESTS 93 514 1638400
197183822 Marquis03 D March 13, 2023, 4:47 a.m. OK Python 3 TESTS 93 561 1638400
197139979 PythonIsGodlike D March 12, 2023, 5:54 p.m. OK Python 3 TESTS 93 685 5632000
197129566 Topperoo D March 12, 2023, 4:33 p.m. OK Python 3 TESTS 93 826 5427200
197169559 GMin1year D March 12, 2023, 11:58 p.m. OK Python 3 TESTS 93 967 7782400
197181246 JUBHAI D March 13, 2023, 4:11 a.m. OK Python 3 TESTS 93 1045 7680000
197172024 ALSTON16 D March 13, 2023, 1:03 a.m. OK Python 3 TESTS 93 1357 21401600
197142682 0npata D March 12, 2023, 6:11 p.m. OK Rust 2021 TESTS 93 31 5529600

remove filters

Back to search problems