Codeforces Round 841 (Div. 2) and Divide by Zero 2022

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
1731 Codeforces Round 841 (Div. 2) and Divide by Zero 2022 FINISHED False 7200 65114663 Dec. 27, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19216 ) B Kill Demodogs PROGRAMMING greedy math

B"Demodogs from the Upside-down have attacked Hawkins again. El wants to reach Mike and also kill as many Demodogs in the way as possible. Hawkins can be represented as an n x n grid. The number of Demodogs in a cell at the i -th row and the j -th column is i cdot j . El is at position (1, 1) of the grid, and she has to reach (n, n) where she can find Mike. The only directions she can move are the right (from (i, j) to (i, j + 1) ) and the down (from (i, j) to (i + 1, j) ). She can't go out of the grid, as there are doors to the Upside-down at the boundaries. Calculate the maximum possible number of Demodogs mathrm{ans} she can kill on the way, considering that she kills all Demodogs in cells she visits (including starting and finishing cells). Print 2022 cdot mathrm{ans} modulo 10^9 + 7 . Modulo 10^9 + 7 because the result can be too large and multiplied by 2022 because we are never gonna see it again! (Note, you firstly multiply by 2022 and only after that take the remainder.) Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= q t <= q 10^4 ). Description of the test cases follows. The first line of each test case contains one integer n ( 2 <= q n <= q 10^9 ) -- the size of the grid. For each test case, print a single integer -- the maximum number of Demodogs that can be killed multiplied by 2022 , modulo 10^9 + 7 . In the first test case, for any path chosen by her the number of Demodogs to be killed would be 7 , so the answer would be 2022 cdot 7 = 14154 . "...

Tutorials

