Codeforces Round 619 (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
1301 Codeforces Round 619 (Div. 2) FINISHED False 7200 155575463 Feb. 13, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1541 ) E Nanosoft PROGRAMMING binary search data structures dp implementation 2500

B"Warawreh created a great company called Nanosoft. The only thing that Warawreh still has to do is to place a large picture containing its logo on top of the company's building. The logo of Nanosoft can be described as four squares of the same size merged together into one large square. The top left square is colored with red, the top right square is colored with green, the bottom left square is colored with yellow and the bottom right square is colored with blue. An Example of some correct logos: An Example of some incorrect logos: Warawreh went to Adhami's store in order to buy the needed picture. Although Adhami's store is very large he has only one picture that can be described as a grid of n rows and m columns. The color of every cell in the picture will be green (the symbol 'G'), red (the symbol 'R'), yellow (the symbol 'Y') or blue (the symbol 'B'). Adhami gave Warawreh q options, in every option he gave him a sub-rectangle from that picture and told him that he can cut that sub-rectangle for him. To choose the best option, Warawreh needs to know for every option the maximum area of sub-square inside the given sub-rectangle that can be a Nanosoft logo. If there are no such sub-squares, the answer is 0 . Warawreh couldn't find the best option himself so he asked you for help, can you help him? The first line of input contains three integers n , m and q (1 <= q n , m <= q 500, 1 <= q q <= q 3 cdot 10^{5}) -- the number of row, the number columns and the number of options. For the next n lines, every line will contain m characters. In the i -th line the j -th character will contain the color of the cell at the i -th row and j -th column of the Adhami's picture. The color of every cell will be one of these: {'G','Y','R','B'}. For the next q lines, the input will contain four integers r_1 , c_1 , r_2 and c_2 (1 <= q r_1 <= q r_2 <= q n, 1 <= "...

Tutorials

