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 58548263 March 12, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14474 ) B Vaccination PROGRAMMING greedy implementation two pointers

B'Ethan runs a vaccination station to help people combat the seasonal flu. He analyses the historical data in order to develop an optimal strategy for vaccine usage. Consider there are n patients coming to the station on a particular day. The i -th patient comes at the moment t_i . We know that each of these patients can be asked to wait for no more than w time moments. That means the i -th patient can get vaccine at moments t_i, t_i + 1, ldots, t_i + w . Vaccines come in packs, each pack consists of k doses. Each patient needs exactly one dose. Packs are stored in a special fridge. After a pack is taken out of the fridge and opened, it can no longer be put back. The lifetime of the vaccine outside the fridge is d moments of time. Thus, if the pack was taken out of the fridge and opened at moment x , its doses can be used to vaccinate patients at moments x, x + 1, ldots, x + d . At moment x + d + 1 all the remaining unused doses of this pack are thrown away. Assume that the vaccination station has enough staff to conduct an arbitrary number of operations at every moment of time. What is the minimum number of vaccine packs required to vaccinate all n patients? The first line of the input contains the number of test cases t ( 1 <= q t <= q 10^4 ). Then follow t descriptions of the test cases. The first line of each test case contains four integers n , k , d and w ( 1 <= q n, k <= q 2 cdot 10^5 , 0 <= q d, w <= q 10^6 ). They are the number of patients, the number of doses per vaccine pack, the number of moments of time the vaccine can live outside the fridge, and the number of moments of time each of the patients can wait, respectively. The second line of each test case contains a non-decreasing sequence t_1, t_2, ldots, t_n ( 0 <= q t_1 <= q t_2 <= q ldots <= q t_n <= q 10^6 ). The i -th element of this sequence is the moment wh'...

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
197125190 klu_2100031854 B March 12, 2023, 4:24 p.m. OK GNU C11 TESTS 39 78 0
197127039 Rohith_32432 B March 12, 2023, 4:28 p.m. OK GNU C11 TESTS 39 78 0
197127783 rohanth_2100030034 B March 12, 2023, 4:30 p.m. OK GNU C11 TESTS 39 78 0
197129594 khadeer_30494 B March 12, 2023, 4:33 p.m. OK GNU C11 TESTS 39 78 0
197122372 yurui111 B March 12, 2023, 4:18 p.m. OK GNU C11 TESTS 39 78 0
197133990 m4080m B March 12, 2023, 5:23 p.m. OK GNU C11 TESTS 39 78 819200
197126248 Sumit_or_Sam B March 12, 2023, 4:27 p.m. OK GNU C11 TESTS 39 93 819200
197181838 ghy401564 B March 13, 2023, 4:19 a.m. OK GNU C11 TESTS 39 93 819200
197136709 iffatul_anon B March 12, 2023, 5:35 p.m. OK GNU C11 TESTS 39 93 1638400
197182625 HQLF B March 13, 2023, 4:31 a.m. OK GNU C11 TESTS 39 514 1638400
197124342 moocpp B March 12, 2023, 4:23 p.m. OK GNU C++14 TESTS 39 61 819200
197122993 mouli-123 B March 12, 2023, 4:20 p.m. OK GNU C++14 TESTS 39 62 0
197169863 mazihang2022 B March 13, 2023, 12:06 a.m. OK GNU C++14 TESTS 39 62 0
197125445 nehakrishna_30612 B March 12, 2023, 4:25 p.m. OK GNU C++14 TESTS 39 62 0
197123070 bodabhuvana18 B March 12, 2023, 4:20 p.m. OK GNU C++14 TESTS 39 62 0
197122668 deepthisreekorra B March 12, 2023, 4:19 p.m. OK GNU C++14 TESTS 39 62 0
197187415 zhangfish B March 13, 2023, 5:36 a.m. OK GNU C++14 TESTS 39 62 819200
197186814 YMXL B March 13, 2023, 5:29 a.m. OK GNU C++14 TESTS 39 62 819200
197185376 Sisly B March 13, 2023, 5:09 a.m. OK GNU C++14 TESTS 39 62 819200
197183795 eacnscnj B March 13, 2023, 4:47 a.m. OK GNU C++14 TESTS 39 62 819200
197135756 Peacalm B March 12, 2023, 5:31 p.m. OK GNU C++17 TESTS 39 31 819200
197139258 Peacalm B March 12, 2023, 5:50 p.m. OK GNU C++17 TESTS 39 31 819200
197123631 sashastrakhal B March 12, 2023, 4:21 p.m. OK GNU C++17 TESTS 39 46 0
197136729 Khaled_Al_Awad B March 12, 2023, 5:35 p.m. OK GNU C++17 TESTS 39 61 819200
197136170 KAKASHI25 B March 12, 2023, 5:32 p.m. OK GNU C++17 TESTS 39 61 2457600
197136321 Mo.Zaghloul74 B March 12, 2023, 5:33 p.m. OK GNU C++17 TESTS 39 61 2457600
197177586 spsicio B March 13, 2023, 3:08 a.m. OK GNU C++17 TESTS 39 62 0
197178833 nvr_give_up B March 13, 2023, 3:31 a.m. OK GNU C++17 TESTS 39 62 0
197179456 pompy_naman B March 13, 2023, 3:42 a.m. OK GNU C++17 TESTS 39 62 0
197175108 Ocelot_666 B March 13, 2023, 2:17 a.m. OK GNU C++17 TESTS 39 62 0
197126955 InfernoDactyl B March 12, 2023, 4:28 p.m. OK GNU C++17 (64) TESTS 39 31 13926400
197128988 Zhak_RMukh B March 12, 2023, 4:32 p.m. OK GNU C++17 (64) TESTS 39 46 0
197187920 shuoxuanli B March 13, 2023, 5:43 a.m. OK GNU C++17 (64) TESTS 39 46 0
197150336 Zhak_RMukh B March 12, 2023, 7:10 p.m. OK GNU C++17 (64) TESTS 39 46 0
197178567 Z_char B March 13, 2023, 3:26 a.m. OK GNU C++17 (64) TESTS 39 46 819200
197176864 TJ_Andeviking B March 13, 2023, 2:53 a.m. OK GNU C++17 (64) TESTS 39 46 819200
197176844 PCC B March 13, 2023, 2:53 a.m. OK GNU C++17 (64) TESTS 39 46 819200
197189002 TKM_LIDER_OFFICIAL B March 13, 2023, 5:56 a.m. OK GNU C++17 (64) TESTS 39 46 819200
197186425 Njaso B March 13, 2023, 5:24 a.m. OK GNU C++17 (64) TESTS 39 46 819200
197183143 inzamam_inz B March 13, 2023, 4:38 a.m. OK GNU C++17 (64) TESTS 39 46 819200
197178514 downpour B March 13, 2023, 3:25 a.m. OK GNU C++20 (64) TESTS 39 31 0
197150134 Bellman_Bored B March 12, 2023, 7:08 p.m. OK GNU C++20 (64) TESTS 39 31 819200
197186118 reveilarc B March 13, 2023, 5:20 a.m. OK GNU C++20 (64) TESTS 39 31 819200
197181992 36champ B March 13, 2023, 4:21 a.m. OK GNU C++20 (64) TESTS 39 31 819200
197175387 High-Allow-Hat B March 13, 2023, 2:23 a.m. OK GNU C++20 (64) TESTS 39 31 819200
197174891 Bears_haunt B March 13, 2023, 2:12 a.m. OK GNU C++20 (64) TESTS 39 31 819200
197172366 marianoferesin B March 13, 2023, 1:12 a.m. OK GNU C++20 (64) TESTS 39 31 819200
197161722 arnavsrivastava0123 B March 12, 2023, 9:06 p.m. OK GNU C++20 (64) TESTS 39 31 819200
197149765 Skinny_Pete B March 12, 2023, 7:04 p.m. OK GNU C++20 (64) TESTS 39 31 819200
197136703 Ber0Silk B March 12, 2023, 5:35 p.m. OK GNU C++20 (64) TESTS 39 31 1638400
197187561 kuan525 B March 13, 2023, 5:38 a.m. OK Go TESTS 39 108 4300800
197166514 Ramez__ B March 12, 2023, 10:30 p.m. OK Java 11 TESTS 39 233 0
197150835 deepakanto B March 12, 2023, 7:15 p.m. OK Java 11 TESTS 39 248 0
197143492 Ankitsks B March 12, 2023, 6:16 p.m. OK Java 11 TESTS 39 264 0
197147158 Yousef_Badr B March 12, 2023, 6:42 p.m. OK Java 11 TESTS 39 296 3788800
197178029 Panther369 B March 13, 2023, 3:16 a.m. OK Java 11 TESTS 39 327 4300800
197136857 udhankhatola B March 12, 2023, 5:35 p.m. OK Java 11 TESTS 39 545 102400
197133816 Un_sung B March 12, 2023, 5:23 p.m. OK Java 11 TESTS 39 561 102400
197125831 2100031913_CSEH B March 12, 2023, 4:26 p.m. OK Java 11 TESTS 39 561 102400
197124233 viper01 B March 12, 2023, 4:22 p.m. OK Java 11 TESTS 39 561 204800
197137805 Utsav82 B March 12, 2023, 5:40 p.m. OK Java 17 TESTS 39 217 1024000
197128373 asetix B March 12, 2023, 4:31 p.m. OK Java 17 TESTS 39 233 921600
197134460 Doni04 B March 12, 2023, 5:25 p.m. OK Java 17 TESTS 39 296 1433600
197181764 Adar8604 B March 13, 2023, 4:18 a.m. OK Java 17 TESTS 39 374 23552000
197125729 rounak123 B March 12, 2023, 4:26 p.m. OK Java 17 TESTS 39 530 1126400
197124197 klu_2100031258 B March 12, 2023, 4:22 p.m. OK Java 17 TESTS 39 545 1331200
197143288 Suraj1607 B March 12, 2023, 6:15 p.m. OK Java 17 TESTS 39 546 1638400
197122653 Pavan__rk B March 12, 2023, 4:19 p.m. OK Java 17 TESTS 39 560 1331200
197126385 Rrishi23 B March 12, 2023, 4:27 p.m. OK Java 17 TESTS 39 561 1228800
197174702 zts2023 B March 13, 2023, 2:07 a.m. OK Java 17 TESTS 39 561 1740800
197141208 megaspazz B March 12, 2023, 6:03 p.m. OK Java 8 TESTS 39 109 0
197126178 Darko B March 12, 2023, 4:27 p.m. OK Java 8 TESTS 39 124 0
197156321 SweetAsCocaine B March 12, 2023, 8:12 p.m. OK Java 8 TESTS 39 140 2457600
197135998 MarkMahrous B March 12, 2023, 5:32 p.m. OK Java 8 TESTS 39 155 3276800
197123357 3laaHisham B March 12, 2023, 4:20 p.m. OK Java 8 TESTS 39 156 2355200
197122640 PassedPawn B March 12, 2023, 4:19 p.m. OK Java 8 TESTS 39 170 2355200
197134507 MarkMahrous B March 12, 2023, 5:25 p.m. OK Java 8 TESTS 39 170 3276800
197135728 Akarsh2810 B March 12, 2023, 5:31 p.m. OK Java 8 TESTS 39 171 2355200
197162209 Sylvester_ B March 12, 2023, 9:13 p.m. OK Java 8 TESTS 39 186 2355200
197142118 shivam01_0 B March 12, 2023, 6:08 p.m. OK Java 8 TESTS 39 187 2457600
197127437 fathima753 B March 12, 2023, 4:29 p.m. OK Kotlin 1.7 TESTS 39 967 194150400
197122490 202003021019 B March 12, 2023, 4:18 p.m. OK MS C++ 2017 TESTS 39 62 1638400
197174820 gone_with_wind B March 13, 2023, 2:10 a.m. OK MS C++ 2017 TESTS 39 187 102400
197184506 EtherealMidnight B March 13, 2023, 4:57 a.m. OK MS C++ 2017 TESTS 39 233 1638400
197128899 Gautam_2710 B March 12, 2023, 4:32 p.m. OK MS C++ 2017 TESTS 39 249 0
197188089 cereal-hecker B March 13, 2023, 5:45 a.m. OK PyPy 3 TESTS 39 451 16179200
197123539 tan_delhi B March 12, 2023, 4:21 p.m. OK PyPy 3 TESTS 39 483 16179200
197136622 bpdolson B March 12, 2023, 5:34 p.m. OK PyPy 3 TESTS 39 499 16896000
197128135 shriomks B March 12, 2023, 4:31 p.m. OK PyPy 3 TESTS 39 530 16384000
197140435 Aravind B March 12, 2023, 5:58 p.m. OK PyPy 3-64 TESTS 39 109 17510400
197146354 GregStar B March 12, 2023, 6:36 p.m. OK PyPy 3-64 TESTS 39 124 17203200
197169941 voicon B March 13, 2023, 12:09 a.m. OK PyPy 3-64 TESTS 39 124 21196800
197135641 RobinFromTheHood B March 12, 2023, 5:30 p.m. OK PyPy 3-64 TESTS 39 124 21913600
197135224 vedantmishra69 B March 12, 2023, 5:29 p.m. OK PyPy 3-64 TESTS 39 124 23449600
197175934 udayan8 B March 13, 2023, 2:34 a.m. OK PyPy 3-64 TESTS 39 124 24985600
197147590 gardengnome B March 12, 2023, 6:46 p.m. OK PyPy 3-64 TESTS 39 124 25088000
197122926 Icedburger B March 12, 2023, 4:19 p.m. OK PyPy 3-64 TESTS 39 140 18227200
197144041 gesuta B March 12, 2023, 6:20 p.m. OK PyPy 3-64 TESTS 39 140 21606400
197140348 Rosiwerk B March 12, 2023, 5:57 p.m. OK PyPy 3-64 TESTS 39 155 25497600
197122535 sikchisagar9330 B March 12, 2023, 4:19 p.m. OK Python 3 TESTS 39 171 14131200
197150108 simple710 B March 12, 2023, 7:08 p.m. OK Python 3 TESTS 39 187 14643200
197161266 sanek.v.07 B March 12, 2023, 9 p.m. OK Python 3 TESTS 39 234 12390400
197143809 bookofsky B March 12, 2023, 6:18 p.m. OK Python 3 TESTS 39 234 16179200
197123431 Hediyeh_Eshaqi B March 12, 2023, 4:21 p.m. OK Python 3 TESTS 39 249 14643200
197160887 eugalt B March 12, 2023, 8:55 p.m. OK Python 3 TESTS 39 264 12390400
197127425 Atharva145 B March 12, 2023, 4:29 p.m. OK Python 3 TESTS 39 264 14643200
197187231 Programmer76846 B March 13, 2023, 5:34 a.m. OK Python 3 TESTS 39 265 14643200
197124131 ghazal.best76 B March 12, 2023, 4:22 p.m. OK Python 3 TESTS 39 280 14643200
197141951 sahibsemahegn.sh B March 12, 2023, 6:07 p.m. OK Python 3 TESTS 39 296 14643200
197134203 0npata B March 12, 2023, 5:24 p.m. OK Rust 2021 TESTS 39 31 1638400

remove filters

Back to search problems