Codeforces Round 837 (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
1771 Codeforces Round 837 (Div. 2) FINISHED False 7200 61050299 Dec. 11, 2022, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 709 ) E Hossam and a Letter PROGRAMMING brute force dp implementation two pointers

B"Hossam bought a new piece of ground with length n and width m , he divided it into an n cdot m grid, each cell being of size 1 x 1 . Since Hossam's name starts with the letter 'H', he decided to draw the capital letter 'H' by building walls of size 1 x 1 on some squares of the ground. Each square 1 x 1 on the ground is assigned a quality degree: perfect, medium, or bad. The process of building walls to form up letter 'H' has the following constraints: Find the maximum number of walls that can be used to draw the letter 'H'. Check the note for more clarification. The first line of the input contains two integer numbers n , m ( 1 <= n, m <= 400 ). The next n lines of the input contain m characters each, describing the grid. The character '.' stands for a perfect square, the character 'm' stands for a medium square, and the character '#' stands for a bad square. Print a single integer -- the maximum number of walls that form a capital letter 'H'. If it is not possible to draw any letter 'H', print 0 . In the first test case, we can't build the letter 'H'. For the second test case, the figure below represents the grid and some of the valid letters 'H'. Perfect, medium, and bad squares are represented with white, yellow, and black colors respectively. "...

Tutorials

Codeforces Round #837 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
184837338 Kaedehara_Kazuha_ E Dec. 12, 2022, 2:56 a.m. OK GNU C++14 TESTS 40 218 4608000
184804876 FatihSolak E Dec. 11, 2022, 6:32 p.m. OK GNU C++14 TESTS 39 264 2764800
184837361 luogu_bot5 E Dec. 12, 2022, 2:56 a.m. OK GNU C++14 TESTS 40 295 4198400
184830136 GreatJMore E Dec. 12, 2022, 12:03 a.m. OK GNU C++14 TESTS 40 343 2764800
184839113 Snowfl4ke E Dec. 12, 2022, 3:25 a.m. OK GNU C++14 TESTS 40 374 261222400
184838946 liympanda E Dec. 12, 2022, 3:22 a.m. OK GNU C++14 TESTS 40 468 147660800
184833164 wsday E Dec. 12, 2022, 1:32 a.m. OK GNU C++14 TESTS 40 608 4096000
184808199 sonlh07 E Dec. 11, 2022, 6:47 p.m. OK GNU C++14 TESTS 39 858 4710400
184832839 Duy_e E Dec. 12, 2022, 1:24 a.m. OK GNU C++14 TESTS 40 1497 4096000

remove filters

Back to search problems