Codeforces Round 748 (Div. 3)

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
1593 Codeforces Round 748 (Div. 3) FINISHED False 8100 103130663 Oct. 13, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 25477 ) C Save More Mice PROGRAMMING binary search greedy greedy #1520

B"There are one cat, k mice, and one hole on a coordinate line. The cat is located at the point 0 , the hole is located at the point n . All mice are located between the cat and the hole: the i -th mouse is located at the point x_i ( 0 < x_i < n ). At each point, many mice can be located. In one second, the following happens. First, exactly one mouse moves to the right by 1 . If the mouse reaches the hole, it hides (i.e. the mouse will not any more move to any point and will not be eaten by the cat). Then (after that the mouse has finished its move) the cat moves to the right by 1 . If at the new cat's position, some mice are located, the cat eats them (they will not be able to move after that). The actions are performed until any mouse hasn't been hidden or isn't eaten. In other words, the first move is made by a mouse. If the mouse has reached the hole, it's saved. Then the cat makes a move. The cat eats the mice located at the pointed the cat has reached (if the cat has reached the hole, it eats nobody). Each second, you can select a mouse that will make a move. What is the maximum number of mice that can reach the hole without being eaten? The first line contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Then t test cases follow. Each test case consists of two lines. The first line contains two integers n and k ( 2 <= n <= 10^9 , 1 <= k <= 4 cdot 10^5 ). The second line contains k integers x_1, x_2, ... x_k ( 1 <= x_i < n ) -- the initial coordinates of the mice. It is guaranteed that the sum of all k given in the input doesn't exceed 4 cdot 10^5 . For each test case output on a separate line an integer m ( m ge 0 ) -- the maximum number of mice that can reach the hole without being eaten. "...

Tutorials

