Codeforces Round 910 (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
1898 Codeforces Round 910 (Div. 2) FINISHED False 7200 36775463 Nov. 19, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5753 ) C Colorful Grid PROGRAMMING constructive algorithms implementation

B'Elena has a grid formed by n horizontal lines and m vertical lines. The horizontal lines are numbered by integers from 1 to n from top to bottom. The vertical lines are numbered by integers from 1 to m from left to right. For each x and y ( 1 <= q x <= q n , 1 <= q y <= q m ), the notation (x, y) denotes the point at the intersection of the x -th horizontal line and y -th vertical line. Two points (x_1,y_1) and (x_2,y_2) are adjacent if and only if |x_1-x_2| + |y_1-y_2| = 1 . Elena calls a sequence of points p_1, p_2, ldots, p_g of length g a walk if and only if all the following conditions hold: Note that the walk may contain the same point more than once. In particular, it may contain point (1, 1) or (n, m) multiple times. There are n(m-1)+(n-1)m segments connecting the adjacent points in Elena 's grid. Elena wants to color each of these segments in blue or red color so that there exists a walk p_1, p_2, ldots, p_{k+1} of length k+1 such that Please find any such coloring or report that there is no such coloring. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= q t <= q 32 ). The description of test cases follows. The only line of each test case contains three integers n , m , and k ( 3 <= q n,m <= q 16 , 1 <= q k <= q 10^9 ) -- the dimensions of the grid and the number of segments in the walk Elena is looking for. For each test case, output "NO" if it is not possible to color each of the n(m-1)+(n-1)m segments in blue or red color, so that there exists a walk of length k+1 satisfying the condition from the statement. Otherwise, output in the first line "YES", and then provide the required coloring. In each of the first n lines of coloring description, output m-1 space-separated characters. The j -th characte'...

Tutorials

