Codeforces Round 817 (Div. 4)

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
1722 Codeforces Round 817 (Div. 4) FINISHED False 8100 75395363 Aug. 30, 2022, 2:50 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 48111 ) B Colourblindness PROGRAMMING implementation 800

B'Vasya has a grid with 2 rows and n columns. He colours each cell red, green, or blue. Vasya is colourblind and can 't distinguish green from blue. Determine if Vasya will consider the two rows of the grid to be coloured the same. The input consists of multiple test cases. The first line contains an integer t ( 1 <= q t <= q 100 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains an integer n ( 1 <= q n <= q 100 ) -- the number of columns of the grid. The following two lines each contain a string consisting of n characters, each of which is either R, G, or B, representing a red, green, or blue cell, respectively -- the description of the grid. For each test case, output "YES" if Vasya considers the grid 's two rows to be identical, and "NO" otherwise. You can output the answer in any case (for example, the strings "yEs", "yes", "Yes" and "YES" will be recognized as a positive answer). In the first test case, Vasya sees the second cell of each row as the same because the second cell of the first row is green and the second cell of the second row is blue, so he can 't distinguish these two cells. The rest of the rows are equal in colour. Therefore, Vasya will say that the two rows are coloured the same, even though they aren 't. In the second test case, Vasya can see that the two rows are different. In the third test case, every cell is green or blue, so Vasya will think they are the same. '...

Tutorials

106478

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
170350098 asutosh1998 B Aug. 31, 2022, 6:01 a.m. OK C# 10 TESTS 8 46 102400 800
170431343 Deksa B Aug. 31, 2022, 10:53 p.m. OK C# 8 TESTS 8 77 0 800
170435346 arafamin B Sept. 1, 2022, 1:14 a.m. OK C# 8 TESTS 8 78 0 800
170375991 bkifhr9 B Aug. 31, 2022, 11:10 a.m. OK Clang++17 Diagnostics TESTS 8 31 0 800
170371724 bkifhr7 B Aug. 31, 2022, 10:26 a.m. OK Clang++20 Diagnostics TESTS 8 31 0 800
170375556 realpt B Aug. 31, 2022, 11:05 a.m. OK Clang++20 Diagnostics TESTS 8 31 0 800
170439646 lizongjing997 B Sept. 1, 2022, 3:11 a.m. OK Clang++20 Diagnostics TESTS 8 31 0 800
170441183 ht4779925 B Sept. 1, 2022, 3:47 a.m. OK FPC TESTS 8 15 409600 800
170420480 Asad111 B Aug. 31, 2022, 7 p.m. OK GNU C11 TESTS 8 15 0 800
170377183 exhasan B Aug. 31, 2022, 11:21 a.m. OK GNU C11 TESTS 8 15 0 800
170420647 Asad111 B Aug. 31, 2022, 7:03 p.m. OK GNU C11 TESTS 8 15 0 800
170440857 me39 B Sept. 1, 2022, 3:39 a.m. OK GNU C11 TESTS 8 15 0 800
170378076 charan_singupuram B Aug. 31, 2022, 11:30 a.m. OK GNU C11 TESTS 8 15 0 800
170380100 hemaaaa B Aug. 31, 2022, 11:49 a.m. OK GNU C11 TESTS 8 15 0 800
170381632 mynk_raj B Aug. 31, 2022, 12:03 p.m. OK GNU C11 TESTS 8 15 0 800
170390098 axelnakata B Aug. 31, 2022, 1:19 p.m. OK GNU C11 TESTS 8 15 0 800
170404145 zunaed4014 B Aug. 31, 2022, 3:42 p.m. OK GNU C11 TESTS 8 15 0 800
170415691 moneem_ahmed B Aug. 31, 2022, 5:56 p.m. OK GNU C11 TESTS 8 15 0 800
170446648 aro_ekbar B Sept. 1, 2022, 5:43 a.m. OK GNU C++14 TESTS 8 0 0 800
170445038 tasnem4 B Sept. 1, 2022, 5:13 a.m. OK GNU C++14 TESTS 8 0 0 800
170443729 Qg5 B Sept. 1, 2022, 4:47 a.m. OK GNU C++14 TESTS 8 0 0 800
170443264 meeshika B Sept. 1, 2022, 4:36 a.m. OK GNU C++14 TESTS 8 0 0 800
170441194 wudoulieqi B Sept. 1, 2022, 3:48 a.m. OK GNU C++14 TESTS 8 0 0 800
170439971 03pawan B Sept. 1, 2022, 3:19 a.m. OK GNU C++14 TESTS 8 0 0 800
170438717 zxxdxn B Sept. 1, 2022, 2:48 a.m. OK GNU C++14 TESTS 8 0 0 800
170438581 THH_Konnyaku B Sept. 1, 2022, 2:44 a.m. OK GNU C++14 TESTS 8 0 0 800
170438013 unbecoming B Sept. 1, 2022, 2:28 a.m. OK GNU C++14 TESTS 8 0 0 800
170446853 Mekanican B Sept. 1, 2022, 5:47 a.m. OK GNU C++14 TESTS 8 0 0 800
170444681 ravisingh_88 B Sept. 1, 2022, 5:06 a.m. OK GNU C++17 TESTS 8 0 0 800
170444855 tanvirakon B Sept. 1, 2022, 5:09 a.m. OK GNU C++17 TESTS 8 0 0 800
170444999 Believer_112 B Sept. 1, 2022, 5:12 a.m. OK GNU C++17 TESTS 8 0 0 800
170445010 Believer_112 B Sept. 1, 2022, 5:12 a.m. OK GNU C++17 TESTS 8 0 0 800
170445026 Believer_112 B Sept. 1, 2022, 5:12 a.m. OK GNU C++17 TESTS 8 0 0 800
170445029 Believer_112 B Sept. 1, 2022, 5:13 a.m. OK GNU C++17 TESTS 8 0 0 800
170445046 Believer_112 B Sept. 1, 2022, 5:13 a.m. OK GNU C++17 TESTS 8 0 0 800
170446112 _shgupta B Sept. 1, 2022, 5:33 a.m. OK GNU C++17 TESTS 8 0 0 800
170447194 nk3 B Sept. 1, 2022, 5:53 a.m. OK GNU C++17 TESTS 8 0 0 800
170443349 Newplayers12 B Sept. 1, 2022, 4:38 a.m. OK GNU C++17 TESTS 8 0 0 800
170436156 tongwentao B Sept. 1, 2022, 1:35 a.m. OK GNU C++17 (64) TESTS 8 0 0 800
170447001 wangzixin B Sept. 1, 2022, 5:49 a.m. OK GNU C++17 (64) TESTS 8 0 0 800
170445274 arn_k B Sept. 1, 2022, 5:18 a.m. OK GNU C++17 (64) TESTS 8 0 0 800
170444523 DEATHWISHER21 B Sept. 1, 2022, 5:03 a.m. OK GNU C++17 (64) TESTS 8 0 0 800
170441794 NabilSadik B Sept. 1, 2022, 4:01 a.m. OK GNU C++17 (64) TESTS 8 0 0 800
170435855 wtmn B Sept. 1, 2022, 1:27 a.m. OK GNU C++17 (64) TESTS 8 0 0 800
170435430 Kyooma B Sept. 1, 2022, 1:16 a.m. OK GNU C++17 (64) TESTS 8 0 0 800
170426950 AkramElOmrani B Aug. 31, 2022, 8:55 p.m. OK GNU C++17 (64) TESTS 8 0 0 800
170424264 Pupu256 B Aug. 31, 2022, 8:05 p.m. OK GNU C++17 (64) TESTS 8 0 0 800
170419062 16raghunandangupta B Aug. 31, 2022, 6:40 p.m. OK GNU C++17 (64) TESTS 8 0 0 800
170439871 Codering121 B Sept. 1, 2022, 3:17 a.m. OK GNU C++20 (64) TESTS 8 0 0 800
170441293 xsy745 B Sept. 1, 2022, 3:50 a.m. OK GNU C++20 (64) TESTS 8 0 0 800
170441299 jk-jung B Sept. 1, 2022, 3:50 a.m. OK GNU C++20 (64) TESTS 8 0 0 800
170442135 Mahesh232003 B Sept. 1, 2022, 4:09 a.m. OK GNU C++20 (64) TESTS 8 0 0 800
170442184 ueurwieuzzzzz B Sept. 1, 2022, 4:11 a.m. OK GNU C++20 (64) TESTS 8 0 0 800
170442866 nguyen_hoang_minh_quan B Sept. 1, 2022, 4:27 a.m. OK GNU C++20 (64) TESTS 8 0 0 800
170443897 s_jaskaran_s B Sept. 1, 2022, 4:50 a.m. OK GNU C++20 (64) TESTS 8 0 0 800
170443965 aditya3773 B Sept. 1, 2022, 4:51 a.m. OK GNU C++20 (64) TESTS 8 0 0 800
170444678 Prof_Bat B Sept. 1, 2022, 5:06 a.m. OK GNU C++20 (64) TESTS 8 0 0 800
170446272 TheHardWoodButcher B Sept. 1, 2022, 5:36 a.m. OK GNU C++20 (64) TESTS 8 0 0 800
170437745 pepradere B Sept. 1, 2022, 2:21 a.m. OK Go TESTS 8 31 0 800
170392477 sazarov83 B Aug. 31, 2022, 1:40 p.m. OK Haskell TESTS 8 15 0 800
170373085 MrReDoX B Aug. 31, 2022, 10:40 a.m. OK Haskell TESTS 8 15 0 800
170420306 Deepak4466 B Aug. 31, 2022, 6:57 p.m. OK Java 11 TESTS 8 155 0 800
170394692 Yash9890 B Aug. 31, 2022, 2:02 p.m. OK Java 11 TESTS 8 155 0 800
170436706 rajan44chauhan B Sept. 1, 2022, 1:52 a.m. OK Java 11 TESTS 8 156 0 800
170433992 Ya55ine B Sept. 1, 2022, 12:31 a.m. OK Java 11 TESTS 8 171 0 800
170444204 dikshant_19 B Sept. 1, 2022, 4:56 a.m. OK Java 11 TESTS 8 171 0 800
170441262 Subham_Rathi_2002 B Sept. 1, 2022, 3:49 a.m. OK Java 11 TESTS 8 171 0 800
170423158 Jahnvi_37 B Aug. 31, 2022, 7:44 p.m. OK Java 11 TESTS 8 171 0 800
170420161 blekinge B Aug. 31, 2022, 6:55 p.m. OK Java 11 TESTS 8 171 0 800
170396150 Arshynbek B Aug. 31, 2022, 2:16 p.m. OK Java 11 TESTS 8 171 0 800
170381329 rajputsrshubham930 B Aug. 31, 2022, noon OK Java 11 TESTS 8 171 0 800
170352368 zhaoxuelong B Aug. 31, 2022, 6:31 a.m. OK Java 17 TESTS 8 171 0 800
170369066 Tumderbird B Aug. 31, 2022, 9:57 a.m. OK Java 17 TESTS 8 186 307200 800
170354886 1xdeadc0de B Aug. 31, 2022, 7:03 a.m. OK Java 17 TESTS 8 186 409600 800
170441105 littlesquare101 B Sept. 1, 2022, 3:46 a.m. OK Java 17 TESTS 8 187 102400 800
170391708 manimaran_s B Aug. 31, 2022, 1:33 p.m. OK Java 17 TESTS 8 187 204800 800
170404414 vasanthgk02 B Aug. 31, 2022, 3:45 p.m. OK Java 17 TESTS 8 202 0 800
170431860 wpan22 B Aug. 31, 2022, 11:24 p.m. OK Java 17 TESTS 8 202 307200 800
170420367 sameershaik B Aug. 31, 2022, 6:58 p.m. OK Java 17 TESTS 8 202 307200 800
170370419 tusharkumar121002 B Aug. 31, 2022, 10:13 a.m. OK Java 17 TESTS 8 202 409600 800
170424834 madhursinghal07 B Aug. 31, 2022, 8:15 p.m. OK Java 17 TESTS 8 217 307200 800
170424610 Lyashenko B Aug. 31, 2022, 8:11 p.m. OK Java 8 TESTS 8 77 0 800
170358028 Leetcode_Bro B Aug. 31, 2022, 7:42 a.m. OK Java 8 TESTS 8 92 0 800
170438006 Jinxuran B Sept. 1, 2022, 2:27 a.m. OK Java 8 TESTS 8 93 0 800
170424045 aviral.jain B Aug. 31, 2022, 8:01 p.m. OK Java 8 TESTS 8 93 0 800
170414968 Yousef_Badr B Aug. 31, 2022, 5:48 p.m. OK Java 8 TESTS 8 93 0 800
170413921 suyash.211.sn B Aug. 31, 2022, 5:37 p.m. OK Java 8 TESTS 8 93 0 800
170399492 poopoop B Aug. 31, 2022, 2:50 p.m. OK Java 8 TESTS 8 93 0 800
170354565 frey4 B Aug. 31, 2022, 6:59 a.m. OK Java 8 TESTS 8 93 0 800
170352587 anshulchou_123 B Aug. 31, 2022, 6:33 a.m. OK Java 8 TESTS 8 93 0 800
170349362 tmazumdar B Aug. 31, 2022, 5:51 a.m. OK Java 8 TESTS 8 93 0 800
170445489 Noobish B Sept. 1, 2022, 5:22 a.m. OK JavaScript TESTS 8 30 307200 800
170419277 Darsa B Aug. 31, 2022, 6:43 p.m. OK Kotlin 1.6 TESTS 8 171 0 800
170380550 aislanfgc B Aug. 31, 2022, 11:53 a.m. OK Kotlin 1.6 TESTS 8 171 0 800
170407891 metarakib125 B Aug. 31, 2022, 4:27 p.m. OK MS C++ 2017 TESTS 8 0 0 800
170378266 MrB0NAN B Aug. 31, 2022, 11:32 a.m. OK MS C++ 2017 TESTS 8 0 0 800
170374036 AviAt B Aug. 31, 2022, 10:50 a.m. OK MS C++ 2017 TESTS 8 0 0 800
170354053 Ash_2k B Aug. 31, 2022, 6:52 a.m. OK MS C++ 2017 TESTS 8 0 0 800
170445836 coderanger_26 B Sept. 1, 2022, 5:28 a.m. OK MS C++ 2017 TESTS 8 15 0 800
170422461 Noureldean_2003 B Aug. 31, 2022, 7:32 p.m. OK MS C++ 2017 TESTS 8 15 0 800
170420213 Gabella B Aug. 31, 2022, 6:56 p.m. OK MS C++ 2017 TESTS 8 15 0 800
170413682 akimuuwu B Aug. 31, 2022, 5:34 p.m. OK PyPy 3 TESTS 8 77 0 800
170443009 flashwhite B Sept. 1, 2022, 4:30 a.m. OK PyPy 3 TESTS 8 77 1331200 800
170424494 hodzhakhov B Aug. 31, 2022, 8:09 p.m. OK PyPy 3 TESTS 8 77 1331200 800
170379900 Shawnizapple B Aug. 31, 2022, 11:47 a.m. OK PyPy 3 TESTS 8 77 1433600 800
170353492 Prakul_Agrawal B Aug. 31, 2022, 6:45 a.m. OK PyPy 3 TESTS 8 93 1331200 800
170403097 why_am_I_cursed B Aug. 31, 2022, 3:30 p.m. OK PyPy 3 TESTS 8 93 1433600 800
170429092 SIGCHLD B Aug. 31, 2022, 9:48 p.m. OK PyPy 3 TESTS 8 93 1740800 800
170363187 Techcoder B Aug. 31, 2022, 8:41 a.m. OK PyPy 3 TESTS 8 93 1843200 800
170414048 landll B Aug. 31, 2022, 5:38 p.m. OK PyPy 3-64 TESTS 8 46 0 800
170403811 Kelk1 B Aug. 31, 2022, 3:38 p.m. OK PyPy 3-64 TESTS 8 46 0 800
170374040 sokolow B Aug. 31, 2022, 10:50 a.m. OK PyPy 3-64 TESTS 8 46 0 800
170375658 TitaniumCube B Aug. 31, 2022, 11:06 a.m. OK PyPy 3-64 TESTS 8 46 1433600 800
170372069 flakepowders B Aug. 31, 2022, 10:30 a.m. OK PyPy 3-64 TESTS 8 46 1433600 800
170356105 hk10537 B Aug. 31, 2022, 7:19 a.m. OK PyPy 3-64 TESTS 8 46 1740800 800
170436496 DOOMJUICE B Sept. 1, 2022, 1:46 a.m. OK PyPy 3-64 TESTS 8 46 1945600 800
170420917 KuriousKJ B Aug. 31, 2022, 7:07 p.m. OK PyPy 3-64 TESTS 8 46 2048000 800
170419738 rudrashah B Aug. 31, 2022, 6:50 p.m. OK PyPy 3-64 TESTS 8 61 0 800
170414950 Firwaless B Aug. 31, 2022, 5:48 p.m. OK PyPy 3-64 TESTS 8 61 0 800
170417523 OLOGY B Aug. 31, 2022, 6:19 p.m. OK Python 2 TESTS 8 46 0 800
170377332 minochaji B Aug. 31, 2022, 11:23 a.m. OK Python 3 TESTS 8 30 0 800
170447126 peter0471 B Sept. 1, 2022, 5:52 a.m. OK Python 3 TESTS 8 31 0 800
170444251 DevanshGoel B Sept. 1, 2022, 4:57 a.m. OK Python 3 TESTS 8 31 0 800
170441126 Keshav_Garg B Sept. 1, 2022, 3:46 a.m. OK Python 3 TESTS 8 31 0 800
170421660 Whoami2003 KirillK1 B Aug. 31, 2022, 7:19 p.m. OK Python 3 TESTS 8 31 0 800
170421421 f20211631 B Aug. 31, 2022, 7:15 p.m. OK Python 3 TESTS 8 31 0 800
170420743 karthikeya5869 B Aug. 31, 2022, 7:04 p.m. OK Python 3 TESTS 8 31 0 800
170415259 PyramidsCoder B Aug. 31, 2022, 5:51 p.m. OK Python 3 TESTS 8 31 0 800
170405998 likhitha_sriya B Aug. 31, 2022, 4:04 p.m. OK Python 3 TESTS 8 31 0 800
170394549 indlearner B Aug. 31, 2022, 2:01 p.m. OK Python 3 TESTS 8 31 0 800
170434282 mdgaziurrahmannoor B Sept. 1, 2022, 12:40 a.m. OK Rust 2021 TESTS 8 0 0 800
170444902 Spheniscine B Sept. 1, 2022, 5:10 a.m. OK Rust 2021 TESTS 8 15 102400 800

remove filters

Back to search problems