Codeforces Round 885 (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
1848 Codeforces Round 885 (Div. 2) FINISHED False 7200 42305099 July 16, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 16942 ) A Vika and Her Friends PROGRAMMING constructive algorithms games math

B"Vika and her friends went shopping in a mall, which can be represented as a rectangular grid of rooms with sides of length n and m . Each room has coordinates (a, b) , where 1 <= a <= n, 1 <= b <= m . Thus we call a hall with coordinates (c, d) a neighbouring for it if |a - c| + |b - d| = 1 . Tired of empty fashion talks, Vika decided to sneak away unnoticed. But since she hasn't had a chance to visit one of the shops yet, she doesn't want to leave the mall. After a while, her friends noticed Vika's disappearance and started looking for her. Currently, Vika is in a room with coordinates (x, y) , and her k friends are in rooms with coordinates (x_1, y_1) , (x_2, y_2) , ... , (x_k, y_k) , respectively. The coordinates can coincide. Note that all the girls must move to the neighbouring rooms. Every minute, first Vika moves to one of the adjacent to the side rooms of her choice, and then each friend (seeing Vika's choice) also chooses one of the adjacent rooms to move to. If at the end of the minute (that is, after all the girls have moved on to the neighbouring rooms) at least one friend is in the same room as Vika, she is caught and all the other friends are called. Tell us, can Vika run away from her annoying friends forever, or will she have to continue listening to empty fashion talks after some time? Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains three integers n , m , k ( 1 <= n, m, k <= 100 ) -- the sizes of the mall and the number of Vika's friends. The second line of each test case contains a pair of integers x and y ( 1 <= x <= n , 1 <= y <= m ) -- the coordinates of the room where Vika is. Each of the next k lines of each test case contains a pair of"...

Tutorials

