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
( 208 ) G Flow Control PROGRAMMING data structures implementation

B"Raj has a single physical network line that connects his office to the Internet. This line bandwidth is b bytes per millisecond. There are n users who would like to use this network line to transmit some data. The i -th of them will use the line from millisecond s_i to millisecond f_i inclusive. His initial data rate will be set to d_i . That means he will use data rate equal to d_i for millisecond s_i , and then it will change according to the procedure described below. The flow control will happen as follows. Suppose there are m users trying to transmit some data via the given network line during millisecond x . Denote as t_i the data rate that the i -th of these m users has at the beginning of this millisecond. All t_i are non-negative integer values. Raj knows all the values n , b , s_i , f_i , and d_i , he wants to calculate the total number of bytes transmitted by all the users in the aggregate. The first line of the input contains two integers n and b ( 1 <= q n <= q 2 cdot 10^5 , 1 <= q b <= q 10^9 ), the number of users who will use the line and the line bandwidth, respectively. Each of the following n lines contains three integers s_i , f_i and d_i ( 1 <= q s_i <= q f_i <= q 10^9 , 1 <= q d_i <= q 10^9 ), denoting that the i -th user will try to transmit data during each millisecond between s_i and f_i inclusive, and the initial data rate of the i -th user. Print one integer -- the total number of bytes all users will successfully transmit. Consider the first example. In the second example, at each millisecond from the 7 -th to the 11 -th inclusive, congestion occurs, and the only user decreases their rate twice. However, they don't decrease the speed enough before disconnecting. Consider the third example. "...

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
197176166 sai_neeraj G March 13, 2023, 2:39 a.m. OK GNU C11 TESTS 121 3493 17612800
197176107 hima_varshini7 G March 13, 2023, 2:38 a.m. OK GNU C11 TESTS 121 3493 17612800
197156692 rainboy G March 12, 2023, 8:16 p.m. OK GNU C11 TESTS 121 3588 17612800
197181622 vjudge1 G March 13, 2023, 4:16 a.m. OK GNU C++17 TESTS 121 811 341504000
197181531 2000030680 G March 13, 2023, 4:15 a.m. OK GNU C++17 TESTS 121 826 341401600
197124948 Um_nik G March 12, 2023, 4:24 p.m. OK GNU C++17 TESTS 121 857 341504000
197177875 353cerega G March 13, 2023, 3:14 a.m. OK GNU C++17 (64) TESTS 121 421 58982400
197142963 DeepCod70 G March 12, 2023, 6:13 p.m. OK GNU C++17 (64) TESTS 121 1684 27750400
197186447 NAVYA_30710 G March 13, 2023, 5:24 a.m. OK GNU C++17 (64) TESTS 121 2729 56422400
197137640 maroonrk G March 12, 2023, 5:39 p.m. OK GNU C++20 (64) TESTS 121 327 31232000
197127592 isaf27 G March 12, 2023, 4:30 p.m. OK GNU C++20 (64) TESTS 121 1965 59801600
197122958 Ormlis G March 12, 2023, 4:20 p.m. OK GNU C++20 (64) TESTS 121 2121 32153600
197138362 998batrr G March 12, 2023, 5:44 p.m. OK GNU C++20 (64) TESTS 121 2339 414208000
197134544 gamegame G March 12, 2023, 5:25 p.m. OK GNU C++20 (64) TESTS 121 2947 56422400
197186569 Kuroni G March 13, 2023, 5:26 a.m. OK GNU C++20 (64) TESTS 121 2979 42496000

remove filters

Back to search problems