2022-2023 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Preferably Teams)

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
1765 2022-2023 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Preferably Teams) FINISHED False 18000 67634663 Nov. 27, 2022, 10:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4359 ) D Watch the Videos PROGRAMMING binary search constructive algorithms two pointers 1700

B"Monocarp wants to watch n videos. Each video is only one minute long, but its size may be arbitrary. The i -th video has the size a_i megabytes. All videos are published on the Internet. A video should be downloaded before it can be watched. Monocarp has poor Internet connection -- it takes exactly 1 minute to download 1 megabyte of data, so it will require a_i minutes to download the i -th video. Monocarp's computer has a hard disk of m megabytes. The disk is used to store the downloaded videos. Once Monocarp starts the download of a video of size s , the s megabytes are immediately reserved on a hard disk. If there are less than s megabytes left, the download cannot be started until the required space is freed. Each single video can be stored on the hard disk, since a_i <= m for all i . Once the download is started, it cannot be interrupted. It is not allowed to run two or more downloads in parallel. Once a video is fully downloaded to the hard disk, Monocarp can watch it. Watching each video takes exactly 1 minute and does not occupy the Internet connection, so Monocarp can start downloading another video while watching the current one. When Monocarp finishes watching a video, he doesn't need it on the hard disk anymore, so he can delete the video, instantly freeing the space it occupied on a hard disk. Deleting a video takes negligible time. Monocarp wants to watch all n videos as quickly as possible. The order of watching does not matter, since Monocarp needs to watch all of them anyway. Please calculate the minimum possible time required for that. The first line contains two integers n and m ( 1 <= n <= 2 cdot 10^5 ; 1 <= m <= 10^9 ) -- the number of videos Monocarp wants to watch and the size of the hard disk, respectively. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= m ) -- the sizes of th"...

Tutorials