Editorial for Codeforces Round #748 (Div.3)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
131905601 Mx. C Oct. 14, 2021, 7:31 a.m. OK Clang++17 Diagnostics TESTS 56 451 2252800
131946690 yi-coder18 C Oct. 14, 2021, 2:08 p.m. OK Clang++17 Diagnostics TESTS 56 2292 1843200
131917498 murali_33 C Oct. 14, 2021, 9:39 a.m. OK GNU C11 TESTS 56 109 2048000
131905959 D_Evour_God C Oct. 14, 2021, 7:35 a.m. OK GNU C11 TESTS 56 109 16076800
131939444 1435730 C Oct. 14, 2021, 1:04 p.m. OK GNU C11 TESTS 56 139 2048000
131947802 1435730 C Oct. 14, 2021, 2:18 p.m. OK GNU C11 TESTS 56 140 2048000
131912706 Mrgglock C Oct. 14, 2021, 8:49 a.m. OK GNU C11 TESTS 56 156 4812800
131945425 bkifhr8 C Oct. 14, 2021, 1:57 p.m. OK GNU C++14 TESTS 56 46 1638400
131945411 Tom66 C Oct. 14, 2021, 1:57 p.m. OK GNU C++14 TESTS 56 61 1638400
131983562 DovahkiinGA C Oct. 15, 2021, 12:26 a.m. OK GNU C++14 TESTS 56 93 1945600
131986063 xiaoziyao C Oct. 15, 2021, 1:59 a.m. OK GNU C++14 TESTS 56 109 1536000
131986057 xiaoziyao C Oct. 15, 2021, 1:59 a.m. OK GNU C++14 TESTS 56 109 1536000
131922124 mahmoudbadawy C Oct. 14, 2021, 10:28 a.m. OK GNU C++14 TESTS 56 124 1638400
131982997 Kiribati233 C Oct. 14, 2021, 11:59 p.m. OK GNU C++14 TESTS 56 124 1638400
131966989 HA.D.I C Oct. 14, 2021, 5:52 p.m. OK GNU C++14 TESTS 56 124 1638400
131933291 Mr.Li_ C Oct. 14, 2021, 12:12 p.m. OK GNU C++14 TESTS 56 124 1638400
131992468 IndianMystic C Oct. 15, 2021, 4:37 a.m. OK GNU C++14 TESTS 56 124 1638400
131954832 chimp C Oct. 14, 2021, 3:33 p.m. OK GNU C++17 TESTS 56 93 1638400
131908563 Mrgglock C Oct. 14, 2021, 8 a.m. OK GNU C++17 TESTS 56 109 1536000
131918137 Shrimp__ C Oct. 14, 2021, 9:46 a.m. OK GNU C++17 TESTS 56 124 1638400
131917464 hammerL C Oct. 14, 2021, 9:39 a.m. OK GNU C++17 TESTS 56 124 1638400
131941186 urvish_pujara C Oct. 14, 2021, 1:19 p.m. OK GNU C++17 TESTS 56 124 1638400
131918254 Lecxcy C Oct. 14, 2021, 9:47 a.m. OK GNU C++17 TESTS 56 124 1638400
131986071 Orionnn C Oct. 15, 2021, 1:59 a.m. OK GNU C++17 TESTS 56 124 1638400
131943359 acirrEcqy C Oct. 14, 2021, 1:38 p.m. OK GNU C++17 TESTS 56 124 1638400
131983997 ElHoS C Oct. 15, 2021, 12:43 a.m. OK GNU C++17 TESTS 56 124 1945600
131941580 is_user C Oct. 14, 2021, 1:22 p.m. OK GNU C++17 TESTS 56 124 3174400
131928753 feicheng_ C Oct. 14, 2021, 11:30 a.m. OK GNU C++17 (64) TESTS 56 46 2150400
131993094 jt.cheng26_orz C Oct. 15, 2021, 4:51 a.m. OK GNU C++17 (64) TESTS 56 62 3584000
131929685 UN_predictable C Oct. 14, 2021, 11:39 a.m. OK GNU C++17 (64) TESTS 56 93 1536000
131926319 priyanshu173 C Oct. 14, 2021, 11:08 a.m. OK GNU C++17 (64) TESTS 56 93 1638400
131923673 ARS2003LAN C Oct. 14, 2021, 10:44 a.m. OK GNU C++17 (64) TESTS 56 93 1638400
131916344 Makcum888 C Oct. 14, 2021, 9:27 a.m. OK GNU C++17 (64) TESTS 56 93 1638400
131943547 ItayOtto C Oct. 14, 2021, 1:40 p.m. OK GNU C++17 (64) TESTS 56 93 1638400
131946756 tupside C Oct. 14, 2021, 2:09 p.m. OK GNU C++17 (64) TESTS 56 93 1638400
131947017 ReetuRaj77 C Oct. 14, 2021, 2:11 p.m. OK GNU C++17 (64) TESTS 56 93 1638400
131934793 nzotovnn C Oct. 14, 2021, 12:25 p.m. OK GNU C++17 (64) TESTS 56 93 1638400
131914727 Jepbar_Asgarov C Oct. 14, 2021, 9:11 a.m. OK Go TESTS 56 373 5222400
131958685 kirndy C Oct. 14, 2021, 4:13 p.m. OK Haskell TESTS 56 2136 171315200
131965645 nitin23329 C Oct. 14, 2021, 5:34 p.m. OK Java 11 TESTS 56 265 2969600
131965779 nitin23329 C Oct. 14, 2021, 5:36 p.m. OK Java 11 TESTS 56 311 5529600
131916506 Relief C Oct. 14, 2021, 9:29 a.m. OK Java 11 TESTS 56 311 6963200
131993278 Hresvelg nikilrselvam mphillotry C Oct. 15, 2021, 4:55 a.m. OK Java 11 TESTS 56 358 10547200
131910434 humblefool6996 C Oct. 14, 2021, 8:20 a.m. OK Java 11 TESTS 56 373 7270400
131909861 humblefool6996 C Oct. 14, 2021, 8:13 a.m. OK Java 11 TESTS 56 374 7270400
131928254 CrinklyGolem C Oct. 14, 2021, 11:25 a.m. OK Java 11 TESTS 56 389 7577600
131906932 aayushdhakad C Oct. 14, 2021, 7:44 a.m. OK Java 11 TESTS 56 390 13209600
131908959 humblefool6996 C Oct. 14, 2021, 8:04 a.m. OK Java 11 TESTS 56 405 7577600
131956202 goyalronak3 C Oct. 14, 2021, 3:46 p.m. OK Java 11 TESTS 56 405 16076800
131909055 Ghost_Fox_Sledgehammer C Oct. 14, 2021, 8:05 a.m. OK Java 8 TESTS 56 233 3686400
131944777 ramez C Oct. 14, 2021, 1:51 p.m. OK Java 8 TESTS 56 249 3686400
131954065 adityasin9h C Oct. 14, 2021, 3:25 p.m. OK Java 8 TESTS 56 249 16281600
131944481 ramez C Oct. 14, 2021, 1:48 p.m. OK Java 8 TESTS 56 264 3686400
131996832 jaykania C Oct. 15, 2021, 6:01 a.m. OK Java 8 TESTS 56 264 18432000
131993750 rohithorchu13 C Oct. 15, 2021, 5:06 a.m. OK Java 8 TESTS 56 265 18534400
131944133 sahil58555 C Oct. 14, 2021, 1:45 p.m. OK Java 8 TESTS 56 280 14745600
131951388 rerererere C Oct. 14, 2021, 2:54 p.m. OK Java 8 TESTS 56 296 18636800
131945077 sahil58555 C Oct. 14, 2021, 1:54 p.m. OK Java 8 TESTS 56 326 15769600
131988219 suyash.211.sn C Oct. 15, 2021, 2:56 a.m. OK Java 8 TESTS 56 327 27340800
131980037 Hakiobo C Oct. 14, 2021, 9:59 p.m. OK Kotlin 1.4 TESTS 56 405 13619200
131924895 Triss_Merigold C Oct. 14, 2021, 10:55 a.m. OK Kotlin 1.4 TESTS 56 451 49561600
131919606 linxiaotian C Oct. 14, 2021, 10:01 a.m. OK Kotlin 1.4 TESTS 56 467 35430400
131924984 Triss_Merigold C Oct. 14, 2021, 10:56 a.m. OK Kotlin 1.4 TESTS 56 483 51200000
131925448 Triss_Merigold C Oct. 14, 2021, 11 a.m. OK Kotlin 1.5 TESTS 56 576 41472000
131929122 break_dream C Oct. 14, 2021, 11:33 a.m. OK MS C++ 2017 TESTS 56 156 4812800
131948514 bkifhr6 C Oct. 14, 2021, 2:25 p.m. OK MS C++ 2017 TESTS 56 156 6451200
131929489 zwu2020014743 C Oct. 14, 2021, 11:37 a.m. OK MS C++ 2017 TESTS 56 390 1638400
131955704 arthur_p C Oct. 14, 2021, 3:42 p.m. OK MS C++ 2017 TESTS 56 405 1638400
131935753 Xeniya C Oct. 14, 2021, 12:33 p.m. OK MS C++ 2017 TESTS 56 421 3174400
131929421 bkifhr6 C Oct. 14, 2021, 11:36 a.m. OK MS C++ 2017 TESTS 56 421 4403200
131986387 visyyds C Oct. 15, 2021, 2:09 a.m. OK MS C++ 2017 TESTS 56 436 32051200
131973154 sasha4 C Oct. 14, 2021, 7:22 p.m. OK MS C++ 2017 TESTS 56 655 30412800
131913772 Knosee C Oct. 14, 2021, 8:59 a.m. OK .NET Core C# TESTS 56 202 42598400
131922096 ygoldendarkness C Oct. 14, 2021, 10:28 a.m. OK Node.js TESTS 56 1247 33177600
131920435 ygoldendarkness C Oct. 14, 2021, 10:10 a.m. OK Node.js TESTS 56 1278 38297600
131918772 1_2_3_4_5_9 C Oct. 14, 2021, 9:53 a.m. OK PyPy 2 TESTS 56 233 35430400
131922621 ShashankZobb C Oct. 14, 2021, 10:33 a.m. OK PyPy 2 TESTS 56 234 34508800
131919390 Mukundan314 C Oct. 14, 2021, 9:59 a.m. OK PyPy 2 TESTS 56 265 35328000
131993923 acorn11 C Oct. 15, 2021, 5:10 a.m. OK PyPy 2 TESTS 56 280 24268800
131942497 PhilTheFish C Oct. 14, 2021, 1:31 p.m. OK PyPy 3 TESTS 56 233 35532800
131921520 anee_mangal C Oct. 14, 2021, 10:22 a.m. OK PyPy 3 TESTS 56 264 35225600
131916110 raidevashish C Oct. 14, 2021, 9:25 a.m. OK PyPy 3 TESTS 56 343 38912000
131931754 vaibhav_india C Oct. 14, 2021, 11:57 a.m. OK PyPy 3 TESTS 56 467 46080000
131956793 irinaguseva C Oct. 14, 2021, 3:52 p.m. OK PyPy 3 TESTS 56 483 29491200
131906127 jcimskgp717 C Oct. 14, 2021, 7:36 a.m. OK PyPy 3 TESTS 56 498 29286400
131975683 DimSigi C Oct. 14, 2021, 8:08 p.m. OK PyPy 3 TESTS 56 499 29491200
131935918 mrng C Oct. 14, 2021, 12:35 p.m. OK PyPy 3 TESTS 56 499 29491200
131980077 NickAs C Oct. 14, 2021, 10 p.m. OK PyPy 3 TESTS 56 499 29900800
131906490 KillEverybody1 C Oct. 14, 2021, 7:39 a.m. OK PyPy 3 TESTS 56 514 29388800
131966341 freakbuoyancy C Oct. 14, 2021, 5:43 p.m. OK PyPy 3-64 TESTS 56 1154 61542400
131980256 alexeyivashka C Oct. 14, 2021, 10:06 p.m. OK Python 3 TESTS 56 311 28262400
131967938 ritikcn999 C Oct. 14, 2021, 6:04 p.m. OK Python 3 TESTS 56 311 28262400
131906970 ritesh_43 C Oct. 14, 2021, 7:44 a.m. OK Python 3 TESTS 56 327 28876800
131931187 lovishagg C Oct. 14, 2021, 11:53 a.m. OK Python 3 TESTS 56 327 29388800
131908489 manav_11 C Oct. 14, 2021, 7:59 a.m. OK Python 3 TESTS 56 343 28262400
131941009 sh1194 C Oct. 14, 2021, 1:18 p.m. OK Python 3 TESTS 56 358 28262400
131933666 soumya_16_09 C Oct. 14, 2021, 12:16 p.m. OK Python 3 TESTS 56 358 28262400
131932346 MohammadsadraSedighin C Oct. 14, 2021, 12:03 p.m. OK Python 3 TESTS 56 358 29388800
131952116 vikaschinna C Oct. 14, 2021, 3:04 p.m. OK Python 3 TESTS 56 373 28262400
131917070 venkatkiran C Oct. 14, 2021, 9:35 a.m. OK Python 3 TESTS 56 373 29388800
131925964 Spheniscine C Oct. 14, 2021, 11:05 a.m. OK Rust TESTS 56 93 2457600

remove filters

Back to search problems