Codeforces Round #619 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
71000507 rainboy E Feb. 13, 2020, 4:12 p.m. OK GNU C11 TESTS 70 1637 101478400 2500
71058492 Contna E Feb. 14, 2020, 12:48 p.m. OK GNU C++11 TESTS 70 280 189952000 2500
71049604 kekxy E Feb. 14, 2020, 9:30 a.m. OK GNU C++11 TESTS 70 295 19251200 2500
71057348 vjudge5 E Feb. 14, 2020, 12:24 p.m. OK GNU C++11 TESTS 70 295 189952000 2500
71033805 tlnllkbp E Feb. 14, 2020, 4:34 a.m. OK GNU C++11 TESTS 70 326 154624000 2500
71032844 nantf E Feb. 14, 2020, 4:07 a.m. OK GNU C++11 TESTS 70 327 133632000 2500
71050401 Star-Platinum E Feb. 14, 2020, 9:46 a.m. OK GNU C++11 TESTS 70 358 111513600 2500
71065560 eriksuenderhauf E Feb. 14, 2020, 2:28 p.m. OK GNU C++11 TESTS 70 389 131891200 2500
71056690 playf E Feb. 14, 2020, 12:05 p.m. OK GNU C++11 TESTS 70 404 93184000 2500
71012319 YvesCjl E Feb. 13, 2020, 5:48 p.m. OK GNU C++11 TESTS 70 405 52428800 2500
71040300 ddytxdy E Feb. 14, 2020, 6:43 a.m. OK GNU C++11 TESTS 70 420 286412800 2500
71046933 Marco_L_T E Feb. 14, 2020, 8:44 a.m. OK GNU C++14 TESTS 70 187 90624000 2500
71046420 Marco_L_T E Feb. 14, 2020, 8:35 a.m. OK GNU C++14 TESTS 70 217 90624000 2500
71025344 mateusz E Feb. 13, 2020, 11:02 p.m. OK GNU C++14 TESTS 70 404 78950400 2500
71025393 mateusz E Feb. 13, 2020, 11:05 p.m. OK GNU C++14 TESTS 70 405 33996800 2500
71025401 mateusz E Feb. 13, 2020, 11:05 p.m. OK GNU C++14 TESTS 70 420 33996800 2500
70987364 wucstdio E Feb. 13, 2020, 3:32 p.m. OK GNU C++14 TESTS 70 420 149504000 2500
71025257 mateusz E Feb. 13, 2020, 10:58 p.m. OK GNU C++14 TESTS 70 421 78950400 2500
71046249 Marco_L_T E Feb. 14, 2020, 8:32 a.m. OK GNU C++14 TESTS 70 421 90624000 2500
71012248 rapel E Feb. 13, 2020, 5:48 p.m. OK GNU C++14 TESTS 70 421 129331200 2500
71025411 mateusz E Feb. 13, 2020, 11:05 p.m. OK GNU C++14 TESTS 70 436 33996800 2500
71033771 zylzyl E Feb. 14, 2020, 4:33 a.m. OK GNU C++17 TESTS 70 405 215347200 2500
71004547 chemthan E Feb. 13, 2020, 4:25 p.m. OK GNU C++17 TESTS 70 420 140595200 2500
71013756 nim_gerold E Feb. 13, 2020, 6:05 p.m. OK GNU C++17 TESTS 70 421 87859200 2500
71096234 vjudge1 E Feb. 15, 2020, 5:01 a.m. OK GNU C++17 TESTS 72 421 108032000 2500
71011409 teapotd E Feb. 13, 2020, 5:40 p.m. OK GNU C++17 TESTS 70 421 125337600 2500
71035691 mahdi.hasnat E Feb. 14, 2020, 5:20 a.m. OK GNU C++17 TESTS 70 436 89395200 2500
71096259 zqrtxdy E Feb. 15, 2020, 5:02 a.m. OK GNU C++17 TESTS 72 436 108032000 2500
71072170 3liAckerman E Feb. 14, 2020, 4:13 p.m. OK GNU C++17 TESTS 70 436 108032000 2500
71011962 Rahul E Feb. 13, 2020, 5:45 p.m. OK GNU C++17 TESTS 70 436 145203200 2500
71010368 Rahul E Feb. 13, 2020, 5:31 p.m. OK GNU C++17 TESTS 70 436 146227200 2500
71028631 uwi E Feb. 14, 2020, 1:52 a.m. OK Java 11 TESTS 70 1154 483840000 2500
71005957 Kenb E Feb. 13, 2020, 4:30 p.m. OK Java 8 TESTS 70 624 131276800 2500
71023286 BiIIy E Feb. 13, 2020, 9:32 p.m. OK Java 8 TESTS 70 748 151040000 2500
71007328 Nutella3000 E Feb. 13, 2020, 4:33 p.m. OK Java 8 TESTS 70 857 142438400 2500
71027743 dalt E Feb. 14, 2020, 1:17 a.m. OK Java 8 TESTS 70 1185 56934400 2500
71092851 ijxjdjd E Feb. 15, 2020, 2:59 a.m. OK Java 8 TESTS 72 1465 262348800 2500
71023144 BiIIy E Feb. 13, 2020, 9:27 p.m. OK Java 8 TESTS 70 1934 279756800 2500
71017237 Agnimandur E Feb. 13, 2020, 7 p.m. OK Java 8 TESTS 70 1965 471654400 2500
71091446 Spheniscine E Feb. 15, 2020, 1:55 a.m. OK Kotlin TESTS 72 1216 148889600 2500
71090477 Spheniscine E Feb. 15, 2020, 1:07 a.m. OK Kotlin TESTS 72 1216 149913600 2500
71076670 Spheniscine E Feb. 14, 2020, 5:33 p.m. OK Kotlin TESTS 72 1279 149401600 2500
71030429 vjudge1 E Feb. 14, 2020, 2:54 a.m. OK MS C++ TESTS 70 1450 534016000 2500
71030454 vjudge5 E Feb. 14, 2020, 2:54 a.m. OK MS C++ TESTS 70 1715 534016000 2500
71096922 vjudge2 E Feb. 15, 2020, 5:18 a.m. OK MS C++ TESTS 72 1980 265011200 2500
71096784 vjudge2 E Feb. 15, 2020, 5:14 a.m. OK MS C++ TESTS 72 1981 265011200 2500
71013466 youx E Feb. 13, 2020, 6:01 p.m. OK MS C++ 2017 TESTS 70 686 253235200 2500
71079470 Astronomax E Feb. 14, 2020, 6:29 p.m. OK MS C++ 2017 TESTS 72 1497 130764800 2500
71079593 Astronomax E Feb. 14, 2020, 6:32 p.m. OK MS C++ 2017 TESTS 72 1543 131584000 2500
71005532 pichulia E Feb. 13, 2020, 4:28 p.m. OK MS C++ 2017 TESTS 70 1872 20172800 2500
71023453 pineriver E Feb. 13, 2020, 9:39 p.m. OK PyPy 3 TESTS 70 1996 79564800 2500
71013997 sansen E Feb. 13, 2020, 6:08 p.m. OK Rust TESTS 70 576 43724800 2500

remove filters

Back to search problems