Codeforces Round 822 (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
1734 Codeforces Round 822 (Div. 2) FINISHED False 7200 67888499 Sept. 23, 2022, 12:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15863 ) B Bright, Nice, Brilliant PROGRAMMING constructive algorithms

B'There is a pyramid which consists of n floors. The floors are numbered from top to bottom in increasing order. In the pyramid, the i -th floor consists of i rooms. Denote the j -th room on the i -th floor as (i,j) . For all positive integers i and j such that 1 <= j <= i < n , there are 2 one-way staircases which lead from (i,j) to (i+1,j) and from (i,j) to (i+1,j+1) respectively. In each room you can either put a torch or leave it empty. Define the brightness of a room (i, j) to be the number of rooms with a torch from which you can reach the room (i, j) through a non-negative number of staircases. For example, when n=5 and torches are placed in the rooms (1,1) , (2,1) , (3,2) , (4,1) , (4,3) , and (5,3) , the pyramid can be illustrated as follows: In the above picture, rooms with torches are colored in yellow, and empty rooms are white. The blue numbers in the bottom-right corner indicate the brightness of the rooms. The room (4,2) (the room with a star) has brightness 3 . In the picture below, the rooms from where you can reach (4,2) have red border. The brightness is 3 since there are three torches among these rooms. The pyramid is called nice if and only if for all floors, all rooms in the floor have the same brightness. Define the brilliance of a nice pyramid to be the sum of brightness over the rooms (1,1) , (2,1) , (3,1) , ..., (n,1) . Find an arrangement of torches in the pyramid, such that the resulting pyramid is nice and its brilliance is maximized. We can show that an answer always exists. If there are multiple answers, output any one of them. The first line of the 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 a single positive integer n '...

Tutorials

