Codeforces Round 918 (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
1915 Codeforces Round 918 (Div. 4) FINISHED False 9000 28049099 Dec. 28, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 42793 ) B Not Quite Latin Square PROGRAMMING brute force implementation

B'A Latin square is a 3 x 3 grid made up of the letters texttt{A} , texttt{B} , and texttt{C} such that: You are given a Latin square, but one of the letters was replaced with a question mark texttt{?} . Find the letter that was replaced. The first line of the input contains a single integer t ( 1 <= q t <= q 108 ) -- the number of testcases. Each test case contains three lines, each consisting of three characters, representing the Latin square. Each character is one of texttt{A} , texttt{B} , texttt{C} , or texttt{?} . Each test case is a Latin square with exactly one of the letters replaced with a question mark texttt{?} . For each test case, output the letter that was replaced. The correct Latin squares for the three test cases are shown below: begin{bmatrix} texttt{A} & texttt{B} & texttt{C} texttt{C} & color{red}{ texttt{A}} & texttt{B} texttt{B} & texttt{C} & texttt{A} end{bmatrix} quad begin{bmatrix} texttt{B} & texttt{C} & texttt{A} texttt{C} & texttt{A} & color{red}{ texttt{B}} texttt{A} & texttt{B} & texttt{C} end{bmatrix} quad begin{bmatrix} color{red}{ texttt{C}} & texttt{A} & texttt{B} texttt{B} & texttt{C} & texttt{A} texttt{A} & texttt{B} & texttt{C} end{bmatrix} '...

Tutorials