109642

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
182901913 tokitsukaze TomiokapEace D Nov. 27, 2022, 12:32 p.m. OK GNU C++14 TESTS 69 31 921600 1700
182961813 rantong D Nov. 28, 2022, 2:16 a.m. OK GNU C++14 TESTS 69 62 819200 1700
182899943 Lxyu themoon D Nov. 27, 2022, 12:18 p.m. OK GNU C++14 TESTS 69 62 2457600 1700
182899766 akkr.xrd2003 ssiddhant LegendaryGene D Nov. 27, 2022, 12:17 p.m. OK GNU C++14 TESTS 69 77 819200 1700
182773235 zcjakicpcWF yqisforever Mcggvc D Nov. 27, 2022, 11:32 a.m. OK GNU C++14 TESTS 69 77 819200 1700
182949025 abdosaad2 D Nov. 27, 2022, 8:38 p.m. OK GNU C++14 TESTS 69 77 1024000 1700
182924223 tuandq14 Mika_Catgirl SmuggingSpon D Nov. 27, 2022, 3:32 p.m. OK GNU C++14 TESTS 69 77 1638400 1700
182903181 Acanikolic73 Andrijanikolic73 D Nov. 27, 2022, 12:41 p.m. OK GNU C++14 TESTS 69 77 1638400 1700
182930039 computerbox D Nov. 27, 2022, 4:27 p.m. OK GNU C++14 TESTS 69 77 3174400 1700
182959895 17uk01 D Nov. 28, 2022, 1:24 a.m. OK GNU C++14 TESTS 69 78 819200 1700
182917378 trantri10503 tonghoang Jene1ht D Nov. 27, 2022, 2:31 p.m. OK GNU C++17 TESTS 69 62 819200 1700
182903262 abdosaad2 cgmoreda D Nov. 27, 2022, 12:41 p.m. OK GNU C++17 TESTS 69 62 1024000 1700
182770307 Merkurev Um_nik D Nov. 27, 2022, 11:11 a.m. OK GNU C++17 TESTS 69 62 1228800 1700
182909113 S.Zahra Sara.S. Sara_2006 D Nov. 27, 2022, 1:26 p.m. OK GNU C++17 TESTS 69 77 819200 1700
182772938 emonzhong D Nov. 27, 2022, 11:30 a.m. OK GNU C++17 TESTS 69 77 819200 1700
182849293 _Dola 5aleda4rf Hossamelgendy D Nov. 27, 2022, 12:01 p.m. OK GNU C++17 TESTS 69 77 1638400 1700
182943542 wasd2401 D Nov. 27, 2022, 6:44 p.m. OK GNU C++17 TESTS 69 77 1945600 1700
182920376 abdelhadymohamed Devera Sherif804 D Nov. 27, 2022, 2:57 p.m. OK GNU C++17 TESTS 69 77 2355200 1700
182967267 Amr_Mahammed D Nov. 28, 2022, 4:27 a.m. OK GNU C++17 TESTS 69 78 819200 1700
182923940 xjzw D Nov. 27, 2022, 3:29 p.m. OK GNU C++17 TESTS 69 78 819200 1700
182908241 Mikoto__Misaka D Nov. 27, 2022, 1:19 p.m. OK GNU C++17 (64) TESTS 69 46 819200 1700
182767737 NoSteam909 BdE TheCrawfish D Nov. 27, 2022, 10:53 a.m. OK GNU C++17 (64) TESTS 69 46 1638400 1700
182911920 Ricardo03 Yona_ DapperSnake D Nov. 27, 2022, 1:47 p.m. OK GNU C++17 (64) TESTS 69 62 819200 1700
182789378 Toxel D Nov. 27, 2022, 11:45 a.m. OK GNU C++17 (64) TESTS 69 62 819200 1700
182947999 Karuna D Nov. 27, 2022, 8:21 p.m. OK GNU C++17 (64) TESTS 69 62 1638400 1700
182904295 real_Godot D Nov. 27, 2022, 12:49 p.m. OK GNU C++17 (64) TESTS 69 62 1638400 1700
182818802 mcdx9524 Andreasyan D Nov. 27, 2022, 11:51 a.m. OK GNU C++17 (64) TESTS 69 62 1638400 1700
182774362 dannmmaster oleg76 Juras9 D Nov. 27, 2022, 11:40 a.m. OK GNU C++17 (64) TESTS 69 62 1638400 1700
182772446 YaoBIG kimoyami D Nov. 27, 2022, 11:26 a.m. OK GNU C++17 (64) TESTS 69 62 1638400 1700
182774628 kotatsugame D Nov. 27, 2022, 11:42 a.m. OK GNU C++17 (64) TESTS 69 62 3993600 1700
182958223 fancycoser D Nov. 28, 2022, 12:24 a.m. OK GNU C++20 (64) TESTS 69 46 819200 1700
182954735 Gamal74 D Nov. 27, 2022, 10:29 p.m. OK GNU C++20 (64) TESTS 69 46 819200 1700
182922610 rushitote D Nov. 27, 2022, 3:18 p.m. OK GNU C++20 (64) TESTS 69 46 819200 1700
182921152 tfg D Nov. 27, 2022, 3:04 p.m. OK GNU C++20 (64) TESTS 69 46 819200 1700
182919173 LiMit3 Vistarin D Nov. 27, 2022, 2:47 p.m. OK GNU C++20 (64) TESTS 69 46 819200 1700
182914933 lintkey D Nov. 27, 2022, 2:11 p.m. OK GNU C++20 (64) TESTS 69 46 819200 1700
182914663 gabmei kinhosz MadSuisei D Nov. 27, 2022, 2:09 p.m. OK GNU C++20 (64) TESTS 69 46 819200 1700
182910057 yassatamer99 Ahmes AbduSaber D Nov. 27, 2022, 1:33 p.m. OK GNU C++20 (64) TESTS 69 46 819200 1700
182904672 Duckie01 chinh31503 Dijkstra_ D Nov. 27, 2022, 12:52 p.m. OK GNU C++20 (64) TESTS 69 46 819200 1700
182901164 bigo12 US3RN4M3 ItamarNir D Nov. 27, 2022, 12:27 p.m. OK GNU C++20 (64) TESTS 69 46 819200 1700
182909504 insert_cool_handle D Nov. 27, 2022, 1:29 p.m. OK Java 11 TESTS 69 405 7475200 1700
182902541 dzhi D Nov. 27, 2022, 12:36 p.m. OK Java 11 TESTS 69 452 6553600 1700
182904025 knightL D Nov. 27, 2022, 12:47 p.m. OK Java 17 TESTS 69 342 8396800 1700
182916574 HusanRich D Nov. 27, 2022, 2:25 p.m. OK Java 17 TESTS 69 577 1638400 1700
182906135 Sudin7362 TfueBiley merlin_ D Nov. 27, 2022, 1:03 p.m. OK Java 17 TESTS 69 779 41164800 1700
182929045 Mohamed308 D Nov. 27, 2022, 4:17 p.m. OK Java 8 TESTS 69 218 13312000 1700
182959587 1091857051 D Nov. 28, 2022, 1:12 a.m. OK Java 8 TESTS 69 404 0 1700
182771773 arvindf232 D Nov. 27, 2022, 11:21 a.m. OK Kotlin 1.6 TESTS 69 436 11264000 1700
182960081 Autlomu D Nov. 28, 2022, 1:31 a.m. OK MS C++ 2017 TESTS 69 93 1638400 1700
182915668 00zijian D Nov. 27, 2022, 2:17 p.m. OK PyPy 3-64 TESTS 69 140 27648000 1700
182786850 sushmanth.dampur8780 ankan2526 D Nov. 27, 2022, 11:45 a.m. OK PyPy 3-64 TESTS 69 140 31539200 1700
182901160 relixer ArtemiiP Alex239 D Nov. 27, 2022, 12:27 p.m. OK PyPy 3-64 TESTS 69 155 21606400 1700
182938719 biglunchdude D Nov. 27, 2022, 5:55 p.m. OK PyPy 3-64 TESTS 69 155 29798400 1700
182912805 Yedige D Nov. 27, 2022, 1:54 p.m. OK PyPy 3-64 TESTS 69 155 30412800 1700
182913099 Uzdik. D Nov. 27, 2022, 1:56 p.m. OK PyPy 3-64 TESTS 69 155 31027200 1700
182907414 fawzi_rjili Gunbnelch31 D Nov. 27, 2022, 1:13 p.m. OK PyPy 3-64 TESTS 69 202 28774400 1700
182962551 Little_Sheep_Yawn D Nov. 28, 2022, 2:36 a.m. OK PyPy 3-64 TESTS 69 202 35840000 1700
182819335 SophieHatter ttmred D Nov. 27, 2022, 11:53 a.m. OK PyPy 3-64 TESTS 69 389 36966400 1700
182789382 huangxw D Nov. 27, 2022, 11:45 a.m. OK PyPy 3-64 TESTS 69 405 33689600 1700
182768242 mmhlego zamaninikan D Nov. 27, 2022, 10:57 a.m. OK Python 3 TESTS 69 280 17305600 1700
182912957 heidary13794 D Nov. 27, 2022, 1:55 p.m. OK Python 3 TESTS 69 342 18022400 1700
182964878 niceriver D Nov. 28, 2022, 3:38 a.m. OK Rust 2021 TESTS 69 46 3993600 1700
182916724 1101_ D Nov. 27, 2022, 2:26 p.m. OK Rust 2021 TESTS 69 46 18534400 1700
182773081 Egor D Nov. 27, 2022, 11:31 a.m. OK Rust 2021 TESTS 69 78 9113600 1700

remove filters

Back to search problems