Codeforces Round 839 (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
1772 Codeforces Round 839 (Div. 3) FINISHED False 8100 65805863 Dec. 18, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 29707 ) B Matrix Rotation PROGRAMMING brute force

B'You have a matrix 2 x 2 filled with distinct integers. You want your matrix to become beautiful. The matrix is beautiful if the following two conditions are satisfied: You can perform the following operation on the matrix any number of times: rotate it clockwise by 90 degrees, so the top left element shifts to the top right cell, the top right element shifts to the bottom right cell, and so on: Determine if it is possible to make the matrix beautiful by applying zero or more operations. The first line contains one integer t ( 1 <= t <= 1000 ) -- the number of test cases. Each test case consists of two lines. Each of those lines contains two integers -- the elements of the corresponding row of the matrix. In each matrix, all four elements are distinct integers from 1 to 100 . For each test case, print YES if the matrix can become beautiful, or NO otherwise. You may print each letter in any case (YES, yes, Yes will all be recognized as positive answer, NO, no and nO will all be recognized as negative answer). '...

Tutorials

110313

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
186037853 mban259 B Dec. 19, 2022, 7:46 p.m. OK C# 10 TESTS 8 46 0
186021534 Rimond12345 B Dec. 19, 2022, 5:35 p.m. OK C# 8 TESTS 8 77 614400
185894880 bluemegane B Dec. 18, 2022, 9:51 p.m. OK C# 8 TESTS 8 93 307200
186052286 Sasikumar_22 B Dec. 20, 2022, 1:46 a.m. OK Clang++17 Diagnostics TESTS 8 30 0
186046774 AhmedElMeliane B Dec. 19, 2022, 10:36 p.m. OK Clang++20 Diagnostics TESTS 8 15 0
185951691 xiaomadada B Dec. 19, 2022, 1:13 p.m. OK Clang++20 Diagnostics TESTS 8 30 0
185924600 amijeet-g B Dec. 19, 2022, 8:27 a.m. OK GNU C11 TESTS 8 15 0
185933754 Naveen_08 B Dec. 19, 2022, 10:09 a.m. OK GNU C11 TESTS 8 15 0
185957930 itsnazmulnahid B Dec. 19, 2022, 2:10 p.m. OK GNU C11 TESTS 8 15 0
185898177 KuroEce B Dec. 18, 2022, 11:45 p.m. OK GNU C11 TESTS 8 15 0
185988297 Durbadol_13 B Dec. 19, 2022, 3:35 p.m. OK GNU C11 TESTS 8 15 0
185996448 Kafi05 B Dec. 19, 2022, 3:55 p.m. OK GNU C11 TESTS 8 15 0
186057855 Sumon_47MMHS B Dec. 20, 2022, 3:49 a.m. OK GNU C11 TESTS 8 15 0
186063972 zstu22111ovo B Dec. 20, 2022, 5:30 a.m. OK GNU C11 TESTS 8 15 0
185908144 PaMoJo B Dec. 19, 2022, 4:40 a.m. OK GNU C11 TESTS 8 15 0
185923435 marjuksajid B Dec. 19, 2022, 8:12 a.m. OK GNU C11 TESTS 8 15 0
186061613 2375227291 B Dec. 20, 2022, 4:54 a.m. OK GNU C++14 TESTS 8 0 0
186061070 huangwb B Dec. 20, 2022, 4:45 a.m. OK GNU C++14 TESTS 8 0 0
186060825 asliddin2003 B Dec. 20, 2022, 4:41 a.m. OK GNU C++14 TESTS 8 0 0
186055002 behuymummim B Dec. 20, 2022, 2:58 a.m. OK GNU C++14 TESTS 8 0 0
186053037 INF_512 B Dec. 20, 2022, 2:07 a.m. OK GNU C++14 TESTS 8 0 0
186050200 AllureLove1412 B Dec. 20, 2022, 12:44 a.m. OK GNU C++14 TESTS 8 0 0
186048404 williamhli0707 B Dec. 19, 2022, 11:36 p.m. OK GNU C++14 TESTS 8 0 0
186064441 kassem.fahed B Dec. 20, 2022, 5:37 a.m. OK GNU C++14 TESTS 8 0 0
186063638 amar277 B Dec. 20, 2022, 5:25 a.m. OK GNU C++14 TESTS 8 0 0
186063086 thanmai15 B Dec. 20, 2022, 5:17 a.m. OK GNU C++14 TESTS 8 0 0
186054341 sujal_sahu25 B Dec. 20, 2022, 2:43 a.m. OK GNU C++17 TESTS 8 0 0
186054476 paintstar B Dec. 20, 2022, 2:47 a.m. OK GNU C++17 TESTS 8 0 0
186054638 SimonFallon19 IsitaRex B Dec. 20, 2022, 2:50 a.m. OK GNU C++17 TESTS 8 0 0
186056878 TheyCallMeKing B Dec. 20, 2022, 3:33 a.m. OK GNU C++17 TESTS 8 0 0
186060834 tusharei B Dec. 20, 2022, 4:41 a.m. OK GNU C++17 TESTS 8 0 0
186063408 jaiswal_abhishek B Dec. 20, 2022, 5:21 a.m. OK GNU C++17 TESTS 8 0 0
186064588 daulatojha17 B Dec. 20, 2022, 5:39 a.m. OK GNU C++17 TESTS 8 0 0
186053542 anhphant B Dec. 20, 2022, 2:22 a.m. OK GNU C++17 TESTS 8 0 0
186051220 dijkstras B Dec. 20, 2022, 1:16 a.m. OK GNU C++17 TESTS 8 0 0
186050664 beso90 B Dec. 20, 2022, 1 a.m. OK GNU C++17 TESTS 8 0 0
186017448 nsp-0111 B Dec. 19, 2022, 5:12 p.m. OK GNU C++17 (64) TESTS 8 0 0
186059815 tarunkm B Dec. 20, 2022, 4:24 a.m. OK GNU C++17 (64) TESTS 8 0 0
186054135 Anbitiously B Dec. 20, 2022, 2:38 a.m. OK GNU C++17 (64) TESTS 8 0 0
186054087 aatrey B Dec. 20, 2022, 2:37 a.m. OK GNU C++17 (64) TESTS 8 0 0
186053531 boyiddha B Dec. 20, 2022, 2:21 a.m. OK GNU C++17 (64) TESTS 8 0 0
186049697 NK_ B Dec. 20, 2022, 12:28 a.m. OK GNU C++17 (64) TESTS 8 0 0
186048601 enslaved B Dec. 19, 2022, 11:42 p.m. OK GNU C++17 (64) TESTS 8 0 0
186031372 julianferres B Dec. 19, 2022, 6:44 p.m. OK GNU C++17 (64) TESTS 8 0 0
186013353 amans07 B Dec. 19, 2022, 4:49 p.m. OK GNU C++17 (64) TESTS 8 0 0
185986010 johnchua B Dec. 19, 2022, 3:29 p.m. OK GNU C++17 (64) TESTS 8 0 0
186047456 Oumayma23 B Dec. 19, 2022, 11 p.m. OK GNU C++20 (64) TESTS 8 0 0
186050995 cuongdang123 B Dec. 20, 2022, 1:10 a.m. OK GNU C++20 (64) TESTS 8 0 0
186051521 Esteban.Mtz B Dec. 20, 2022, 1:24 a.m. OK GNU C++20 (64) TESTS 8 0 0
186051731 HugeWide B Dec. 20, 2022, 1:31 a.m. OK GNU C++20 (64) TESTS 8 0 0
186054199 wdnmdddddd B Dec. 20, 2022, 2:40 a.m. OK GNU C++20 (64) TESTS 8 0 0
186057088 icandothis__allday B Dec. 20, 2022, 3:36 a.m. OK GNU C++20 (64) TESTS 8 0 0
186057934 Yousef_Sameh B Dec. 20, 2022, 3:51 a.m. OK GNU C++20 (64) TESTS 8 0 0
186060078 RANK1ZEN B Dec. 20, 2022, 4:28 a.m. OK GNU C++20 (64) TESTS 8 0 0
186060844 ar_rony1 B Dec. 20, 2022, 4:42 a.m. OK GNU C++20 (64) TESTS 8 0 0
186063034 atharvn317 B Dec. 20, 2022, 5:16 a.m. OK GNU C++20 (64) TESTS 8 0 0
185992205 qiaoyafeng1111 B Dec. 19, 2022, 3:44 p.m. OK Go TESTS 8 15 102400
186060089 renngoku B Dec. 20, 2022, 4:28 a.m. OK Go TESTS 8 46 102400
185882741 _mza B Dec. 18, 2022, 6:31 p.m. OK Java 11 TESTS 8 156 0
185955151 zlobber B Dec. 19, 2022, 1:45 p.m. OK Java 11 TESTS 8 171 0
185970442 sahai17 B Dec. 19, 2022, 2:56 p.m. OK Java 11 TESTS 8 187 0
185903583 pavanRamagiri B Dec. 19, 2022, 3 a.m. OK Java 11 TESTS 8 187 0
185936080 bitup62 B Dec. 19, 2022, 10:36 a.m. OK Java 11 TESTS 8 202 0
185893811 profchi B Dec. 18, 2022, 9:26 p.m. OK Java 11 TESTS 8 202 0
186042885 richesh27 B Dec. 19, 2022, 9:01 p.m. OK Java 11 TESTS 8 202 102400
185886154 220103383 B Dec. 18, 2022, 7:20 p.m. OK Java 11 TESTS 8 202 102400
185949795 DarkNight47Rises B Dec. 19, 2022, 12:54 p.m. OK Java 11 TESTS 8 217 102400
185951930 sara_04 B Dec. 19, 2022, 1:15 p.m. OK Java 11 TESTS 8 217 102400
186038848 AL-Muzahid B Dec. 19, 2022, 7:56 p.m. OK Java 17 TESTS 8 155 1126400
185882083 irachit0702 B Dec. 18, 2022, 6:21 p.m. OK Java 17 TESTS 8 187 716800
185908943 Scill B Dec. 19, 2022, 4:55 a.m. OK Java 17 TESTS 8 187 1024000
186054015 ypa B Dec. 20, 2022, 2:35 a.m. OK Java 17 TESTS 8 202 1024000
185905740 kumarvikash B Dec. 19, 2022, 3:52 a.m. OK Java 17 TESTS 8 202 1024000
185892922 OmarKashour B Dec. 18, 2022, 9:07 p.m. OK Java 17 TESTS 8 202 1126400
185881388 Sid61436 B Dec. 18, 2022, 6:11 p.m. OK Java 17 TESTS 8 202 1228800
185904111 crush24 B Dec. 19, 2022, 3:14 a.m. OK Java 17 TESTS 8 202 42188800
185884455 Eslam_Ahmed B Dec. 18, 2022, 6:56 p.m. OK Java 17 TESTS 8 217 614400
185914266 amit_rcciit B Dec. 19, 2022, 6:24 a.m. OK Java 17 TESTS 8 217 921600
185900448 deepoX B Dec. 19, 2022, 1:26 a.m. OK Java 8 TESTS 8 93 0
185895700 mohamedhassan_c B Dec. 18, 2022, 10:14 p.m. OK Java 8 TESTS 8 93 0
185928416 anilarq-18 B Dec. 19, 2022, 9:11 a.m. OK Java 8 TESTS 8 108 0
185893752 OmarKenawi B Dec. 18, 2022, 9:25 p.m. OK Java 8 TESTS 8 108 0
185886004 ahmedTarek28 B Dec. 18, 2022, 7:18 p.m. OK Java 8 TESTS 8 109 0
185934106 hemantlodha1000 B Dec. 19, 2022, 10:14 a.m. OK Java 8 TESTS 8 124 0
185930529 Forbidden_Bruteforce B Dec. 19, 2022, 9:34 a.m. OK Java 8 TESTS 8 124 0
185924001 sankarganesh B Dec. 19, 2022, 8:19 a.m. OK Java 8 TESTS 8 124 0
185914683 aky91 B Dec. 19, 2022, 6:29 a.m. OK Java 8 TESTS 8 124 0
185898566 yadavdipesh B Dec. 19, 2022, 12:04 a.m. OK Java 8 TESTS 8 124 0
185931764 Killer45 B Dec. 19, 2022, 9:47 a.m. OK Kotlin 1.7 TESTS 8 217 0
185895293 Flame239 B Dec. 18, 2022, 10:03 p.m. OK Kotlin 1.7 TESTS 8 280 512000
186002912 ChinmayK_VNIT B Dec. 19, 2022, 4:11 p.m. OK MS C++ 2017 TESTS 8 15 0
185976082 Laxmankumar B Dec. 19, 2022, 3:07 p.m. OK MS C++ 2017 TESTS 8 15 0
185930572 anant23.tripathi B Dec. 19, 2022, 9:34 a.m. OK MS C++ 2017 TESTS 8 15 0
185929597 _SoulKing_ B Dec. 19, 2022, 9:23 a.m. OK MS C++ 2017 TESTS 8 15 0
185917850 arlo1506 B Dec. 19, 2022, 7:08 a.m. OK MS C++ 2017 TESTS 8 15 0
185899623 22zhangchuanlong B Dec. 19, 2022, 12:50 a.m. OK MS C++ 2017 TESTS 8 15 0
185885133 shorya1835 B Dec. 18, 2022, 7:07 p.m. OK MS C++ 2017 TESTS 8 15 0
185881815 rsprogis B Dec. 18, 2022, 6:17 p.m. OK MS C++ 2017 TESTS 8 15 0
185886445 rsFalse B Dec. 18, 2022, 7:24 p.m. OK Perl TESTS 8 30 0
185886274 rsFalse B Dec. 18, 2022, 7:22 p.m. OK Perl TESTS 8 31 0
185904999 bokunopicolo B Dec. 19, 2022, 3:34 a.m. OK PyPy 3 TESTS 8 93 3072000
185888931 Yash_Nandwana B Dec. 18, 2022, 8 p.m. OK PyPy 3 TESTS 8 124 3379200
185935000 lochinbek08_08 B Dec. 19, 2022, 10:24 a.m. OK PyPy 3 TESTS 8 124 3686400
185902733 nguyendung B Dec. 19, 2022, 2:40 a.m. OK PyPy 3 TESTS 8 139 3686400
185896498 green_day B Dec. 18, 2022, 10:42 p.m. OK PyPy 3 TESTS 8 140 3584000
185884409 salty9 B Dec. 18, 2022, 6:55 p.m. OK PyPy 3 TESTS 8 140 3584000
185932145 egarkrad B Dec. 19, 2022, 9:51 a.m. OK PyPy 3 TESTS 8 155 3686400
186047401 sohilkhanduja B Dec. 19, 2022, 10:58 p.m. OK PyPy 3 TESTS 8 155 3993600
185944766 LumosMaxima B Dec. 19, 2022, 12:06 p.m. OK PyPy 3 TESTS 8 155 4198400
185994903 vrishabshetty B Dec. 19, 2022, 3:51 p.m. OK PyPy 3 TESTS 8 155 4505600
185953521 abxxx B Dec. 19, 2022, 1:30 p.m. OK PyPy 3-64 TESTS 8 46 2252800
186050819 crapcode B Dec. 20, 2022, 1:05 a.m. OK PyPy 3-64 TESTS 8 61 3072000
185944410 adil17ds B Dec. 19, 2022, 12:02 p.m. OK PyPy 3-64 TESTS 8 62 1638400
185918988 toam B Dec. 19, 2022, 7:20 a.m. OK PyPy 3-64 TESTS 8 62 3686400
185937299 sitamCodeForces-MSIT B Dec. 19, 2022, 10:49 a.m. OK PyPy 3-64 TESTS 8 77 1638400
185951388 mrdhnv B Dec. 19, 2022, 1:10 p.m. OK PyPy 3-64 TESTS 8 77 2355200
185949983 D.V.Aravind B Dec. 19, 2022, 12:56 p.m. OK PyPy 3-64 TESTS 8 77 2355200
186037568 Prakul_Agrawal B Dec. 19, 2022, 7:43 p.m. OK PyPy 3-64 TESTS 8 77 2662400
185950634 SophieHatter B Dec. 19, 2022, 1:02 p.m. OK PyPy 3-64 TESTS 8 77 2764800
185916071 Vlichan B Dec. 19, 2022, 6:48 a.m. OK PyPy 3-64 TESTS 8 77 3276800
186015683 kunalseth B Dec. 19, 2022, 5:04 p.m. OK Python 3 TESTS 8 31 0
185988677 kkstarkk B Dec. 19, 2022, 3:36 p.m. OK Python 3 TESTS 8 31 0
185962299 whoamelse B Dec. 19, 2022, 2:39 p.m. OK Python 3 TESTS 8 31 0
185954979 Azamatsh B Dec. 19, 2022, 1:44 p.m. OK Python 3 TESTS 8 31 0
185942222 Arkp B Dec. 19, 2022, 11:40 a.m. OK Python 3 TESTS 8 31 0
185940156 Iskandar_1009 B Dec. 19, 2022, 11:18 a.m. OK Python 3 TESTS 8 31 0
185939895 Botur B Dec. 19, 2022, 11:15 a.m. OK Python 3 TESTS 8 31 0
185939613 navjordj B Dec. 19, 2022, 11:13 a.m. OK Python 3 TESTS 8 31 0
185939561 navjordj B Dec. 19, 2022, 11:12 a.m. OK Python 3 TESTS 8 31 0
185921812 phlai326 B Dec. 19, 2022, 7:53 a.m. OK Python 3 TESTS 8 31 0
185958416 angryStella B Dec. 19, 2022, 2:14 p.m. OK Ruby 3 TESTS 8 217 102400
185921661 pohzipohzi B Dec. 19, 2022, 7:51 a.m. OK Rust 2021 TESTS 8 0 0
185903389 Sempr B Dec. 19, 2022, 2:56 a.m. OK Rust 2021 TESTS 8 0 0
185922082 pohzipohzi B Dec. 19, 2022, 7:56 a.m. OK Rust 2021 TESTS 8 15 0

remove filters

Back to search problems