123952

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
239424699 bluemegane B Dec. 28, 2023, 9:55 p.m. OK C# 8 TESTS 2 62 8396800
239413113 NenadDapic B Dec. 28, 2023, 6:57 p.m. OK FPC TESTS 2 0 1024000
239440287 mdkhaledmhamud220 B Dec. 29, 2023, 4:08 a.m. OK GNU C11 TESTS 2 0 3993600
239437876 siyem_2004 B Dec. 29, 2023, 3:33 a.m. OK GNU C11 TESTS 2 0 3993600
239407260 souvik_2203106 B Dec. 28, 2023, 6:05 p.m. OK GNU C11 TESTS 2 0 3993600
239446648 rishabh_sankla B Dec. 29, 2023, 5:27 a.m. OK GNU C11 TESTS 2 0 3993600
239436168 Auditi.3538 B Dec. 29, 2023, 3:02 a.m. OK GNU C11 TESTS 2 15 3993600
239433359 qsxzse B Dec. 29, 2023, 1:59 a.m. OK GNU C11 TESTS 2 15 3993600
239432547 WZC999 B Dec. 29, 2023, 1:39 a.m. OK GNU C11 TESTS 2 15 3993600
239424260 Rahat94 B Dec. 28, 2023, 9:46 p.m. OK GNU C11 TESTS 2 15 3993600
239420581 0x81 B Dec. 28, 2023, 8:36 p.m. OK GNU C11 TESTS 2 15 3993600
239420349 Antartic_Nafeez B Dec. 28, 2023, 8:32 p.m. OK GNU C11 TESTS 2 15 3993600
239448080 Tushar_Frostorm B Dec. 29, 2023, 5:44 a.m. OK GNU C++14 TESTS 2 0 1024000
239444891 Bai_xiaobo B Dec. 29, 2023, 5:07 a.m. OK GNU C++14 TESTS 2 0 1024000
239444448 mayankIITG B Dec. 29, 2023, 5:01 a.m. OK GNU C++14 TESTS 2 0 1024000
239444131 Kyte B Dec. 29, 2023, 4:58 a.m. OK GNU C++14 TESTS 2 0 1024000
239449885 khushig_03 B Dec. 29, 2023, 6:01 a.m. OK GNU C++14 TESTS 2 0 1024000
239448648 Alonse_wa B Dec. 29, 2023, 5:49 a.m. OK GNU C++14 TESTS 2 0 1024000
239448495 vikaspatnala2003 B Dec. 29, 2023, 5:48 a.m. OK GNU C++14 TESTS 2 0 1024000
239446507 Tushar_Frostorm B Dec. 29, 2023, 5:26 a.m. OK GNU C++14 TESTS 2 0 1024000
239446123 expertcoderhk B Dec. 29, 2023, 5:21 a.m. OK GNU C++14 TESTS 2 0 1024000
239445189 Trilliverse B Dec. 29, 2023, 5:10 a.m. OK GNU C++14 TESTS 2 0 1024000
239449049 UdayMLDS B Dec. 29, 2023, 5:53 a.m. OK GNU C++17 TESTS 2 0 1024000
239449725 PhucDuNe B Dec. 29, 2023, 6 a.m. OK GNU C++17 TESTS 2 0 1024000
239449748 EmranKhan B Dec. 29, 2023, 6 a.m. OK GNU C++17 TESTS 2 0 1024000
239449887 imran7955 B Dec. 29, 2023, 6:01 a.m. OK GNU C++17 TESTS 2 0 1024000
239449861 with_aryan B Dec. 29, 2023, 6:01 a.m. OK GNU C++17 TESTS 2 0 1024000
239449668 ER3N_Yager B Dec. 29, 2023, 5:59 a.m. OK GNU C++17 TESTS 2 0 1024000
239449604 tinkalkumariiit58 B Dec. 29, 2023, 5:59 a.m. OK GNU C++17 TESTS 2 0 1024000
239449331 user_rahul B Dec. 29, 2023, 5:56 a.m. OK GNU C++17 TESTS 2 0 1024000
239449330 akshit_shukrawal B Dec. 29, 2023, 5:56 a.m. OK GNU C++17 TESTS 2 0 1024000
239449250 its.anushk B Dec. 29, 2023, 5:55 a.m. OK GNU C++17 TESTS 2 0 1024000
239449835 clever_forest B Dec. 29, 2023, 6:01 a.m. OK GNU C++17 (64) TESTS 2 0 1228800
239449507 shiva_nsv B Dec. 29, 2023, 5:58 a.m. OK GNU C++17 (64) TESTS 2 0 1228800
239448808 Soul_8789 B Dec. 29, 2023, 5:51 a.m. OK GNU C++17 (64) TESTS 2 0 1228800
239448752 fclvbfm934 B Dec. 29, 2023, 5:50 a.m. OK GNU C++17 (64) TESTS 2 0 1228800
239448649 mo_gen B Dec. 29, 2023, 5:49 a.m. OK GNU C++17 (64) TESTS 2 0 1228800
239447087 JustKitkat B Dec. 29, 2023, 5:32 a.m. OK GNU C++17 (64) TESTS 2 0 1228800
239444977 ethening B Dec. 29, 2023, 5:08 a.m. OK GNU C++17 (64) TESTS 2 0 1228800
239444859 JustA7 B Dec. 29, 2023, 5:07 a.m. OK GNU C++17 (64) TESTS 2 0 1228800
239444752 _Nayru B Dec. 29, 2023, 5:05 a.m. OK GNU C++17 (64) TESTS 2 0 1228800
239444226 ShuBingHai B Dec. 29, 2023, 4:59 a.m. OK GNU C++17 (64) TESTS 2 0 1228800
239430975 PUPUPU_CODING B Dec. 29, 2023, 12:55 a.m. OK GNU C++20 (64) TESTS 2 0 1126400
239448948 surya_4025 B Dec. 29, 2023, 5:52 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
239449764 Qudusjon_08 B Dec. 29, 2023, 6 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
239449697 Oditi_Ritchil B Dec. 29, 2023, 5:59 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
239449358 Newbie_Du B Dec. 29, 2023, 5:56 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
239449313 Lalitk007 B Dec. 29, 2023, 5:56 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
239449296 Chetan_2705 B Dec. 29, 2023, 5:56 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
239449208 samCruiseFalconK7 B Dec. 29, 2023, 5:55 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
239448982 aggarwal_08 B Dec. 29, 2023, 5:52 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
239448963 heavenMOJANG B Dec. 29, 2023, 5:52 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
239437707 zhailongtao B Dec. 29, 2023, 3:30 a.m. OK Go TESTS 2 0 18227200
239434092 123_wby B Dec. 29, 2023, 2:18 a.m. OK Go TESTS 2 15 18227200
239407287 shaili17 B Dec. 28, 2023, 6:05 p.m. OK Java 11 TESTS 2 139 24473600
239405214 Lokeshkumar-04 B Dec. 28, 2023, 5:48 p.m. OK Java 11 TESTS 2 155 24473600
239441486 pnousheen729 B Dec. 29, 2023, 4:24 a.m. OK Java 11 TESTS 2 155 25190400
239449034 Dan1c B Dec. 29, 2023, 5:53 a.m. OK Java 11 TESTS 2 156 24473600
239424960 Kryuchkovm23 B Dec. 28, 2023, 10 p.m. OK Java 11 TESTS 2 156 24473600
239432894 VRP B Dec. 29, 2023, 1:47 a.m. OK Java 11 TESTS 2 156 25190400
239431403 Syed_Farazuddin B Dec. 29, 2023, 1:07 a.m. OK Java 11 TESTS 2 171 25190400
239412827 HexaMatrix06 B Dec. 28, 2023, 6:54 p.m. OK Java 11 TESTS 2 171 25190400
239434610 leedagon B Dec. 29, 2023, 2:31 a.m. OK Java 11 TESTS 2 186 24473600
239441581 Akmaljon.08 B Dec. 29, 2023, 4:26 a.m. OK Java 11 TESTS 2 186 25190400
239411311 flickflock B Dec. 28, 2023, 6:38 p.m. OK Java 17 TESTS 2 124 40140800
239446038 SaiKrishna12 B Dec. 29, 2023, 5:20 a.m. OK Java 17 TESTS 2 140 40243200
239419870 Zakaria_Eysa B Dec. 28, 2023, 8:25 p.m. OK Java 17 TESTS 2 140 40243200
239445339 2010030167 B Dec. 29, 2023, 5:12 a.m. OK Java 17 TESTS 2 155 39424000
239409099 rdhakar246 B Dec. 28, 2023, 6:19 p.m. OK Java 17 TESTS 2 170 40345600
239447500 whd_CN B Dec. 29, 2023, 5:37 a.m. OK Java 17 TESTS 2 171 40243200
239414819 TrueBat B Dec. 28, 2023, 7:17 p.m. OK Java 17 TESTS 2 171 40243200
239407410 shivxsh10 B Dec. 28, 2023, 6:06 p.m. OK Java 17 TESTS 2 171 40243200
239432012 Javi121 B Dec. 29, 2023, 1:24 a.m. OK Java 17 TESTS 2 171 40448000
239409839 gm2213653 B Dec. 28, 2023, 6:25 p.m. OK Java 17 TESTS 2 187 40448000
239445661 rajatpro2206 B Dec. 29, 2023, 5:16 a.m. OK Java 21 TESTS 2 155 41574400
239406956 k.SUMANTH B Dec. 28, 2023, 6:02 p.m. OK Java 21 TESTS 2 155 41881600
239411671 rajatpro2206 B Dec. 28, 2023, 6:42 p.m. OK Java 21 TESTS 2 171 41574400
239412333 mangos194 B Dec. 28, 2023, 6:49 p.m. OK Java 21 TESTS 2 186 41164800
239405343 clcs__ B Dec. 28, 2023, 5:49 p.m. OK Java 21 TESTS 2 187 41062400
239411540 abhipatra B Dec. 28, 2023, 6:40 p.m. OK Java 21 TESTS 2 218 41984000
239430126 goalboy B Dec. 29, 2023, 12:29 a.m. OK Java 21 TESTS 2 218 42188800
239422479 vansh_1011 B Dec. 28, 2023, 9:10 p.m. OK Java 21 TESTS 2 233 41984000
239416745 sarthakmanna B Dec. 28, 2023, 7:41 p.m. OK Java 21 TESTS 2 233 42700800
239407336 mk6748134 B Dec. 28, 2023, 6:06 p.m. OK Java 21 TESTS 2 248 41164800
239420604 NerfThis B Dec. 28, 2023, 8:36 p.m. OK Java 8 TESTS 2 61 18739200
239439425 Bill35 B Dec. 29, 2023, 3:56 a.m. OK Java 8 TESTS 2 77 18739200
239433253 gzq44 B Dec. 29, 2023, 1:57 a.m. OK Java 8 TESTS 2 78 18636800
239446513 rishabverma23 B Dec. 29, 2023, 5:26 a.m. OK Java 8 TESTS 2 78 19558400
239424071 -.-.-.-.-.. B Dec. 28, 2023, 9:41 p.m. OK Java 8 TESTS 2 92 19558400
239446742 1091857051 B Dec. 29, 2023, 5:29 a.m. OK Java 8 TESTS 2 93 18739200
239409224 vinay_panwar B Dec. 28, 2023, 6:20 p.m. OK Java 8 TESTS 2 93 18739200
239436614 BraveBeter B Dec. 29, 2023, 3:10 a.m. OK Java 8 TESTS 2 93 19558400
239446647 amit_roy B Dec. 29, 2023, 5:27 a.m. OK Java 8 TESTS 2 109 19558400
239448647 Sandeep_9198 B Dec. 29, 2023, 5:49 a.m. OK Java 8 TESTS 2 124 19558400
239440338 nikn04 B Dec. 29, 2023, 4:09 a.m. OK MS C++ 2017 TESTS 2 0 1126400
239435042 leijh B Dec. 29, 2023, 2:41 a.m. OK MS C++ 2017 TESTS 2 0 1126400
239432372 smile...... B Dec. 29, 2023, 1:35 a.m. OK MS C++ 2017 TESTS 2 0 1126400
239404664 Aditya_Gupta_9696 B Dec. 28, 2023, 5:44 p.m. OK MS C++ 2017 TESTS 2 0 1126400
239419259 Babaa B Dec. 28, 2023, 8:16 p.m. OK Node.js TESTS 2 46 11776000
239428667 mizos B Dec. 28, 2023, 11:41 p.m. OK Node.js TESTS 2 62 11673600
239448119 epoche B Dec. 29, 2023, 5:44 a.m. OK OCaml TESTS 2 0 3072000
239407735 katomasao B Dec. 28, 2023, 6:08 p.m. OK Perl TESTS 2 15 1433600
239404796 rsFalse B Dec. 28, 2023, 5:45 p.m. OK Perl TESTS 2 15 1433600
239403725 rsFalse B Dec. 28, 2023, 5:37 p.m. OK Perl TESTS 2 30 1536000
239406304 rsFalse B Dec. 28, 2023, 5:57 p.m. OK Perl TESTS 2 31 1433600
239442442 yyyyyd B Dec. 29, 2023, 4:37 a.m. OK PyPy 3 TESTS 2 62 17715200
239418279 maynk2004 B Dec. 28, 2023, 8:02 p.m. OK PyPy 3 TESTS 2 62 17715200
239410728 Sovi_11 B Dec. 28, 2023, 6:33 p.m. OK PyPy 3 TESTS 2 77 17715200
239429007 ashays B Dec. 28, 2023, 11:52 p.m. OK PyPy 3 TESTS 2 92 17715200
239418397 Mihretthe B Dec. 28, 2023, 8:03 p.m. OK PyPy 3 TESTS 2 92 17715200
239412650 -.-.-.-.-.. B Dec. 28, 2023, 6:52 p.m. OK PyPy 3 TESTS 2 93 17715200
239446354 TASHFIQ_TAIF B Dec. 29, 2023, 5:24 a.m. OK PyPy 3-64 TESTS 2 46 28774400
239443375 joaoc B Dec. 29, 2023, 4:48 a.m. OK PyPy 3-64 TESTS 2 46 28774400
239439390 Rohan_7503 B Dec. 29, 2023, 3:56 a.m. OK PyPy 3-64 TESTS 2 46 28774400
239439099 SnowballSH B Dec. 29, 2023, 3:51 a.m. OK PyPy 3-64 TESTS 2 46 28774400
239438384 ACiRE B Dec. 29, 2023, 3:40 a.m. OK PyPy 3-64 TESTS 2 46 28774400
239437989 Youarenotgood B Dec. 29, 2023, 3:34 a.m. OK PyPy 3-64 TESTS 2 46 28774400
239437680 YUS_3.0 B Dec. 29, 2023, 3:29 a.m. OK PyPy 3-64 TESTS 2 46 28774400
239436300 TrivialZzy B Dec. 29, 2023, 3:04 a.m. OK PyPy 3-64 TESTS 2 46 28774400
239432569 quluying B Dec. 29, 2023, 1:39 a.m. OK PyPy 3-64 TESTS 2 46 28774400
239428485 Libe12 B Dec. 28, 2023, 11:35 p.m. OK PyPy 3-64 TESTS 2 46 28774400
239446430 ___a_s_1_2___ B Dec. 29, 2023, 5:25 a.m. OK Python 3 TESTS 2 15 5632000
239440643 machonium B Dec. 29, 2023, 4:13 a.m. OK Python 3 TESTS 2 15 5632000
239438041 2110040114 B Dec. 29, 2023, 3:35 a.m. OK Python 3 TESTS 2 15 5632000
239421647 aniruddha_2203081 B Dec. 28, 2023, 8:54 p.m. OK Python 3 TESTS 2 15 5632000
239420631 vovamaiorov2007 B Dec. 28, 2023, 8:37 p.m. OK Python 3 TESTS 2 15 5632000
239410025 hangglider B Dec. 28, 2023, 6:27 p.m. OK Python 3 TESTS 2 15 5632000
239404068 gabriel_caixeta01 B Dec. 28, 2023, 5:39 p.m. OK Python 3 TESTS 2 15 5632000
239437371 shanmukha19 B Dec. 29, 2023, 3:23 a.m. OK Python 3 TESTS 2 30 5529600
239421381 _chater_ B Dec. 28, 2023, 8:49 p.m. OK Python 3 TESTS 2 30 5529600
239412537 jishapj B Dec. 28, 2023, 6:51 p.m. OK Python 3 TESTS 2 30 5529600
239436134 ziggy B Dec. 29, 2023, 3:01 a.m. OK Rust 2021 TESTS 2 0 1228800
239433361 liut B Dec. 29, 2023, 1:59 a.m. OK Rust 2021 TESTS 2 15 1228800
239413252 _a253 B Dec. 28, 2023, 6:58 p.m. OK Rust 2021 TESTS 2 15 1638400

remove filters

Back to search problems