Codeforces Round 944 (Div. 4)

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
1971 Codeforces Round 944 (Div. 4) FINISHED False 8100 21828263 May 10, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15001 ) E Find the Car PROGRAMMING binary search math sortings 1500

B"Timur is in a car traveling on the number line from point 0 to point n . The car starts moving from point 0 at minute 0 . There are k+1 signs on the line at points 0, a_1, a_2, ... , a_k , and Timur knows that the car will arrive there at minutes 0, b_1, b_2, ... , b_k , respectively. The sequences a and b are strictly increasing with a_k = n . Between any two adjacent signs, the car travels with a constant speed. Timur has q queries: each query will be an integer d , and Timur wants you to output how many minutes it takes the car to reach point d , rounded down to the nearest integer. The first line contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. The first line of each test case contains three integers n , k , and q , ( k <= q n <= q 10^9 ; 1 <= q k, q <= q 10^5 ) -- the final destination, the number of points Timur knows the time for, and the number of queries respectively. The second line of each test case contains k integers a_i ( 1 <= q a_i <= q n ; a_i < a_{i+1} for every 1 <= q i <= q k-1 ; a_k = n ). The third line of each test case contains k integers b_i ( 1 <= q b_i <= q 10^9 ; b_i < b_{i+1} for every 1 <= q i <= q k-1 ). Each of the following q lines contains a single integer d ( 0 <= q d <= q n ) -- the distance that Timur asks the minutes passed for. The sum of k over all test cases doesn't exceed 10^5 , and the sum of q over all test cases doesn't exceed 10^5 . For each query, output a single integer -- the number of minutes passed until the car reaches the point d , rounded down. For the first test case, the car goes from point 0 to point 10 in 10 minutes, so the speed is 1 unit per minute and: For the second test case, between points 0 and 4 , the car travels "...

Tutorials