Codeforces Round #885 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
214126441 bluemegane A July 16, 2023, 10:23 p.m. OK C# 8 TESTS 11 77 1433600
214141823 Schoolbag A July 17, 2023, 2:51 a.m. OK Clang++17 Diagnostics TESTS 11 62 0
214146273 liji-will A July 17, 2023, 3:40 a.m. OK Clang++17 Diagnostics TESTS 11 77 0
214140077 isagi270305 A July 17, 2023, 2:31 a.m. OK Clang++17 Diagnostics TESTS 11 77 0
214100118 codit A July 16, 2023, 5:10 p.m. OK Clang++17 Diagnostics TESTS 11 93 0
214136163 Daniel-Dainj A July 17, 2023, 1:43 a.m. OK Clang++20 Diagnostics TESTS 11 62 0
214119107 astrodigger A July 16, 2023, 8:21 p.m. OK Clang++20 Diagnostics TESTS 11 62 8396800
214154239 nikmaxwell A July 17, 2023, 5:37 a.m. OK Clang++20 Diagnostics TESTS 11 77 0
214130933 totop A July 17, 2023, 12:07 a.m. OK Clang++20 Diagnostics TESTS 11 77 0
214099883 FrostArcher A July 16, 2023, 5:09 p.m. OK Clang++20 Diagnostics TESTS 11 77 0
214103332 NenadDapic A July 16, 2023, 5:37 p.m. OK FPC TESTS 11 30 0
214113902 WASIF_74 A July 16, 2023, 7:32 p.m. OK GNU C11 TESTS 11 15 0
214098023 PRINCE_BRUR A July 16, 2023, 4:58 p.m. OK GNU C11 TESTS 11 15 0
214098137 Hacker_3.0 A July 16, 2023, 4:58 p.m. OK GNU C11 TESTS 11 15 0
214088658 CMRIT25_21R01A0589 A July 16, 2023, 4:17 p.m. OK GNU C11 TESTS 11 30 0
214115178 jmawa1163 A July 16, 2023, 7:48 p.m. OK GNU C11 TESTS 11 31 0
214152808 Kefira_Duduco A July 17, 2023, 5:16 a.m. OK GNU C11 TESTS 11 31 0
214149509 RandomDud123456 A July 17, 2023, 4:24 a.m. OK GNU C11 TESTS 11 31 0
214151119 capyashraj07 A July 17, 2023, 4:52 a.m. OK GNU C++14 TESTS 11 15 0
214150312 awayyy A July 17, 2023, 4:39 a.m. OK GNU C++14 TESTS 11 15 0
214150109 cyanac A July 17, 2023, 4:35 a.m. OK GNU C++14 TESTS 11 15 0
214151067 jiaking A July 17, 2023, 4:51 a.m. OK GNU C++14 TESTS 11 15 0
214152253 Iamryan7 A July 17, 2023, 5:09 a.m. OK GNU C++14 TESTS 11 15 0
214152937 skk402429 A July 17, 2023, 5:18 a.m. OK GNU C++14 TESTS 11 15 0
214153072 galavinit318 A July 17, 2023, 5:20 a.m. OK GNU C++14 TESTS 11 15 0
214153836 Nanthakumar06 A July 17, 2023, 5:31 a.m. OK GNU C++14 TESTS 11 15 0
214156119 nikhiltotla A July 17, 2023, 5:59 a.m. OK GNU C++14 TESTS 11 15 0
214151400 LJB00126 A July 17, 2023, 4:56 a.m. OK GNU C++14 TESTS 11 15 0
214087538 rokso A July 16, 2023, 4:13 p.m. OK GNU C++17 TESTS 11 0 0
214155178 kenilsarang96 A July 17, 2023, 5:48 a.m. OK GNU C++17 TESTS 11 15 0
214155236 sohamsingh A July 17, 2023, 5:49 a.m. OK GNU C++17 TESTS 11 15 0
214155049 siddhesh.o4 A July 17, 2023, 5:47 a.m. OK GNU C++17 TESTS 11 15 0
214154838 chirag35 A July 17, 2023, 5:44 a.m. OK GNU C++17 TESTS 11 15 0
214154703 paddakartheek A July 17, 2023, 5:43 a.m. OK GNU C++17 TESTS 11 15 0
214154385 Rhyme3 A July 17, 2023, 5:39 a.m. OK GNU C++17 TESTS 11 15 0
214153395 Vishnu_Tiwari A July 17, 2023, 5:25 a.m. OK GNU C++17 TESTS 11 15 0
214153385 patwalrahul1707 A July 17, 2023, 5:25 a.m. OK GNU C++17 TESTS 11 15 0
214153293 Adnan_Zaman_Niloy A July 17, 2023, 5:23 a.m. OK GNU C++17 TESTS 11 15 0
214151182 gqf123 A July 17, 2023, 4:52 a.m. OK GNU C++17 (64) TESTS 11 0 0
214101489 drdilyor A July 16, 2023, 5:21 p.m. OK GNU C++17 (64) TESTS 11 0 0
214100662 Soumik_2003 A July 16, 2023, 5:14 p.m. OK GNU C++17 (64) TESTS 11 0 0
214116890 anand.panda A July 16, 2023, 8:06 p.m. OK GNU C++17 (64) TESTS 11 0 0
214130514 Wuyanru A July 16, 2023, 11:56 p.m. OK GNU C++17 (64) TESTS 11 0 0
214133228 Sy_03 A July 17, 2023, 12:58 a.m. OK GNU C++17 (64) TESTS 11 0 0
214135622 abuff_AndSo A July 17, 2023, 1:35 a.m. OK GNU C++17 (64) TESTS 11 0 0
214142873 Zhak_RMukh A July 17, 2023, 3:02 a.m. OK GNU C++17 (64) TESTS 11 0 0
214147823 shiyi_ A July 17, 2023, 3:59 a.m. OK GNU C++17 (64) TESTS 11 0 0
214110496 Sharan_Swaroop A July 16, 2023, 6:54 p.m. OK GNU C++17 (64) TESTS 11 0 204800
214149658 jatindulani31 A July 17, 2023, 4:27 a.m. OK GNU C++20 (64) TESTS 11 0 0
214155916 siddhart6a.g A July 17, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 11 0 0
214153711 Hritik12 A July 17, 2023, 5:29 a.m. OK GNU C++20 (64) TESTS 11 0 0
214151896 rikraj A July 17, 2023, 5:04 a.m. OK GNU C++20 (64) TESTS 11 0 0
214151822 Hridoy23 A July 17, 2023, 5:03 a.m. OK GNU C++20 (64) TESTS 11 0 0
214151310 DvtD A July 17, 2023, 4:54 a.m. OK GNU C++20 (64) TESTS 11 0 0
214151249 HarshitSPakhariya A July 17, 2023, 4:53 a.m. OK GNU C++20 (64) TESTS 11 0 0
214150676 Krishna_Bhakt_Anuj A July 17, 2023, 4:44 a.m. OK GNU C++20 (64) TESTS 11 0 0
214150300 rvmogre A July 17, 2023, 4:39 a.m. OK GNU C++20 (64) TESTS 11 0 0
214149529 _shoaib_221 A July 17, 2023, 4:24 a.m. OK GNU C++20 (64) TESTS 11 0 0
214105581 justcode_fk A July 16, 2023, 6 p.m. OK Go TESTS 11 15 102400
214110616 ty108 A July 16, 2023, 6:56 p.m. OK Java 11 TESTS 11 170 0
214091665 Abdelrahman.Salah A July 16, 2023, 4:25 p.m. OK Java 11 TESTS 11 171 0
214134788 butteronpoptart A July 17, 2023, 1:22 a.m. OK Java 11 TESTS 11 171 0
214112476 DArk59 A July 16, 2023, 7:16 p.m. OK Java 11 TESTS 11 171 0
214112312 anonuser A July 16, 2023, 7:15 p.m. OK Java 11 TESTS 11 171 0
214104347 vijender_8601 A July 16, 2023, 5:47 p.m. OK Java 11 TESTS 11 171 0
214102430 prakharshri12345 A July 16, 2023, 5:29 p.m. OK Java 11 TESTS 11 171 0
214150499 the_epsc A July 17, 2023, 4:42 a.m. OK Java 11 TESTS 11 186 0
214093210 Un_sung A July 16, 2023, 4:29 p.m. OK Java 11 TESTS 11 186 0
214133463 Siddharth_78 A July 17, 2023, 1:02 a.m. OK Java 11 TESTS 11 217 0
214154840 miminguci A July 17, 2023, 5:45 a.m. OK Java 17 TESTS 11 171 307200
214121496 woodyiiiiiii A July 16, 2023, 8:55 p.m. OK Java 17 TESTS 11 171 512000
214086962 2745810964z A July 16, 2023, 4:12 p.m. OK Java 17 TESTS 11 171 614400
214098297 mlangc A July 16, 2023, 4:59 p.m. OK Java 17 TESTS 11 187 409600
214114347 _Abhinavv_ A July 16, 2023, 7:37 p.m. OK Java 17 TESTS 11 187 614400
214100864 Eslam_Ahmed A July 16, 2023, 5:16 p.m. OK Java 17 TESTS 11 202 409600
214092571 MagentaCobra A July 16, 2023, 4:27 p.m. OK Java 17 TESTS 11 217 307200
214089849 poir0t A July 16, 2023, 4:20 p.m. OK Java 17 TESTS 11 218 102400
214090895 Surajit007 A July 16, 2023, 4:23 p.m. OK Java 17 TESTS 11 218 716800
214100104 tailtale A July 16, 2023, 5:10 p.m. OK Java 17 TESTS 11 218 819200
214107209 vatsal_04 A July 16, 2023, 6:18 p.m. OK Java 8 TESTS 11 92 0
214111653 arutsudar A July 16, 2023, 7:08 p.m. OK Java 8 TESTS 11 93 0
214098796 yadavDipesh A July 16, 2023, 5:02 p.m. OK Java 8 TESTS 11 108 0
214111208 molecule03 A July 16, 2023, 7:03 p.m. OK Java 8 TESTS 11 109 38092800
214086754 sau_arv_gul A July 16, 2023, 4:11 p.m. OK Java 8 TESTS 11 124 0
214085101 harry1995 A July 16, 2023, 4:06 p.m. OK Java 8 TESTS 11 124 0
214121958 Toosid A July 16, 2023, 9:01 p.m. OK Java 8 TESTS 11 140 0
214110459 Harwinvanak A July 16, 2023, 6:53 p.m. OK Java 8 TESTS 11 140 0
214106460 lpychemistry A July 16, 2023, 6:10 p.m. OK Java 8 TESTS 11 140 0
214098290 Sinzy A July 16, 2023, 4:59 p.m. OK Java 8 TESTS 11 140 0
214091883 AndrOgurc A July 16, 2023, 4:26 p.m. OK Kotlin 1.7 TESTS 11 311 4608000
214086226 Jashkayth A July 16, 2023, 4:10 p.m. OK Kotlin 1.7 TESTS 11 326 5017600
214137760 steve_hong A July 17, 2023, 2:04 a.m. OK MS C++ 2017 TESTS 11 15 0
214133671 ishybee A July 17, 2023, 1:05 a.m. OK MS C++ 2017 TESTS 11 15 0
214097637 Voz56 A July 16, 2023, 4:57 p.m. OK MS C++ 2017 TESTS 11 15 0
214152688 Ravitosh A July 17, 2023, 5:15 a.m. OK MS C++ 2017 TESTS 11 30 0
214141875 guojunze A July 17, 2023, 2:51 a.m. OK MS C++ 2017 TESTS 11 31 0
214100855 Aksurana A July 16, 2023, 5:16 p.m. OK MS C++ 2017 TESTS 11 31 0
214137938 oooommmm A July 17, 2023, 2:06 a.m. OK PyPy 3 TESTS 11 186 3072000
214144981 Sovi_11 A July 17, 2023, 3:26 a.m. OK PyPy 3 TESTS 11 186 3379200
214115787 mas_sa A July 16, 2023, 7:55 p.m. OK PyPy 3 TESTS 11 186 3481600
214091727 duck_man123 A July 16, 2023, 4:25 p.m. OK PyPy 3 TESTS 11 202 3174400
214113443 jvatsal0709 A July 16, 2023, 7:28 p.m. OK PyPy 3 TESTS 11 202 4403200
214086691 learner_tushar A July 16, 2023, 4:11 p.m. OK PyPy 3 TESTS 11 217 3891200
214121160 cereal-hecker A July 16, 2023, 8:50 p.m. OK PyPy 3 TESTS 11 218 4096000
214149494 Youarenotgood A July 17, 2023, 4:23 a.m. OK PyPy 3-64 TESTS 11 62 1843200
214114837 mariiamil08 A July 16, 2023, 7:43 p.m. OK PyPy 3-64 TESTS 11 62 1843200
214109620 pglutz A July 16, 2023, 6:43 p.m. OK PyPy 3-64 TESTS 11 62 2048000
214100735 dirac_de A July 16, 2023, 5:15 p.m. OK PyPy 3-64 TESTS 11 62 2048000
214111138 Kita A July 16, 2023, 7:02 p.m. OK PyPy 3-64 TESTS 11 62 2867200
214114065 SoleProprietor A July 16, 2023, 7:33 p.m. OK PyPy 3-64 TESTS 11 62 3174400
214113807 beethoven97 A July 16, 2023, 7:31 p.m. OK PyPy 3-64 TESTS 11 77 2764800
214099977 injust A July 16, 2023, 5:09 p.m. OK PyPy 3-64 TESTS 11 77 2764800
214108850 Dert30 A July 16, 2023, 6:34 p.m. OK PyPy 3-64 TESTS 11 77 2867200
214136289 h.sakamoto A July 17, 2023, 1:45 a.m. OK PyPy 3-64 TESTS 11 77 3072000
214154588 tanishq2507 A July 17, 2023, 5:41 a.m. OK Python 3 TESTS 11 46 0
214154250 pikachu_official A July 17, 2023, 5:37 a.m. OK Python 3 TESTS 11 46 0
214152275 _rahul11_ A July 17, 2023, 5:10 a.m. OK Python 3 TESTS 11 46 0
214147754 giriraj_parik A July 17, 2023, 3:58 a.m. OK Python 3 TESTS 11 46 0
214146631 Sgcode1 A July 17, 2023, 3:44 a.m. OK Python 3 TESTS 11 46 0
214144061 pennymagic156 A July 17, 2023, 3:15 a.m. OK Python 3 TESTS 11 46 0
214139185 nomovelaplace A July 17, 2023, 2:21 a.m. OK Python 3 TESTS 11 46 0
214138117 KATLF A July 17, 2023, 2:08 a.m. OK Python 3 TESTS 11 46 0
214134108 Mahfuz22 A July 17, 2023, 1:12 a.m. OK Python 3 TESTS 11 46 0
214133620 Raeliana A July 17, 2023, 1:04 a.m. OK Python 3 TESTS 11 46 0
214090834 Valkyrie.. A July 16, 2023, 4:23 p.m. OK Ruby 3 TESTS 11 249 204800
214115443 codelegend A July 16, 2023, 7:51 p.m. OK Rust 2021 TESTS 11 0 0
214105000 cptahahab A July 16, 2023, 5:54 p.m. OK Rust 2021 TESTS 11 0 0
214121776 allisonb01 A July 16, 2023, 8:58 p.m. OK Rust 2021 TESTS 11 15 0
214116697 ihnaqi A July 16, 2023, 8:03 p.m. OK Rust 2021 TESTS 11 15 0
214105330 DreadedHippy A July 16, 2023, 5:58 p.m. OK Rust 2021 TESTS 11 15 0

remove filters

Back to search problems