Codeforces Round #841 (Div. 2) and Divide By Zero 2022 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
187078585 assoflame B Dec. 28, 2022, 8:22 p.m. OK C# 10 TESTS 15 93 512000
187072055 Kamill_m B Dec. 28, 2022, 6:57 p.m. OK C# 10 TESTS 15 139 512000
187112999 shreyansh0440 B Dec. 29, 2022, 7:59 a.m. OK Clang++17 Diagnostics TESTS 15 155 0
187247253 gehlotbhopesh007 B Dec. 30, 2022, 1:39 p.m. OK Clang++17 Diagnostics TESTS 15 202 0
187188673 wigglevig B Dec. 29, 2022, 9:28 p.m. OK Clang++20 Diagnostics TESTS 15 155 0
187471044 danpfei02 B Dec. 31, 2022, 5:42 p.m. OK Clang++20 Diagnostics TESTS 15 171 40345600
187387196 Harry_03 B Dec. 30, 2022, 8:14 p.m. OK GNU C11 TESTS 15 46 0
187241743 Magdy_George B Dec. 30, 2022, 12:42 p.m. OK GNU C++14 TESTS 15 15 0
187233506 k_balint B Dec. 30, 2022, 11:10 a.m. OK GNU C++14 TESTS 15 15 0
187228234 Kevin8502 B Dec. 30, 2022, 10:08 a.m. OK GNU C++14 TESTS 15 15 0
187201010 steven144 B Dec. 30, 2022, 3:52 a.m. OK GNU C++14 TESTS 15 15 0
187193178 dhana_sekar B Dec. 29, 2022, 11:37 p.m. OK GNU C++14 TESTS 15 15 0
187172016 idoproblems B Dec. 29, 2022, 5:40 p.m. OK GNU C++14 TESTS 15 15 0
187145017 anuraganand1619 B Dec. 29, 2022, 1:35 p.m. OK GNU C++14 TESTS 15 15 0
187061380 ArbitraryString B Dec. 28, 2022, 5:05 p.m. OK GNU C++14 TESTS 15 15 0
187399668 SmallIce B Dec. 31, 2022, 2:30 a.m. OK GNU C++14 TESTS 15 15 0
187423791 DitaMirika B Dec. 31, 2022, 8:27 a.m. OK GNU C++14 TESTS 15 15 0
187438754 eutuxia B Dec. 31, 2022, 11:20 a.m. OK GNU C++17 TESTS 15 15 0
187429703 devansh_0007 B Dec. 31, 2022, 9:35 a.m. OK GNU C++17 TESTS 15 15 0
187402073 nikhilkumarsingh B Dec. 31, 2022, 3:28 a.m. OK GNU C++17 TESTS 15 15 0
187367202 XORcist B Dec. 30, 2022, 5:02 p.m. OK GNU C++17 TESTS 15 15 0
187251906 iBa4x B Dec. 30, 2022, 2:25 p.m. OK GNU C++17 TESTS 15 15 0
187248650 Narendramaddigunta B Dec. 30, 2022, 1:53 p.m. OK GNU C++17 TESTS 15 15 0
187240103 fl_llbloom B Dec. 30, 2022, 12:26 p.m. OK GNU C++17 TESTS 15 15 0
187230513 senwil B Dec. 30, 2022, 10:35 a.m. OK GNU C++17 TESTS 15 15 0
187206294 Eloi0323 B Dec. 30, 2022, 5:36 a.m. OK GNU C++17 TESTS 15 15 0
187453348 BigV_ B Dec. 31, 2022, 2:07 p.m. OK GNU C++17 TESTS 15 15 0
187217282 Tagigxo B Dec. 30, 2022, 8:01 a.m. OK GNU C++17 (64) TESTS 15 15 0
187492849 ......77 B Jan. 1, 2023, 4:40 a.m. OK GNU C++17 (64) TESTS 15 15 0
187431201 proudzhao B Dec. 31, 2022, 9:53 a.m. OK GNU C++17 (64) TESTS 15 15 0
187411993 yamate11 B Dec. 31, 2022, 6:14 a.m. OK GNU C++17 (64) TESTS 15 15 0
187377399 pachico B Dec. 30, 2022, 6:21 p.m. OK GNU C++17 (64) TESTS 15 15 0
187371547 Vr_07 B Dec. 30, 2022, 5:40 p.m. OK GNU C++17 (64) TESTS 15 15 0
187245247 Ginatia B Dec. 30, 2022, 1:18 p.m. OK GNU C++17 (64) TESTS 15 15 0
187228734 lynmisakura B Dec. 30, 2022, 10:14 a.m. OK GNU C++17 (64) TESTS 15 15 0
187214450 s7win99 B Dec. 30, 2022, 7:24 a.m. OK GNU C++17 (64) TESTS 15 15 0
187210726 Win_Handsome B Dec. 30, 2022, 6:38 a.m. OK GNU C++17 (64) TESTS 15 15 0
187171250 KareemHatem B Dec. 29, 2022, 5:32 p.m. OK GNU C++20 (64) TESTS 15 0 0
187123387 Jiarui.X1111 B Dec. 29, 2022, 9:57 a.m. OK GNU C++20 (64) TESTS 15 0 0
187119264 muryo_kusho B Dec. 29, 2022, 9:11 a.m. OK GNU C++20 (64) TESTS 15 0 0
187230360 ZoTH B Dec. 30, 2022, 10:33 a.m. OK GNU C++20 (64) TESTS 15 0 0
187112803 ashishkingdom B Dec. 29, 2022, 7:56 a.m. OK GNU C++20 (64) TESTS 15 0 0
187096991 ABDNerwat B Dec. 29, 2022, 4:13 a.m. OK GNU C++20 (64) TESTS 15 0 0
187456941 SorKierkegaard B Dec. 31, 2022, 2:51 p.m. OK GNU C++20 (64) TESTS 15 0 0
187493667 Harsh_Chugh B Jan. 1, 2023, 5:03 a.m. OK GNU C++20 (64) TESTS 15 15 0
187479091 X_Hunter_X B Dec. 31, 2022, 8:01 p.m. OK GNU C++20 (64) TESTS 15 15 0
187494669 ettolrahc B Jan. 1, 2023, 5:28 a.m. OK GNU C++20 (64) TESTS 15 15 0
187456610 mi7hata1 B Dec. 31, 2022, 2:47 p.m. OK Java 11 TESTS 15 171 0
187045126 NewbiePupil B Dec. 28, 2022, 2:18 p.m. OK Java 11 TESTS 15 186 0
187116043 coderama B Dec. 29, 2022, 8:37 a.m. OK Java 11 TESTS 15 186 0
187074744 yeroc B Dec. 28, 2022, 7:33 p.m. OK Java 11 TESTS 15 186 0
187074646 yeroc B Dec. 28, 2022, 7:31 p.m. OK Java 11 TESTS 15 186 0
187144094 procrastinate7 B Dec. 29, 2022, 1:27 p.m. OK Java 11 TESTS 15 187 0
187043158 uttaran_das B Dec. 28, 2022, 2:01 p.m. OK Java 11 TESTS 15 202 0
187220211 Hsharma B Dec. 30, 2022, 8:36 a.m. OK Java 11 TESTS 15 218 0
187089836 hrhuynguyen B Dec. 29, 2022, 12:29 a.m. OK Java 11 TESTS 15 218 0
187084298 ilasiawo B Dec. 28, 2022, 9:52 p.m. OK Java 11 TESTS 15 218 0
187035419 Ayushtripathi441 B Dec. 28, 2022, 12:38 p.m. OK Java 17 TESTS 15 202 0
187052590 _Astron B Dec. 28, 2022, 3:33 p.m. OK Java 17 TESTS 15 202 819200
187040378 iknownothing13 B Dec. 28, 2022, 1:36 p.m. OK Java 17 TESTS 15 233 409600
187041446 im_Crush24 B Dec. 28, 2022, 1:46 p.m. OK Java 17 TESTS 15 249 41267200
187127094 tbs-jyy B Dec. 29, 2022, 10:38 a.m. OK Java 17 TESTS 15 265 716800
187105270 VX3007 B Dec. 29, 2022, 6:24 a.m. OK Java 17 TESTS 15 280 716800
187104963 VX3007 B Dec. 29, 2022, 6:20 a.m. OK Java 17 TESTS 15 280 921600
187043922 wintersoldier2004 B Dec. 28, 2022, 2:08 p.m. OK Java 17 TESTS 15 295 307200
187132078 OmarKashour B Dec. 29, 2022, 11:27 a.m. OK Java 17 TESTS 15 296 512000
187074153 Sage_Saga B Dec. 28, 2022, 7:26 p.m. OK Java 17 TESTS 15 311 1024000
187456227 liheman B Dec. 31, 2022, 2:43 p.m. OK Java 8 TESTS 15 109 0
187400192 pradeep1999 B Dec. 31, 2022, 2:43 a.m. OK Java 8 TESTS 15 109 0
187055306 arutsudar B Dec. 28, 2022, 4:01 p.m. OK Java 8 TESTS 15 109 0
187035505 soyebsarkar B Dec. 28, 2022, 12:39 p.m. OK Java 8 TESTS 15 109 0
187030929 HideBeyondYou B Dec. 28, 2022, 11:51 a.m. OK Java 8 TESTS 15 109 0
187241098 Mohamed308 B Dec. 30, 2022, 12:36 p.m. OK Java 8 TESTS 15 124 0
187096973 prakhar_30 B Dec. 29, 2022, 4:12 a.m. OK Java 8 TESTS 15 124 0
187036646 aggarwalanshul01 B Dec. 28, 2022, 12:55 p.m. OK Java 8 TESTS 15 124 0
187113853 SilveryZz B Dec. 29, 2022, 8:10 a.m. OK Java 8 TESTS 15 139 0
187045774 Divyanshuverma21 B Dec. 28, 2022, 2:24 p.m. OK Java 8 TESTS 15 140 0
187107672 Killer45 B Dec. 29, 2022, 6:54 a.m. OK Kotlin 1.7 TESTS 15 327 409600
187234130 duckladydinh B Dec. 30, 2022, 11:17 a.m. OK Kotlin 1.7 TESTS 15 390 37068800
187087603 werner77 B Dec. 28, 2022, 11:08 p.m. OK Kotlin 1.7 TESTS 15 436 35737600
187161914 andpar B Dec. 29, 2022, 4:04 p.m. OK Kotlin 1.7 TESTS 15 452 1945600
187233826 duckladydinh B Dec. 30, 2022, 11:13 a.m. OK Kotlin 1.7 TESTS 15 499 75161600
187376218 dallas0518 B Dec. 30, 2022, 6:12 p.m. OK MS C++ 2017 TESTS 15 31 0
187166947 goruess B Dec. 29, 2022, 4:52 p.m. OK MS C++ 2017 TESTS 15 46 0
187246663 lilab B Dec. 30, 2022, 1:32 p.m. OK MS C++ 2017 TESTS 15 62 0
187135278 yash_452 B Dec. 29, 2022, 11:59 a.m. OK MS C++ 2017 TESTS 15 62 0
187133225 Kway88 B Dec. 29, 2022, 11:38 a.m. OK MS C++ 2017 TESTS 15 62 0
187080664 McLetchik B Dec. 28, 2022, 8:53 p.m. OK MS C++ 2017 TESTS 15 62 0
187027779 ahm.12ed.m B Dec. 28, 2022, 11:17 a.m. OK MS C++ 2017 TESTS 15 62 0
187477514 rajharshsingh2003 B Dec. 31, 2022, 7:26 p.m. OK MS C++ 2017 TESTS 15 78 0
187245107 adesh123 B Dec. 30, 2022, 1:17 p.m. OK MS C++ 2017 TESTS 15 78 0
187202305 ppwag B Dec. 30, 2022, 4:24 a.m. OK Node.js TESTS 15 187 7065600
187230307 gravito69 B Dec. 30, 2022, 10:32 a.m. OK PyPy 2 TESTS 15 233 1843200
187058569 pursuit_of_happiness B Dec. 28, 2022, 4:36 p.m. OK PyPy 2 TESTS 15 514 8089600
187439686 mcaramba562 B Dec. 31, 2022, 11:31 a.m. OK PyPy 2 TESTS 15 545 8192000
187244801 amal_thundiyil B Dec. 30, 2022, 1:14 p.m. OK PyPy 3 TESTS 15 124 3584000
187241980 mohfasalih B Dec. 30, 2022, 12:45 p.m. OK PyPy 3 TESTS 15 124 4608000
187085539 orke2001 B Dec. 28, 2022, 10:18 p.m. OK PyPy 3 TESTS 15 265 5529600
187084219 Esmael_Samir B Dec. 28, 2022, 9:51 p.m. OK PyPy 3 TESTS 15 280 5529600
187167928 sgcc B Dec. 29, 2022, 5:01 p.m. OK PyPy 3 TESTS 15 280 5734400
187055552 bash B Dec. 28, 2022, 4:04 p.m. OK PyPy 3 TESTS 15 280 5836800
187463962 Tynec B Dec. 31, 2022, 4:16 p.m. OK PyPy 3 TESTS 15 280 5939200
187190495 longdoan B Dec. 29, 2022, 10:11 p.m. OK PyPy 3 TESTS 15 280 6144000
187130373 pawansingh001 B Dec. 29, 2022, 11:10 a.m. OK PyPy 3 TESTS 15 280 6348800
187036266 nandan_coder B Dec. 28, 2022, 12:49 p.m. OK PyPy 3 TESTS 15 295 5734400
187197232 SirMrGuy B Dec. 30, 2022, 2:08 a.m. OK PyPy 3-64 TESTS 15 77 3379200
187091057 Turtleeee B Dec. 29, 2022, 1:20 a.m. OK PyPy 3-64 TESTS 15 93 5529600
187208751 kyoran B Dec. 30, 2022, 6:11 a.m. OK PyPy 3-64 TESTS 15 93 6348800
187067779 ArjitShrivastava B Dec. 28, 2022, 6:08 p.m. OK PyPy 3-64 TESTS 15 93 6451200
187081794 RobinFromTheHood B Dec. 28, 2022, 9:10 p.m. OK PyPy 3-64 TESTS 15 109 5529600
187127980 sami02jain B Dec. 29, 2022, 10:47 a.m. OK PyPy 3-64 TESTS 15 109 7270400
187229065 Mind_Reaper B Dec. 30, 2022, 10:18 a.m. OK PyPy 3-64 TESTS 15 124 6963200
187190521 1_2_3_4_5_9 B Dec. 29, 2022, 10:12 p.m. OK PyPy 3-64 TESTS 15 124 14745600
187111181 anime_for_life B Dec. 29, 2022, 7:35 a.m. OK PyPy 3-64 TESTS 15 140 6860800
187402487 sjNxksbzj B Dec. 31, 2022, 3:38 a.m. OK PyPy 3-64 TESTS 15 156 9932800
187079006 adelian B Dec. 28, 2022, 8:28 p.m. OK Python 2 TESTS 15 93 409600
187074050 Elagamy B Dec. 28, 2022, 7:24 p.m. OK Python 2 TESTS 15 108 307200
187195299 Holo_44 B Dec. 30, 2022, 1:05 a.m. OK Python 3 TESTS 15 109 0
187431287 adi2107 B Dec. 31, 2022, 9:54 a.m. OK Python 3 TESTS 15 124 0
187378245 HORI_JOSU B Dec. 30, 2022, 6:29 p.m. OK Python 3 TESTS 15 124 0
187249565 Anoxronk B Dec. 30, 2022, 2:02 p.m. OK Python 3 TESTS 15 124 0
187223781 Cai_Guang B Dec. 30, 2022, 9:18 a.m. OK Python 3 TESTS 15 124 0
187175357 IITDG-CODER B Dec. 29, 2022, 6:11 p.m. OK Python 3 TESTS 15 124 0
187166725 ghimaji B Dec. 29, 2022, 4:50 p.m. OK Python 3 TESTS 15 124 0
187165505 Dash_____ B Dec. 29, 2022, 4:38 p.m. OK Python 3 TESTS 15 124 0
187163793 Arkp B Dec. 29, 2022, 4:22 p.m. OK Python 3 TESTS 15 124 0
187156646 jacksparrow2006 B Dec. 29, 2022, 3:15 p.m. OK Python 3 TESTS 15 124 0
187289424 mdmundo B Dec. 30, 2022, 3:04 p.m. OK Rust 2021 TESTS 15 15 0
187199347 Benq B Dec. 30, 2022, 3:11 a.m. OK Rust 2021 TESTS 15 15 0
187114644 Spheniscine B Dec. 29, 2022, 8:20 a.m. OK Rust 2021 TESTS 15 15 102400
187227822 cottoncotton B Dec. 30, 2022, 10:03 a.m. OK Rust 2021 TESTS 15 31 67276800
187069865 coffee-addict B Dec. 28, 2022, 6:30 p.m. OK Rust 2021 TESTS 15 108 0
187067473 coffee-addict B Dec. 28, 2022, 6:05 p.m. OK Rust 2021 TESTS 15 124 0

remove filters

Back to search problems