Codeforces Round 944 (Div. 4) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
263128475 __abs E May 29, 2024, 10:51 a.m. OK C++14 (GCC 6-32) TESTS 20 124 0 1500
263143535 Christy_1231 E May 29, 2024, 12:53 p.m. OK C++14 (GCC 6-32) TESTS 20 140 0 1500
262408454 dev_chandani E May 24, 2024, 3:43 p.m. OK C++14 (GCC 6-32) TESTS 20 140 0 1500
262335934 Ravindra_Rinwa E May 24, 2024, 5:13 a.m. OK C++14 (GCC 6-32) TESTS 20 140 0 1500
262300449 vucislav E May 23, 2024, 6:22 p.m. OK C++14 (GCC 6-32) TESTS 20 140 0 1500
262319811 N0neNLL E May 24, 2024, 12:17 a.m. OK C++14 (GCC 6-32) TESTS 20 140 1638400 1500
263667499 ngominhkhoa2006 E June 1, 2024, 6:04 p.m. OK C++14 (GCC 6-32) TESTS 20 155 0 1500
263626075 Algorysh E June 1, 2024, 12:04 p.m. OK C++14 (GCC 6-32) TESTS 20 155 0 1500
263261462 luogu_bot1 E May 30, 2024, 2:13 p.m. OK C++14 (GCC 6-32) TESTS 20 155 0 1500
263001532 ImEquilibrium E May 28, 2024, 11:22 a.m. OK C++14 (GCC 6-32) TESTS 20 155 0 1500
262642622 viraz17 E May 26, 2024, 3:39 a.m. OK C++17 (GCC 7-32) TESTS 20 125 819200 1500
263144329 Divisoid E May 29, 2024, 1 p.m. OK C++17 (GCC 7-32) TESTS 20 139 0 1500
262202110 joaohenalves E May 22, 2024, 11:45 p.m. OK C++17 (GCC 7-32) TESTS 20 139 921600 1500
263666273 BhaveshC2003 E June 1, 2024, 5:53 p.m. OK C++17 (GCC 7-32) TESTS 20 140 0 1500
263581322 adhikarysagnik04 E June 1, 2024, 6 a.m. OK C++17 (GCC 7-32) TESTS 20 140 0 1500
263572589 hydro-bot1 E June 1, 2024, 4:20 a.m. OK C++17 (GCC 7-32) TESTS 20 140 0 1500
263081577 Loveyoyo E May 29, 2024, 3:26 a.m. OK C++17 (GCC 7-32) TESTS 20 140 0 1500
263056401 e_n1cat_ E May 28, 2024, 7:02 p.m. OK C++17 (GCC 7-32) TESTS 20 140 0 1500
262908335 GojoOfSixEyes E May 27, 2024, 4:16 p.m. OK C++17 (GCC 7-32) TESTS 20 140 0 1500
262660123 ayushbhowate1919 E May 26, 2024, 6:41 a.m. OK C++17 (GCC 7-32) TESTS 20 140 0 1500
263192339 aadichachra E May 30, 2024, 12:18 a.m. OK C++20 (GCC 13-64) TESTS 20 108 0 1500
262888344 Makar1k E May 27, 2024, 1:36 p.m. OK C++20 (GCC 13-64) TESTS 20 108 0 1500
262876553 peeyush_j E May 27, 2024, 12:06 p.m. OK C++20 (GCC 13-64) TESTS 20 108 0 1500
262451658 ultraaryan10 E May 25, 2024, 3:12 a.m. OK C++20 (GCC 13-64) TESTS 20 108 0 1500
262323832 waynetuinfor E May 24, 2024, 2:01 a.m. OK C++20 (GCC 13-64) TESTS 20 108 0 1500
263622090 TastyBacon E June 1, 2024, 11:33 a.m. OK C++20 (GCC 13-64) TESTS 20 109 0 1500
263402769 EBeason E May 31, 2024, 3:11 a.m. OK C++20 (GCC 13-64) TESTS 20 109 0 1500
263032124 StonedSloth E May 28, 2024, 3:25 p.m. OK C++20 (GCC 13-64) TESTS 20 109 0 1500
262931880 Shuxrat_programming E May 27, 2024, 8:29 p.m. OK C++20 (GCC 13-64) TESTS 20 109 0 1500
262926846 Shubham.Jain E May 27, 2024, 7:19 p.m. OK C++20 (GCC 13-64) TESTS 20 109 0 1500
262758324 At_07 E May 26, 2024, 3:32 p.m. OK GNU C11 TESTS 20 561 1638400 1500
262931382 ivsnk E May 27, 2024, 8:21 p.m. OK Go TESTS 20 233 5017600 1500
263605972 immortalfox E June 1, 2024, 9:26 a.m. OK Go TESTS 20 265 9113600 1500
262862114 d2s2 E May 27, 2024, 10:09 a.m. OK Java 21 TESTS 20 296 921600 1500
262465232 Beluga0 E May 25, 2024, 6:03 a.m. OK Java 21 TESTS 20 577 1433600 1500
262256539 goalboy E May 23, 2024, 12:26 p.m. OK Java 21 TESTS 20 984 8089600 1500
262249954 v7fgg E May 23, 2024, 11:41 a.m. OK Java 21 TESTS 20 1093 1126400 1500
262198848 kyokun E May 22, 2024, 10:17 p.m. OK Java 21 TESTS 20 1124 10137600 1500
262909844 Noone_yk E May 27, 2024, 4:29 p.m. OK Java 21 TESTS 20 1140 1433600 1500
262379296 sree9398 E May 24, 2024, 11:48 a.m. OK Java 21 TESTS 20 1140 9318400 1500
262506712 alibaba E May 25, 2024, 12:03 p.m. OK Java 8 TESTS 20 265 2150400 1500
263633241 lavender_me E June 1, 2024, 1:09 p.m. OK Java 8 TESTS 20 312 4812800 1500
262285978 Pranav_Sharda E May 23, 2024, 4:24 p.m. OK Java 8 TESTS 20 327 3276800 1500
263388940 .shinchan_ E May 30, 2024, 9:43 p.m. OK Java 8 TESTS 20 859 0 1500
263238825 Dev3161 E May 30, 2024, 11:59 a.m. OK Java 8 TESTS 20 859 0 1500
263037647 Baidiki E May 28, 2024, 4:09 p.m. OK Java 8 TESTS 20 1093 15155200 1500
263377989 batchunikhil E May 30, 2024, 6:53 p.m. OK PyPy 3 TESTS 20 1015 13721600 1500
262485512 klu-2100030642 E May 25, 2024, 9:07 a.m. OK PyPy 3 TESTS 20 1140 13824000 1500
262485401 klu-2100030642 E May 25, 2024, 9:06 a.m. OK PyPy 3 TESTS 20 1327 14233600 1500
262515310 NitroSpear E May 25, 2024, 1:37 p.m. OK PyPy 3-64 TESTS 20 250 23347200 1500
263267639 devjain1028 E May 30, 2024, 2:27 p.m. OK PyPy 3-64 TESTS 20 281 19456000 1500
262611396 MistaFlash E May 25, 2024, 5:29 p.m. OK PyPy 3-64 TESTS 20 281 19763200 1500
263227101 yer_06 E May 30, 2024, 11:07 a.m. OK PyPy 3-64 TESTS 20 312 20070400 1500
262515236 NitroSpear E May 25, 2024, 1:36 p.m. OK PyPy 3-64 TESTS 20 358 21811200 1500
262402324 klindyuk E May 24, 2024, 2:51 p.m. OK PyPy 3-64 TESTS 20 375 19046400 1500
262672838 Elmir_ E May 26, 2024, 8:20 a.m. OK PyPy 3-64 TESTS 20 421 24166400 1500
262933493 Alpha9584 E May 27, 2024, 8:56 p.m. OK PyPy 3-64 TESTS 20 437 18124800 1500
262501286 Phoenix_sj E May 25, 2024, 11:13 a.m. OK PyPy 3-64 TESTS 20 437 19251200 1500
262434609 Chischwi E May 24, 2024, 8:12 p.m. OK PyPy 3-64 TESTS 20 437 19660800 1500
262869624 vwxyz0 E May 27, 2024, 11:13 a.m. OK Python 3 TESTS 20 436 17920000 1500
263093659 DC_0001 E May 29, 2024, 6:12 a.m. OK Python 3 TESTS 20 468 18329600 1500
262696637 prathamsibal81 E May 26, 2024, 11:32 a.m. OK Python 3 TESTS 20 468 18636800 1500
263313331 Kaif_9848 E May 30, 2024, 3:17 p.m. OK Python 3 TESTS 20 483 17920000 1500
262878775 kl_2200031074 E May 27, 2024, 12:23 p.m. OK Python 3 TESTS 20 483 17920000 1500
262816411 MikeDeeper E May 27, 2024, 2:56 a.m. OK Python 3 TESTS 20 484 19046400 1500
263073540 darkcodeemohammed E May 29, 2024, 12:43 a.m. OK Python 3 TESTS 20 499 18432000 1500
262986398 hanamoin0909 E May 28, 2024, 9:11 a.m. OK Python 3 TESTS 20 499 18432000 1500
262348602 2210080018 E May 24, 2024, 7:27 a.m. OK Python 3 TESTS 20 500 17920000 1500
262816503 MikeDeeper E May 27, 2024, 2:58 a.m. OK Python 3 TESTS 20 515 17817600 1500
262641256 SnowballSH E May 26, 2024, 3:19 a.m. OK Rust 2021 TESTS 20 108 3993600 1500

remove filters

Back to search problems