Codeforces Round #822 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
173252941 SD8 B Sept. 23, 2022, 6:48 p.m. OK C# 8 TESTS 13 374 102400
173242767 att1000 B Sept. 23, 2022, 4:59 p.m. OK GNU C11 TESTS 13 468 0
173227211 N0_0BitA B Sept. 23, 2022, 2:48 p.m. OK GNU C11 TESTS 13 468 0
173243125 att1000 B Sept. 23, 2022, 5:02 p.m. OK GNU C11 TESTS 13 468 0
173233008 Adiat B Sept. 23, 2022, 3:31 p.m. OK GNU C11 TESTS 13 483 0
173272929 SP2003 B Sept. 24, 2022, 5:28 a.m. OK GNU C11 TESTS 13 483 0
173218062 Dankderpachu B Sept. 23, 2022, 1:54 p.m. OK GNU C11 TESTS 13 499 0
173219545 horrifying B Sept. 23, 2022, 1:58 p.m. OK GNU C++14 TESTS 13 0 0
173220584 TrQDungx B Sept. 23, 2022, 2 p.m. OK GNU C++14 TESTS 13 0 0
173271678 forlight B Sept. 24, 2022, 5:13 a.m. OK GNU C++14 TESTS 13 15 0
173266932 Hyari B Sept. 24, 2022, 4:08 a.m. OK GNU C++14 TESTS 13 15 0
173266712 ritikagr061 B Sept. 24, 2022, 4:04 a.m. OK GNU C++14 TESTS 13 15 0
173265392 Albert-Zhao B Sept. 24, 2022, 3:41 a.m. OK GNU C++14 TESTS 13 15 0
173263811 Shivangini_5519 B Sept. 24, 2022, 3:19 a.m. OK GNU C++14 TESTS 13 15 0
173275633 hnust_liiubingbo B Sept. 24, 2022, 5:55 a.m. OK GNU C++14 TESTS 13 15 0
173273084 Sakurajima B Sept. 24, 2022, 5:29 a.m. OK GNU C++14 TESTS 13 15 0
173272504 peter112358 B Sept. 24, 2022, 5:23 a.m. OK GNU C++14 TESTS 13 15 0
173273713 shaziz B Sept. 24, 2022, 5:36 a.m. OK GNU C++17 TESTS 13 15 0
173273682 xolos B Sept. 24, 2022, 5:36 a.m. OK GNU C++17 TESTS 13 15 0
173273574 ahaor B Sept. 24, 2022, 5:35 a.m. OK GNU C++17 TESTS 13 15 0
173273518 YLone B Sept. 24, 2022, 5:34 a.m. OK GNU C++17 TESTS 13 15 0
173274633 Kagra B Sept. 24, 2022, 5:46 a.m. OK GNU C++17 TESTS 13 15 0
173274979 edwardzhang2 B Sept. 24, 2022, 5:49 a.m. OK GNU C++17 TESTS 13 15 0
173275959 Mr.Variable B Sept. 24, 2022, 5:58 a.m. OK GNU C++17 TESTS 13 15 0
173274052 buzhidao_buzhidao B Sept. 24, 2022, 5:40 a.m. OK GNU C++17 TESTS 13 15 0
173273965 SurajSP B Sept. 24, 2022, 5:39 a.m. OK GNU C++17 TESTS 13 15 0
173273826 Dev-i_varaprasad B Sept. 24, 2022, 5:37 a.m. OK GNU C++17 TESTS 13 15 0
173270639 Exotic B Sept. 24, 2022, 5 a.m. OK GNU C++17 (64) TESTS 13 15 0
173268479 yaoveil B Sept. 24, 2022, 4:30 a.m. OK GNU C++17 (64) TESTS 13 15 0
173267873 Eter.nal B Sept. 24, 2022, 4:20 a.m. OK GNU C++17 (64) TESTS 13 15 0
173267455 Fan_zf B Sept. 24, 2022, 4:14 a.m. OK GNU C++17 (64) TESTS 13 15 0
173266074 relyt871 B Sept. 24, 2022, 3:53 a.m. OK GNU C++17 (64) TESTS 13 15 0
173265325 IBoger B Sept. 24, 2022, 3:40 a.m. OK GNU C++17 (64) TESTS 13 15 0
173265077 raoxiangjun B Sept. 24, 2022, 3:36 a.m. OK GNU C++17 (64) TESTS 13 15 0
173264843 shuoxuanli B Sept. 24, 2022, 3:32 a.m. OK GNU C++17 (64) TESTS 13 15 0
173264744 HelloJxyu B Sept. 24, 2022, 3:30 a.m. OK GNU C++17 (64) TESTS 13 15 0
173263000 Double_pipe_dream B Sept. 24, 2022, 3:07 a.m. OK GNU C++17 (64) TESTS 13 15 0
173232389 Reewnat B Sept. 23, 2022, 3:26 p.m. OK GNU C++20 (64) TESTS 13 0 0
173227214 Aniket_Joarder B Sept. 23, 2022, 2:48 p.m. OK GNU C++20 (64) TESTS 13 0 0
173226940 Misbaul_Hasan B Sept. 23, 2022, 2:47 p.m. OK GNU C++20 (64) TESTS 13 0 0
173235141 DaVinci B Sept. 23, 2022, 3:47 p.m. OK GNU C++20 (64) TESTS 13 0 0
173235159 benzyl B Sept. 23, 2022, 3:48 p.m. OK GNU C++20 (64) TESTS 13 0 0
173250717 _Edmond_ B Sept. 23, 2022, 6:23 p.m. OK GNU C++20 (64) TESTS 13 0 0
173252901 ishwarendra B Sept. 23, 2022, 6:48 p.m. OK GNU C++20 (64) TESTS 13 0 0
173253684 HaciyevAlik B Sept. 23, 2022, 6:57 p.m. OK GNU C++20 (64) TESTS 13 0 0
173258452 EssKay B Sept. 23, 2022, 8:01 p.m. OK GNU C++20 (64) TESTS 13 0 0
173265173 OdyAsh B Sept. 24, 2022, 3:37 a.m. OK GNU C++20 (64) TESTS 13 0 204800
173231369 dzhi B Sept. 23, 2022, 3:18 p.m. OK Java 11 TESTS 13 171 0
173268793 the_unseen B Sept. 24, 2022, 4:34 a.m. OK Java 11 TESTS 13 171 0
173256726 shahvraj1500 B Sept. 23, 2022, 7:36 p.m. OK Java 11 TESTS 13 171 0
173234917 vijender_8601 B Sept. 23, 2022, 3:46 p.m. OK Java 11 TESTS 13 171 0
173217773 w0rth_it B Sept. 23, 2022, 1:54 p.m. OK Java 11 TESTS 13 202 0
173262871 Spidey2182 B Sept. 24, 2022, 3:05 a.m. OK Java 11 TESTS 13 202 0
173229895 WhatAGod B Sept. 23, 2022, 3:06 p.m. OK Java 11 TESTS 13 218 0
173225279 x21svage B Sept. 23, 2022, 2:40 p.m. OK Java 11 TESTS 13 420 0
173256653 bluj_hur B Sept. 23, 2022, 7:35 p.m. OK Java 11 TESTS 13 561 0
173231421 g_square B Sept. 23, 2022, 3:19 p.m. OK Java 11 TESTS 13 577 0
173229228 Pratham2908 B Sept. 23, 2022, 3:02 p.m. OK Java 17 TESTS 13 171 409600
173262323 Mamimi B Sept. 24, 2022, 2:56 a.m. OK Java 17 TESTS 13 187 512000
173271536 CrinklyGolem B Sept. 24, 2022, 5:12 a.m. OK Java 17 TESTS 13 202 204800
173268377 eslamms B Sept. 24, 2022, 4:28 a.m. OK Java 17 TESTS 13 265 716800
173259717 Ibrahimovic_The_Lion B Sept. 23, 2022, 8:22 p.m. OK Java 8 TESTS 13 92 0
173257805 Unrated_Pritam B Sept. 23, 2022, 7:52 p.m. OK Java 8 TESTS 13 93 0
173229994 ankit_0207 B Sept. 23, 2022, 3:07 p.m. OK Java 8 TESTS 13 93 0
173272484 ketangupta12 B Sept. 24, 2022, 5:22 a.m. OK Java 8 TESTS 13 109 0
173256497 Diaa12360 B Sept. 23, 2022, 7:32 p.m. OK Java 8 TESTS 13 109 0
173227337 _kritika_17 B Sept. 23, 2022, 2:49 p.m. OK Java 8 TESTS 13 109 0
173227331 Mohamed_A7med B Sept. 23, 2022, 2:49 p.m. OK Java 8 TESTS 13 109 0
173272878 Yermanov B Sept. 24, 2022, 5:27 a.m. OK Java 8 TESTS 13 124 0
173249245 Juhaied_nabid B Sept. 23, 2022, 6:08 p.m. OK Java 8 TESTS 13 124 0
173231542 FrAnKy_Mawina B Sept. 23, 2022, 3:19 p.m. OK Java 8 TESTS 13 202 0
173241168 Krantzy B Sept. 23, 2022, 4:44 p.m. OK Kotlin 1.6 TESTS 13 171 0
173257079 laquendi B Sept. 23, 2022, 7:41 p.m. OK MS C++ 2017 TESTS 13 15 0
173261673 JRose1121 B Sept. 24, 2022, 2:44 a.m. OK MS C++ 2017 TESTS 13 31 0
173229537 ata_y243 B Sept. 23, 2022, 3:04 p.m. OK MS C++ 2017 TESTS 13 62 0
173216061 justhandsome1127 B Sept. 23, 2022, 1:49 p.m. OK MS C++ 2017 TESTS 13 62 0
173258129 cptahahab B Sept. 23, 2022, 7:57 p.m. OK MS C++ 2017 TESTS 13 78 0
173232074 Ahmedmadbouly186 B Sept. 23, 2022, 3:23 p.m. OK MS C++ 2017 TESTS 13 78 0
173227436 Error-By-Night B Sept. 23, 2022, 2:50 p.m. OK Node.js TESTS 13 93 1126400
173226681 1_2_3_4_5_9 B Sept. 23, 2022, 2:46 p.m. OK PyPy 2 TESTS 13 390 43315200
173248236 NapoleonB B Sept. 23, 2022, 5:58 p.m. OK PyPy 3 TESTS 13 124 2355200
173227912 sagarpm18 B Sept. 23, 2022, 2:53 p.m. OK PyPy 3 TESTS 13 140 9011200
173259201 34z12000 B Sept. 23, 2022, 8:14 p.m. OK PyPy 3 TESTS 13 140 9113600
173263162 MikoTohashu B Sept. 24, 2022, 3:10 a.m. OK PyPy 3 TESTS 13 186 8908800
173241973 hash1023 B Sept. 23, 2022, 4:51 p.m. OK PyPy 3 TESTS 13 249 7270400
173233681 believer99 B Sept. 23, 2022, 3:36 p.m. OK PyPy 3 TESTS 13 280 10956800
173235074 Multibala B Sept. 23, 2022, 3:47 p.m. OK PyPy 3 TESTS 13 280 11161600
173238254 zgonnikov B Sept. 23, 2022, 4:16 p.m. OK PyPy 3-64 TESTS 13 61 307200
173250050 Remineva B Sept. 23, 2022, 6:16 p.m. OK PyPy 3-64 TESTS 13 62 0
173220116 Mahitha_Meka B Sept. 23, 2022, 1:59 p.m. OK PyPy 3-64 TESTS 13 62 0
173216980 KrishnaSasank03 B Sept. 23, 2022, 1:52 p.m. OK PyPy 3-64 TESTS 13 62 0
173246126 jasmineheart B Sept. 23, 2022, 5:36 p.m. OK PyPy 3-64 TESTS 13 62 2048000
173221417 Ruban_Denic B Sept. 23, 2022, 2:02 p.m. OK PyPy 3-64 TESTS 13 77 0
173226246 MohamedHamed123 B Sept. 23, 2022, 2:43 p.m. OK PyPy 3-64 TESTS 13 77 614400
173266767 Youarenotgood B Sept. 24, 2022, 4:04 a.m. OK PyPy 3-64 TESTS 13 77 9318400
173276315 minochaji B Sept. 24, 2022, 6:01 a.m. OK PyPy 3-64 TESTS 13 77 9420800
173239533 jgs03177 B Sept. 23, 2022, 4:29 p.m. OK PyPy 3-64 TESTS 13 77 9420800
173251965 bronze_coder B Sept. 23, 2022, 6:37 p.m. OK Python 3 TESTS 13 46 0
173236688 Dinesh_devanaboina B Sept. 23, 2022, 4:01 p.m. OK Python 3 TESTS 13 46 0
173235933 20wh1a0583 B Sept. 23, 2022, 3:54 p.m. OK Python 3 TESTS 13 46 0
173235652 saikumar31608 B Sept. 23, 2022, 3:52 p.m. OK Python 3 TESTS 13 46 0
173232512 Shuja_SundarSTEM B Sept. 23, 2022, 3:27 p.m. OK Python 3 TESTS 13 46 0
173219879 Nandini_06 B Sept. 23, 2022, 1:59 p.m. OK Python 3 TESTS 13 46 0
173219160 DivyanshPradhan14 B Sept. 23, 2022, 1:57 p.m. OK Python 3 TESTS 13 46 0
173219142 hemanth.2002 B Sept. 23, 2022, 1:57 p.m. OK Python 3 TESTS 13 46 0
173218514 fenixsandrit B Sept. 23, 2022, 1:56 p.m. OK Python 3 TESTS 13 46 0
173230347 alive_ak4c B Sept. 23, 2022, 3:10 p.m. OK Python 3 TESTS 13 46 102400
173247197 kobae964 B Sept. 23, 2022, 5:47 p.m. OK Rust 2021 TESTS 13 15 0

remove filters

Back to search problems