Editorial for Codeforces Round #910 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
233496105 Derato C Nov. 19, 2023, 8:22 p.m. OK C# 10 TESTS 37 46 409600
233487717 Anastasiya_Andreevna C Nov. 19, 2023, 6:41 p.m. OK C# 10 TESTS 37 93 409600
233473674 NenadDapic C Nov. 19, 2023, 4:33 p.m. OK FPC TESTS 37 46 0
233468865 georgekpg C Nov. 19, 2023, 4:20 p.m. OK FPC TESTS 37 93 204800
233521394 obi_1_kenobi C Nov. 20, 2023, 5:47 a.m. OK GNU C++14 TESTS 37 15 0
233520849 skkllll C Nov. 20, 2023, 5:39 a.m. OK GNU C++14 TESTS 37 15 0
233519379 AnicoderAndy C Nov. 20, 2023, 5:16 a.m. OK GNU C++14 TESTS 37 15 0
233517504 ollo C Nov. 20, 2023, 4:44 a.m. OK GNU C++14 TESTS 37 15 0
233515686 skylogic C Nov. 20, 2023, 4:07 a.m. OK GNU C++14 TESTS 37 15 0
233510665 Diyarka C Nov. 20, 2023, 2:19 a.m. OK GNU C++14 TESTS 37 15 0
233510553 Zhangrunnan C Nov. 20, 2023, 2:16 a.m. OK GNU C++14 TESTS 37 15 0
233509541 KhanhVyyyyy C Nov. 20, 2023, 1:50 a.m. OK GNU C++14 TESTS 37 15 0
233508995 illusion_desert C Nov. 20, 2023, 1:34 a.m. OK GNU C++14 TESTS 37 15 0
233508970 BBD186587 C Nov. 20, 2023, 1:33 a.m. OK GNU C++14 TESTS 37 15 0
233520055 contesttomato98 C Nov. 20, 2023, 5:26 a.m. OK GNU C++17 TESTS 37 15 0
233519935 shympo C Nov. 20, 2023, 5:25 a.m. OK GNU C++17 TESTS 37 15 0
233519479 kgg. C Nov. 20, 2023, 5:17 a.m. OK GNU C++17 TESTS 37 15 0
233517556 Fleuron C Nov. 20, 2023, 4:45 a.m. OK GNU C++17 TESTS 37 15 0
233517152 old_wrp C Nov. 20, 2023, 4:38 a.m. OK GNU C++17 TESTS 37 15 0
233516158 Eureka_ C Nov. 20, 2023, 4:18 a.m. OK GNU C++17 TESTS 37 15 0
233515746 disastah C Nov. 20, 2023, 4:09 a.m. OK GNU C++17 TESTS 37 15 0
233513776 NgJaBach C Nov. 20, 2023, 3:27 a.m. OK GNU C++17 TESTS 37 15 0
233511614 shiqi65 C Nov. 20, 2023, 2:41 a.m. OK GNU C++17 TESTS 37 15 0
233510927 LGXXGL C Nov. 20, 2023, 2:25 a.m. OK GNU C++17 TESTS 37 15 0
233499148 camc C Nov. 19, 2023, 9:07 p.m. OK GNU C++17 (64) TESTS 37 0 0
233475723 ilgiz228 C Nov. 19, 2023, 4:54 p.m. OK GNU C++17 (64) TESTS 37 0 0
233520052 clyzszh C Nov. 20, 2023, 5:26 a.m. OK GNU C++17 (64) TESTS 37 15 0
233518992 errormakers C Nov. 20, 2023, 5:10 a.m. OK GNU C++17 (64) TESTS 37 15 0
233518976 errormakers C Nov. 20, 2023, 5:09 a.m. OK GNU C++17 (64) TESTS 37 15 0
233516175 kimsaeron C Nov. 20, 2023, 4:18 a.m. OK GNU C++17 (64) TESTS 37 15 0
233514824 niqiqi C Nov. 20, 2023, 3:48 a.m. OK GNU C++17 (64) TESTS 37 15 0
233513404 Once_I_Liked_AGirl C Nov. 20, 2023, 3:20 a.m. OK GNU C++17 (64) TESTS 37 15 0
233511449 DinosaurSlayer C Nov. 20, 2023, 2:37 a.m. OK GNU C++17 (64) TESTS 37 15 0
233506699 DrWolowitz C Nov. 20, 2023, 12:20 a.m. OK GNU C++17 (64) TESTS 37 15 0
233516905 xingliu C Nov. 20, 2023, 4:33 a.m. OK GNU C++20 (64) TESTS 37 0 0
233515503 Chloris_Black C Nov. 20, 2023, 4:03 a.m. OK GNU C++20 (64) TESTS 37 0 0
233514722 yusuf12360 C Nov. 20, 2023, 3:47 a.m. OK GNU C++20 (64) TESTS 37 0 0
233497421 Drurpp C Nov. 19, 2023, 8:41 p.m. OK GNU C++20 (64) TESTS 37 0 0
233496932 circle977 C Nov. 19, 2023, 8:35 p.m. OK GNU C++20 (64) TESTS 37 0 0
233492479 Hi-TechMissile C Nov. 19, 2023, 7:36 p.m. OK GNU C++20 (64) TESTS 37 0 0
233485263 Bacily C Nov. 19, 2023, 6:16 p.m. OK GNU C++20 (64) TESTS 37 0 0
233482245 AUDzer0 C Nov. 19, 2023, 5:46 p.m. OK GNU C++20 (64) TESTS 37 0 0
233480158 Bruce12138 C Nov. 19, 2023, 5:26 p.m. OK GNU C++20 (64) TESTS 37 0 0
233479599 ttamx C Nov. 19, 2023, 5:21 p.m. OK GNU C++20 (64) TESTS 37 0 0
233476890 GR1ZLER C Nov. 19, 2023, 5 p.m. OK Java 11 TESTS 37 187 0
233461579 wizwilzo C Nov. 19, 2023, 3:57 p.m. OK Java 11 TESTS 37 202 0
233493674 kasiru_69 C Nov. 19, 2023, 7:51 p.m. OK Java 11 TESTS 37 218 0
233464442 etian6795 C Nov. 19, 2023, 4:06 p.m. OK Java 11 TESTS 37 218 0
233472388 ALostSoul C Nov. 19, 2023, 4:31 p.m. OK Java 11 TESTS 37 280 0
233502516 28leoleo28 C Nov. 19, 2023, 10:12 p.m. OK Java 17 TESTS 37 202 614400
233491743 tiger3768 C Nov. 19, 2023, 7:27 p.m. OK Java 17 TESTS 37 202 716800
233465686 synasc C Nov. 19, 2023, 4:10 p.m. OK Java 17 TESTS 37 218 614400
233510126 TopCloser C Nov. 20, 2023, 2:05 a.m. OK Java 17 TESTS 37 249 921600
233501059 Sumitsingh7 C Nov. 19, 2023, 9:41 p.m. OK Java 17 TESTS 37 249 8806400
233518326 mapleKing C Nov. 20, 2023, 4:59 a.m. OK Java 17 TESTS 37 312 1024000
233499178 munaganithin.mnk C Nov. 19, 2023, 9:07 p.m. OK Java 21 TESTS 37 358 921600
233506036 1091857051 C Nov. 19, 2023, 11:55 p.m. OK Java 8 TESTS 37 109 0
233503155 110101011 C Nov. 19, 2023, 10:29 p.m. OK Java 8 TESTS 37 109 0
233465812 DerpoFanBoy C Nov. 19, 2023, 4:11 p.m. OK Java 8 TESTS 37 109 0
233507199 mohamedhassan_c C Nov. 20, 2023, 12:37 a.m. OK Java 8 TESTS 37 109 6348800
233500858 NerfThis C Nov. 19, 2023, 9:38 p.m. OK Java 8 TESTS 37 124 0
233472429 arutsudar C Nov. 19, 2023, 4:31 p.m. OK Java 8 TESTS 37 124 0
233467709 MintCat C Nov. 19, 2023, 4:17 p.m. OK Java 8 TESTS 37 233 0
233475716 Piashy C Nov. 19, 2023, 4:54 p.m. OK MS C++ 2017 TESTS 37 15 0
233471041 iuxan C Nov. 19, 2023, 4:27 p.m. OK MS C++ 2017 TESTS 37 15 0
233466489 ryanyux C Nov. 19, 2023, 4:13 p.m. OK PyPy 3 TESTS 37 93 1843200
233466026 smf C Nov. 19, 2023, 4:11 p.m. OK PyPy 3 TESTS 37 124 1945600
233478353 backer01 C Nov. 19, 2023, 5:11 p.m. OK PyPy 3-64 TESTS 37 62 1945600
233470591 trigozord C Nov. 19, 2023, 4:26 p.m. OK PyPy 3-64 TESTS 37 77 1638400
233473206 Nullz C Nov. 19, 2023, 4:33 p.m. OK PyPy 3-64 TESTS 37 77 1740800
233472668 Beavers_are_really_cool C Nov. 19, 2023, 4:31 p.m. OK PyPy 3-64 TESTS 37 77 1945600
233512201 JinYuManTang C Nov. 20, 2023, 2:56 a.m. OK PyPy 3-64 TESTS 37 77 2048000
233473168 ez_code C Nov. 19, 2023, 4:32 p.m. OK PyPy 3-64 TESTS 37 77 2150400
233478731 yuki_keshiki C Nov. 19, 2023, 5:14 p.m. OK PyPy 3-64 TESTS 37 77 2560000
233493627 gardengnome C Nov. 19, 2023, 7:51 p.m. OK PyPy 3-64 TESTS 37 77 2969600
233481134 ossau_guildo C Nov. 19, 2023, 5:35 p.m. OK PyPy 3-64 TESTS 37 77 3481600
233485650 thrombe C Nov. 19, 2023, 6:19 p.m. OK PyPy 3-64 TESTS 37 78 3481600
233462029 Redpanda_x C Nov. 19, 2023, 3:58 p.m. OK Python 3 TESTS 37 46 0
233519475 badname.top C Nov. 20, 2023, 5:17 a.m. OK Python 3 TESTS 37 46 102400
233471406 RuoqiCCC C Nov. 19, 2023, 4:28 p.m. OK Python 3 TESTS 37 46 102400
233468156 badname.top C Nov. 19, 2023, 4:18 p.m. OK Python 3 TESTS 37 46 102400
233468481 fraxea C Nov. 19, 2023, 4:19 p.m. OK Python 3 TESTS 37 62 102400
233462082 PugachAG C Nov. 19, 2023, 3:59 p.m. OK Rust 2021 TESTS 37 15 0
233477683 katomasao C Nov. 19, 2023, 5:06 p.m. OK Rust 2021 TESTS 37 31 204800

remove filters

Back to search problems