Codeforces Round 948 (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
1977 Codeforces Round 948 (Div. 2) FINISHED False 7200 20445863 May 26, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 34366 ) A Little Nikita PROGRAMMING math 800

B'The little boy Nikita was given some cubes as a present. He decided to build a tower out of them. Initially, the tower doesn 't have any cubes. In one move, Nikita either puts exactly 1 cube on top of the tower or removes exactly 1 cube from the top of the tower. Is it possible that after n moves, the resulting tower has exactly m cubes? Each test contains multiple test cases. The first line of input contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. The description of the test cases follows. The only line of each test case contains two integers n and m ( 1 <= n, m <= 100 ). For each test case, output "Yes" (without quotes) if Nikita can obtain a tower with m cubes, and "No" (without quotes) otherwise. You can output each letter in any case (lowercase or uppercase). For example, the strings "yEs", "yes", "Yes", and "YES" will be accepted as a positive answer. In the first test case, Nikita can put 1 cube on top of the tower 3 times in a row, so the answer is "Yes". In the second test case, Nikita can only end up with either a tower with no blocks or a tower with 2 blocks, so the answer is "No". '...

Tutorials

129858

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
263423878 M_Medhat A May 31, 2024, 6:46 a.m. OK C# 10 TESTS 5 93 0 800
263098994 nes21 A May 29, 2024, 6:55 a.m. OK C# 10 TESTS 5 108 102400 800
263094550 Elysia_ A May 29, 2024, 6:20 a.m. OK C++14 (GCC 6-32) TESTS 5 30 0 800
263003242 vignesh_11 A May 28, 2024, 11:36 a.m. OK C++14 (GCC 6-32) TESTS 5 30 0 800
263415788 mdtariqueh007 A May 31, 2024, 5:38 a.m. OK C++14 (GCC 6-32) TESTS 5 30 1638400 800
263032088 yushunzhang A May 28, 2024, 3:25 p.m. OK C++14 (GCC 6-32) TESTS 5 30 1638400 800
263513792 charan.0208 A May 31, 2024, 2:41 p.m. OK C++14 (GCC 6-32) TESTS 5 31 0 800
263253685 Lilinta A May 30, 2024, 1:13 p.m. OK C++14 (GCC 6-32) TESTS 5 31 0 800
263705331 mason_24 A June 2, 2024, 6 a.m. OK C++14 (GCC 6-32) TESTS 5 31 0 800
263699392 ankush_23b A June 2, 2024, 4:44 a.m. OK C++14 (GCC 6-32) TESTS 5 31 0 800
263523909 abhishek2092001 A May 31, 2024, 4:08 p.m. OK C++14 (GCC 6-32) TESTS 5 31 0 800
263493351 KonjakLAF A May 31, 2024, 12:02 p.m. OK C++14 (GCC 6-32) TESTS 5 31 0 800
263231139 bansalyuwansh A May 30, 2024, 11:35 a.m. OK C++17 (GCC 7-32) TESTS 5 30 0 800
263075041 koishi.komeiji A May 29, 2024, 1:21 a.m. OK C++17 (GCC 7-32) TESTS 5 30 0 800
263137842 the_kevat A May 29, 2024, 12:07 p.m. OK C++17 (GCC 7-32) TESTS 5 30 0 800
263653068 shaon508 A June 1, 2024, 3:59 p.m. OK C++17 (GCC 7-32) TESTS 5 30 0 800
263530974 PikaPikachuu A May 31, 2024, 5:10 p.m. OK C++17 (GCC 7-32) TESTS 5 30 0 800
263519632 Mr.Uranium A May 31, 2024, 3:31 p.m. OK C++17 (GCC 7-32) TESTS 5 30 0 800
263424427 raytw A May 31, 2024, 6:50 a.m. OK C++17 (GCC 7-32) TESTS 5 30 0 800
263418695 AKSHAT_AWASTHI A May 31, 2024, 6:05 a.m. OK C++17 (GCC 7-32) TESTS 5 30 0 800
263245093 CS50programmer A May 30, 2024, 12:13 p.m. OK C++17 (GCC 7-32) TESTS 5 30 0 800
263216668 Vandit08 A May 30, 2024, 9:26 a.m. OK C++17 (GCC 7-32) TESTS 5 30 0 800
263381672 KemoCode A May 30, 2024, 7:39 p.m. OK C++20 (GCC 13-64) TESTS 5 30 0 800
263626888 adiyer A June 1, 2024, 12:11 p.m. OK C++20 (GCC 13-64) TESTS 5 30 0 800
263607875 Gaurav_ydv A June 1, 2024, 9:41 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0 800
263590170 touch.0 A June 1, 2024, 7:15 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0 800
263435207 Ber0Silk A May 31, 2024, 8:16 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0 800
263373721 raghavvmittal11 A May 30, 2024, 6:10 p.m. OK C++20 (GCC 13-64) TESTS 5 30 0 800
263078005 magma_cm_007 A May 29, 2024, 2:27 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0 800
263006050 coding_happy A May 28, 2024, 11:58 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0 800
262988750 RK1831 A May 28, 2024, 9:31 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0 800
262964882 shresthkasyap19 A May 28, 2024, 6:05 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0 800
263259581 __PrEdAToR__ A May 30, 2024, 1:58 p.m. OK C# 8 TESTS 5 109 0 800
263183528 Taj025 A May 29, 2024, 8:41 p.m. OK C# 8 TESTS 5 109 0 800
263204355 khoi1503 A May 30, 2024, 6:14 a.m. OK FPC TESTS 5 61 0 800
263404023 Temurkan A May 31, 2024, 3:28 a.m. OK GNU C11 TESTS 5 30 0 800
263404004 Temurkan A May 31, 2024, 3:28 a.m. OK GNU C11 TESTS 5 30 0 800
263610007 chandini_chinta A June 1, 2024, 10 a.m. OK GNU C11 TESTS 5 30 0 800
263392218 Temurkan A May 30, 2024, 11:05 p.m. OK GNU C11 TESTS 5 30 0 800
263392510 Temurkan A May 30, 2024, 11:15 p.m. OK GNU C11 TESTS 5 30 102400 800
263391983 Temurkan A May 30, 2024, 10:58 p.m. OK GNU C11 TESTS 5 30 102400 800
263411777 annepumaharshi A May 31, 2024, 4:59 a.m. OK GNU C11 TESTS 5 30 102400 800
263404177 Temurkan A May 31, 2024, 3:31 a.m. OK GNU C11 TESTS 5 30 102400 800
263402623 Temurkan A May 31, 2024, 3:09 a.m. OK GNU C11 TESTS 5 30 102400 800
263392010 Temurkan A May 30, 2024, 10:59 p.m. OK GNU C11 TESTS 5 30 102400 800
263395391 tom_pan1901 A May 31, 2024, 12:42 a.m. OK Go TESTS 5 46 0 800
263053674 Liiiov_V A May 28, 2024, 6:33 p.m. OK Go TESTS 5 46 0 800
263485647 ddaydreaming A May 31, 2024, 11:41 a.m. OK Go TESTS 5 46 0 800
263432583 nguyenquocthao00 A May 31, 2024, 7:54 a.m. OK Go TESTS 5 46 0 800
263138122 79209748 A May 29, 2024, 12:09 p.m. OK Go TESTS 5 46 0 800
263202450 TheBestFromEast A May 30, 2024, 5:42 a.m. OK Go TESTS 5 61 102400 800
263374346 omarharb A May 30, 2024, 6:16 p.m. OK Go TESTS 5 62 0 800
263598217 surajmishra-35_199 A June 1, 2024, 8:22 a.m. OK Go TESTS 5 93 0 800
263405799 Naoki_M A May 31, 2024, 3:52 a.m. OK Haskell TESTS 5 46 0 800
263395022 october_rain A May 31, 2024, 12:32 a.m. OK Haskell TESTS 5 62 0 800
263677132 EverythingBruteForce A June 1, 2024, 7:56 p.m. OK Haskell TESTS 5 77 0 800
263681759 llmwah A June 1, 2024, 9:20 p.m. OK Java 21 TESTS 5 187 614400 800
262997215 neilchetty A May 28, 2024, 10:46 a.m. OK Java 21 TESTS 5 202 409600 800
263213640 sagbis A May 30, 2024, 8:48 a.m. OK Java 21 TESTS 5 217 0 800
263057499 codeWithDarshan A May 28, 2024, 7:16 p.m. OK Java 21 TESTS 5 217 102400 800
263560476 AwNerd A June 1, 2024, 1:14 a.m. OK Java 21 TESTS 5 217 921600 800
263596762 likitha_nalajala A June 1, 2024, 8:10 a.m. OK Java 21 TESTS 5 218 102400 800
263384030 CrinklyGolem A May 30, 2024, 8:14 p.m. OK Java 21 TESTS 5 218 307200 800
263256817 whd_CN A May 30, 2024, 1:36 p.m. OK Java 21 TESTS 5 218 307200 800
262983950 fs_fz A May 28, 2024, 8:50 a.m. OK Java 21 TESTS 5 218 512000 800
263410557 nishantatras A May 31, 2024, 4:47 a.m. OK Java 21 TESTS 5 218 1024000 800
263321100 polavarapujyoshna9 A May 30, 2024, 3:27 p.m. OK Java 8 TESTS 5 109 0 800
263702494 iam_ljk A June 2, 2024, 5:26 a.m. OK Java 8 TESTS 5 139 0 800
263233329 vjudge.2 A May 30, 2024, 11:51 a.m. OK Java 8 TESTS 5 140 0 800
263637252 Saurabh124 A June 1, 2024, 1:43 p.m. OK Java 8 TESTS 5 140 0 800
263581138 Prarthana-Ramesh A June 1, 2024, 5:58 a.m. OK Java 8 TESTS 5 140 0 800
263246161 simple.simon A May 30, 2024, 12:20 p.m. OK Java 8 TESTS 5 140 0 800
263049829 shikhaa60 A May 28, 2024, 5:58 p.m. OK Java 8 TESTS 5 140 0 800
263038264 Aditi_15 A May 28, 2024, 4:14 p.m. OK Java 8 TESTS 5 140 0 800
263007283 4He3Liu1Shan.5Hu A May 28, 2024, 12:08 p.m. OK Java 8 TESTS 5 140 0 800
262995787 abhishekk37444 A May 28, 2024, 10:34 a.m. OK Java 8 TESTS 5 140 0 800
263267845 omarsaifeldeen2000 A May 30, 2024, 2:29 p.m. OK JavaScript TESTS 5 62 0 800
263559491 nesco A June 1, 2024, 12:49 a.m. OK Kotlin 1.7 TESTS 5 249 204800 800
263138206 KerakTelor A May 29, 2024, 12:10 p.m. OK Kotlin 1.9 TESTS 5 124 0 800
263518624 Kay0 A May 31, 2024, 3:22 p.m. OK Kotlin 1.9 TESTS 5 156 0 800
263005292 _kostet A May 28, 2024, 11:53 a.m. OK Node.js TESTS 5 93 0 800
263172560 chrollo84 A May 29, 2024, 5:35 p.m. OK Node.js TESTS 5 93 102400 800
263172417 chrollo84 A May 29, 2024, 5:33 p.m. OK Node.js TESTS 5 124 0 800
263078659 Javi3r A May 29, 2024, 2:40 a.m. OK PyPy 2 TESTS 5 124 102400 800
263268243 Xarangi A May 30, 2024, 2:32 p.m. OK PyPy 2 TESTS 5 140 102400 800
263066939 madurakavikovidh A May 28, 2024, 9:42 p.m. OK PyPy 3 TESTS 5 77 0 800
263675627 hbot07 A June 1, 2024, 7:34 p.m. OK PyPy 3 TESTS 5 77 0 800
263579783 ewfrgfvds A June 1, 2024, 5:45 a.m. OK PyPy 3 TESTS 5 77 0 800
263267737 Umknown A May 30, 2024, 2:28 p.m. OK PyPy 3 TESTS 5 77 0 800
263166608 Chaitanya0721 A May 29, 2024, 4:09 p.m. OK PyPy 3 TESTS 5 77 0 800
263066772 madurakavikovidh A May 28, 2024, 9:38 p.m. OK PyPy 3 TESTS 5 77 0 800
263376616 Sree_Harsha_27 A May 30, 2024, 6:38 p.m. OK PyPy 3 TESTS 5 78 0 800
263675440 hbot07 A June 1, 2024, 7:31 p.m. OK PyPy 3 TESTS 5 93 0 800
263551608 mortezamalekey A May 31, 2024, 9:22 p.m. OK PyPy 3 TESTS 5 93 0 800
263012302 Anusha03 A May 28, 2024, 12:47 p.m. OK PyPy 3 TESTS 5 93 0 800
263633760 RajdeepA A June 1, 2024, 1:13 p.m. OK PyPy 3-64 TESTS 5 62 0 800
263603988 pifagorgor A June 1, 2024, 9:09 a.m. OK PyPy 3-64 TESTS 5 62 0 800
263456450 Haqq A May 31, 2024, 10:21 a.m. OK PyPy 3-64 TESTS 5 62 0 800
263098855 Blinov_Artemii A May 29, 2024, 6:54 a.m. OK PyPy 3-64 TESTS 5 62 0 800
263701040 e2fmurillo A June 2, 2024, 5:07 a.m. OK PyPy 3-64 TESTS 5 77 0 800
263695410 tanishbhongade A June 2, 2024, 3:33 a.m. OK PyPy 3-64 TESTS 5 77 0 800
263692993 nat_alie A June 2, 2024, 2:44 a.m. OK PyPy 3-64 TESTS 5 77 0 800
263677884 MalexUSSR1607 A June 1, 2024, 8:08 p.m. OK PyPy 3-64 TESTS 5 77 0 800
263671760 prathamjain965 A June 1, 2024, 6:46 p.m. OK PyPy 3-64 TESTS 5 77 0 800
263670061 C_Sharath_7 A June 1, 2024, 6:27 p.m. OK PyPy 3-64 TESTS 5 77 0 800
263584410 FunkyAhmad A June 1, 2024, 6:28 a.m. OK Python 3 TESTS 5 46 0 800
263539087 coder_ankush A May 31, 2024, 6:24 p.m. OK Python 3 TESTS 5 46 0 800
263423426 half_baked_me A May 31, 2024, 6:43 a.m. OK Python 3 TESTS 5 46 0 800
263094567 shantanu42 A May 29, 2024, 6:20 a.m. OK Python 3 TESTS 5 46 0 800
263071129 Deepanshu_Mehta A May 28, 2024, 11:34 p.m. OK Python 3 TESTS 5 46 0 800
263000748 Harsh_Padsala A May 28, 2024, 11:15 a.m. OK Python 3 TESTS 5 46 0 800
263681998 coder_bhatt A June 1, 2024, 9:25 p.m. OK Python 3 TESTS 5 61 0 800
263658158 sky_raider A June 1, 2024, 4:40 p.m. OK Python 3 TESTS 5 61 0 800
263588415 DC_0001 A June 1, 2024, 7:01 a.m. OK Python 3 TESTS 5 61 0 800
263571983 deveshbedmutha A June 1, 2024, 4:13 a.m. OK Python 3 TESTS 5 61 0 800
263574865 BabaYaga00 A June 1, 2024, 4:49 a.m. OK Rust 2021 TESTS 5 46 0 800
263170973 Kawaii A May 29, 2024, 5:10 p.m. OK Rust 2021 TESTS 5 46 0 800
262996040 hellobug_2 A May 28, 2024, 10:36 a.m. OK Rust 2021 TESTS 5 46 102400 800
263255690 a1000 A May 30, 2024, 1:28 p.m. OK Rust 2021 TESTS 5 62 0 800
263200423 BetterThanNobita A May 30, 2024, 5:08 a.m. OK Rust 2021 TESTS 5 62 0 800

remove filters

Back to search problems